:root {
  --bg: #f6f1e8;
  --card: #fffdf8;
  --ink: #1c1915;
  --muted: #6f675c;
  --line: #eadfce;
  --accent: #e07a2f;
  --accent-dark: #c4631c;
  --soft: #fff1e4;
  --danger: #b42318;
  --ok: #0f766e;
  --gutter: 1rem;
  --app-shell: none;
  --radius: 14px;
  --shadow: 0 6px 16px rgba(70, 42, 10, 0.06);
  --row: 2.65rem;
  --text: 0.9375rem;
  --text-sm: 0.8125rem;
  --text-xs: 0.75rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.1875rem;
}

* {
  box-sizing: border-box;
  font-family: "Noto Sans Myanmar", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  font-size: 15px;
}

html[lang="my"] {
  font-size: 14px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-size: var(--text);
  line-height: 1.45;
  background:
    radial-gradient(ellipse 90% 42% at 50% -12%, #ffe4c2 0, transparent 72%),
    var(--bg);
  overflow-x: hidden;
}

html[lang="my"] body {
  line-height: 1.6;
}

a { color: var(--accent-dark); }

.wrap {
  width: calc(100% - (var(--gutter) * 2));
  max-width: 100%;
  margin: 8vh auto 2rem;
}

.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.brand {
  margin: 0 0 0.2rem;
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
}

.sub {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

label {
  display: block;
  margin: 0.75rem 0 0.3rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  font-size: var(--text);
  background: #fff;
  box-shadow: var(--shadow);
}

input:focus {
  outline: 2px solid #f3c49a;
  border-color: var(--accent);
}

button {
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.68rem 0.85rem;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: var(--text);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(196, 99, 28, 0.22);
}

button:hover { background: var(--accent-dark); }

.msg {
  margin: 0 0 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fde8e6;
  color: var(--danger);
  font-size: 0.82rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: calc(100% - (var(--gutter) * 2));
  max-width: 100%;
  margin: 0.65rem auto 0;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.app > .toast {
  position: relative;
  z-index: 50;
}

.toast.ok {
  color: #0f766e;
  border-color: #b7e4d4;
}

.toast.bad {
  color: var(--danger);
  border-color: #f3c7c2;
}

.toast-ico {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.toast.ok .toast-ico { background: #e7f6f1; }
.toast.bad .toast-ico { background: #fde8e6; }

.toast-ico svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast.is-gone {
  opacity: 0;
  transform: translateY(-0.35rem);
  pointer-events: none;
}

.foot {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.home {
  width: 100%;
  max-width: none;
}

.transfer-scan-mode {
  margin-top: 0.75rem;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.55rem 0 0;
  padding: 0.85rem 0.95rem;
  min-height: 6.2rem;
  overflow: hidden;
  border-radius: 18px;
  color: #fffaf3;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(145deg, #f4a25c 0%, #d36b2a 52%, #8d3e16 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 20px rgba(122, 52, 18, 0.18);
}

.banner-copy {
  min-width: 0;
  flex: 1;
}

.banner-copy strong,
.banner-copy span {
  display: block;
}

.banner-copy strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.banner-copy span {
  margin-top: 0.28rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 250, 243, 0.92);
}

.banner-art {
  width: 5.6rem;
  height: 4.2rem;
  flex: none;
}

.banner-art svg,
.banner-art img {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-art img {
  object-fit: cover;
  border-radius: 12px;
}

.banner.is-photo {
  position: relative;
  display: block;
  margin-top: 0.45rem;
  padding: 0;
  height: clamp(8.5rem, 34vw, 13rem);
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  isolation: isolate;
  background: #38271c;
  box-shadow: 0 14px 28px rgba(70, 42, 10, 0.18);
}

.banner-viewport,
.banner-viewport img,
.banner-shade {
  position: absolute;
  inset: 0;
}

.banner-viewport {
  overflow: hidden;
  border-radius: inherit;
}

.banner-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 700ms ease, transform 5.8s ease;
  will-change: opacity, transform;
}

.banner-viewport img.is-on {
  opacity: 1;
  transform: scale(1);
}

.banner-shade {
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(20, 14, 10, 0.68), rgba(20, 14, 10, 0.24) 56%, rgba(20, 14, 10, 0.08)),
    linear-gradient(0deg, rgba(20, 14, 10, 0.4), transparent 46%);
  pointer-events: none;
}

.banner-caption {
  margin: 0.35rem 0 0;
  overflow: hidden;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.banner-caption-track {
  display: flex;
  width: max-content;
  animation: banner-caption-scroll 18s linear infinite;
}

.banner-caption-track span {
  flex: none;
  padding-right: 3rem;
}

.msg-section-title {
  margin: 0.85rem 0 0.45rem;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--ink);
}

.msg-notify-block .boost-feed-card small {
  display: block;
  margin-top: 0.25rem;
  padding: 0 0.9rem 0.85rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.boost-feed {
  margin-top: 1rem;
}

.boost-feed-list {
  display: grid;
  gap: 0.75rem;
}

.boost-feed-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.boost-feed-card img {
  display: block;
  width: 100%;
  height: 16rem;
  max-height: 16rem;
  object-fit: fill;
  object-position: center;
}

.boost-feed-card p {
  margin: 0;
  padding: 0.8rem 0.9rem 0.9rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@keyframes banner-caption-scroll {
  to { transform: translateX(-50%); }
}

.banner-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(30, 24, 20, 0.42);
  box-shadow: none;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: background 160ms ease, transform 160ms ease;
}

.banner-control:hover {
  background: rgba(30, 24, 20, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.banner-control svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.banner-prev { left: 0.55rem; }
.banner-next { right: 0.55rem; }

.banner-pagination {
  position: absolute;
  z-index: 3;
  right: 0.8rem;
  bottom: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.banner-dot {
  width: 0.42rem;
  height: 0.42rem;
  min-width: 0.42rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  transition: width 180ms ease, background 180ms ease;
}

.banner-dot:hover { background: #fff; }
.banner-dot.is-on { width: 1.2rem; background: #fff; }

.banner-count {
  position: absolute;
  z-index: 3;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 99px;
  background: rgba(30, 24, 20, 0.38);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

@media (max-width: 420px) {
  .banner.is-photo {
    height: clamp(8rem, 38vw, 9.5rem);
    margin-top: 0.35rem;
    border-radius: 17px;
  }

  .banner-caption { font-size: 0.82rem; }

  .banner-control {
    width: 1.8rem;
    height: 1.8rem;
    padding: 0.42rem;
  }

  .banner-prev { left: 0.45rem; }
  .banner-next { right: 0.45rem; }
  .banner-pagination { right: 0.65rem; bottom: 0.9rem; }
  .banner-count { top: 0.5rem; right: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .banner-viewport img,
  .banner-control,
  .banner-dot,
  .banner-caption-track {
    transition: none;
    animation: none;
  }
}

.banner-editor {
  margin-top: 0.15rem;
}

.bill-rate-card {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid #f0c49a;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf3, #fff);
  box-shadow: var(--shadow);
}

.bill-rate-copy {
  display: grid;
  gap: 0.15rem;
}

.bill-rate-copy strong {
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.bill-rate-copy span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
}

.bill-rate-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: end;
}

.bill-rate-fields label {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.bill-rate-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.45rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.bill-rate-input input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.15rem;
  border: 0;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.bill-rate-input span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.bill-rate-fields button,
.bill-rate-fields button:hover {
  width: auto;
  min-width: 5.5rem;
  margin: 0;
  min-height: 2.45rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
}

.bill-rate-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.bill-rate-preview strong {
  color: var(--accent-dark);
  font-weight: 800;
}

.bill-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.bill-summary > div {
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.bill-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.bill-summary strong {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bill-summary .is-ok { color: #0f766e; }
.bill-summary .is-bad { color: #b42318; }

.bill-order .is-ok { color: #0f766e; font-weight: 700; }
.bill-order .is-bad { color: #b42318; font-weight: 700; }
.bill-order .is-wait { color: #b45309; font-weight: 700; }

@media (min-width: 640px) {
  .bill-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.bill-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.bill-country-panel {
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.9rem 0.95rem;
  border: 1px solid #e8d5c2;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 186, 120, 0.22), transparent 55%),
    linear-gradient(165deg, #fffdf9 0%, #fff7ef 100%);
  box-shadow: var(--shadow);
}

.bill-country-head {
  display: grid;
  gap: 0.12rem;
  margin-bottom: 0.7rem;
}

.bill-country-head strong {
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.bill-country-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.bill-country-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

a.bill-country-chip,
a.bill-country-chip:hover {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(180, 120, 70, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.bill-country-chip:hover {
  border-color: rgba(180, 100, 40, 0.45);
  transform: translateY(-1px);
}

a.bill-country-chip.is-on,
a.bill-country-chip.is-on:hover {
  border-color: #c45e12;
  background: linear-gradient(135deg, #fff4e8, #ffe7d0);
  box-shadow: 0 0 0 2px rgba(196, 94, 18, 0.18);
  transform: none;
}

.bill-country-flag {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 1.75rem;
  border-radius: 6px;
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.bill-flag-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bill-flag-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bill-cache-note {
  margin: -0.25rem 0 0.65rem;
  color: #9a6b2f;
  font-size: 0.72rem;
  font-weight: 700;
}

.bill-country-text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.bill-country-text strong {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bill-country-text small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bill-package-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.65rem;
}

.bill-package-toolbar strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.bill-package-toolbar span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.bill-op-block {
  margin: 0 0 0.85rem;
}

.bill-op-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  padding: 0 0.1rem;
}

.bill-op-head strong {
  font-size: 0.88rem;
  font-weight: 800;
}

.bill-op-head span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.bill-pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.35rem;
}

.bill-pkg-card {
  display: grid;
  gap: 0.28rem;
  padding: 0.7rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.bill-pkg-card strong {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
}

.bill-pkg-card em {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}

.bill-pkg-id {
  color: #8a6a4a;
  font-size: 0.66rem;
  font-weight: 700;
}

.bill-pkg-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.4rem;
  margin-top: 0.15rem;
}

.bill-pkg-prices span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bill-pkg-prices b {
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bill-pkg-prices small {
  font-size: 0.62rem;
  font-weight: 700;
  opacity: 0.85;
}

@media (min-width: 640px) {
  .bill-country-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bill-pkg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .bill-country-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .bill-pkg-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .bill-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.banner-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.banner-slot {
  position: relative;
  min-width: 0;
}

input.banner-file {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  box-shadow: none;
}

label.banner-slot-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.banner-slot.is-empty label.banner-slot-face {
  border-style: dashed;
  background: var(--soft);
}

.banner-slot-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slot-no {
  position: absolute;
  z-index: 1;
  top: 0.35rem;
  left: 0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(28, 25, 21, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.banner-slot-remove {
  position: absolute;
  z-index: 2;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0;
  padding: 0;
  display: inline-block;
  border: 0;
  border-radius: 50%;
  background-color: rgba(28, 25, 21, 0.78);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.85rem 0.85rem;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
}

.banner-slot-remove[hidden] {
  display: none;
}

.banner-slot-plus {
  color: var(--accent-dark);
}

.banner-slot-plus svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

label.banner-slot-name {
  display: block;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.banner-editor > label {
  margin-top: 1rem;
}

.boost-editor {
  display: grid;
  gap: 0.6rem;
  margin: 0.15rem 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(231, 217, 196, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.boost-editor label {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.boost-editor input[type="file"] {
  padding: 0.55rem;
  border: 1px dashed #e3cba9;
  border-radius: 12px;
  background: #fffaf3;
  font-size: 0.78rem;
}

.boost-editor textarea {
  width: 100%;
  min-height: 5.2rem;
  padding: 0.7rem;
  border: 1px solid #e9d7bd;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  resize: vertical;
}

.boost-editor small {
  color: var(--muted);
  font-size: 0.72rem;
}

.boost-editor button {
  margin-top: 0.25rem;
}

.boost-admin-list {
  display: grid;
  gap: 0.75rem;
}

.boost-admin-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(70, 42, 10, 0.045);
}

.boost-admin-card > img {
  display: block;
  width: 100%;
  height: 10rem;
  max-height: 10rem;
  object-fit: fill;
}

.boost-admin-caption {
  padding: 0.4rem 0.65rem 0.45rem;
}

.boost-admin-caption > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.boost-admin-caption > p {
  margin: 0.12rem 0 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.boost-admin-card > form {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.65rem 0.5rem;
}

.boost-admin-card .boost-delete,
.boost-admin-card .boost-delete:hover {
  width: auto;
  margin: 0;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: #fff0ed;
  color: var(--danger);
  box-shadow: none;
  font-size: 0.75rem;
}

.agent-form label {
  margin-top: 0.85rem;
}

.agent-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
}

a.agent-link,
a.agent-link:hover {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}

.agent-ico {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
}

.agent-ico.is-facebook { background: #1877f2; }
.agent-ico.is-vibes { background: #7c3aed; }
.agent-ico.is-telegram { background: #2aabee; }

.agent-ico svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
  stroke: none;
}

.agent-ico.is-vibes svg,
.agent-ico.is-telegram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-link span:last-child {
  min-width: 0;
}

.agent-link b,
.agent-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-link b {
  font-size: 0.92rem;
}

.agent-link small {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.agent-note {
  margin: 0.85rem 0 0;
  padding: 0.85rem 0.95rem;
  background: var(--soft);
  border: 1px solid #f0c49a;
  border-radius: 16px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
}

.agent-note p {
  margin: 0;
}

.agent-note p + p {
  margin-top: 0.45rem;
}

.hub {
  padding: 0.75rem 0.75rem 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hub-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.hub-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--soft);
}

.hub-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hub-user div {
  min-width: 0;
}

.hub-user strong,
.hub-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-user strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.hub-user span,
.hub-balance > span {
  color: var(--muted);
  font-size: 0.78rem;
}

button.insights,
button.insights:hover,
a.insights,
a.insights:hover,
span.insights {
  width: auto;
  margin: 0;
  padding: 0.42rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  flex: none;
}

span.insights.is-maintenance {
  display: grid;
  gap: 0.12rem;
  text-align: center;
  opacity: 1;
}

.insight-export {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.insight-export-meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.insight-export-meta strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.insight-export-meta span {
  color: var(--muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-export-actions {
  display: grid;
  gap: 0.5rem;
}

a.insight-export-btn,
a.insight-export-btn:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.45rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.insight-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.55rem;
}

.insight-stat {
  min-width: 0;
  padding: 0.85rem 0.9rem 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.insight-stat.is-main {
  background: linear-gradient(165deg, #fffaf3 0%, #ffe4c2 100%);
  border-color: #f0c49a;
}

.insight-stat span,
.insight-stat small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.insight-stat strong {
  display: block;
  margin: 0.28rem 0 0.15rem;
  overflow: hidden;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-stat.is-main strong {
  color: var(--accent-dark);
}

.insight-kicker {
  margin: 1rem 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.insight-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.insight-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
}

.insight-ico svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insight-ico.is-topup {
  background: #fff1e4;
  color: var(--accent-dark);
}

.insight-ico.is-game {
  background: #eef4ff;
  color: #2454c7;
}

.insight-ico.is-gift {
  background: #f4eefe;
  color: #7c3aed;
}

.insight-row > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.insight-row b,
.insight-row small,
.insight-row strong,
.insight-row em {
  display: block;
}

.insight-row b {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-row small,
.insight-row em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 600;
}

.insight-row > div:last-child {
  flex: none;
  text-align: right;
}

.insight-row strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.insight-row em.is-ok { color: #1f7a3a; }
.insight-row em.is-bad { color: var(--danger); }
.insight-row em.is-wait { color: var(--accent-dark); }

.insight-empty {
  margin: 0;
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px dashed #f0c49a;
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.hub-balance {
  margin-top: 0.75rem;
}

.hub-figure {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.15rem;
}

.hub-figure strong {
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hub-figure small {
  margin-left: 0.15rem;
  font-size: 0.85rem;
  font-weight: 700;
}

button.eye,
button.eye:hover {
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  box-shadow: none;
  display: grid;
  place-items: center;
}

button.eye svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

a.hub-action,
button.hub-action,
span.hub-action,
a.hub-action:hover,
button.hub-action:hover {
  width: 100%;
  min-height: 3.7rem;
  margin: 0;
  padding: 0.45rem 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 16px;
  background: var(--soft);
  color: var(--ink);
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

span.hub-action.is-maintenance {
  background: #f8f3ed;
  color: var(--muted);
}

.hub-action small {
  color: var(--danger);
  font-size: 0.58rem;
  font-weight: 700;
}

.hub-action svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet .sheet-empty {
  margin: 0.15rem 0 0.85rem;
  padding: 1.2rem 0.4rem 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.logout {
  width: auto;
  margin: 0;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.logout:hover {
  background: var(--soft);
}

.balance {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: right;
}

.balance span,
.balance strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.balance span {
  color: var(--muted);
  font-weight: 600;
}

.balance strong {
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: var(--row);
  padding: 0.55rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  line-height: 1.2;
}

.meta b { font-weight: 600; }
.meta span { color: var(--muted); }
.meta .pan-full {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

body.app {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
}

.app .toolbox,
.app > .toast,
.app .wrap,
.app .tabbar {
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--app-shell);
  margin-left: auto;
  margin-right: auto;
}

.app .wrap {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.toolbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: calc(100% - (var(--gutter) * 2));
  max-width: 100%;
  margin: 0.9rem auto 0;
  padding: 0.15rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  line-height: 1.2;
}

.toolbox-brand {
  font-size: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.toolbox-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.toolbox-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.1rem;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}

.toolbox-action svg,
.toolbox-messages svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbox-qr-dialog {
  width: min(21rem, calc(100% - 2rem));
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--ink);
}

.toolbox-qr-dialog[open] {
  display: block;
}

.toolbox-qr-dialog::backdrop {
  background: rgba(27, 24, 20, 0.58);
  backdrop-filter: blur(3px);
}

.toolbox-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.4rem 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.toolbox-qr-card h2 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1rem;
}

.toolbox-qr-card p,
.toolbox-qr-card small {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.toolbox-qr-image {
  display: grid;
  place-items: center;
  width: min(15rem, 100%);
  min-height: 15rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--danger);
  font-size: 0.8rem;
}

.toolbox-qr-image img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.toolbox-qr-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.toolbox-qr-save:disabled {
  cursor: wait;
  opacity: 0.65;
}

.toolbox-qr-save svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbox-qr-save-status {
  margin: 0;
  color: var(--danger);
  font-size: 0.75rem;
}

.toolbox-qr-save-status[hidden] {
  display: none;
}

.toolbox-messages {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  background: #fff;
  text-decoration: none;
}

.toolbox-messages .msg-badge {
  position: absolute;
  top: -0.28rem;
  right: -0.32rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 0 0 2px var(--bg);
  pointer-events: none;
}

.toolbox-messages.has-unread {
  border-color: #f3b4c0;
}

body.gate .wrap {
  margin-top: 1.15rem;
}

.auth-page {
  background: linear-gradient(180deg, #fffdf9 0%, #f7f0e7 100%);
}

.auth-toolbox {
  position: relative;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 1rem;
  min-height: 2.4rem;
}

.auth-toolbox .auth-lang {
  position: absolute;
  top: 50%;
  right: 0;
  margin: 0;
  transform: translateY(-50%);
}

.auth-toolbox .lang-spin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 1px solid rgba(220, 196, 166, 0.7);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.85);
  background-image: none;
  box-shadow: 0 4px 10px rgba(90, 60, 30, 0.05);
}

.auth-toolbox .lang-spin .flag {
  width: 1.15rem;
  height: 0.78rem;
  border-radius: 2px;
}

.auth-toolbox .lang-menu {
  min-width: 2.6rem;
  padding: 0.25rem;
  border-radius: 10px;
}

.auth-toolbox .lang-menu button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 1.85rem;
  padding: 0.28rem;
}

.auth-toolbox .lang-menu .flag {
  width: 1.2rem;
  height: 0.82rem;
}

.auth-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.24rem 0.7rem 0.28rem;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(220, 196, 166, 0.6);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(90, 60, 30, 0.04);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  padding: 0.2rem 0.38rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5b868 0%, #df7e31 100%);
  color: #fff;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding-bottom: 1.2rem;
}

.auth-card {
  width: min(100%, 26.5rem);
  padding: 1.25rem clamp(1rem, 5vw, 1.6rem) 1.1rem;
  border: 1px solid rgba(220, 196, 166, 0.72);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(250, 224, 185, 0.24), transparent 42%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 55px rgba(82, 58, 28, 0.12);
}

.auth-card--wide {
  width: min(100%, 26.5rem);
}

.auth-header {
  margin-bottom: 1rem;
  text-align: center;
}

.auth-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(224, 122, 47, 0.16);
  border-radius: 999px;
  background: rgba(255, 245, 231, 0.88);
  color: var(--accent-dark);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.4rem, 5vw, 1.7rem);
  letter-spacing: -0.04em;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.auth-form label {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.auth-forgot {
  align-self: flex-end;
  margin-top: 0.15rem;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-form input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #ead9b9;
  border-radius: 11px;
  background: #fffdfb;
}

.auth-form input:focus {
  outline: 2px solid rgba(224, 122, 47, 0.12);
  border-color: #e38b3d;
}

.auth-button {
  margin-top: 0.2rem;
  padding: 0.78rem 0.9rem;
  border-radius: 11px;
  background: linear-gradient(135deg, #f4b05f 0%, #e18636 100%);
  border: 0;
  box-shadow: 0 10px 18px rgba(184, 95, 29, 0.12);
  font-size: 0.94rem;
}

.auth-button:hover {
  background: linear-gradient(135deg, #f0a64f 0%, #d97629 100%);
}

.auth-foot {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(234, 223, 206, 0.8);
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-foot a {
  color: var(--accent-dark);
  font-weight: 700;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(0.55rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--app-shell);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 20;
}

.tabbar::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: calc(-1 * max(0.55rem, env(safe-area-inset-bottom)));
  width: 100vw;
  height: calc(100% + 1.8rem + max(0.55rem, env(safe-area-inset-bottom)));
  transform: translateX(-50%);
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 78%, rgba(246, 241, 232, 0) 100%);
  pointer-events: none;
}

.tabbar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.15rem 0.4rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 700;
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.35rem 0.1rem;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.tabbar a svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar-item svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar-item small,
.is-maintenance small {
  color: var(--danger);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.1;
}

.is-maintenance {
  opacity: 0.72;
  cursor: not-allowed;
}

.history-unread-badge {
  position: absolute;
  top: 0.05rem;
  left: calc(50% + 0.15rem);
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: #e87916;
  color: #fff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.feature-maintenance-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.feature-maintenance {
  width: min(100%, 28rem);
  padding: 2.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 18px 45px rgba(80, 56, 32, 0.12);
  text-align: center;
}

.feature-maintenance-icon {
  display: grid;
  width: 4.4rem;
  height: 4.4rem;
  place-items: center;
  margin: 0 auto 1rem;
  border: 1px solid #f0d2ae;
  border-radius: 22px;
  background: #fff2e2;
  color: var(--accent-dark);
}

.feature-maintenance-icon svg {
  width: 2.45rem;
  height: 2.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-maintenance-kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.feature-maintenance h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 5vw, 1.55rem);
}

.feature-maintenance-message {
  margin: 0.55rem 0 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

a.feature-maintenance-back,
a.feature-maintenance-back:hover {
  display: inline-flex;
  width: auto;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

.tabbar a.active {
  color: var(--accent-dark);
  background: transparent;
}

.paycard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 12.2rem;
  margin: 0.2rem 0 0;
  padding: 1rem 1.1rem 0.9rem;
  overflow: hidden;
  border-radius: 18px;
  color: #fffaf3;
  isolation: isolate;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.34) 0%, transparent 42%),
    linear-gradient(180deg, #f5c690 0%, #ea9a4e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 236, 210, 0.22),
    0 6px 14px rgba(224, 122, 47, 0.1);
}

.paycard.paycard-real {
  --card-pad-x: 5.5%;
  container-type: inline-size;
  container-name: paycard;
  display: block;
  aspect-ratio: 85.6 / 53.98;
  width: min(100%, 20.5rem);
  max-width: 100%;
  min-height: 0 !important;
  height: auto !important;
  max-height: none;
  margin: 0.35rem auto 0;
  padding: 0;
  gap: 0;
  justify-content: initial;
  overflow: hidden;
  border-radius: 14px;
  color: #fff8ef;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 46%),
    radial-gradient(90% 70% at 0% 100%, rgba(0, 0, 0, 0.2), transparent 55%),
    linear-gradient(145deg, #2a3344 0%, #1a2230 48%, #121820 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 10px 22px rgba(16, 22, 32, 0.26);
  font-family: "Noto Sans Myanmar", sans-serif;
}

.paycard.paycard-real::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22%;
  height: 12%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.12));
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.paycard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.22) 50%, transparent 58%);
  pointer-events: none;
}

.paycard.paycard-real::after {
  background:
    linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.16) 49%, transparent 60%),
    radial-gradient(circle at 82% 72%, rgba(255, 210, 120, 0.18), transparent 28%);
}

.paycard-glow {
  position: absolute;
  right: -18%;
  bottom: -40%;
  width: 70%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 160, 0.35), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.paycard-top,
.paycard-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.paycard-top {
  align-items: center;
}

.paycard-top strong {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.paycard-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.unionpay {
  display: block;
  flex: none;
  width: 5.8rem;
  filter: drop-shadow(0 1px 1px rgba(50, 18, 4, 0.28));
}

.unionpay svg {
  display: block;
  width: 100%;
  height: auto;
}

.paycard-mid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.paycard-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.contactless {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.paycard-bottom span {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

.chip {
  position: relative;
  z-index: 1;
  width: 2.55rem;
  height: 1.9rem;
  display: block;
  border-radius: 6px;
  background: linear-gradient(145deg, #f8ecc4, #c9963e 55%, #f6e7b0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(70, 36, 8, 0.35);
}

.chip svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pan {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  font-size: clamp(0.95rem, 2.6vw, 1.25rem);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 1px rgba(80, 30, 8, 0.28);
}

.paycard-bottom > div {
  flex: 1;
  min-width: 0;
}

.paycard-bottom strong {
  display: block;
  margin-top: 0.12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.paycard-bal {
  text-align: right;
}

.paycard-bal strong {
  margin-left: auto;
  text-transform: none;
}

.paycard.is-locked {
  filter: saturate(0.45);
}

.paycard.is-locked .paycard-mark {
  letter-spacing: 0.08em;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.card-action-form {
  margin: 0;
  min-width: 0;
  display: flex;
  height: 100%;
}

a.card-action,
button.card-action,
span.card-action {
  width: 100%;
  height: 100%;
  min-height: 3.6rem;
  margin: 0;
  padding: 0.4rem 0.22rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  appearance: none;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

a.card-action:hover,
button.card-action:hover {
  background: #fffaf6;
}

span.card-action.is-maintenance {
  background: #f8f5f1;
  color: var(--muted);
  box-shadow: none;
}

.card-action small {
  color: var(--danger);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.1;
}

.card-action.is-maintenance .card-action-ico {
  background: #eee8e0;
  color: var(--muted);
}

a.card-action.active,
button.card-action.is-locked {
  background: var(--soft);
  border-color: #f0c49a;
}

button.card-action.is-locked {
  color: var(--danger);
}

.card-action-ico {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}

button.card-action.is-locked .card-action-ico {
  background: #fde8e6;
  color: var(--danger);
}

.card-action-ico svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.move-note {
  margin: 0.15rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.move-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
}

.move-end {
  min-width: 0;
  padding: 0.75rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf6;
}

.move-end small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.move-end strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.move-arrow {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}

.move-arrow svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.move-error {
  margin: 0.75rem 0 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
}

.sheet > button,
.sheet > button:disabled,
.sheet > input:disabled {
  margin-bottom: 0.85rem;
}

.sheet > button:disabled,
.sheet > input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.85rem;
  padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
  background: rgba(28, 25, 21, 0.46);
  box-sizing: border-box;
}

.sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 34rem;
  max-height: min(86vh, 40rem);
  margin: 0 auto;
  overflow: auto;
  padding: 0.2rem 1rem 0.4rem;
  background: #fff;
  border-radius: 22px 22px 18px 18px;
  box-shadow: 0 18px 40px rgba(28, 25, 21, 0.22);
  align-self: auto;
}

.sheet-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 2.4rem;
}

.sheet-head h2 {
  margin: 0;
  min-width: 0;
  font-size: var(--text-lg);
  overflow-wrap: anywhere;
  text-align: center;
}

/* Close button: circular box + SVG × centered (site-wide) */
a.sheet-close,
a.sheet-close:hover,
button.sheet-close,
button.sheet-close:hover,
button.order-close,
button.order-close:hover,
button.sim-order-close,
button.sim-order-close:hover,
a.edit-close,
a.edit-close:hover {
  --close-ink: #1c1915;
  box-sizing: border-box;
  display: inline-block !important;
  margin: 0;
  padding: 0 !important;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  border: 1px solid #e0d4c4;
  border-radius: 999px;
  background-color: #f7f1e8 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1915' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 0.95rem 0.95rem !important;
  color: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0;
  letter-spacing: 0;
  text-indent: -9999px;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transform: none !important;
}

a.sheet-close::before,
a.sheet-close::after,
button.sheet-close::before,
button.sheet-close::after,
button.order-close::before,
button.order-close::after,
button.sim-order-close::before,
button.sim-order-close::after,
a.edit-close::before,
a.edit-close::after {
  content: none !important;
  display: none !important;
}

.sheet-head .sheet-close,
.sheet-head a.sheet-close,
.sheet-head button.sheet-close {
  position: absolute !important;
  top: 50%;
  right: 0.1rem;
  margin-top: -1rem;
  transform: none !important;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.detail-row small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.detail-row strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1rem;
}

button.copy-btn,
button.copy-btn:hover {
  width: auto;
  margin: 0;
  padding: 0.38rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
  border-radius: 10px;
  background: #f3f0ea;
  color: var(--ink);
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 700;
}

button.copy-btn:hover {
  background: #e7e1d8;
}

.copy-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-brand {
  color: var(--accent-dark);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .sheet-back {
    align-items: center;
  }

  .sheet {
    border-radius: 22px;
  }
}

.empty {
  margin-top: 0.15rem;
  padding: 1.25rem 0.9rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empty-ico {
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}

.empty-ico svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty strong {
  display: block;
  margin-bottom: 0.35rem;
}

.empty span {
  color: var(--muted);
  font-size: 0.92rem;
}

.logout.full {
  width: 100%;
  margin-top: 1.1rem;
}

.amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.15rem 0 1rem;
}

.profile-id {
  min-width: 0;
}

.profile-id strong,
.profile-id span {
  display: block;
}

.profile-id strong {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.profile-id span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.profile-photo {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #f0c49a;
}

.profile-photo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.menu li {
  border: 0;
}

.menu form {
  margin: 0;
}

.menu-row {
  width: 100%;
  margin: 0;
  min-height: 2.85rem;
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  color: #1c1915;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  cursor: default;
  box-shadow: none;
}

button.menu-row {
  cursor: pointer;
}

button.menu-row {
  margin-top: 0;
  color: var(--ink);
  box-shadow: none;
}

a.menu-row,
a.menu-row:hover {
  margin-top: 0;
  text-decoration: none;
  color: #1c1915;
  box-shadow: none;
  cursor: pointer;
}

button.menu-row:hover,
.menu-row:hover {
  background: #fffaf6;
}

.menu-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  flex: none;
}

.menu li:last-child .menu-ico {
  background: #fde8e6;
  color: var(--danger);
}

.menu-ico svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-form {
  margin: 0;
  flex: none;
  display: flex;
}

.lang-pick {
  position: relative;
}

.lang-pick[open] {
  z-index: 4;
}

.lang-spin {
  display: flex;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 0.22rem 1.25rem 0.22rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.2 6 6.2 11 1.2' fill='none' stroke='%236f675c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
  background-size: 0.6rem;
  list-style: none;
  cursor: pointer;
}

.lang-spin::-webkit-details-marker {
  display: none;
}

.flag {
  display: block;
  width: 1.45rem;
  height: 1rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.lang-menu button {
  width: auto;
  margin: 0;
  padding: 0.28rem 0.35rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.lang-menu button:hover {
  background: var(--soft);
}

.menu-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-chev {
  width: 1rem;
  height: 1rem;
  color: #c4b8a8;
  display: grid;
  place-items: center;
  flex: none;
}

.pin-panel {
  margin-top: 0.8rem;
  padding: 0.9rem;
  border: 1px solid #efddc5;
  border-radius: 16px;
  background: linear-gradient(145deg, #fffaf3 0%, #fff 100%);
  box-shadow: var(--shadow);
}

.pin-panel-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.pin-panel-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  background: var(--soft);
  color: var(--accent-dark);
}

.pin-panel-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pin-panel-head h2 {
  margin: 0;
  font-size: 0.98rem;
}

.pin-panel-head p {
  margin: 0.16rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.pin-form {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pin-form label {
  margin: 0.35rem 0 0.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.pin-form input {
  padding: 0.62rem 0.75rem;
  border: 1px solid #ead9bf;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  letter-spacing: 0.22em;
}

.pin-form button {
  margin-top: 0.65rem;
  padding: 0.68rem 0.8rem;
  border-radius: 11px;
  background: linear-gradient(135deg, #f3b05e, #dc762b);
  box-shadow: 0 7px 14px rgba(184, 95, 29, 0.14);
  font-size: 0.85rem;
}

.auth-totp-panel {
  margin-top: 0.75rem;
}

.auth-totp-qr-wrap {
  display: grid;
  place-items: center;
  margin: 0.85rem 0 0.75rem;
  padding: 0.85rem;
  border: 1px solid #efddc5;
  border-radius: 14px;
  background: #fff;
}

.auth-totp-qr {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
}

.auth-totp-key-box {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  padding: 0.7rem 0.8rem;
  border: 1px dashed #e2c9a6;
  border-radius: 12px;
  background: #fffaf3;
}

.auth-totp-key-box > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-totp-key-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  word-break: break-all;
  color: var(--ink);
}

.auth-totp-copy {
  justify-self: start;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border: 1px solid #ead9bf;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-totp-regen {
  margin-top: 0.55rem;
  text-align: center;
}

.auth-totp-regen .linkish {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

.auth-totp-danger {
  background: linear-gradient(135deg, #d9776b, #b42318) !important;
  box-shadow: 0 7px 14px rgba(180, 35, 24, 0.14) !important;
}

.auth-totp-login-hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.auth-card--otp {
  width: min(100%, 26.5rem);
}

.auth-card--otp .auth-header {
  margin-bottom: 0.8rem;
}

.auth-card--otp .auth-header h1 {
  font-size: clamp(1.4rem, 5vw, 1.7rem);
}

.auth-otp-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.8rem;
  border: 1px solid rgba(224, 122, 47, 0.14);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #fff5e8, #ffead0);
  color: #c96b24;
  box-shadow: 0 9px 20px rgba(184, 95, 29, 0.1);
}

.auth-otp-mark svg,
.auth-otp-email svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.auth-otp-copy {
  margin: 0 auto 0.65rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

.auth-otp-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.2rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid #f0dfc9;
  border-radius: 999px;
  background: #fffaf4;
  color: #80502d;
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.auth-otp-email svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.auth-otp-form {
  gap: 0.85rem;
}

.auth-otp-form .field-group {
  gap: 0.45rem;
}

.auth-otp-form label {
  color: var(--ink);
  font-size: 0.78rem;
  text-align: center;
}

.auth-form .auth-otp-input {
  min-height: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #ead9b9;
  border-radius: 11px;
  background: #fffdfb;
  color: #30251c;
  font-size: inherit;
  font-weight: 800;
  letter-spacing: 0.35em;
  line-height: inherit;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-form .auth-otp-input::placeholder {
  color: #dfd3c4;
  letter-spacing: 0.3em;
  opacity: 1;
}

.auth-form .auth-otp-input:focus {
  border-color: #e38b3d;
  background: #fffdfb;
  box-shadow: none;
  outline: 2px solid rgba(224, 122, 47, 0.12);
}

.auth-otp-help {
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.auth-otp-countdown {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.auth-otp-countdown strong {
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}

.auth-otp-form .auth-button {
  min-height: 3rem;
  margin-top: 0.05rem;
  border-radius: 13px;
  font-weight: 800;
}

.auth-otp-resend {
  display: flex;
  justify-content: center;
  margin-top: 0.8rem;
}

.auth-otp-resend .auth-forgot {
  align-self: auto;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
}

.auth-otp-resend .auth-forgot:disabled {
  background: transparent;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
}

.auth-otp-resend .auth-forgot:hover {
  background: #fff3e5;
  text-decoration: none;
}

.auth-card--otp .auth-foot {
  margin-top: 0.8rem;
}

.face-scan-page .toolbox {
  margin-top: 0.55rem;
  background: transparent;
}

.face-scan-page.app {
  padding-bottom: calc(7.2rem + env(safe-area-inset-bottom));
}

.face-scan-wrap {
  margin-top: 0.35rem !important;
  padding-bottom: 0.4rem;
}

.face-scan-shell {
  position: relative;
}

.face-scan-top {
  margin-bottom: 0.45rem !important;
}

.face-scan-top h1 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.face-scan {
  position: relative;
  margin: 0 0 0.65rem;
  padding: 0.75rem 0.8rem;
  overflow: hidden;
  border: 1px solid #efddc5;
  border-radius: 16px;
  background:
    radial-gradient(110% 90% at 18% 20%, rgba(240, 168, 88, 0.2), transparent 55%),
    linear-gradient(165deg, #fffdf8 0%, #fff1e4 100%);
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: face-scan-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.face-scan-hero {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: 1rem 0.9rem 1.1rem;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(240, 168, 88, 0.28), transparent 60%),
    linear-gradient(180deg, #fffdf8 0%, #fff1e4 100%);
}

.face-scan-hero-head {
  position: relative;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  max-width: 18rem;
}

.face-scan-aura {
  position: absolute;
  inset: -18% 10% auto;
  height: 45%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 186, 110, 0.32), transparent 65%);
  pointer-events: none;
  filter: blur(2px);
  animation: face-aura 4.5s ease-in-out infinite;
}

.face-scan-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

.face-scan-orb {
  position: relative;
  width: 132px;
  aspect-ratio: 1;
  margin: 0;
  flex: 0 0 auto;
}

.face-scan-orb-lg {
  width: min(62vw, 220px);
  margin: 0.15rem 0;
}

.face-scan-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.face-scan-ring-a {
  border: 1px solid rgba(255, 196, 120, 0.35);
  animation: face-ring 2.8s ease-out infinite;
}

.face-scan-ring-b {
  inset: 5%;
  border: 1px dashed rgba(255, 196, 120, 0.22);
  animation: face-ring 2.8s ease-out 0.55s infinite;
}

.face-scan-stage {
  position: absolute;
  inset: 8%;
  overflow: hidden;
  border-radius: 50%;
  background: #fff1e4;
  box-shadow:
    inset 0 0 0 2px rgba(224, 122, 47, 0.6),
    0 0 0 6px rgba(224, 122, 47, 0.1),
    0 10px 22px rgba(70, 42, 10, 0.12);
}

.face-scan-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 2;
  animation: face-count-pop 0.4s ease both;
}

.auth-face-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.face-scan[data-state="live"] .auth-face-video,
.face-scan[data-state="scanning"] .auth-face-video,
.face-scan[data-state="success"] .auth-face-video {
  opacity: 1;
}

.face-scan-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, transparent 46%, rgba(8, 6, 4, 0.55) 72%);
  pointer-events: none;
}

.face-scan-beam {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 18%;
  top: -20%;
  background: linear-gradient(180deg, transparent, rgba(255, 196, 120, 0.55), transparent);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.face-scan[data-state="live"] .face-scan-beam,
.face-scan[data-state="scanning"] .face-scan-beam {
  opacity: 1;
  animation: face-beam 2.2s linear infinite;
}

.face-scan[data-state="scanning"] .face-scan-beam {
  animation-duration: 1.15s;
  background: linear-gradient(180deg, transparent, rgba(255, 214, 150, 0.8), transparent);
}

.face-scan-corners {
  position: absolute;
  inset: 16%;
  pointer-events: none;
}

.face-scan-corners span {
  position: absolute;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--accent);
  opacity: 0.9;
}

.face-scan-corners span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.face-scan-corners span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.face-scan-corners span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.face-scan-corners span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.face-scan[data-state="scanning"] .face-scan-corners span {
  animation: face-corner-pulse 0.9s ease-in-out infinite;
}

.face-scan-idle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(224, 122, 47, 0.7);
  transition: opacity 0.3s ease;
}

.face-scan-idle svg {
  width: 2.4rem;
  height: 2.4rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.face-scan[data-state="live"] .face-scan-idle,
.face-scan[data-state="scanning"] .face-scan-idle,
.face-scan[data-state="success"] .face-scan-idle {
  opacity: 0;
  pointer-events: none;
}

.face-scan[data-state="success"] .face-scan-stage {
  box-shadow:
    inset 0 0 0 1.5px rgba(120, 220, 150, 0.85),
    0 0 0 6px rgba(90, 200, 130, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.face-scan[data-state="error"] .face-scan-stage {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 120, 110, 0.85),
    0 0 0 5px rgba(220, 80, 70, 0.1),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.face-scan-pill {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid #f3c49a;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.face-scan-pill.is-on {
  border-color: #b7e4d4;
  background: #e8f6f1;
  color: var(--ok);
}

.face-scan-pill::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(240, 192, 137, 0.18);
}

.auth-face-status {
  min-height: 1.1em;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: left;
}

.face-scan-status-center {
  text-align: center;
  min-height: 1.2em;
  max-width: 18rem;
}

.auth-face-status.is-error {
  color: var(--danger);
}

.auth-face-actions,
.face-scan-actions {
  position: relative;
  display: grid;
  gap: 0.4rem;
  width: min(100%, 16rem);
  margin-top: 0.1rem;
  justify-items: center;
}

.face-scan-link {
  border: 0;
  background: none;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  padding: 0.25rem;
}

.auth-face-actions button,
.face-scan-cta {
  width: 100%;
  margin: 0;
  padding: 0.58rem 0.7rem;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #f3b05e, #dc762b);
  box-shadow: 0 6px 14px rgba(220, 118, 43, 0.22);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.auth-face-actions button:hover:not(:disabled),
.face-scan-cta:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.auth-face-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.face-scan-cta.auth-totp-danger {
  background: linear-gradient(135deg, #d9776b, #b42318) !important;
  box-shadow: 0 6px 14px rgba(180, 35, 24, 0.22) !important;
}

.auth-face-start {
  border: 1px solid #f3c49a !important;
  background: #fff !important;
  color: var(--accent-dark) !important;
  box-shadow: none !important;
}

.face-scan-more {
  margin: 0;
  border: 1px solid #efddc5;
  border-radius: 12px;
  background: #fffaf3;
  overflow: hidden;
}

.face-scan-more > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 360px) {
  .face-scan-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .face-scan-side {
    width: 100%;
    justify-items: center;
  }

  .face-scan-pill,
  .auth-face-status,
  .face-scan-lead {
    text-align: center;
    justify-self: center;
  }
}

.face-scan-more > summary::-webkit-details-marker {
  display: none;
}

.face-scan-more > summary::after {
  content: "+";
  float: right;
  color: var(--accent-dark);
  font-weight: 700;
}

.face-scan-more[open] > summary::after {
  content: "–";
}

.face-scan-more .auth-totp-panel {
  margin: 0;
  border: 0;
  border-radius: 0;
  border-top: 1px solid #efddc5;
  background: transparent;
  box-shadow: none;
}

.face-scan-login {
  margin: 0.35rem 0 0.75rem;
  border: 0;
  box-shadow: none;
}

@keyframes face-scan-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes face-aura {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes face-ring {
  0% { transform: scale(0.92); opacity: 0.7; }
  70% { opacity: 0.15; }
  100% { transform: scale(1.12); opacity: 0; }
}

@keyframes face-beam {
  0% { top: -15%; }
  100% { top: 95%; }
}

@keyframes face-corner-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes face-count-pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .face-scan,
  .face-scan-aura,
  .face-scan-ring,
  .face-scan-beam,
  .face-scan-corners span {
    animation: none !important;
  }
}

.pin-prompt {
  width: min(calc(100% - 2rem), 23rem);
  max-width: none;
  max-height: calc(100% - 2rem);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(32, 24, 17, 0.25);
}

.pin-prompt::backdrop {
  background: rgba(28, 25, 21, 0.55);
  backdrop-filter: blur(3px);
}

.pin-prompt-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid rgba(234, 223, 206, 0.95);
  border-radius: 20px;
  background: linear-gradient(160deg, #fffdf9 0%, #fff 100%);
  box-shadow: inset 0 1px 0 #fff;
}

.pin-prompt-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  margin: 0 auto 0.55rem;
  border-radius: 14px;
  background: #fff0dc;
  color: #b75d21;
}

.pin-prompt-mark svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pin-prompt-card h2 {
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
}

.pin-prompt-card > p:not(.pin-prompt-error) {
  margin: 0.25rem 0 0.8rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.45;
}

.pin-prompt-card label {
  margin: 0 0 0.28rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.pin-prompt-card input {
  padding: 0.75rem 0.85rem;
  border: 1px solid #e9d7bd;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  letter-spacing: 0.45em;
  font-size: 1.05rem;
}

.pin-prompt-card input:focus {
  outline: 2px solid rgba(224, 122, 47, 0.18);
  border-color: var(--accent);
}

.pin-prompt-error {
  margin: 0.4rem 0 0;
  color: var(--danger);
  font-size: 0.74rem;
  font-weight: 700;
}

.pin-prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.pin-prompt-actions button,
.pin-prompt-actions button:hover {
  margin: 0;
  padding: 0.72rem 0.8rem;
  border-radius: 11px;
  box-shadow: none;
  font-size: 0.82rem;
}

.pin-prompt-actions .pin-prompt-cancel,
.pin-prompt-actions .pin-prompt-cancel:hover {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.pin-prompt-actions .pin-prompt-confirm,
.pin-prompt-actions .pin-prompt-confirm:hover {
  background: linear-gradient(135deg, #f3b05e, #dc762b);
  color: #fff;
}

.menu-chev svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-kyc {
  color: #e23d4a;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.menu-kyc.is-pending {
  color: #b45309;
}

.menu-kyc.is-approved {
  color: #0f766e;
}

.menu-kyc.is-rejected {
  color: #b42318;
}

.menu-kyc.is-none {
  color: #e23d4a;
}

.menu-kyc.is-idle {
  color: var(--muted);
}

.switch {
  appearance: none;
  width: 2.7rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  background: #d0126a;
  position: relative;
  cursor: pointer;
  flex: none;
}

.switch::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  left: 1.28rem;
  width: 1.22rem;
  height: 1.22rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.switch:not(:checked) {
  background: #d7d7d7;
}

.switch:not(:checked)::after {
  left: 0.16rem;
}

.switch:focus {
  outline: none;
}

.pan {
  overflow-wrap: anywhere;
}

@media (max-width: 420px) {
  :root { --gutter: 0.85rem; }

  .toolbox-brand,
  .balance span,
  .balance strong,
  .meta li { font-size: 0.95rem; }

  .menu-row {
    gap: 0.6rem;
    font-size: 0.92rem;
  }

  .menu-ico {
    width: 1.65rem;
    height: 1.65rem;
  }

  .menu-kyc { font-size: 0.8rem; }

  .banner {
    min-height: 5.6rem;
    padding: 0.75rem 0.8rem;
  }

  .banner-copy strong { font-size: 0.98rem; }
  .banner-copy span { font-size: 0.78rem; }
  .banner-art { width: 4.8rem; height: 3.6rem; }

  .paycard { padding: 0.8rem 0.85rem 0.7rem; }
  .pan { letter-spacing: 0.1em; }
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
    --app-shell: none;
  }

  .app .wrap {
    margin-top: 0.9rem;
  }
}

@media (min-width: 960px) {
  :root { --gutter: 2.5rem; }
}

@media (min-width: 1200px) {
  :root { --gutter: 3rem; }
}

.admin-app .wrap {
  margin-top: 0.85rem;
  margin-bottom: 1.5rem;
}

.admin-app .toolbox {
  position: sticky;
  top: 0;
  z-index: 25;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.72rem var(--gutter);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96) 0%, rgba(246, 241, 232, 0.92) 100%);
  border-bottom: 1px solid rgba(234, 223, 206, 0.95);
  box-shadow: 0 8px 18px rgba(120, 72, 28, 0.04);
  backdrop-filter: blur(14px);
}

.admin-app button.icon-btn,
.admin-app button.icon-btn:hover,
.admin-app button.drawer-close,
.admin-app button.drawer-close:hover {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-app a.text-btn,
.admin-app a.text-btn:hover {
  padding: 0.38rem 0.75rem;
  border: 1px solid #f0c49a;
  border-radius: 999px;
  background: #fff;
  font-size: 0.8rem;
}

.admin-app .drawer {
  padding: 1rem 0.8rem 1.2rem;
  background:
    radial-gradient(ellipse 90% 40% at 0% 0%, rgba(255, 214, 170, 0.35), transparent 55%),
    #fffdf8;
}

.admin-app .drawer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.admin-app .drawer-brand strong {
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.admin-app .drawer-brand span {
  display: inline-flex;
  width: fit-content;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #ffe8d2;
  color: var(--accent-dark);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-app .drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-height: 0;
  overflow: auto;
}

.admin-app a.drawer-user,
.admin-app a.drawer-user:hover {
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.85rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.admin-app a.drawer-user:hover {
  background: #fff7ee;
  border-color: #f0d7b8;
}

.admin-app a.drawer-user + a.drawer-user {
  margin-top: 0;
}

.admin-app .drawer-ico {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(145deg, #fff4e6, #ffe0bd);
  color: var(--accent-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-app .drawer-ico svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-app a.drawer-user.is-current {
  background: linear-gradient(135deg, #fff5ea, #ffe4c8);
  border-color: #efcfaa;
}

.admin-app a.drawer-user.is-current .drawer-ico {
  background: linear-gradient(145deg, #f0a35a, #d86a24);
  color: #fff;
}

.admin-app a.drawer-user > span:last-child {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-app .admin-user {
  padding: 0.2rem 0.95rem 0.55rem;
  border-radius: 20px;
}

.admin-section-title {
  margin: 1.1rem 0 0.55rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.admin-search {
  margin: 0 0 0.9rem;
}

.admin-search-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 3rem;
  padding: 0.28rem 0.28rem 0.28rem 0.85rem;
  border: 1px solid var(--admin-line, var(--line));
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(63, 45, 22, 0.06);
}

.admin-search-bar:focus-within {
  border-color: #d8b48a;
  box-shadow: 0 0 0 3px rgba(224, 122, 47, 0.14);
}

.admin-search-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  color: #9a8b78;
  pointer-events: none;
}

.admin-search-ico svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
}

.admin-search-input,
.admin-app .admin-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  padding: 0.55rem 0.35rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.admin-search-input::placeholder {
  color: #a89986;
  font-weight: 500;
}

.admin-search-input:focus {
  outline: none;
}

.admin-search-clear {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  color: #8b7b68;
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1;
}

.admin-search-clear:hover {
  background: #f3ebe0;
  color: var(--ink);
}

.admin-search-go,
.admin-app .admin-search-go,
.admin-app button.admin-search-go {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 4.6rem;
  margin: 0 !important;
  padding: 0.62rem 1rem !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--admin-ink, #1c1915) !important;
  color: #fff !important;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: none !important;
  cursor: pointer;
}

.admin-app button.admin-search-go:hover {
  background: #111827 !important;
  filter: none;
}

.admin-search-meta {
  margin: -0.25rem 0 0.75rem;
  color: var(--muted, #6b7280);
  font-size: 0.82rem;
}

.admin-app .agent-form,
.admin-app .banner-editor,
.admin-app .feature-settings {
  padding: 0.95rem 0.95rem 1.05rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.admin-app .feature-settings-head {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}

.admin-app .feature-settings-head strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.admin-app .feature-settings-head span {
  color: var(--muted, #6b7280);
  font-size: 0.86rem;
  line-height: 1.35;
}

.admin-app .feature-settings-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.admin-app .feature-settings-list li + li {
  border-top: 1px solid var(--line);
}

.admin-app .feature-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0;
  padding: 0.78rem 0.85rem;
  cursor: pointer;
}

.admin-app .feature-settings-meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.admin-app .feature-settings-meta strong {
  font-size: 0.95rem;
}

.admin-app .feature-settings-meta small {
  color: var(--muted, #6b7280);
  font-size: 0.78rem;
}

.admin-app .feature-settings > button {
  width: 100%;
  margin-top: 0.9rem;
}

.admin-login-card {
  margin-top: 1.6rem;
  padding: 1.2rem 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.admin-login-mark {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-login-card h1 {
  margin: 0.15rem 0 0.2rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.admin-login-card label:first-of-type {
  margin-top: 0.85rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

button.icon-btn,
button.icon-btn:hover,
button.drawer-close,
button.drawer-close:hover {
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

button.icon-btn svg,
button.drawer-close svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

a.text-btn,
a.text-btn:hover {
  width: auto;
  margin: 0;
  padding: 0.35rem 0;
  background: transparent;
  color: var(--accent-dark);
  box-shadow: none;
  font-weight: 700;
  text-decoration: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 21, 0.38);
  z-index: 30;
}

.drawer-backdrop[hidden] {
  display: none;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(20rem, 86vw);
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.85rem 1.2rem;
  background: var(--bg);
  border-right: 1px solid var(--line);
  box-shadow: 10px 0 28px rgba(70, 42, 10, 0.12);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  z-index: 40;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.drawer-head strong {
  font-size: 1.05rem;
}

.drawer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: auto;
}

a.drawer-user,
a.drawer-user:hover {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-height: var(--row);
  padding: 0.55rem 0.8rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 700;
}

a.drawer-user strong,
a.drawer-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.drawer-user strong {
  font-size: 0.95rem;
}

a.drawer-user span {
  color: var(--muted);
  font-size: 0.8rem;
}

a.drawer-user + a.drawer-user {
  margin-top: 0.45rem;
}

a.drawer-user.is-current {
  background: var(--soft);
  border-color: #f0c49a;
}

.drawer-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 11rem;
  margin: 0.85rem 0 1.25rem;
  padding: 1.6rem 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  background: var(--card, #fff);
  border: 1px dashed var(--line, #e6e0d8);
  border-radius: 14px;
  box-shadow: none;
}

a.users-link,
a.users-link:hover {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

a.users-link.is-current {
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-app a.users-link.is-current {
  position: relative;
}

.admin-app a.users-link.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0a35a, #d86a24);
}

.admin-page-hero {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid #f0d7b8;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(255, 214, 170, 0.45), transparent 55%),
    linear-gradient(145deg, #fffaf3 0%, #fff3e4 100%);
  box-shadow: 0 10px 22px rgba(140, 78, 28, 0.06);
}

.admin-page-kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-page-hero h1 {
  margin: 0.12rem 0 0;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.admin-page-hero > div > p:last-child {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.admin-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.admin-stat-strip article {
  display: grid;
  gap: 0.12rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(240, 196, 154, 0.65);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-stat-strip span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.admin-stat-strip strong {
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.admin-user-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
}

.admin-user {
  position: relative;
  overflow: hidden;
  padding: 0.35rem 0.85rem 0.45rem 1rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 10px 20px rgba(120, 72, 28, 0.05);
}

.admin-user::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.28rem;
  height: 100%;
  background: linear-gradient(180deg, #f0a35a, #d86a24);
}

.admin-user.is-banned::before {
  background: linear-gradient(180deg, #f0a0a0, #c4473a);
}

.admin-user.is-open {
  border-color: #efcfaa;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 14px 28px rgba(196, 99, 28, 0.1);
}

.admin-user + .admin-user {
  margin-top: 0;
}

.admin-money {
  color: var(--accent-dark) !important;
  font-weight: 800 !important;
}

.user-edit {
  display: flex;
  justify-content: flex-end;
  padding: 0.4rem 0 0.1rem;
}

a.edit-btn,
a.edit-btn:hover {
  width: auto;
  height: 1.55rem;
  margin: 0;
  padding: 0 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid #f0c49a;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}

a.edit-btn:hover {
  background: #ffe8d4;
}

a.edit-close,
a.edit-close:hover {
  position: relative !important;
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  min-width: 1.7rem;
  min-height: 1.7rem;
  margin-top: 0 !important;
  background-size: 0.8rem 0.8rem !important;
}

a.edit-close:hover {
  background-color: #efe6d8 !important;
}

.admin-user .meta {
  flex: 1;
  min-width: 0;
  margin: 0;
  gap: 0;
}

.admin-user .meta li {
  min-height: 2.7rem;
  padding: 0.4rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.admin-user .meta li:last-child {
  border-bottom: 0;
}

.admin-user .meta b {
  flex: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-user .meta span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user .meta li:nth-child(3) span {
  color: var(--accent-dark);
}

.admin-user .user-balance-row {
  display: block;
  padding: 0.7rem 0 0.35rem;
  border-bottom: 1px solid var(--line);
}

.admin-user .user-manage-section {
  display: block;
  min-height: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.user-manage-section details > summary {
  position: relative;
  padding: 0.8rem 1.5rem 0.8rem 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
  list-style: none;
}

.user-manage-section details > summary::-webkit-details-marker {
  display: none;
}

.user-manage-section details > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.2rem;
  color: var(--accent-dark);
  font-size: 1.1rem;
  line-height: 1;
  transform: translateY(-50%);
}

.user-manage-section details[open] > summary::after {
  content: "−";
}

.user-manage-content {
  display: grid;
  gap: 0.65rem;
  padding: 0 0 0.8rem;
}

.user-manage-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(231, 217, 196, 0.65);
  font-size: 0.82rem;
}

.user-manage-row:last-child {
  border-bottom: 0;
}

.user-manage-row b {
  flex: none;
  color: var(--muted);
}

.user-manage-row span {
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.user-manage-form {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}

.user-manage-form > label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.user-manage-content .user-ban-row {
  padding: 0.55rem 0 0;
  border-top: 1px solid var(--line);
}

.user-balance-box {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid #f0d7b8;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(255, 220, 180, 0.35), transparent 55%),
    #fff9f1;
}

.user-balance-now {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.user-balance-now b {
  color: var(--muted) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

.user-balance-now strong {
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.user-balance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.user-balance-form {
  margin: 0;
  display: grid;
  gap: 0.28rem;
}

.user-balance-form label {
  margin: 0;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
}

.user-balance-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
}

.user-balance-control input {
  min-width: 0;
  min-height: 2.15rem;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border: 1px solid #e9d7bd;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  font-size: 0.82rem;
}

.user-balance-control input:focus {
  outline: 2px solid rgba(224, 122, 47, 0.16);
  border-color: var(--accent);
}

.user-balance-add,
.user-balance-add:hover,
.user-balance-deduct,
.user-balance-deduct:hover {
  width: auto;
  min-width: 3.4rem;
  min-height: 2.15rem;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.user-balance-add,
.user-balance-add:hover {
  background: linear-gradient(135deg, #f4b05f, #df7629);
  color: #fff;
}

.user-balance-deduct,
.user-balance-deduct:hover {
  border: 1px solid #efc5bf;
  background: linear-gradient(135deg, #fff2f0, #ffe4df);
  color: #a83224;
}

@media (max-width: 420px) {
  .user-balance-actions {
    grid-template-columns: 1fr;
  }
}

.admin-user .user-password-row {
  padding: 0.8rem 0 0.2rem;
  border-bottom: 0;
}

.admin-user .user-password-form {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-user .user-password-form form {
  width: 100%;
}

.admin-user .user-password-field {
  margin: 0;
}

.admin-user .user-password-field label {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-user .user-password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.admin-user .user-password-control input {
  min-width: 0;
  padding: 0.62rem 0.7rem;
  border: 1px solid #e9d7bd;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(28, 25, 21, 0.03);
  font-size: 0.84rem;
}

.admin-user .user-password-control input:focus {
  outline: 2px solid rgba(224, 122, 47, 0.16);
  border-color: var(--accent);
}

.admin-user .user-password-submit,
.admin-user .user-password-submit:hover {
  width: auto;
  min-width: 5.1rem;
  margin: 0;
  padding: 0.63rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #f4b05f, #df7629);
  box-shadow: 0 6px 12px rgba(184, 95, 29, 0.14);
  font-size: 0.78rem;
  white-space: nowrap;
}

.admin-user .user-password-submit:hover {
  background: linear-gradient(135deg, #efa64e, #cb6420);
}

.admin-who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-who div {
  min-width: 0;
}

.admin-who strong,
.admin-who span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-who strong {
  font-size: 1.05rem;
}

.admin-who span {
  color: var(--muted);
  font-size: 0.82rem;
}

.meta span.is-locked,
.meta span.is-bad {
  color: var(--danger);
  font-weight: 700;
}

.meta span.is-ok {
  color: #1f7a3a;
  font-weight: 700;
}

.meta span.is-wait {
  color: var(--accent-dark);
  font-weight: 700;
}

.topup-section {
  margin: 0.15rem 0 0.7rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.topup-admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.15rem 0 0.7rem;
}

.topup-admin-actions form {
  margin: 0;
}

button.topup-approve,
button.topup-approve:hover,
button.topup-cancel,
button.topup-cancel:hover {
  width: 100%;
  min-height: 2.35rem;
  margin: 0;
  padding: 0.4rem 0.6rem;
  border-radius: 11px;
  font-size: 0.82rem;
  box-shadow: none;
}

button.topup-cancel,
button.topup-cancel:hover {
  background: #fff;
  color: var(--danger);
  border: 1px solid #f3c7c2;
}

.card-admin-actions {
  padding: 0.15rem 0 0.7rem;
}

.card-admin-actions form,
form.card-admin-actions {
  margin: 0;
}

button.card-admin-close,
button.card-admin-close:hover,
button.card-admin-open,
button.card-admin-open:hover {
  width: auto;
  min-height: 2.35rem;
  margin: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 11px;
  font-size: 0.82rem;
  box-shadow: none;
}

button.card-admin-close,
button.card-admin-close:hover {
  background: #fff;
  color: var(--danger);
  border: 1px solid #f3c7c2;
}

button.card-admin-open,
button.card-admin-open:hover {
  background: var(--soft);
  color: var(--accent-dark);
  border: 1px solid #f0c49a;
}

.admin-app .admin-card-user {
  overflow: hidden;
  padding: 0.65rem 1rem 0;
}

.admin-app .admin-card-user.is-card-open {
  border-color: #d9eadf;
}

.admin-app .admin-card-user.is-card-closed {
  border-color: #f0d7d3;
}

.card-admin-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.2rem -1rem 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(231, 217, 196, 0.72);
  background: linear-gradient(105deg, #fffaf4, #fff);
}

.is-card-open .card-admin-control {
  background: linear-gradient(105deg, #f3faf5, #fff);
}

.is-card-closed .card-admin-control {
  background: linear-gradient(105deg, #fff5f3, #fff);
}

.card-admin-state {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.card-admin-state-icon {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: none;
  border-radius: 11px;
  background: #e7f4eb;
  color: #287548;
}

.is-card-closed .card-admin-state-icon {
  background: #fde9e6;
  color: #b42318;
}

.card-admin-state-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-admin-state strong,
.card-admin-state small {
  display: block;
}

.card-admin-state strong {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.card-admin-state small {
  margin-top: 0.08rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.card-admin-actions {
  flex: none;
  padding: 0;
}

button.card-admin-close,
button.card-admin-close:hover,
button.card-admin-open,
button.card-admin-open:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  min-height: 2.25rem;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  font-size: 0.72rem;
  box-shadow: none;
}

button.card-admin-close,
button.card-admin-close:hover {
  background: #fff7f6;
}

button.card-admin-open,
button.card-admin-open:hover {
  background: #eff8f1;
  color: #267142;
  border: 1px solid #cbe4d1;
}

button.card-admin-close span,
button.card-admin-open span {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 420px) {
  .card-admin-control {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-admin-actions,
  button.card-admin-close,
  button.card-admin-open {
    width: 100%;
  }
}

body.drawer-lock {
  overflow: hidden;
}

.coin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 0.85rem;
}

.coin-box {
  min-width: 0;
}

.coin-box summary {
  width: fit-content;
  padding: 0.28rem 0.75rem;
  border: 1px solid #f0c49a;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.coin-box summary::-webkit-details-marker {
  display: none;
}

.coin-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  width: min(100%, 22rem);
  margin-top: 0.55rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.coin-form label,
.coin-form > span {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.coin-form input {
  width: 7.2rem;
  padding: 0.32rem 0.65rem;
  border-radius: 11px;
  font-size: 0.84rem;
}

.coin-form button,
.coin-form button:hover {
  width: auto;
  margin: 0;
  padding: 0.32rem 0.75rem;
  border-radius: 11px;
  font-size: 0.82rem;
  box-shadow: none;
}

.coin-now {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr));
  gap: 0.65rem;
}

.game-admin-item {
  min-width: 0;
}

.game-logo-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.55rem 0 0.9rem;
  padding: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.game-logo-upload label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.game-logo-upload input[type="file"] {
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.game-logo-upload small {
  color: var(--muted);
  font-size: 0.68rem;
}

.game-logo-upload button {
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
}

.game-logo-upload-compact {
  gap: 0.4rem;
  margin: 0.4rem 0 0;
  padding: 0.5rem;
  background: var(--soft);
  border: 0;
  border-radius: 10px;
}

a.game-tile,
a.game-tile:hover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.7rem 0.5rem 0.65rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.game-tile img,
.game-logo-fallback {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft);
}

.game-tile span {
  width: 100%;
  font-size: 0.78rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-tile small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.game-logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: var(--soft);
}

.game-packs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.order-layer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 16, 12, 0.45);
  backdrop-filter: blur(3px);
}

.order-layer.is-open {
  display: flex;
}

.game-order {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 22rem);
  max-width: 22rem;
  max-height: min(88dvh, 36rem);
  margin: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-self: center;
  background: #fffdfb;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(28, 25, 21, 0.2);
  overflow: hidden;
}

.order-sheet-head {
  flex: none;
  padding: 0.8rem 0.9rem 0.65rem;
  background: linear-gradient(180deg, #fff8f1, #fffdfb);
  border-bottom: 1px solid #efe4d8;
}

.order-sheet-kicker {
  display: block;
  margin: 0 1.8rem 0.2rem 0;
  color: #b45309;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-sheet-body {
  display: grid;
  gap: 0.1rem;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 40dvh;
  overflow-y: auto;
  padding: 0.65rem 0.9rem 0.2rem;
  -webkit-overflow-scrolling: touch;
}

.order-sheet-body:empty,
.game-order .order-sheet-body:not(:has(label)):not(:has(.order-codes)):not(:has(.name-result)):not(:has(.order-msg)) {
  display: none;
  padding: 0;
  max-height: 0;
  border: 0;
  overflow: hidden;
}

.order-sheet-foot {
  flex: none;
  margin-top: auto;
  padding: 0.55rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #f0e7dc;
}

button.order-close,
button.order-close:hover {
  position: absolute !important;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  min-width: 1.85rem;
  min-height: 1.85rem;
  margin-top: 0 !important;
}

.game-order label {
  margin: 0.4rem 0 0.18rem;
  color: #5c534a;
  font-size: 0.74rem;
  font-weight: 700;
}

.game-order .order-sheet-body > label:first-child,
.game-order [data-order-fields] > label:first-child {
  margin-top: 0;
}

.game-order input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.3rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #e5d9cb;
  border-radius: 10px;
  background: #fff;
  font-size: 0.88rem;
}

.game-order input:focus {
  outline: none;
  border-color: #f0a35a;
  box-shadow: 0 0 0 2px rgba(244, 140, 6, 0.14);
}

.game-order .order-msg,
.game-order .name-result {
  margin: 0.4rem 0 0;
  text-align: left;
}

.game-order .order-msg {
  color: var(--danger);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.game-order .order-msg.ok {
  color: #1f7a3a;
}

.game-order .order-msg.wait {
  color: var(--accent-dark);
}

.game-order .order-codes {
  margin: 0.3rem 0 0;
  text-align: left;
}

.game-order .order-codes b,
.game-order .order-codes p {
  display: block;
  margin: 0;
}

.game-order .order-codes b {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.game-order .order-codes p {
  margin-top: 0.12rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-all;
}

.game-order .order-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  margin: 0 1.8rem 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.game-order .order-pick b {
  min-width: 0;
}

.game-order .order-pick strong {
  color: #c2410c;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.order-qty-label {
  display: block;
  margin: 0 0 0.28rem;
  color: #5c534a;
  font-size: 0.7rem;
  font-weight: 700;
}

.order-qty {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 0;
}

button.order-qty-btn,
button.order-qty-btn:hover {
  margin: 0;
  min-height: 1.85rem;
  padding: 0.2rem 0.1rem;
  border: 1px solid #e5d9cb;
  border-radius: 8px;
  background: #fffaf5;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0;
  box-shadow: none;
}

button.order-qty-btn:hover {
  border-color: #f0c49a;
  background: #fff3e6;
}

button.order-qty-btn.is-on,
button.order-qty-btn.is-on:hover {
  border-color: #e85d04;
  background: linear-gradient(180deg, #f48c06, #e85d04);
  color: #fff;
}

.game-order .order-total {
  margin: 0.28rem 0 0;
  color: #9a3412;
  font-size: 0.76rem;
  font-weight: 750;
  text-align: right;
}

button.order-send,
button.order-send:hover {
  width: 100%;
  min-height: 2.4rem;
  margin-top: 0.45rem;
  padding: 0.5rem 0.75rem;
  border-radius: 11px;
  background: linear-gradient(180deg, #f48c06, #e85d04);
  border: 1px solid #d97706;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 750;
  box-shadow: 0 6px 14px rgba(232, 93, 4, 0.18);
}

button.order-send:disabled,
button.order-send:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 519px) {
  .game-order {
    width: min(100%, 22rem);
    max-width: 22rem;
    max-height: min(86dvh, 100%);
    border-radius: 14px;
  }

  .order-sheet-head,
  .order-sheet-body,
  .order-sheet-foot {
    padding-left: var(--gutter, 0.9rem);
    padding-right: var(--gutter, 0.9rem);
  }

  .order-sheet-head {
    padding-top: 0.7rem;
    padding-bottom: 0.55rem;
  }

  .order-sheet-body {
    max-height: 34dvh;
    padding-top: 0.55rem;
    padding-bottom: 0.15rem;
  }

  .order-sheet-foot {
    padding-top: 0.5rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }
}

.name-result {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.name-result.wait {
  color: var(--muted);
  font-weight: 600;
}

.name-result.ok {
  color: #1f7a3a;
}

.name-result span {
  display: block;
  margin-top: 0.2rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
}

.name-result.bad {
  color: var(--danger);
}

button.game-pack.is-open,
button.game-pack.is-open:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.game-pack,
button.game-pack,
button.game-pack:hover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.55rem;
  margin: 0;
  padding: 0.4rem 0.8rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.game-pack b {
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.game-pack.is-soldout,
.game-pack:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.game-pack.is-soldout strong {
  color: var(--danger);
}

.pack-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
  gap: 0.05rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.pack-prices small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.pack-prices strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.wrap.home > .game-packs .game-pack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: stretch;
  align-items: end;
  gap: 0.5rem;
  min-height: 0;
  min-width: 0;
  min-height: 4.65rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid #eadfe0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 224, 202, 0.65), transparent 48%),
    linear-gradient(145deg, #fff 0%, #fff8f8 100%);
  box-shadow: 0 5px 16px rgba(52, 31, 32, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wrap.home > .game-packs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.wrap.home > .game-packs .game-pack:hover:not(:disabled) {
  border-color: #e2a4a8;
  box-shadow: 0 9px 22px rgba(163, 58, 66, 0.12);
  transform: translateY(-1px);
}

.wrap.home > .game-packs .game-pack.is-open {
  border-color: var(--accent);
  background: linear-gradient(145deg, #fff 0%, var(--soft) 100%);
  box-shadow: 0 0 0 2px rgba(163, 58, 66, 0.1), 0 8px 20px rgba(52, 31, 32, 0.08);
}

.wrap.home > .game-packs .game-pack-info {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  align-self: stretch;
  align-content: space-between;
}

.wrap.home > .game-packs .game-pack-info b {
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.wrap.home > .game-packs .game-pack-divider {
  width: 100%;
  border-top: 1px dashed #e2c9ca;
}

.wrap.home > .game-packs .pack-prices {
  justify-self: end;
  text-align: right;
}

.wrap.home > .game-packs .pack-prices strong {
  font-size: 0.76rem;
  font-weight: 800;
}

.wrap.home > .game-packs .game-pack:not(:disabled)::after {
  content: "›";
  position: absolute;
  right: 0.55rem;
  top: 0.35rem;
  color: rgba(196, 99, 28, 0.5);
  font-size: 1.15rem;
  line-height: 1;
}

.wrap.home > .game-packs .game-pack {
  position: relative;
}

.wrap.home > .game-packs .game-pack:focus-visible {
  outline: 3px solid rgba(163, 58, 66, 0.3);
  outline-offset: 2px;
}

.cashin-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.15rem 0 0.85rem;
}

.cashin-head h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

a.cashin-back,
a.cashin-back:hover {
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  text-decoration: none;
}

.cashin-back svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cashin-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 0;
}

.cashin-method-item {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

button.cashin-method,
button.cashin-method:hover,
a.cashin-method,
a.cashin-method:hover {
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr) auto auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0.65rem 0.75rem;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(110deg, #fff 0%, #fffaf4 100%);
  color: var(--ink);
  box-shadow: 0 5px 16px rgba(58, 42, 23, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

a.cashin-method:hover {
  border-color: #edbd91;
  box-shadow: 0 8px 20px rgba(196, 99, 28, 0.11);
  transform: translateY(-1px);
}

a.cashin-method.is-active {
  border-color: var(--accent);
  background: linear-gradient(110deg, #fff8f0 0%, #fff 100%);
  box-shadow: 0 0 0 2px rgba(224, 122, 47, 0.12), 0 8px 20px rgba(196, 99, 28, 0.1);
}

a.cashin-method:focus-visible {
  outline: 3px solid rgba(224, 122, 47, 0.35);
  outline-offset: 2px;
}

a.cashin-method.is-disabled,
a.cashin-method.is-disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.cashin-card-state {
  margin: 0.65rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.cashin-card-state a {
  color: var(--accent-dark);
  font-weight: 700;
}

.cashin-card-form {
  min-width: 0;
  overflow-wrap: anywhere;
  padding-bottom: 1rem;
}

.card-cashin-sheet {
  width: min(100%, 30rem);
  max-height: 90vh;
  max-height: 90dvh;
  padding: 0.1rem 1rem 0.65rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.card-cashin-sheet::-webkit-scrollbar {
  display: none;
}

.cashin-card-form > label {
  display: block;
  margin: 0.45rem 0 0.2rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.cashin-card-form > input:not([type="hidden"]),
.cashin-card-fields input {
  width: 100%;
  min-height: 2.4rem;
  margin: 0 0 0.15rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.cashin-card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.cashin-card-fields label {
  display: block;
  margin: 0.45rem 0 0.2rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.cashin-card-form > button {
  margin-top: 0.55rem;
}

.card-cashin-sheet .move-note {
  margin: 0.35rem 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.card-cashin-sheet .cashin-card-state {
  margin: 0.35rem 0;
}

.card-cashin-sheet form {
  margin: 0;
}

.card-cashin-back {
  align-items: center;
}

.crypto-cashin-sheet {
  width: min(100%, 32rem);
  max-height: 90vh;
  max-height: 90dvh;
  padding: 0.1rem 1rem 0.65rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.crypto-cashin-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0.1rem 0 0.55rem;
  padding: 0;
  list-style: none;
}

.crypto-cashin-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  min-width: 0;
  color: #777;
  font-size: 0.7rem;
  text-align: center;
}

.crypto-cashin-steps li:not(:last-child)::after {
  position: absolute;
  top: 0.72rem;
  left: calc(50% + 0.9rem);
  width: calc(100% - 1.8rem);
  height: 2px;
  background: #d6d6d6;
  content: "";
}

.crypto-step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #bdbdbd;
  border-radius: 50%;
  background: #fff;
  color: #777;
  font-size: 0.68rem;
  font-weight: 800;
}

.crypto-cashin-steps li.is-current,
.crypto-cashin-steps li.is-done {
  color: #171717;
}

.crypto-cashin-steps li.is-current .crypto-step-dot,
.crypto-cashin-steps li.is-done .crypto-step-dot {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.crypto-cashin-steps li.is-done:not(:last-child)::after {
  background: #171717;
}

.crypto-cashin-steps strong {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.crypto-order-timer {
  margin: 0.1rem 0 0.35rem;
  color: #dc2626;
  font-size: 0.76rem;
  font-weight: 800;
  text-shadow: 0 0 7px rgba(220, 38, 38, 0.45);
  text-align: center;
  animation: crypto-order-timer-pulse 1.6s ease-in-out infinite;
}

@keyframes crypto-order-timer-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.62;
  }
}

.crypto-cashin-sheet::-webkit-scrollbar {
  display: none;
}

.crypto-network-warning {
  margin: 0.45rem 0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: #fff6e4;
  color: #79520c;
  font-size: 0.75rem;
  line-height: 1.45;
}

.crypto-address-label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.crypto-address-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffaf6;
}

.crypto-address-row code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.72rem;
  user-select: all;
}

.crypto-address-row .copy-btn {
  min-height: 2rem;
}

.crypto-address-qr {
  display: grid;
  place-items: center;
  width: min(100%, 16rem);
  margin: 0.6rem auto 0.25rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.crypto-address-qr-image {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.crypto-qr-note {
  margin: 0.2rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: center;
}

.crypto-rate {
  margin: 0.35rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.crypto-cashin-form {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.crypto-cashin-form label {
  margin-top: 0.15rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.crypto-cashin-form input {
  width: 100%;
  min-height: 2.45rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.crypto-cashin-form button {
  margin-top: 0.45rem;
}

@media (max-width: 480px) {
  .crypto-cashin-back {
    padding: 0.35rem;
    align-items: center;
  }

  .card-cashin-back {
    padding: 0.5rem;
  }

  .card-cashin-sheet {
    width: min(100%, 25rem);
    max-height: min(94vh, 48rem);
    max-height: min(94dvh, 48rem);
    padding: 0 0.7rem 0.55rem;
    border-radius: 16px;
  }

  .card-cashin-sheet .sheet-head {
    min-height: 2.55rem;
  }

  .card-cashin-sheet .sheet-head h2 {
    font-size: 0.95rem;
  }

  .card-cashin-sheet .move-note {
    margin: 0.25rem 0;
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .card-cashin-sheet .cashin-card-state {
    margin: 0.25rem 0;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .card-cashin-sheet > label,
  .card-cashin-sheet .cashin-card-fields label {
    margin: 0.35rem 0 0.15rem;
    font-size: 0.72rem;
  }

  .card-cashin-sheet > input:not([type="hidden"]),
  .card-cashin-sheet .cashin-card-fields input {
    min-height: 2.2rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.85rem;
  }

  .card-cashin-sheet .cashin-card-fields {
    gap: 0.4rem;
  }

  .card-cashin-sheet > button {
    min-height: 2.35rem;
    margin-top: 0.35rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
  }

  .crypto-cashin-sheet {
    width: min(92vw, 21rem);
    max-height: min(94vh, 48rem);
    max-height: min(94dvh, 48rem);
    padding: 0 0.5rem 0.45rem;
    border-radius: 14px;
  }

  .crypto-cashin-sheet .sheet-head {
    min-height: 2.55rem;
  }

  .crypto-cashin-sheet .sheet-head h2 {
    font-size: 0.95rem;
  }

  .crypto-cashin-sheet .move-note {
    margin: 0.35rem 0;
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .crypto-network-warning {
    margin: 0.3rem 0;
    padding: 0.4rem 0.5rem;
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .crypto-address-label {
    margin: 0.45rem 0 0.2rem;
    font-size: 0.72rem;
  }

  .crypto-address-row {
    gap: 0.3rem;
    padding: 0.3rem;
  }

  .crypto-address-row code {
    font-size: 0.6rem;
  }

  .crypto-address-row .copy-btn {
    min-height: 1.8rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }

  .crypto-address-qr {
    width: min(100%, 9rem);
    margin: 0.35rem auto 0.15rem;
    padding: 0.35rem;
    border-radius: 11px;
  }

  .crypto-address-qr-image {
    max-width: 8rem;
  }

  .crypto-qr-note {
    margin: 0.15rem 0 0.3rem;
    font-size: 0.62rem;
    line-height: 1.3;
  }

  .crypto-rate {
    margin: 0.25rem 0;
    font-size: 0.68rem;
  }

  .crypto-cashin-form {
    gap: 0.2rem;
    margin-top: 0.2rem;
  }

  .crypto-cashin-form label {
    margin-top: 0.15rem;
    font-size: 0.72rem;
  }

  .crypto-cashin-form input {
    min-height: 2.2rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.85rem;
  }

  .crypto-cashin-form button {
    min-height: 2.35rem;
    margin-top: 0.35rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
  }
}

@media (max-height: 700px) and (max-width: 480px) {
  .card-cashin-sheet .sheet-head {
    min-height: 2.25rem;
  }

  .card-cashin-sheet .move-note,
  .card-cashin-sheet .cashin-card-state {
    margin: 0.15rem 0;
    font-size: 0.66rem;
    line-height: 1.3;
  }

  .card-cashin-sheet > label,
  .card-cashin-sheet .cashin-card-fields label {
    margin-top: 0.2rem;
  }

  .card-cashin-sheet > input:not([type="hidden"]),
  .card-cashin-sheet .cashin-card-fields input {
    min-height: 1.95rem;
    padding: 0.25rem 0.5rem;
  }

  .card-cashin-sheet > button {
    min-height: 2.1rem;
    margin-top: 0.2rem;
  }

  .crypto-cashin-sheet .sheet-head {
    min-height: 2.25rem;
  }

  .crypto-cashin-sheet .move-note {
    margin: 0.2rem 0;
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .crypto-network-warning {
    margin: 0.2rem 0;
    padding: 0.3rem 0.45rem;
    font-size: 0.62rem;
    line-height: 1.25;
  }

  .crypto-address-label {
    margin-top: 0.3rem;
  }

  .crypto-rate {
    margin: 0.2rem 0;
  }

  .crypto-cashin-form {
    gap: 0.12rem;
    margin-top: 0.15rem;
  }

  .crypto-cashin-form input {
    min-height: 2rem;
    padding: 0.3rem 0.5rem;
  }

  .crypto-cashin-form button {
    min-height: 2.1rem;
    margin-top: 0.2rem;
  }
}

.cashin-requests,
.admin-crypto-settings {
  margin-top: 0.85rem;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.cashin-requests h2,
.admin-crypto-settings h2 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.cashin-request {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.cashin-request > div:last-child {
  text-align: right;
}

.cashin-request b,
.cashin-request strong,
.cashin-request small {
  display: block;
}

.cashin-request b,
.cashin-request strong {
  font-size: 0.78rem;
}

.cashin-request small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.admin-crypto-settings > p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.admin-crypto-settings-form {
  display: grid;
  gap: 0.35rem;
}

.admin-crypto-settings-form label {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-crypto-settings-form input {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-crypto-settings-form button {
  margin-top: 0.5rem;
}

.admin-crypto-api-status {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.74rem;
  line-height: 1.4;
}

.admin-crypto-api-status.is-ok {
  color: #1f7a3f;
}

.admin-crypto-api-status.is-wait {
  color: #9a6b00;
}

.admin-crypto-callback {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-crypto-callback code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

.mmqr-cashin-sheet {
  gap: 0.55rem;
}

.mmqr-cashin-steps {
  display: grid;
  gap: 0.4rem;
  margin: 0.1rem 0 0.35rem;
  padding: 0;
  list-style: none;
}

.mmqr-cashin-steps li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffaf5;
  color: var(--muted);
}

.mmqr-cashin-steps li.is-current {
  border-color: #efc39f;
  background: #fff5eb;
  color: var(--ink);
}

.mmqr-cashin-steps li.is-done {
  border-color: #b7ddd5;
  background: #f2faf7;
  color: var(--ink);
}

.mmqr-step-number {
  width: 1.8rem;
  height: 1.8rem;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #e7d8c6;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mmqr-cashin-steps .is-current .mmqr-step-number {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.mmqr-cashin-steps .is-done .mmqr-step-number {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.mmqr-step-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.mmqr-step-copy strong {
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.3;
}

.mmqr-cashin-form {
  display: grid;
  gap: 0.4rem;
}

.mmqr-cashin-form label {
  font-size: 0.78rem;
  font-weight: 700;
}

.mmqr-cashin-form input,
.mmqr-cashin-form button {
  width: 100%;
}

.cashin-amount-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.2rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf5;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.cashin-amount-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 122, 47, 0.13);
}

.cashin-amount-field input,
.cashin-amount-field input:focus {
  width: 0;
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1.1rem;
  font-weight: 700;
}

#mmqr-amount {
  appearance: textfield;
  -moz-appearance: textfield;
}

#mmqr-amount::-webkit-inner-spin-button,
#mmqr-amount::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.cashin-amount-field > span {
  flex: none;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.mmqr-frame {
  display: grid;
  place-items: center;
  margin: 0.35rem 0 0.2rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.mmqr-image {
  display: block;
  width: 240px;
  height: 240px;
  max-width: 100%;
  object-fit: contain;
}

.crypto-order-id {
  overflow-wrap: anywhere;
  font-family: monospace;
  font-size: 0.72rem;
}

.cashin-method .cashin-method-arrow {
  max-width: 100%;
  white-space: nowrap;
}

.cashin-method-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.22rem;
}

.cashin-method .cashin-method-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 800;
  text-overflow: ellipsis;
}

.cashin-method .cashin-method-detail {
  display: none;
}

.cashin-method-note {
  grid-column: 1 / -1;
  display: block;
  min-width: 0;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(234, 223, 206, 0.8);
  color: #382b1e;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
}

.cashin-method-note.is-warning {
  color: #35251a;
}

.cashin-method .cashin-method-min {
  flex: none;
  padding: 0.35rem 0.5rem;
  border: 1px solid #f2e5d6;
  border-radius: 999px;
  background: #fff;
  color: #795b3b;
  font-size: 0.65rem;
  font-weight: 700;
}

.cashin-method .cashin-method-arrow {
  flex: none;
  color: #a59a8a;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 380px) {
  button.cashin-method,
  button.cashin-method:hover,
  a.cashin-method,
  a.cashin-method:hover {
    padding: 0.55rem;
    gap: 0.5rem;
    grid-template-columns: 2.35rem minmax(0, 1fr) auto auto;
  }

  .cashin-ico {
    width: 2.35rem;
    height: 2.35rem;
  }

  .cashin-method .cashin-method-min {
    padding: 0.3rem 0.4rem;
    font-size: 0.6rem;
  }

  .cashin-method-note {
    font-size: 0.7rem;
  }
}

.cashin-ico {
  width: 2.65rem;
  height: 2.65rem;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.cashin-ico svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: currentColor;
  stroke: none;
}

.cashin-ico.is-mmqr {
  color: #1c1915;
  background: #fff7ee;
}

.cashin-ico.is-bep {
  color: #f0b90b;
  background: #fff6d8;
}

.cashin-ico.is-trc {
  color: #ef0027;
  background: #fff0f2;
}

.cashin-ico.is-card {
  color: var(--accent-dark);
  background: var(--soft);
}

.cashin-ico.is-card svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.transfer-form,
.newuser-form {
  padding: 0.15rem 0.85rem 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.transfer-page .transfer-form {
  margin-top: 0.75rem;
  padding: 0.85rem 0.9rem 1rem;
  background:
    linear-gradient(180deg, #fffaf3 0%, #fff 42%),
    #fff;
  border: 1px solid #f0c49a;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(196, 99, 28, 0.08);
}

.transfer-page .transfer-form:has(.transfer-qr-recipient) {
  width: min(100%, 28rem);
  margin: 1.2rem auto;
  padding: 1rem;
  border-color: #e8bd94;
  box-shadow: 0 14px 36px rgba(92, 48, 14, 0.14);
}

.transfer-qr-scanner {
  position: relative;
  display: grid;
  gap: 0.65rem;
  margin-top: 0.45rem;
  padding: 0.8rem;
  border: 1px solid #eadfe0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(52, 31, 32, 0.09);
}

.transfer-qr-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.transfer-qr-scanner h2 {
  min-width: 0;
  margin: 0;
  color: #292225;
  font-size: 1rem;
  font-weight: 800;
}

.transfer-qr-status {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #f0c5c7;
  border-radius: 12px;
  background: #fff0f0;
  color: #a33a42;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.transfer-qr-ready {
  margin: 0 0 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #f0c5c7;
  border-radius: 11px;
  background: #fff0f0;
  color: #a33a42;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
}

.transfer-page .transfer-form[hidden],
.transfer-qr-scanner[hidden],
.transfer-qr-ready[hidden] {
  display: none !important;
}

.transfer-qr-camera {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 17rem);
  min-height: 0;
  max-height: none;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #282326;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, #353034 0%, #1c191b 75%);
}

.transfer-qr-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: inherit;
  object-fit: cover;
}

.transfer-qr-video[hidden] {
  display: none;
}

.transfer-qr-frame {
  position: relative;
  z-index: 1;
  width: min(76%, 18rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  pointer-events: none;
}

.transfer-qr-corner {
  position: absolute;
  width: 2rem;
  height: 2rem;
  border-color: #f5a6aa;
  border-style: solid;
}

.transfer-qr-corner.is-top-left {
  top: -2px;
  left: -2px;
  border-width: 3px 0 0 3px;
  border-top-left-radius: 13px;
}

.transfer-qr-corner.is-top-right {
  top: -2px;
  right: -2px;
  border-width: 3px 3px 0 0;
  border-top-right-radius: 13px;
}

.transfer-qr-corner.is-bottom-left {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 3px 3px;
  border-bottom-left-radius: 13px;
}

.transfer-qr-corner.is-bottom-right {
  right: -2px;
  bottom: -2px;
  border-width: 0 3px 3px 0;
  border-bottom-right-radius: 13px;
}

.transfer-qr-scan-line {
  position: absolute;
  top: 8%;
  right: 7%;
  left: 7%;
  display: none;
  height: 2px;
  background: #f5a6aa;
  box-shadow: 0 0 12px rgba(245, 166, 170, 0.85);
  animation: transfer-qr-scan 2.4s ease-in-out infinite alternate;
}

.transfer-qr-scanner[data-scanner-state="status-start"] .transfer-qr-scan-line,
.transfer-qr-scanner[data-scanner-state="status-verifying"] .transfer-qr-scan-line {
  display: block;
}

@keyframes transfer-qr-scan {
  to {
    top: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .transfer-qr-scan-line {
    animation: none;
    top: 50%;
  }
}

.transfer-qr-video {
  width: 100%;
}

.transfer-qr-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.transfer-qr-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid #f0c5c7;
  border-radius: 50%;
  background: #fff0f0;
  color: #a33a42;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.transfer-qr-file {
  border-color: #f0c5c7;
  background: #fff0f0;
  color: #a33a42;
}

.transfer-qr-file svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.transfer-qr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.transfer-qr-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.transfer-qr-controls a {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
}

.transfer-qr-recipient {
  display: grid;
  gap: 0.25rem;
  margin: 0.25rem 0 0.6rem;
  padding: 0.85rem;
  border: 1px solid #d5ead8;
  border-radius: 14px;
  background: #f5fff6;
  text-align: center;
}

.transfer-qr-recipient span {
  color: #50805b;
  font-size: 0.7rem;
  font-weight: 700;
}

.transfer-qr-recipient strong {
  color: #205c31;
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.transfer-qr-submit-actions {
  display: grid;
  gap: 0.55rem;
}

.transfer-qr-submit-actions .transfer-cta {
  margin-top: 0.8rem;
}

.transfer-qr-cancel {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.transfer-form label,
.newuser-form label {
  margin: 0.55rem 0 0.22rem;
  font-size: 0.78rem;
}

.transfer-page .transfer-form label {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.7rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.transfer-page .transfer-form label:first-of-type {
  margin-top: 0.15rem;
}

.transfer-page .transfer-form label em {
  color: #a89880;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
}

.transfer-form input,
.transfer-form textarea,
.newuser-form input {
  padding: 0.32rem 0.65rem;
  border-radius: 11px;
  font-size: 0.84rem;
}

.transfer-form input[name="pin"] {
  letter-spacing: 0.25em;
}

.game-order input[name="pin"] {
  letter-spacing: 0.22em;
}

.transfer-form textarea {
  width: 100%;
  min-height: 2.85rem;
  margin: 0;
  border: 1px solid var(--line);
  font-family: inherit;
  background: #fff;
  box-shadow: var(--shadow);
  resize: vertical;
}

.transfer-form textarea:focus {
  outline: 2px solid #f3c49a;
  border-color: var(--accent);
}

.transfer-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.1rem 0 0.15rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid #f0c49a;
  background: linear-gradient(135deg, #fff7ee, #ffedd5);
}

.transfer-hero span {
  color: #9a6b00;
  font-size: 0.72rem;
  font-weight: 700;
}

.transfer-hero strong {
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.transfer-hero small {
  font-size: 0.72rem;
  font-weight: 700;
}

.transfer-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.28rem 0.55rem 0.28rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.transfer-field:focus-within {
  outline: 2px solid #f3c49a;
  border-color: var(--accent);
}

.transfer-field-ico {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: var(--soft);
  color: var(--accent-dark);
}

.transfer-field-ico svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.transfer-field input,
.transfer-field select,
.transfer-field textarea {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.4rem 0.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.transfer-field select {
  width: 100%;
  min-height: 1.6rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.withdraw-disclaimer {
  margin: 0.15rem 0 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #f0c49a;
  border-radius: 12px;
  background: #fff8ef;
  color: #7a4a1a;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.withdraw-fee-box {
  list-style: none;
  margin: 0.35rem 0 0.55rem;
  padding: 0.55rem 0.7rem;
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffcf8;
}

.withdraw-fee-box li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-size: 0.82rem;
}

.withdraw-fee-box li span {
  min-width: 0;
  color: var(--muted);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.withdraw-fee-box li strong {
  min-width: 0;
  max-width: 100%;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.withdraw-fee-box li.is-total {
  margin-top: 0.15rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.withdraw-fee-box li.is-total strong {
  color: var(--accent-dark);
}

.withdraw-page {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.withdraw-page .transfer-form {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.withdraw-page .transfer-field,
.withdraw-page .withdraw-fee-box,
.withdraw-page .withdraw-disclaimer {
  min-width: 0;
  max-width: 100%;
}

.withdraw-page .transfer-field input,
.withdraw-page .transfer-field select {
  min-width: 0;
  max-width: 100%;
}

.withdraw-page .withdraw-disclaimer {
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .withdraw-page .cashin-head {
    margin-bottom: 0.65rem;
  }

  .withdraw-page .cashin-head h1 {
    font-size: 0.9rem;
  }

  .withdraw-page .transfer-form {
    margin-top: 0.5rem;
    padding: 0.75rem 0.75rem 1rem;
    border-radius: 14px;
  }

  .withdraw-page .transfer-form label {
    margin-top: 0.55rem;
    margin-bottom: 0.25rem;
    font-size: 0.64rem;
  }

  .withdraw-page .transfer-field {
    min-height: 2.7rem;
    margin-bottom: 0.25rem;
    padding: 0.35rem 0.65rem;
    border-color: #e7dccd;
    border-radius: 13px;
    background: linear-gradient(180deg, #fff 0%, #fffdf9 100%);
    box-shadow: 0 3px 10px rgba(70, 42, 10, 0.045);
  }

  .withdraw-page .transfer-field input,
  .withdraw-page .transfer-field select {
    font-size: 0.74rem;
  }

  .withdraw-page .transfer-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224, 122, 47, 0.12);
  }

  .withdraw-page .withdraw-fee-box {
    gap: 0.4rem;
    margin-top: 0.65rem;
    padding: 0.55rem 0.6rem;
    border-radius: 14px;
  }

  .withdraw-page .withdraw-fee-box li {
    gap: 0.5rem;
    font-size: 0.64rem;
  }

  .withdraw-page .transfer-hint {
    font-size: 0.6rem;
  }

  .withdraw-page .withdraw-disclaimer {
    padding: 0.45rem 0.55rem;
    font-size: 0.6rem;
  }

  .withdraw-page button.transfer-cta {
    margin-top: 0.75rem;
    margin-bottom: 0.1rem;
    font-size: 0.76rem;
  }
}

.transfer-field input:focus,
.transfer-field select:focus,
.transfer-field textarea:focus {
  outline: none;
}

.transfer-field.is-amount {
  padding-right: 0.7rem;
}

.transfer-unit {
  flex: none;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.transfer-field.is-note {
  align-items: stretch;
  min-height: 3.4rem;
  padding: 0.35rem 0.55rem;
}

.transfer-field.is-note textarea {
  min-height: 2.6rem;
  resize: vertical;
  font-weight: 500;
}

.transfer-hint {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

button.transfer-cta,
button.transfer-cta:hover {
  width: 100%;
  margin-top: 0.95rem;
  min-height: 2.7rem;
  padding: 0.72rem 0.9rem;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(196, 99, 28, 0.22);
}

button.transfer-cta:hover {
  background: var(--accent-dark);
}

.topup-balance {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  margin: 0.75rem 0 0.15rem auto;
  padding: 0.55rem 0.8rem;
  background: linear-gradient(165deg, #fffaf3 0%, #ffe4c2 100%);
  border: 1px solid #f0c49a;
  border-radius: 14px;
}

.topup-balance strong {
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.topup-balance small {
  font-size: 0.72rem;
  font-weight: 700;
}

.topup-kicker {
  margin: 0.7rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
}

label.topup-kicker {
  display: block;
}

.topup-nets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0;
}

.topup-net {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 3.55rem;
  margin: 0;
  padding: 0.38rem 0.12rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.topup-net i,
.topup-net img {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
}

.topup-net img {
  object-fit: cover;
}

.topup-net.is-mpt i { background: #e0a100; }
.topup-net.is-u9 i { background: #e23b3b; }
.topup-net.is-atom i { background: #2f6bff; }
.topup-net.is-mytel i { background: #1aa35a; }

.topup-net input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  box-shadow: none;
}

.topup-net:has(input:checked) {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent);
  background: var(--soft);
  color: var(--accent-dark);
}

.topup-net.is-mpt:has(input:checked) { box-shadow: 0 0 0 2px #e0a100; background: #fff8e6; color: #8a6400; }
.topup-net.is-u9:has(input:checked) { box-shadow: 0 0 0 2px #e23b3b; background: #fff1f1; color: #b42318; }
.topup-net.is-atom:has(input:checked) { box-shadow: 0 0 0 2px #2f6bff; background: #eef3ff; color: #1d4ed8; }
.topup-net.is-mytel:has(input:checked) { box-shadow: 0 0 0 2px #1aa35a; background: #eefaf3; color: #157a43; }

.topup-net:has(input:focus-visible) {
  outline: 2px solid #f3c49a;
}

.topup-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.35rem;
}

button.topup-amount,
button.topup-amount:hover {
  width: 100%;
  min-height: 2.65rem;
  margin: 0;
  padding: 0.35rem 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  font-size: 0.86rem;
  font-weight: 800;
}

button.topup-amount small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

button.topup-amount.is-on,
button.topup-amount.is-on:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

button.topup-amount.is-on small,
button.topup-amount.is-on:hover small {
  color: rgba(255, 255, 255, 0.86);
}

.topup-form #topup-amount {
  margin-top: 0.4rem;
}

.topup-form .order-msg {
  margin: 0.7rem 0 0;
  text-align: center;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 700;
}

.topup-form .order-msg.ok {
  color: #1f7a3a;
}

.topup-form > button {
  margin-top: 0.6rem;
}

.topup-page .cashin {
  width: min(100%, 30rem);
  margin-right: auto;
  margin-left: auto;
}

.topup-page .cashin-head {
  margin-bottom: 0.65rem;
}

.topup-page .transfer-form {
  padding: 0.1rem 0.7rem 0.7rem;
  border-radius: 14px;
}

@media (min-width: 768px) {
  .topup-page .cashin {
    width: 100%;
    max-width: none;
  }

  .topup-page .transfer-form {
    padding: 1rem 1.1rem 1.15rem;
  }

  .topup-page .topup-net {
    min-height: 3.9rem;
    font-size: 0.8rem;
  }

  .topup-page .topup-net img,
  .topup-page .topup-net i {
    width: 1.65rem;
    height: 1.65rem;
  }

  .topup-page button.topup-amount,
  .topup-page button.topup-amount:hover {
    min-height: 3rem;
  }
}

.transfer-note {
  margin-top: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(180deg, #fffdf8, #fff8ef);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.transfer-note h2 {
  margin: 0 0 0.45rem;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.transfer-note ul {
  margin: 0;
  padding: 0 0 0 1rem;
}

.transfer-note li {
  margin: 0.28rem 0;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
}

.transfer-note p {
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.55;
}

.hist-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
  overflow-x: auto;
}

a.hist-tab,
a.hist-tab:hover,
button.hist-tab,
button.hist-tab:hover {
  flex: none;
  min-height: 2.15rem;
  margin: 0;
  padding: 0.4rem 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

a.hist-tab.is-on,
a.hist-tab.is-on:hover,
button.hist-tab.is-on,
button.hist-tab.is-on:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.pay-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

button.hist-row,
button.hist-row:hover {
  display: flex;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 0;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  background: #fff !important;
  color: inherit !important;
  box-shadow: var(--shadow) !important;
}

button.hist-row:hover {
  background: #fffaf3 !important;
}

button.hist-row.is-new,
button.hist-row.is-new:hover {
  border-left: 4px solid #e87916 !important;
  background: #fff4e5 !important;
}

.hist-new-label {
  width: fit-content;
  margin-top: 0.22rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: #ffead0;
  color: #a64b00;
  font-size: 0.62rem;
  font-weight: 800;
}

.hist-detail-back {
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 1rem;
}

.hist-detail-back[hidden] {
  display: none !important;
}

.hist-detail-sheet {
  width: min(100%, 26rem);
  max-height: min(82vh, 36rem);
  overflow: auto;
  border-radius: 20px;
  padding: 0.35rem 1rem 1rem;
}

.hist-detail-sheet .sheet-head {
  justify-content: center;
}

.hist-detail-sheet .sheet-close,
.hist-detail-sheet .sheet-close:hover {
  border-color: #e0d4c4;
}

.hist-detail-lead {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.hist-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-radius: 14px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hist-detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.hist-detail-list li:last-child {
  border-bottom: 0;
}

.hist-detail-list span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.hist-detail-list strong,
.hist-detail-list code {
  flex: 1 1 auto;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.hist-detail-list code {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.hist-detail-list li.tone-ok strong { color: #0f766e; }
.hist-detail-list li.tone-bad strong { color: #b42318; }
.hist-detail-list li.tone-wait strong { color: #b45309; }

.pay-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pay-row b,
.pay-row small,
.pay-row code {
  display: block;
}

.pay-row b {
  font-size: 0.9rem;
}

.pay-row small,
.pay-row em {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
}

.pay-row code {
  margin-top: 0.3rem;
  font-weight: 700;
  word-break: break-all;
}

.pay-row > div:last-child {
  flex: none;
  text-align: right;
}

.pay-row strong {
  display: block;
  color: var(--accent-dark);
  font-size: 0.84rem;
}

.pay-row em.is-ok {
  color: #1f7a3a;
}

.pay-row em.is-bad {
  color: var(--danger);
}

.card-history {
  margin-top: 0.65rem;
}

.admin-history-intro {
  margin: -0.4rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-history-list {
  gap: 0.55rem;
}

.admin-history-row {
  align-items: center;
}

.admin-card-history-trigger {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-history-trigger {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-history-trigger:hover,
.admin-history-trigger:focus-visible {
  border-color: #e7a967;
  box-shadow: 0 0 0 3px rgba(230, 122, 24, 0.12), var(--shadow);
}

.admin-history-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-card-history-trigger:hover,
.admin-card-history-trigger:focus-visible {
  border-color: #e7a967;
  box-shadow: 0 0 0 3px rgba(230, 122, 24, 0.12), var(--shadow);
}

.admin-card-history-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-history-main {
  min-width: 0;
}

.admin-history-kind {
  display: inline-block;
  margin-bottom: 0.18rem;
  padding: 0.12rem 0.45rem;
  border-radius: 99px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.67rem;
  font-weight: 800;
}

.pay-row .admin-history-code {
  margin-top: 0.3rem;
  padding: 0.3rem 0.45rem;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: #fffaf4;
  color: var(--ink);
  font-size: 0.78rem;
}

.admin-history-row em {
  display: block;
  margin-top: 0.15rem;
  text-align: right;
}

.card-history-head {
  margin: 0 0 0.65rem;
}

.card-history-head h2 {
  margin: 0;
  font-size: var(--text-lg);
}

.card-history-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.card-history-empty {
  margin-top: 0;
}

.pay-row strong.card-history-in {
  color: #1f7a3a;
}

.pay-row strong.card-history-out {
  color: var(--accent-dark);
}

.admin-app {
  background:
    radial-gradient(ellipse 70% 24rem at 50% -6rem, rgba(247, 196, 133, 0.32), transparent 72%),
    linear-gradient(180deg, #f9f5ee 0%, #f3eee5 100%);
}

.admin-app .toolbox {
  padding: 0.7rem var(--gutter);
  background: rgba(255, 252, 246, 0.88);
  border-bottom-color: rgba(225, 211, 191, 0.8);
  box-shadow: 0 5px 18px rgba(64, 47, 25, 0.04);
}

.admin-app .wrap {
  width: calc(100% - 3rem);
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.admin-app .admin-brand {
  gap: 0.65rem;
}

.admin-app button.icon-btn,
.admin-app button.icon-btn:hover {
  background: #fff;
  border-color: #e8d8c0;
  box-shadow: 0 4px 10px rgba(64, 47, 25, 0.06);
}

.admin-app a.users-link.is-current {
  color: #4b3521;
  font-size: 0.96rem;
}

.admin-app a.text-btn,
.admin-app a.text-btn:hover {
  padding: 0.45rem 0.85rem;
  border-color: #edd6b5;
  background: #fff9ef;
  color: #a55219;
}

.admin-app .admin-overview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 8.3rem;
  margin: 0 0 0.85rem;
  padding: 1.2rem 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(249, 208, 159, 0.35);
  border-radius: 22px;
  color: #fff8ef;
  background:
    radial-gradient(circle at 82% 5%, rgba(255, 202, 129, 0.35), transparent 30%),
    linear-gradient(125deg, #34271f 0%, #57351f 52%, #8a481f 100%);
  box-shadow: 0 16px 30px rgba(73, 45, 23, 0.16);
}

.admin-overview-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.admin-overview-copy > span {
  color: #f3bd7b;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.admin-overview-copy h1 {
  margin: 0.18rem 0 0.2rem;
  color: #fffaf4;
  font-size: clamp(1.25rem, 3.8vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.admin-overview-copy p {
  margin: 0;
  color: rgba(255, 248, 239, 0.72);
  font-size: 0.78rem;
  line-height: 1.5;
}

.admin-overview-mark {
  width: 4.4rem;
  height: 4.4rem;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 234, 204, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd49d;
}

.admin-overview-mark svg {
  width: 2.8rem;
  height: 2.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-app .admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.3rem;
}

.admin-app .admin-stat {
  position: relative;
  min-width: 0;
  min-height: 7rem;
  padding: 0.85rem 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(230, 216, 194, 0.9);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(63, 45, 22, 0.055);
}

.admin-stat-icon {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.55rem;
  border-radius: 11px;
  background: #fff0dc;
  color: #b75d21;
}

.admin-stat-icon.balance {
  background: #eaf5ed;
  color: #31714e;
}

.admin-stat-icon.card-balance {
  background: #edf0fb;
  color: #555da0;
}

.admin-stat-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-app .admin-stat-label {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-app .admin-stat strong {
  display: block;
  margin-top: 0.1rem;
  overflow: hidden;
  color: #33271d;
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.admin-app .admin-stat strong small {
  color: #897c6c;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0;
}

.admin-app .admin-stat > small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.admin-app .admin-sales-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 720px) {
  .admin-app .admin-sales-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-app .admin-stat-sales strong {
  color: #b75d21;
}

.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.7rem;
}

.admin-section-heading h2 {
  margin: 0;
  color: #33271d;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.admin-section-heading p {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-section-heading > span {
  min-width: 2rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid #eed7b8;
  border-radius: 999px;
  background: #fff7eb;
  color: #a55219;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.admin-app .admin-user {
  padding: 0.45rem 1rem 0.75rem;
  border: 1px solid rgba(231, 217, 196, 0.9);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(63, 45, 22, 0.055);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-app .admin-user:hover {
  border-color: #e8c99f;
  box-shadow: 0 12px 25px rgba(75, 48, 20, 0.08);
  transform: translateY(-1px);
}

.admin-app .admin-user + .admin-user {
  margin-top: 0.65rem;
}

.users-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.25rem 0 1rem;
  padding: 1.1rem 1rem;
  border: 1px solid rgba(231, 217, 196, 0.9);
  border-radius: 20px;
  background: linear-gradient(130deg, #fff9ef, #fff 68%);
  box-shadow: 0 10px 24px rgba(63, 45, 22, 0.06);
}

.users-eyebrow {
  color: #a55219;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.users-hero h1 {
  margin: 0.18rem 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.users-hero p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.users-counts {
  display: flex;
  gap: 0.45rem;
  flex: none;
}

.users-counts span {
  display: grid;
  min-width: 3.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #eee0cb;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
}

.users-counts b {
  color: var(--ink);
  font-size: 1rem;
}

.users-counts .users-banned-count b {
  color: var(--danger);
}

.admin-app .admin-user.is-banned {
  border-color: #efc5bf;
  background: linear-gradient(135deg, #fff, #fff8f7);
}

.admin-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.65rem 0 0.7rem;
  border-bottom: 1px solid rgba(234, 223, 206, 0.9);
}

.admin-user-identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.admin-user-avatar {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  flex: none;
  border: 1px solid rgba(240, 196, 154, 0.7);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff1dc, #ffd39a);
  color: #a55219;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 6px 12px rgba(196, 99, 28, 0.1);
}

.admin-user-identity h2 {
  overflow: hidden;
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.admin-user-identity .user-status {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.02em;
}

.user-status.is-ok {
  background: #e8f7ee;
  color: #1f7a3a;
  font-weight: 800;
}

.user-status.is-locked {
  background: #fdecea;
  color: var(--danger);
  font-weight: 800;
}

.user-status.is-kyc-ok {
  background: #e6f6f3;
  color: #0f766e;
  font-weight: 800;
}

.admin-user .user-edit {
  padding: 0;
}

.admin-user .user-ban-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0 0.15rem;
  border: 0;
}

.user-ban-info {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.admin-user .meta .user-ban-info b {
  color: var(--ink);
  font-size: 0.8rem;
}

.admin-user .meta .user-ban-info span {
  overflow: visible;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-align: left;
  text-overflow: unset;
  white-space: normal;
}

.user-ban-button,
.user-ban-button:hover {
  width: auto;
  min-width: 7.6rem;
  margin: 0;
  padding: 0.58rem 0.75rem;
  border: 1px solid #efc5bf;
  border-radius: 11px;
  background: linear-gradient(135deg, #fff2f0, #ffe4df);
  color: #a83224;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.user-ban-button:hover {
  background: #ffddd7;
}

.user-ban-button.is-open,
.user-ban-button.is-open:hover {
  border-color: #bde2cc;
  background: linear-gradient(135deg, #effaf3, #dff4e7);
  color: #176b39;
}

.user-ban-button.is-open:hover {
  background: #d7f0e1;
}

.admin-app a.edit-btn,
.admin-app a.edit-btn:hover {
  height: 1.8rem;
  padding: 0 0.8rem;
  border-color: #efcfaa;
  border-radius: 999px;
  background: #fff5e8;
  color: #a55219;
  font-size: 0.73rem;
}

.admin-app .agent-form,
.admin-app .banner-editor {
  border-color: rgba(231, 217, 196, 0.9);
  border-radius: 17px;
  box-shadow: 0 8px 20px rgba(63, 45, 22, 0.055);
}

@media (max-width: 420px) {
  .users-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .users-counts {
    width: 100%;
  }

  .users-counts span {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .admin-app .admin-overview {
    min-height: 7.2rem;
    padding: 1rem;
    border-radius: 18px;
  }

  .admin-overview-mark {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 14px;
  }

  .admin-overview-mark svg {
    width: 2.1rem;
    height: 2.1rem;
  }

  .admin-app .admin-stats {
    gap: 0.45rem;
  }

  .admin-app .admin-stat {
    min-height: 6.3rem;
    padding: 0.65rem 0.6rem;
    border-radius: 14px;
  }

  .admin-stat-icon {
    width: 1.9rem;
    height: 1.9rem;
    margin-bottom: 0.45rem;
  }

  .admin-app .admin-stat-label {
    font-size: 0.6rem;
  }

  .admin-app .admin-stat strong {
    font-size: clamp(0.86rem, 3.6vw, 1.1rem);
  }
}

/* Mobile Topup */
.sim-topup-panel {
  position: relative;
  overflow: visible;
}

.sim-search {
  display: grid;
  gap: 0.35rem;
}

.sim-topup-panel .cashin-head h1 {
  font-size: 1.02rem;
}

.sim-search label,
.sim-order-sheet label {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.sim-phone,
.sim-pin {
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  box-sizing: border-box;
  box-shadow: none;
}

.sim-order-sheet .sim-pin,
.sim-order-sheet input.sim-phone {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sim-order-sheet .sim-field-row .sim-phone,
.sim-order-sheet .sim-field-row .sim-pin {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

button.sim-field-row,
button.sim-field-row:hover,
.sim-field-row {
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  margin: 0;
  padding: 0.28rem 0.4rem 0.28rem 0.28rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
  box-sizing: border-box;
}

.sim-field-row.is-input {
  grid-template-columns: auto minmax(0, 1fr);
  padding-right: 0.45rem;
}

.sim-field-row.is-solo {
  grid-template-columns: minmax(0, 1fr);
  padding: 0.28rem 0.55rem;
}

button.sim-field-row:hover {
  border-color: #f0c49a;
  background: #fffaf3;
}

.sim-dial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 3rem;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 9px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.sim-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 2.35rem;
  height: 1.75rem;
  margin: 0.15rem 0.2rem;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(28, 25, 21, 0.1);
}

.sim-flag-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.sim-flag-emoji {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.sim-field-main {
  display: grid;
  gap: 0.02rem;
  min-width: 0;
}

.sim-field-main strong {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

.sim-field-main small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.sim-field-chevron {
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.4rem;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(45deg);
  opacity: 0.8;
}

.sim-phone {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  padding-left: 0.1rem;
}

.sim-hint {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
  font-weight: 600;
}

.sim-hint.is-error {
  color: var(--danger, #b42318);
}

.sim-pin {
  margin-top: 0.15rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.sim-field-row:focus-within,
button.sim-field-row:focus-visible {
  outline: 2px solid rgba(224, 122, 47, 0.28);
  border-color: var(--accent);
}

.sim-phone:focus,
.sim-pin:focus {
  outline: none;
}

.sim-country-sheet {
  max-height: min(78vh, 34rem);
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
}

.sim-country-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  padding-right: 0.15rem;
}

.sim-country-head h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.sim-country-list {
  overflow: auto;
  display: grid;
  gap: 0.4rem;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

button.sim-country-item,
button.sim-country-item:hover {
  width: 100%;
  margin: 0;
  min-height: 2.65rem;
  padding: 0.28rem 0.45rem 0.28rem 0.28rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}

button.sim-country-item:hover,
button.sim-country-item.is-on {
  border-color: #f0c49a;
  background: #fff7ee;
}

button.sim-country-item.is-on .sim-dial {
  background: #ffe2c4;
}

button.sim-country-item.is-on .sim-flag {
  background: transparent;
}

button.sim-cta,
button.sim-cta:hover {
  width: 100%;
  margin-top: 0.85rem;
  min-height: 2.55rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ea8a3f 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(196, 99, 28, 0.18);
  font-size: 0.88rem;
  font-weight: 800;
}

button.sim-cta:disabled,
button.sim-cta:disabled:hover {
  opacity: 0.72;
  box-shadow: none;
}

.sim-lineup {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0.15rem 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid #f0c49a;
  background:
    linear-gradient(135deg, rgba(255, 247, 238, 0.95), rgba(255, 236, 214, 0.88));
}

.sim-lineup-main {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.sim-lineup-main strong {
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--accent-dark);
}

.sim-lineup-main span {
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.sim-lineup-place {
  flex-shrink: 0;
  max-width: 42%;
  color: #9a6b00;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: right;
  line-height: 1.3;
}

.sim-section-title {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.sim-op-label {
  margin: 0.7rem 0 0.35rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.sim-pkg-list {
  display: grid;
  gap: 0.45rem;
}

button.sim-pkg,
button.sim-pkg:hover {
  width: 100%;
  margin: 0;
  min-height: 2.9rem;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

button.sim-pkg:hover {
  border-color: #f0c49a;
  background: #fffaf3;
  transform: translateY(-1px);
}

.sim-pkg-name {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.sim-pkg-sub {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.sim-pkg-price {
  flex-shrink: 0;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sim-pkg-price small {
  font-size: 0.66rem;
  font-weight: 700;
}

.sim-order-layer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(28, 25, 21, 0.45);
}

.sim-order-layer.is-open {
  display: flex;
  animation: sim-fade 0.18s ease;
}

.sim-order-sheet {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.15rem 1.35rem;
  align-self: stretch;
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(180deg, #fffaf4 0%, #ffffff 28%);
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: 0 -12px 30px rgba(55, 35, 12, 0.16);
  animation: sim-sheet 0.22s cubic-bezier(0.2, 0.9, 0.25, 1);
}

@keyframes sim-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sim-sheet {
  from { transform: translateY(18px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

button.sim-order-close,
button.sim-order-close:hover {
  position: absolute !important;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  margin-top: 0 !important;
}

@media (min-width: 520px) {
  .sim-order-sheet {
    width: min(100%, 28rem);
    max-width: 28rem;
    align-self: center;
  }
}

.sim-order-title {
  margin: 0 2.2rem 0.15rem 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

.sim-order-sub {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.sim-order-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #f0c49a;
  background: linear-gradient(135deg, #fff7ee, #ffedd5);
}

.sim-order-price span {
  color: #9a6b00;
  font-size: 0.72rem;
  font-weight: 700;
}

.sim-order-price strong {
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .sim-order-layer {
    align-items: center;
    padding: 1.25rem;
  }

  .sim-order-sheet {
    border-radius: 18px;
    border-bottom: 1px solid var(--line);
  }

  .sim-pkg-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sim-order-layer.is-open,
  .sim-order-sheet,
  button.sim-pkg {
    animation: none;
    transition: none;
  }
}

.kyc-page .kyc-status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.1rem 0 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.kyc-status span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.kyc-status strong {
  font-size: 0.88rem;
  font-weight: 800;
}

.kyc-status.is-pending strong { color: #b45309; }
.kyc-status.is-approved strong { color: #0f766e; }
.kyc-status.is-rejected strong { color: #b42318; }
.kyc-status.is-none strong { color: var(--accent-dark); }

.kyc-note {
  margin: 0 0 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid #f0c49a;
  background: linear-gradient(180deg, #fffaf3, #fff7ee);
}

.kyc-note h2 {
  margin: 0 0 0.3rem;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.kyc-note p {
  margin: 0;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
}

.kyc-form {
  padding: 0.85rem 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.kyc-form label {
  margin: 0.65rem 0 0.28rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.kyc-form label:first-of-type {
  margin-top: 0.1rem;
}

.kyc-form input[type="text"],
.kyc-form input[type="tel"],
.kyc-form input[type="date"],
.kyc-form select,
.kyc-form input[type="file"] {
  width: 100%;
  min-height: 2.45rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  box-sizing: border-box;
}

.kyc-form input[type="file"] {
  padding: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.kyc-form input:focus,
.kyc-form select:focus {
  outline: 2px solid #f3c49a;
  border-color: var(--accent);
}

.kyc-dob {
  margin: 0.65rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.kyc-dob legend {
  padding: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.kyc-dob-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.15fr;
  gap: 0.45rem;
  margin-top: 0.28rem;
}

.kyc-dob-grid label {
  margin: 0 0 0.22rem;
  font-size: 0.68rem;
}

.kyc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.kyc-grid > div {
  min-width: 0;
}

button.kyc-cta,
button.kyc-cta:hover {
  width: 100%;
  margin-top: 0.95rem;
  min-height: 2.7rem;
  padding: 0.72rem 0.9rem;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(196, 99, 28, 0.22);
}

button.kyc-cta:hover {
  background: var(--accent-dark);
}

.kyc-summary {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.kyc-summary div {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.kyc-summary span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.kyc-summary strong {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 420px) {
  .kyc-grid {
    grid-template-columns: 1fr;
  }
}

.admin-kyc-detail {
  display: grid;
  gap: 0.75rem;
}

.admin-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 16, 12, 0.5);
  backdrop-filter: blur(3px);
}

.admin-modal-layer[hidden] {
  display: none;
}

.admin-withdraw-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: none;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
}

.admin-withdraw-modal-layer::-webkit-scrollbar {
  display: none;
}

.admin-withdraw-modal-layer[hidden] {
  display: none;
}

.admin-withdraw-modal-layer .admin-modal {
  box-sizing: border-box;
  width: min(100%, 27rem);
  max-height: calc(100dvh - max(2rem, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  margin: auto;
  padding: 0.7rem 0.75rem;
}

.admin-withdraw-modal-layer .cashin-head h1 {
  font-size: 0.9rem;
}

.admin-withdraw-modal-layer .admin-modal .meta {
  margin-top: 0.25rem;
}

.admin-withdraw-modal-layer .admin-modal .meta li {
  padding: 0.32rem 0;
  gap: 0.45rem;
  font-size: 0.74rem;
}

.admin-withdraw-modal-layer .admin-modal .meta b {
  font-size: 0.68rem;
}

.admin-withdraw-modal-layer .admin-modal .admin-kyc-actions {
  margin-top: 0.3rem;
  padding: 0.55rem 0.65rem;
}

.admin-withdraw-modal-layer .admin-modal::-webkit-scrollbar {
  display: none;
}

.admin-modal {
  position: relative;
  width: min(100%, 26rem);
  max-height: 88dvh;
  overflow-y: auto;
  padding: 1rem 0.95rem;
  background: #fffdfb;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(28, 25, 21, 0.25);
}

.admin-modal .cashin-head {
  margin: 0;
}

.admin-modal .cashin-head h1 {
  font-size: 1.05rem;
}

.admin-modal .meta {
  margin: 0.4rem 0 0;
  gap: 0;
}

.admin-modal .meta li {
  min-height: 0;
  padding: 0.55rem 0;
  gap: 0.75rem;
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f0e7dc;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.84rem;
}

.admin-modal .meta li:last-child {
  border-bottom: 0;
}

.admin-modal .meta b {
  flex: none;
  color: #5c534a;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-modal .meta span {
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.admin-modal .admin-kyc-actions {
  margin-top: 0.5rem;
}

.admin-card-history-modal {
  width: min(100%, 34rem);
}

.admin-card-history-dismiss,
.admin-card-history-dismiss:hover {
  width: 100%;
  margin: 0.25rem 0 0;
}

.admin-history-modal {
  width: min(100%, 34rem);
}

.admin-history-modal .meta span {
  white-space: pre-wrap;
}

.admin-history-dismiss,
.admin-history-dismiss:hover {
  width: 100%;
  margin: 0.25rem 0 0;
}

@media (max-width: 519px) {
  .admin-modal-layer {
    padding: 0.75rem;
  }

  .admin-withdraw-modal-layer {
    padding: max(0.65rem, env(safe-area-inset-top, 0px)) 0.65rem max(0.65rem, env(safe-area-inset-bottom, 0px));
  }

  .admin-modal {
    width: 100%;
    max-height: 86dvh;
    padding: 0.9rem 0.85rem 1rem;
  }

  .admin-withdraw-modal-layer .admin-modal {
    width: 100%;
    max-height: calc(100dvh - max(1.3rem, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
    padding: 0.65rem 0.6rem;
  }
}

.admin-kyc-tone.is-ok { color: #0f766e; font-weight: 800; }
.admin-kyc-tone.is-bad { color: #b42318; font-weight: 800; }
.admin-kyc-tone.is-wait { color: #b45309; font-weight: 800; }

.admin-kyc-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.65rem;
}

.admin-kyc-photos figure {
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-kyc-photos figcaption {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-kyc-photos img {
  display: block;
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
  border-radius: 8px;
  background: #f6f1e8;
}

.admin-kyc-actions {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-kyc-actions label {
  margin: 0 0 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-kyc-actions input {
  margin-bottom: 0.7rem;
}

.admin-kyc-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

button.admin-kyc-approve,
button.admin-kyc-approve:hover,
button.admin-kyc-reject,
button.admin-kyc-reject:hover {
  width: 100%;
  margin: 0;
  min-height: 2.5rem;
  border: 0;
  border-radius: 11px;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: none;
}

button.admin-kyc-approve,
button.admin-kyc-approve:hover {
  background: #0f766e;
  color: #fff;
}

button.admin-kyc-reject,
button.admin-kyc-reject:hover {
  background: #b42318;
  color: #fff;
}

.admin-copy-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.admin-copy-row em {
  font-style: normal;
  font-weight: 700;
}

.admin-copy-row .copy-btn {
  width: auto;
  min-width: 2rem;
  min-height: 2rem;
  margin: 0;
  padding: 0.25rem;
  flex: none;
}

.admin-withdraw-tabs {
  align-items: center;
}

button.hist-tab.admin-withdraw-fee-btn,
button.hist-tab.admin-withdraw-fee-btn:hover {
  width: auto;
}

.admin-withdraw-fee-panel {
  margin: 0 0 0.85rem;
}

.admin-withdraw-fee-panel[hidden] {
  display: none !important;
}

.admin-withdraw-actions {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

button.admin-withdraw-copy,
button.admin-withdraw-copy:hover {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent-dark);
  box-shadow: none;
}

button.admin-withdraw-copy:hover {
  background: var(--accent);
  color: #fff;
}

.admin-app .admin-copy-row .copy-btn,
.admin-app .admin-copy-row .copy-btn:hover {
  color: #fff;
  background: var(--accent-dark);
}

.admin-app .admin-copy-row .copy-btn:hover {
  background: var(--accent);
}

a.admin-kyc-open,
a.admin-kyc-open:hover {
  display: inline-flex;
  margin-top: 0.35rem;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

/* Virtual card apply — tight layout, less scroll */
.card-apply {
  display: grid;
  gap: 0.3rem;
  padding: 0 0 0.25rem;
  font-size: var(--text-sm);
}

.card-apply .paycard-preview {
  margin: 0;
  isolation: isolate;
}

.card-apply .paycard-preview:not(.paycard-real) {
  min-height: 7.2rem;
  padding: 0.6rem 0.7rem 0.55rem;
}

.card-apply .paycard-preview.paycard-real {
  min-height: 0 !important;
  width: min(100%, 20.5rem);
  max-width: 100%;
  margin-inline: auto;
}

.paycard-preview-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  pointer-events: none;
  border-radius: inherit;
}

.paycard-preview > :not(.paycard-preview-art) {
  position: relative;
  z-index: 1;
}

.paycard-preview.is-waiting {
  filter: saturate(0.7) brightness(0.92);
}

.paycard-preview.is-waiting::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.18) 50%, transparent 62%);
  animation: card-sheen 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes card-sheen {
  0%, 100% { opacity: 0.2; transform: translateX(-6%); }
  50% { opacity: 0.65; transform: translateX(6%); }
}

.card-apply-hero h1 {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card-wallet-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
  padding: 0;
}

.card-apply-hero .card-wallet-badges {
  margin-top: 0.3rem;
}

.card-wallet-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(196, 99, 28, 0.05);
}

.card-live .card-wallet-badges {
  margin: 0.45rem 0 0.15rem;
  justify-content: center;
}

.card-apply-status {
  display: grid;
  gap: 0.1rem;
  margin: 0.25rem 0 0.05rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.card-apply-status-tag {
  justify-self: start;
  padding: 0.04rem 0.3rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.card-apply-status strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.card-apply-status p {
  margin: 0;
  max-width: 40ch;
  font-size: 0.62rem;
  line-height: 1.4;
  color: var(--muted);
}

.card-apply-status.is-compact {
  gap: 0;
  margin: 0.2rem 0 0.35rem;
  padding: 0.35rem 0.55rem;
}

.card-apply-status.is-compact strong {
  font-size: 0.68rem;
  line-height: 1.35;
}

.card-apply-status.is-compact p,
.card-apply-status.is-compact .card-apply-status-tag {
  display: none;
}

.card-apply-foot {
  margin-top: 0.35rem;
}

.card-apply-foot button[type="submit"] {
  width: 100%;
  margin-top: 0 !important;
}

@media (max-width: 520px) {
  .card-apply-status-tag {
    display: none;
  }

  .card-apply-status {
    margin: 0.15rem 0 0;
    padding: 0.3rem 0.5rem;
  }

  .card-apply-form {
    padding-bottom: calc(4.2rem + env(safe-area-inset-bottom, 0px));
  }

  .card-apply-foot {
    position: fixed;
    left: 50%;
    bottom: calc(4.55rem + env(safe-area-inset-bottom, 0px));
    z-index: 25;
    width: calc(100% - (var(--gutter) * 2));
    max-width: 100%;
    margin: 0;
    padding: 0.35rem 0 0.15rem;
    transform: translateX(-50%);
    background: linear-gradient(to top, var(--bg) 55%, rgba(246, 241, 232, 0));
  }

  .card-apply-foot button[type="submit"] {
    min-height: 2.35rem;
    box-shadow: 0 4px 14px rgba(196, 99, 28, 0.16);
  }
}

.card-apply-status.is-pending {
  background: linear-gradient(180deg, #fff8ef 0%, #fff4e6 100%);
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.14);
}

.card-apply-status.is-pending .card-apply-status-tag {
  color: #9a3412;
  background: rgba(251, 191, 36, 0.22);
}

.card-apply-status.is-pending strong { color: #9a3412; }

.card-apply-status.is-wait-card {
  position: relative;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  margin: 0.75rem 0 0.35rem;
  padding: 1.15rem 1rem 1.05rem;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 210, 140, 0.35), transparent 55%),
    linear-gradient(165deg, #fffaf3 0%, #fff1e2 100%);
  box-shadow:
    inset 0 0 0 1px rgba(196, 120, 48, 0.16),
    0 8px 20px rgba(180, 100, 40, 0.08);
}

.card-apply-status.is-wait-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  animation: card-wait-sheen 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes card-wait-sheen {
  0% { transform: translateX(-40%); opacity: 0; }
  35% { opacity: 0.7; }
  100% { transform: translateX(40%); opacity: 0; }
}

.card-wait-ico {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 0.15rem;
  border-radius: 50%;
  color: #c45e12;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(196, 94, 18, 0.16);
}

.card-wait-ico svg {
  width: 1.7rem;
  height: 1.7rem;
  animation: card-wait-pulse 1.8s ease-in-out infinite;
}

@keyframes card-wait-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

.card-apply-status.is-wait-card .card-apply-status-tag {
  justify-self: center;
  padding: 0.18rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-apply-status.is-wait-card strong {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.card-apply-status.is-wait-card p {
  max-width: 28ch;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: #8a5a2b;
}

.card-wait-meta {
  margin-top: 0.15rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(196, 94, 18, 0.1);
  color: #9a3412;
  font-size: 0.7rem;
  font-weight: 800;
}

.card-apply-status.is-rejected {
  background: linear-gradient(180deg, #fff7f6 0%, #ffefed 100%);
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.12);
}

.card-apply-status.is-rejected .card-apply-status-tag {
  color: #b42318;
  background: rgba(240, 68, 56, 0.12);
}

.card-apply-status.is-rejected strong { color: #912018; }

.card-apply-status.is-rejected p { color: #7a2e22; }

.card-fee-list {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0.7rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 10px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.card-fee-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-xs);
  line-height: 1.25;
}

.card-fee-list li:last-child {
  border-bottom: 0;
}

.card-fee-list li span {
  color: var(--muted);
  min-width: 0;
}

.card-fee-list li span em {
  margin-left: 0.2rem;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--muted);
}

.card-fee-list li strong {
  font-size: var(--text-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

.card-fee-list li.is-total {
  margin-top: 0;
  padding-top: 0.42rem;
  border-top: 0;
}

.card-fee-list li.is-total strong {
  font-size: var(--text-sm);
  color: var(--accent-dark);
}

.card-account-meta {
  margin-top: 0.15rem;
}

.card-account-meta li strong {
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-apply-form {
  display: grid;
  gap: 0.2rem;
  margin: 0;
}

.card-apply-fields {
  display: grid;
  gap: 0.15rem;
}

.card-apply-form label,
.card-apply-label {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.card-apply-form label:first-of-type,
.card-apply-fields label:first-of-type {
  margin-top: 0.1rem;
}

.card-apply-form input[type="text"],
.card-apply-form input[type="email"],
.card-apply-form select {
  width: 100%;
  min-height: 2rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: var(--text-sm);
  background: var(--card);
  box-shadow: none;
}

.card-apply-form button[type="submit"] {
  margin-top: 0.25rem !important;
  min-height: 2.15rem;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  font-size: var(--text-sm);
  box-shadow: none;
}

.card-topup-sheet .card-topup-fees {
  margin: 0.35rem 0 0.15rem;
}

.card-topup-min-note {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.72rem;
}

.card-apply-dob {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.card-apply-dob select {
  min-height: var(--row);
  font-size: var(--text-sm);
}

.admin-card-fee-heading {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.admin-card-topup-preview {
  margin: 0.65rem 0 1rem;
}
.admin-card-fee-form {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.admin-card-fee-form label {
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-card-fee-form input,
.admin-card-fee-form select {
  min-height: 2.5rem;
  border-radius: 11px;
  border: 1px solid rgba(28, 25, 21, 0.12);
  padding: 0.45rem 0.7rem;
  background: #fff;
  color: var(--ink);
}

.admin-card-fee-form .bill-rate-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(28, 25, 21, 0.12);
  border-radius: 11px;
  background: #fff;
  transition: border-color 0.15s ease, outline-color 0.15s ease;
}

.admin-card-fee-form .bill-rate-input:focus-within {
  outline: 2px solid #f3c49a;
  border-color: var(--accent);
}

.admin-card-fee-form .bill-rate-input input {
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0.35rem 0.15rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-card-fee-form .bill-rate-input input:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

.admin-card-fee-form .bill-rate-input span {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-card-fee-preview {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.82rem;
}

.admin-card-app .admin-kyc-actions {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.card-live .paycard-mcface .paycard-glow {
  position: absolute;
  inset: auto -10% -35% 35%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 140, 0.22), transparent 68%);
  pointer-events: none;
}

.paycard-circles {
  display: none;
}

.paycard-visa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 1.35rem;
  padding: 0.12rem 0.35rem 0.05rem;
  color: #fffaf3;
  font-family: "Arial", "Helvetica Neue", sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(40, 20, 5, 0.2);
}

.paycard.paycard-real > .paycard-glow {
  position: absolute;
  right: -18%;
  bottom: -40%;
  z-index: 0;
  pointer-events: none;
}

/* Real bank zones: logo → chip → number → holder */
.paycard.paycard-real .paycard-top {
  position: absolute;
  z-index: 1;
  top: 7.5%;
  left: var(--card-pad-x);
  right: var(--card-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin: 0;
  min-width: 0;
}

.paycard.paycard-real .paycard-mid {
  position: absolute;
  z-index: 1;
  top: 26%;
  left: var(--card-pad-x);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.paycard.paycard-real .pan {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: var(--card-pad-x);
  right: var(--card-pad-x);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0.3em;
  margin: 0;
  width: auto;
  font-family: "Courier New", "Consolas", ui-monospace, monospace;
  font-size: 1.15rem;
  font-size: clamp(1.05rem, 6.4cqw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 2px rgba(0, 0, 0, 0.45);
}

.paycard.paycard-real .pan > span {
  display: block;
  min-width: 0;
  text-align: left;
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
}

.paycard.paycard-real .paycard-bottom {
  position: absolute;
  z-index: 1;
  left: var(--card-pad-x);
  right: var(--card-pad-x);
  bottom: 7%;
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 1fr;
  align-items: end;
  gap: 0.45rem;
  margin: 0;
  min-width: 0;
}

.paycard.paycard-real .paycard-bottom > div {
  flex: none;
  min-width: 0;
}

.paycard.paycard-real .paycard-bal {
  text-align: right;
}

.paycard.paycard-real .paycard-visa {
  padding: 0;
  min-height: 0;
  color: #f4f7ff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.paycard.paycard-real .paycard-visa svg {
  display: block;
  width: 13cqw;
  max-width: 3.6rem;
  height: auto;
}

.paycard.paycard-real .paycard-top strong {
  font-size: 0.95rem;
  font-size: 4.5cqw;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.paycard.paycard-real .paycard-mark {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.08em;
  font-size: 2.3cqw;
  padding: 0.18em 0.5em;
  white-space: nowrap;
}

.paycard.paycard-real .chip {
  width: 11.5cqw;
  height: 8.6cqw;
  max-width: 3.15rem;
  max-height: 2.35rem;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 3px rgba(0, 0, 0, 0.35);
}

.paycard.paycard-real .contactless {
  width: 5cqw;
  height: 5cqw;
  max-width: 1.3rem;
  max-height: 1.3rem;
  opacity: 0.9;
}

.paycard.paycard-real .paycard-bottom span {
  display: block;
  font-size: 0.5rem;
  font-size: 2.4cqw;
  line-height: 1.15;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paycard.paycard-real .paycard-bottom strong {
  display: block;
  font-size: 0.78rem;
  font-size: 3.6cqw;
  letter-spacing: 0.03em;
  margin-top: 0.12em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-kyc-gate {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid #f0c49a;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf3, #fff);
  box-shadow: var(--shadow);
}

.card-kyc-gate strong {
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.card-kyc-gate p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.card-kyc-gate-status b {
  color: var(--ink);
  font-weight: 800;
}

a.card-kyc-gate-btn,
a.card-kyc-gate-btn:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.4rem;
  margin-top: 0.2rem;
  padding: 0.45rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.card-swipe {
  margin: 0.15rem 0 0.45rem;
  overflow: visible;
  background: transparent;
}
.card-swipe-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding: 0.35rem 0 0.55rem;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  touch-action: pan-x;
  scrollbar-width: none;
  outline: none;
}
.card-swipe-track::-webkit-scrollbar { display: none; }
.card-swipe-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
  padding: 0 0.15rem;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  cursor: pointer;
  touch-action: pan-x;
  background: transparent;
}
.card-swipe-slide input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.card-swipe-slide .paycard-pick {
  position: relative;
  container-type: inline-size;
  display: block;
  aspect-ratio: 85.6 / 53.98;
  width: min(100%, 20.5rem);
  min-height: 0 !important;
  height: auto !important;
  max-width: 20.5rem;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  gap: 0;
  justify-content: initial;
  color: #fff8ef;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  transform: none;
  opacity: 0.88;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 18px rgba(16, 22, 32, 0.22);
}
.card-swipe-slide.is-on .paycard-pick {
  transform: none;
  opacity: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 22px rgba(16, 22, 32, 0.28);
}
.card-swipe-slide .paycard-pick .paycard-glow {
  display: none;
}

/* PC — same compact bank-card size */
@media (min-width: 768px) {
  .paycard.paycard-real,
  .card-apply .paycard-preview.paycard-real,
  .card-live .paycard.paycard-real {
    width: min(100%, 21rem);
  }

  .card-swipe-slide .paycard-pick {
    width: min(100%, 21rem);
    max-width: 21rem;
  }
}
.card-swipe-slide .paycard-pick .paycard-top strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(90, 40, 10, 0.15);
}
.card-swipe-slide .paycard-pick .paycard-mark {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
}
.card-swipe-slide .paycard-pick .paycard-brand {
  gap: 0.35rem;
}
.card-swipe-slide .paycard-pick .paycard-visa {
  font-size: 0.82rem;
  min-height: 1.15rem;
  padding: 0.08rem 0.28rem 0.02rem;
}
.card-swipe-slide .paycard-pick .paycard-bal strong {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
/* Bank-like card skins */
.paycard-pick.skin-amber {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.26), transparent 46%),
    linear-gradient(145deg, #2a3344 0%, #1a2230 48%, #121820 100%);
}
.paycard-pick.skin-slate {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 46%),
    linear-gradient(145deg, #3a4558 0%, #252e3d 50%, #171e2a 100%);
}
.paycard-pick.skin-rose {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.2), transparent 46%),
    linear-gradient(145deg, #6a2e3d 0%, #451f2b 50%, #2c141c 100%);
}
.paycard-pick.skin-forest {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 46%),
    linear-gradient(145deg, #1f4638 0%, #163328 50%, #0f221b 100%);
}
.paycard-pick.skin-night {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(145deg, #1a1d28 0%, #10131b 50%, #080a10 100%);
}
.paycard-pick.skin-copper {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 230, 180, 0.22), transparent 46%),
    linear-gradient(145deg, #8a5a2b 0%, #6a411c 50%, #3f2610 100%);
}
.paycard-pick.skin-ocean {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(180, 220, 255, 0.2), transparent 46%),
    linear-gradient(145deg, #1d4a6a 0%, #14344c 50%, #0c2233 100%);
}
.paycard-pick.skin-grape {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(220, 190, 255, 0.18), transparent 46%),
    linear-gradient(145deg, #3f2a5c 0%, #2a1c40 50%, #171026 100%);
}
.paycard-pick.skin-sand {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 245, 220, 0.25), transparent 46%),
    linear-gradient(145deg, #c49a5a 0%, #9e7540 50%, #6d4f28 100%);
}
.paycard-pick.skin-ink {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 46%),
    linear-gradient(145deg, #22252e 0%, #14171e 50%, #0a0c11 100%);
}
.card-swipe-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: center;
  margin: 0.15rem 0 0;
  padding: 0.35rem 0.45rem;
  border-radius: 12px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card-swipe-nav {
  width: 1.85rem;
  min-height: 1.85rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--accent-dark);
  box-shadow: none;
  font-size: 1.05rem;
  line-height: 1;
}
.card-swipe-title {
  display: block;
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-swipe-copy,
.card-swipe-dots { display: none; }
.admin-card-catalog {
  display: grid;
  gap: 0.65rem;
  margin: 0.6rem 0 0.4rem;
}
.admin-card-catalog-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.admin-card-catalog-enable {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}
.admin-card-catalog-enable input {
  width: auto;
  margin: 0;
  box-shadow: none;
}
.admin-card-catalog-mmk {
  margin: 0.15rem 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Admin cards fee helpers */
.admin-card-rate-row {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
}
.admin-card-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.admin-card-field {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--muted);
}
.admin-card-field input {
  margin: 0;
  min-height: 2.35rem;
  font-size: var(--text-sm);
}
.admin-card-package-price {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.55rem;
  display: grid;
  gap: 0.28rem;
  border-radius: 10px;
  background: rgba(255, 248, 238, 0.9);
  box-shadow: inset 0 0 0 1px rgba(28, 25, 21, 0.06);
}
.admin-card-package-price li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--muted);
}
.admin-card-package-price li strong {
  color: var(--ink);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}
.admin-card-package-price li.is-total {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(28, 25, 21, 0.08);
  font-size: var(--text-sm);
}
.admin-card-package-price li.is-total strong {
  color: var(--accent-dark);
  font-size: var(--text-sm);
}
.admin-card-catalog-row { overflow: hidden; }
.admin-card-catalog-row input[type="text"],
.admin-card-catalog-row input[type="number"] { max-width: 100%; }

/* Admin mobile — full layout like PC */
.admin-app {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.admin-app .toolbox {
  width: 100%;
  max-width: none;
}
.admin-app .wrap {
  width: calc(100% - (var(--gutter) * 2));
  max-width: none;
  margin: 0.75rem auto 1.25rem;
  padding-bottom: 0.6rem;
}
.admin-app .admin-page-hero {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: 100%;
}
.admin-app .admin-user-grid {
  grid-template-columns: 1fr;
  width: 100%;
}
.admin-app .admin-user {
  width: 100%;
  max-width: none;
}
@media (min-width: 640px) {
  .admin-app .admin-page-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
  }
}
.admin-app .hist-tabs {
  margin-bottom: 0.7rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.admin-app .hist-tabs::-webkit-scrollbar { display: none; }
.admin-app a.hist-tab,
.admin-app a.hist-tab:hover {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  font-size: var(--text-xs);
}

@media (max-width: 420px) {
  .admin-app .toolbox { padding: 0.55rem var(--gutter); }
  .admin-app a.users-link.is-current { font-size: 0.88rem; }
  .admin-card-price-grid { grid-template-columns: 1fr; }
  .admin-app .admin-user,
  .admin-app .admin-card-user,
  .admin-app .admin-card-app { padding: 0.75rem 0.8rem; }
}

/* Admin desktop / laptop — full layout (align with 980px shell) */
@media (min-width: 980px) {
  .admin-app {
    --admin-side: 15.75rem;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 0;
  }

  .admin-app .drawer-backdrop,
  .admin-app #open-drawer,
  .admin-app #close-drawer {
    display: none !important;
  }

  .admin-app .admin-side,
  .admin-app .drawer.admin-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--admin-side);
    max-width: none;
    transform: none !important;
    box-shadow: 8px 0 24px rgba(120, 72, 28, 0.04);
    border-right: 1px solid rgba(225, 211, 191, 0.95);
    background:
      radial-gradient(ellipse 120% 50% at 0% 0%, rgba(255, 214, 170, 0.4), transparent 55%),
      #fffdf9;
    padding: 1rem 0.85rem 1.25rem;
    z-index: 30;
  }

  .admin-app .admin-page-hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
  }

  .admin-app .admin-user-grid,
  .admin-user-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
  }

  .admin-app .admin-side .drawer-head {
    margin-bottom: 1rem;
    padding: 0.15rem 0.35rem 0.85rem;
    border-bottom: 1px solid rgba(225, 211, 191, 0.85);
  }

  .admin-app .toolbox {
    position: sticky;
    top: 0;
    z-index: 20;
    width: auto;
    margin-left: var(--admin-side);
    padding: 0.85rem 1.5rem;
  }

  .admin-app .wrap {
    width: auto;
    max-width: none;
    margin: 1rem 1.5rem 2rem calc(var(--admin-side) + 1.5rem);
    padding-bottom: 1.5rem;
  }

  .admin-app .admin-overview {
    min-height: 9rem;
    padding: 1.35rem 1.6rem;
  }

  .admin-app .admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .admin-app .hist-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }

  .admin-app a.hist-tab,
  .admin-app a.hist-tab:hover {
    min-height: 2.25rem;
    padding: 0.42rem 0.85rem;
    font-size: var(--text-sm);
  }

  .admin-card-catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

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

  .admin-app .bill-rate-card,
  .admin-app .admin-card-fees,
  .admin-app .admin-crypto-settings,
  .admin-app .banner-editor,
  .admin-app .agent-form {
    max-width: none;
  }

  .admin-app .admin-user,
  .admin-app .admin-card-user,
  .admin-app .admin-card-app {
    max-width: none;
  }
}

@media (min-width: 1280px) {
  .admin-app {
    --admin-side: 16.5rem;
  }

  .admin-app .wrap {
    margin-right: 2rem;
    margin-left: calc(var(--admin-side) + 2rem);
  }

  .admin-card-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-app .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.policy-page .policy-doc {
  margin: 0.35rem 0 1.5rem;
  padding: 1rem 1.05rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.policy-page .policy-lead {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: var(--text);
  line-height: 1.55;
}

.policy-page .policy-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.policy-page .policy-doc section {
  margin: 0 0 1.05rem;
}

.policy-page .policy-doc h2 {
  margin: 0 0 0.4rem;
  font-size: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.policy-page .policy-doc p,
.policy-page .policy-doc li {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.policy-page .policy-doc ul {
  margin: 0.2rem 0 0.35rem;
  padding-left: 1.15rem;
}

.policy-page .policy-doc li + li {
  margin-top: 0.35rem;
}

.policy-page .policy-end {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* ——— Admin: simple cool slate shell ——— */
.admin-app {
  --admin-bg: #f3f4f6;
  --admin-surface: #ffffff;
  --admin-ink: #111827;
  --admin-muted: #6b7280;
  --admin-line: #e5e7eb;
  --admin-soft: #f9fafb;
  --admin-accent: #111827;
  --admin-accent-soft: #e5e7eb;
  --admin-ok: #047857;
  --admin-danger: #b91c1c;
  --bg: var(--admin-bg);
  --card: var(--admin-surface);
  --ink: var(--admin-ink);
  --muted: var(--admin-muted);
  --line: var(--admin-line);
  --soft: var(--admin-soft);
  --accent: #374151;
  --accent-dark: #111827;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
  background: var(--admin-bg);
  color: var(--admin-ink);
}

.admin-app,
.admin-app * {
  font-family: "Noto Sans Myanmar", sans-serif;
}

.admin-app .wrap {
  max-width: 72rem;
  margin: 0.85rem auto 2rem;
}

.admin-app .toolbox {
  position: sticky;
  top: 0;
  z-index: 25;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.7rem var(--gutter);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--admin-line);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.admin-app .admin-brand .users-link,
.admin-app .admin-brand .users-link:hover {
  color: var(--admin-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.admin-app .admin-brand .users-link.is-current::after {
  display: none;
}

.admin-app button.icon-btn,
.admin-app button.icon-btn:hover,
.admin-app button.drawer-close,
.admin-app button.drawer-close:hover {
  background: var(--admin-soft);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  color: var(--admin-ink);
}

.admin-app a.text-btn,
.admin-app a.text-btn:hover {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-surface);
  color: var(--admin-ink);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.admin-app .drawer {
  padding: 1rem 0.75rem 1.25rem;
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-line);
  box-shadow: 8px 0 24px rgba(17, 24, 39, 0.06);
}

.admin-app .drawer-brand strong {
  color: var(--admin-ink);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.admin-app .drawer-brand span {
  display: inline-flex;
  width: fit-content;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: var(--admin-ink);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.admin-app a.drawer-user,
.admin-app a.drawer-user:hover {
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-app a.drawer-user:hover {
  background: var(--admin-soft);
  border-color: var(--admin-line);
  transform: none;
}

.admin-app .drawer-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--admin-soft);
  color: var(--admin-ink);
  box-shadow: none;
}

.admin-app a.drawer-user.is-current {
  background: var(--admin-ink);
  border-color: var(--admin-ink);
}

.admin-app a.drawer-user.is-current > span:last-child {
  color: #fff;
}

.admin-app a.drawer-user.is-current .drawer-ico {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-app .admin-overview {
  display: block;
  min-height: 0;
  margin: 0 0 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  color: var(--admin-ink);
  background: var(--admin-surface);
  box-shadow: var(--shadow);
  overflow: visible;
}

.admin-overview-copy > span {
  color: var(--admin-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-overview-copy h1 {
  margin: 0.2rem 0 0.25rem;
  color: var(--admin-ink);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.04em;
}

.admin-overview-copy p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.9rem;
}

.admin-overview-mark {
  display: none;
}

.admin-app .admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

@media (min-width: 720px) {
  .admin-app .admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-app .admin-stat {
  min-height: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-surface);
  box-shadow: var(--shadow);
  overflow: visible;
}

.admin-stat-icon {
  display: none;
}

.admin-app .admin-stat-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-app .admin-stat strong {
  display: block;
  color: var(--admin-ink);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.admin-app .admin-stat strong small,
.admin-app .admin-stat > small {
  display: inline;
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-app .admin-stat > small {
  display: block;
  margin-top: 0.25rem;
}

.admin-app .users-hero,
.admin-app .admin-page-hero {
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-surface);
  box-shadow: var(--shadow);
}

.admin-app .users-hero {
  background: var(--admin-surface);
  border-color: var(--admin-line);
  color: var(--admin-ink);
}

.admin-app .users-eyebrow,
.admin-app .admin-page-kicker {
  color: var(--admin-muted);
}

.admin-app .users-hero h1,
.admin-app .users-hero h2,
.admin-app .admin-page-hero h1 {
  color: var(--admin-ink);
}

.admin-app .users-hero p,
.admin-app .admin-page-hero > div > p:last-child {
  color: var(--admin-muted);
}

.admin-app .users-counts span {
  background: var(--admin-soft);
  border: 1px solid var(--admin-line);
  color: var(--admin-ink);
}

.admin-app .admin-user,
.admin-app .agent-form,
.admin-app .banner-editor,
.admin-app .feature-settings,
.admin-app .admin-kyc-card,
.admin-app .sheet,
.admin-app .hist-card,
.admin-app section.card {
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-surface);
  box-shadow: var(--shadow);
}

.admin-app button,
.admin-app .auth-button,
.admin-app input[type="submit"] {
  border-radius: 10px;
}

.admin-app button:not(.icon-btn):not(.drawer-close):not(.is-danger),
.admin-app .admin-kyc-buttons button:not(.is-danger) {
  background: var(--admin-ink);
  border-color: var(--admin-ink);
  color: #fff;
  box-shadow: none;
}

.admin-app button:not(.icon-btn):not(.drawer-close):not(.is-danger):hover,
.admin-app .admin-kyc-buttons button:not(.is-danger):hover {
  background: #1f2937;
  border-color: #1f2937;
}

.admin-app button.is-danger,
.admin-app .admin-kyc-buttons button.is-danger {
  background: #fff;
  border: 1px solid #fecaca;
  color: var(--admin-danger);
}

.admin-app input,
.admin-app select,
.admin-app textarea {
  border-radius: 10px;
  border-color: var(--admin-line);
  background: #fff;
}

.admin-app .hist-tab,
.admin-app a.hist-tab {
  border-radius: 999px;
  border: 1px solid var(--admin-line);
  background: var(--admin-surface);
  color: var(--admin-muted);
}

.admin-app .hist-tab.is-on,
.admin-app a.hist-tab.is-on {
  background: var(--admin-ink);
  border-color: var(--admin-ink);
  color: #fff;
}

.admin-login-page {
  --bg: #f3f4f6;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #111827;
  --accent-dark: #111827;
  background: #f3f4f6;
}

.admin-login-page,
.admin-login-page * {
  font-family: "Noto Sans Myanmar", sans-serif;
}

.admin-login-page .auth-toolbox {
  display: none;
}

.admin-login-wrap {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
}

.admin-login-page .admin-login-card {
  width: min(100%, 24rem);
  margin: 0;
  padding: 1.5rem 1.35rem 1.4rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.admin-login-page .admin-login-mark {
  color: #6b7280;
  letter-spacing: 0.1em;
}

.admin-login-page .admin-login-card h1 {
  margin: 0.15rem 0 0.35rem;
  color: #111827;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.admin-login-sub {
  margin: 0 0 0.35rem;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.4;
}

.admin-login-page .auth-button,
.admin-login-page .auth-button:hover {
  background: #111827;
  border-color: #111827;
  color: #fff;
  border-radius: 10px;
  box-shadow: none;
}

.admin-login-page input {
  border-radius: 10px;
}

/* Card auto-issue busy overlay */
.card-busy {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 186, 120, 0.28), transparent 55%),
    rgba(18, 14, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card-busy[hidden] {
  display: none !important;
}

body.is-card-busy {
  overflow: hidden;
}

.card-busy-panel {
  width: min(100%, 19.5rem);
  padding: 1.35rem 1.2rem 1.25rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(165deg, rgba(255, 248, 240, 0.97), rgba(255, 236, 214, 0.96));
  box-shadow: 0 18px 48px rgba(40, 22, 8, 0.28);
  text-align: center;
}

.card-busy-panel strong {
  display: block;
  margin: 0.85rem 0 0.25rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-busy-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.card-busy-orb {
  position: relative;
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto;
}

.card-busy-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(224, 122, 47, 0.18);
  border-top-color: #e07a2f;
  border-right-color: #f0a35a;
  animation: card-busy-spin 0.85s linear infinite;
}

.card-busy-chip {
  position: absolute;
  inset: 0.95rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #f6d27a, #c8892e);
  box-shadow: inset 0 0 0 1px rgba(141, 100, 36, 0.35);
  animation: card-busy-pulse 1.4s ease-in-out infinite;
}

@keyframes card-busy-spin {
  to { transform: rotate(360deg); }
}

@keyframes card-busy-pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
}

.toast.toast-soft {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ——— Admin: simple cool slate shell ——— */
.admin-app {
  --admin-bg: #f3f4f6;
  --admin-surface: #ffffff;
  --admin-ink: #111827;
  --admin-muted: #6b7280;
  --admin-line: #e5e7eb;
  --admin-soft: #f9fafb;
  --admin-accent: #111827;
  --admin-danger: #b91c1c;
  --bg: var(--admin-bg);
  --card: var(--admin-surface);
  --ink: var(--admin-ink);
  --muted: var(--admin-muted);
  --line: var(--admin-line);
  --soft: var(--admin-soft);
  --accent: #374151;
  --accent-dark: #111827;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
  background: var(--admin-bg);
  color: var(--admin-ink);
}

.admin-app,
.admin-app * {
  font-family: "Noto Sans Myanmar", sans-serif;
}

.admin-app .wrap {
  max-width: 72rem;
  margin: 0.85rem auto 2rem;
}

.admin-app .toolbox {
  position: sticky;
  top: 0;
  z-index: 25;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.7rem var(--gutter);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--admin-line);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.admin-app .admin-brand .users-link,
.admin-app .admin-brand .users-link:hover {
  color: var(--admin-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.admin-app .admin-brand .users-link.is-current::after {
  display: none;
}

.admin-app button.icon-btn,
.admin-app button.icon-btn:hover,
.admin-app button.drawer-close,
.admin-app button.drawer-close:hover {
  background: var(--admin-soft);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  color: var(--admin-ink);
}

.admin-app a.text-btn,
.admin-app a.text-btn:hover {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-surface);
  color: var(--admin-ink);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.admin-app .drawer {
  padding: 1rem 0.75rem 1.25rem;
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-line);
  box-shadow: 8px 0 24px rgba(17, 24, 39, 0.06);
}

.admin-app .drawer-brand strong {
  color: var(--admin-ink);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.admin-app .drawer-brand span {
  display: inline-flex;
  width: fit-content;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: var(--admin-ink);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.admin-app a.drawer-user,
.admin-app a.drawer-user:hover {
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-app a.drawer-user:hover {
  background: var(--admin-soft);
  border-color: var(--admin-line);
  transform: none;
}

.admin-app .drawer-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--admin-soft);
  color: var(--admin-ink);
  box-shadow: none;
}

.admin-app a.drawer-user.is-current {
  background: var(--admin-ink);
  border-color: var(--admin-ink);
}

.admin-app a.drawer-user.is-current > span:last-child {
  color: #fff;
}

.admin-app a.drawer-user.is-current .drawer-ico {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-app .admin-overview {
  display: block;
  min-height: 0;
  margin: 0 0 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  color: var(--admin-ink);
  background: var(--admin-surface);
  box-shadow: var(--shadow);
  overflow: visible;
}

.admin-overview-copy > span {
  color: var(--admin-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-overview-copy h1 {
  margin: 0.2rem 0 0.25rem;
  color: var(--admin-ink);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.04em;
}

.admin-overview-copy p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.9rem;
}

.admin-overview-mark {
  display: none;
}

.admin-app .admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

@media (min-width: 720px) {
  .admin-app .admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-app .admin-stat {
  min-height: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-surface);
  box-shadow: var(--shadow);
  overflow: visible;
}

.admin-stat-icon {
  display: none;
}

.admin-app .admin-stat-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-app .admin-stat strong {
  display: block;
  color: var(--admin-ink);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.admin-app .admin-stat strong small,
.admin-app .admin-stat > small {
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-app .admin-stat > small {
  display: block;
  margin-top: 0.25rem;
}

.admin-app .users-hero,
.admin-app .admin-page-hero {
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-surface);
  box-shadow: var(--shadow);
}

.admin-app .users-hero {
  background: var(--admin-surface);
  border-color: var(--admin-line);
  color: var(--admin-ink);
}

.admin-app .users-eyebrow,
.admin-app .admin-page-kicker {
  color: var(--admin-muted);
}

.admin-app .users-hero h1,
.admin-app .users-hero h2,
.admin-app .admin-page-hero h1 {
  color: var(--admin-ink);
}

.admin-app .users-hero p,
.admin-app .admin-page-hero > div > p:last-child {
  color: var(--admin-muted);
}

.admin-app .users-counts span {
  background: var(--admin-soft);
  border: 1px solid var(--admin-line);
  color: var(--admin-ink);
}

.admin-app .admin-user,
.admin-app .agent-form,
.admin-app .banner-editor,
.admin-app .feature-settings,
.admin-app .admin-kyc-card,
.admin-app .sheet,
.admin-app .hist-card {
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-surface);
  box-shadow: var(--shadow);
}

.admin-app button:not(.icon-btn):not(.drawer-close):not(.is-danger):not(.banner-dot):not(.banner-control),
.admin-app .admin-kyc-buttons button:not(.is-danger) {
  background: var(--admin-ink);
  border-color: var(--admin-ink);
  color: #fff;
  box-shadow: none;
  border-radius: 10px;
}

.admin-app button:not(.icon-btn):not(.drawer-close):not(.is-danger):not(.banner-dot):not(.banner-control):hover,
.admin-app .admin-kyc-buttons button:not(.is-danger):hover {
  background: #1f2937;
  border-color: #1f2937;
}

.admin-app button.is-danger,
.admin-app .admin-kyc-buttons button.is-danger {
  background: #fff;
  border: 1px solid #fecaca;
  color: var(--admin-danger);
}

.admin-app input,
.admin-app select,
.admin-app textarea {
  border-radius: 10px;
  border-color: var(--admin-line);
  background: #fff;
}

.admin-app .hist-tab,
.admin-app a.hist-tab {
  border-radius: 999px;
  border: 1px solid var(--admin-line);
  background: var(--admin-surface);
  color: var(--admin-muted);
}

.admin-app .hist-tab.is-on,
.admin-app a.hist-tab.is-on {
  background: var(--admin-ink);
  border-color: var(--admin-ink);
  color: #fff;
}

.admin-login-page {
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(244, 140, 6, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 0% 100%, rgba(232, 93, 4, 0.12), transparent 50%),
    #f3f1ee;
}

.admin-login-page,
.admin-login-page * {
  font-family: "Noto Sans Myanmar", sans-serif;
}

.admin-login-page .auth-toolbox {
  display: none;
}

.admin-login-wrap {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
}

.admin-login-page .admin-login-card {
  width: min(100%, 24rem);
  margin: 0;
  padding: 1.5rem 1.35rem 1.4rem;
  border: 1px solid rgba(232, 93, 4, 0.18);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(40, 24, 10, 0.08);
}

.admin-login-page .admin-login-mark {
  color: #e85d04;
  letter-spacing: 0.1em;
}

.admin-login-page .admin-login-card h1 {
  margin: 0.15rem 0 0.35rem;
  color: #14110f;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.admin-login-sub {
  margin: 0 0 0.35rem;
  color: #6b645c;
  font-size: 0.88rem;
  line-height: 1.4;
}

.admin-login-page .auth-button,
.admin-login-page .auth-button:hover {
  background: linear-gradient(180deg, #f48c06, #e85d04);
  border-color: #d97706;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(232, 93, 4, 0.25);
}

.admin-login-page input {
  border-radius: 10px;
  border-color: #e6e0d8;
}

/* PC admin shell: fixed sidebar + content */
@media (min-width: 980px) {
  .admin-app {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    grid-template-rows: 3.35rem minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
  }

  .admin-app > .toolbox {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .admin-app > .drawer-backdrop {
    display: none !important;
  }

  .admin-app > .drawer {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: 0;
    left: auto;
    width: 15.5rem;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    transform: none !important;
    box-shadow: none;
    border-right: 1px solid var(--admin-line);
    z-index: 20;
  }

  .admin-app > .wrap {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    max-width: none;
    margin: 1rem 1.35rem 2rem;
  }

  .admin-app #open-drawer,
  .admin-app .drawer-close {
    display: none !important;
  }

  .admin-app.drawer-lock {
    overflow: auto;
  }

  .admin-app .drawer-brand {
    padding: 0.15rem 0.35rem 0.55rem;
  }

  .admin-app .admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-app .game-packs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.85rem;
  }
}

/* Admin games / content polish */
.admin-app .coin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-surface);
  box-shadow: var(--shadow);
}

.admin-app .coin-now {
  margin: 0;
  color: var(--admin-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-app .coin-box summary {
  border-radius: 8px;
  border: 1px solid var(--admin-line);
  background: var(--admin-soft);
}

.admin-app .cashin-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-surface);
  box-shadow: var(--shadow);
}

.admin-app .cashin-head h1 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.admin-app .cashin-head .game-logo {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--admin-line);
}

.admin-app .cashin-back {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  background: var(--admin-soft);
  color: var(--admin-ink);
  text-decoration: none;
}

.admin-app .game-packs {
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-surface);
  box-shadow: var(--shadow);
}

.admin-app .game-pack,
.admin-app div.game-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-soft);
  box-shadow: none;
}

.admin-app .game-pack b {
  color: var(--admin-ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.admin-app .pack-prices {
  color: var(--admin-ink);
}

.admin-app .pack-prices strong {
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.admin-app .game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.75rem;
}

.admin-app .game-admin-item {
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--admin-surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-app .game-tile {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  color: var(--admin-ink);
  text-decoration: none;
}

.admin-app .game-tile img,
.admin-app .game-logo-fallback {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  background: var(--admin-soft);
  border: 1px solid var(--admin-line);
}

.admin-app .game-tile span {
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-app .game-tile small {
  color: var(--admin-muted);
}

.admin-app .game-logo-upload-compact {
  display: grid;
  gap: 0.4rem;
  padding: 0 0.85rem 0.85rem;
}

/* ——— Admin color + mobile drawer fix ——— */
.admin-app {
  --admin-bg: #f3f1ee;
  --admin-surface: #ffffff;
  --admin-ink: #14110f;
  --admin-muted: #6b645c;
  --admin-line: #e6e0d8;
  --admin-soft: #faf7f3;
  --admin-accent: #e85d04;
  --admin-accent-2: #f48c06;
  --admin-accent-soft: #fff1e4;
  --admin-danger: #dc2626;
  --bg: var(--admin-bg);
  --card: var(--admin-surface);
  --ink: var(--admin-ink);
  --muted: var(--admin-muted);
  --line: var(--admin-line);
  --soft: var(--admin-soft);
  --accent: var(--admin-accent);
  --accent-dark: #9a3412;
  --shadow: 0 10px 28px rgba(40, 24, 10, 0.07);
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(244, 140, 6, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 0% 10%, rgba(232, 93, 4, 0.1), transparent 50%),
    var(--admin-bg);
}

.admin-app .toolbox {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(230, 224, 216, 0.95);
}

.admin-app a.text-btn,
.admin-app a.text-btn:hover {
  border-color: rgba(232, 93, 4, 0.28);
  color: var(--admin-accent);
  background: #fff;
}

.admin-app a.text-btn:hover {
  background: var(--admin-accent-soft);
}

.admin-app button.icon-btn,
.admin-app button.icon-btn:hover,
.admin-app button.drawer-close,
.admin-app button.drawer-close:hover {
  border-color: rgba(232, 93, 4, 0.22);
  background: linear-gradient(180deg, #fff, var(--admin-soft));
  color: var(--admin-ink);
}

.admin-app .drawer {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.65rem 0.85rem;
  background: #fffdfb;
  border-right: 1px solid #e8e0d6;
  box-shadow: 8px 0 24px rgba(40, 24, 10, 0.06);
  color: #1c1410;
}

.admin-app .drawer-brand strong {
  color: #1c1410;
  font-size: 1.08rem;
}

.admin-app .drawer-brand span {
  background: #e85d04;
  color: #fff;
  border: none;
}

.admin-app .drawer-close {
  color: #1c1410 !important;
  background: #f5f0ea !important;
  border-color: #e8e0d6 !important;
}

.admin-app .drawer-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 0.18rem;
  padding-right: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.admin-app a.drawer-user,
.admin-app a.drawer-user:hover {
  min-height: 2.35rem;
  padding: 0.3rem 0.45rem;
  border-radius: 10px;
  color: #1c1410;
}

.admin-app a.drawer-user:hover {
  background: #fff4ea;
  border-color: #f0dcc8;
}

.admin-app a.drawer-user > span:last-child {
  color: #1c1410;
  font-size: 0.86rem;
  font-weight: 650;
}

.admin-app .drawer-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: #fff4ea;
  color: #9a3412;
  box-shadow: none;
}

.admin-app .drawer-ico svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-app a.drawer-user.is-current {
  background: #fff1e4;
  border-color: #f0c49a;
  box-shadow: none;
}

.admin-app a.drawer-user.is-current > span:last-child {
  color: #9a3412;
}

.admin-app a.drawer-user.is-current .drawer-ico {
  background: #e85d04;
  color: #fff;
}

.admin-app .admin-overview {
  border: 1px solid rgba(232, 93, 4, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 241, 228, 0.85), rgba(255, 255, 255, 0.96) 55%),
    var(--admin-surface);
}

.admin-app .admin-stat {
  border: 1px solid var(--admin-line);
  border-left: 3px solid var(--admin-accent);
  background: var(--admin-surface);
}

.admin-app .admin-stat:nth-child(2) { border-left-color: #f48c06; }
.admin-app .admin-stat:nth-child(3) { border-left-color: #2563eb; }
.admin-app .admin-stat:nth-child(4) { border-left-color: #16a34a; }

.admin-app button:not(.icon-btn):not(.drawer-close):not(.is-danger):not(.banner-dot):not(.banner-control),
.admin-app .admin-kyc-buttons button:not(.is-danger) {
  background: linear-gradient(180deg, #f48c06, #e85d04);
  border: 1px solid #d97706;
  color: #fff;
}

.admin-app button:not(.icon-btn):not(.drawer-close):not(.is-danger):not(.banner-dot):not(.banner-control):hover,
.admin-app .admin-kyc-buttons button:not(.is-danger):hover {
  background: linear-gradient(180deg, #ff9f1c, #e85d04);
  filter: none;
}

.admin-app .hist-tab.is-on,
.admin-app a.hist-tab.is-on {
  background: var(--admin-accent);
  border-color: var(--admin-accent);
  color: #fff;
}

.admin-app .coin-bar,
.admin-app .cashin-head,
.admin-app .game-packs,
.admin-app .game-admin-item {
  border-color: rgba(232, 93, 4, 0.14);
}

.admin-app .game-pack,
.admin-app div.game-pack {
  border-color: rgba(232, 93, 4, 0.12);
  background: linear-gradient(180deg, #fff, #fff8f1);
}

.admin-app .pack-prices strong {
  color: var(--admin-accent);
}

.admin-app .admin-brand .users-link,
.admin-app .admin-brand .users-link:hover {
  color: var(--admin-accent-dark);
}

/* Mobile: shorter drawer panel + compact nav */
@media (max-width: 979px) {
  .admin-app .drawer.admin-side,
  .admin-app > .drawer {
    top: 0;
    bottom: auto;
    width: min(16.5rem, 78vw);
    height: min(100dvh, 100vh);
    max-height: min(100dvh, 100vh);
    padding: 0.55rem 0.55rem 0.7rem;
  }

  .admin-app .drawer-head {
    margin-bottom: 0.45rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .admin-app .drawer-brand strong {
    font-size: 0.98rem;
  }

  .admin-app .drawer-brand span {
    font-size: 0.58rem;
    padding: 0.08rem 0.32rem;
  }

  .admin-app .drawer-nav {
    gap: 0.1rem;
  }

  .admin-app a.drawer-user,
  .admin-app a.drawer-user:hover {
    min-height: 2.05rem;
    padding: 0.22rem 0.4rem;
    gap: 0.5rem;
    border-radius: 8px;
  }

  .admin-app a.drawer-user > span:last-child {
    font-size: 0.8rem;
  }

  .admin-app .drawer-ico {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 7px;
  }

  .admin-app .drawer-ico svg {
    width: 0.92rem;
    height: 0.92rem;
  }
}

@media (min-width: 980px) {
  .admin-app > .drawer {
    background: #fffdfb;
    border-right: 1px solid #e8e0d6;
    box-shadow: none;
  }

  .admin-app .drawer-nav {
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 979px) {
  .admin-app .drawer-head {
    border-bottom-color: #e8e0d6 !important;
  }
}

/* Shared empty list state — centered, same everywhere */
.admin-app .drawer-empty,
.admin-app .empty {
  display: grid;
  place-content: center;
  place-items: center;
  width: 100%;
  min-height: 12.5rem;
  margin: 1rem 0 1.5rem;
  padding: 2rem 1.25rem;
  text-align: center;
  color: #6b645c;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.5;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 241, 228, 0.9), transparent 70%),
    #fff;
  border: 1px solid #ebe4db;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(40, 24, 10, 0.04);
}

.admin-app .empty strong {
  color: #1c1410;
  font-size: 1.02rem;
}

.admin-app .empty span {
  color: #6b645c;
}

@media (max-width: 979px) {
  .admin-app .empty {
    min-height: 7rem;
    margin: 0.75rem 0 1rem;
    padding: 1.25rem 1rem;
  }
}

/* Admin games / gift grid: full logos + 3-col mobile + shell align */
.admin-app .game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.admin-app .game-admin-item {
  min-width: 0;
  overflow: hidden;
}

.admin-app .game-tile,
.admin-app a.game-tile,
.admin-app a.game-tile:hover {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.5rem 0.4rem 0.45rem;
  text-align: center;
  box-shadow: none;
}

.admin-app .game-tile img,
.admin-app .game-logo-fallback {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--admin-line, #e6e0d8);
}

.admin-app .cashin-head .game-logo {
  object-fit: contain;
  background: #fff;
}

.admin-app .game-tile span {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-app .game-tile small {
  font-size: 0.62rem;
}

.admin-app .game-logo-upload-compact {
  gap: 0.3rem;
  margin: 0;
  padding: 0.35rem 0.4rem 0.5rem;
}

.admin-app .game-logo-upload-compact input[type="file"] {
  width: 100%;
  font-size: 0.58rem;
}

.admin-app .game-logo-upload-compact button,
.admin-app .game-logo-upload-compact button:hover {
  width: 100%;
  min-height: 1.7rem;
  margin: 0;
  padding: 0.25rem 0.35rem;
  font-size: 0.68rem;
  border-radius: 8px;
}

@media (min-width: 720px) {
  .admin-app .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .admin-app .game-tile span {
    font-size: 0.8rem;
  }
}

@media (min-width: 1100px) {
  .admin-app .game-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Keep drawer + content columns aligned (cancel old margin-left layout) */
@media (min-width: 980px) {
  .admin-app {
    --admin-side: 15.5rem;
  }

  .admin-app > .toolbox,
  .admin-app .toolbox {
    margin-left: 0 !important;
    width: auto;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .admin-app > .wrap,
  .admin-app .wrap {
    margin-left: 1.35rem !important;
    margin-right: 1.35rem !important;
    width: auto;
    max-width: none;
  }

  .admin-app .drawer.admin-side,
  .admin-app > .drawer {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    width: var(--admin-side) !important;
    max-width: none;
    height: 100dvh !important;
    max-height: 100dvh !important;
    transform: none !important;
  }
}

@media (max-width: 979px) {
  .admin-app {
    --admin-pad: 0.95rem;
    --admin-radius: 14px;
  }

  .admin-app .toolbox {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.7rem var(--admin-pad);
    box-sizing: border-box;
  }

  .admin-app .admin-brand {
    gap: 0.55rem;
    min-width: 0;
  }

  .admin-app .admin-brand .users-link,
  .admin-app .admin-brand .users-link:hover {
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-app a.text-btn,
  .admin-app a.text-btn:hover {
    flex: none;
    padding: 0.38rem 0.7rem;
    border-radius: 10px;
    font-size: 0.78rem;
  }

  .admin-app button.icon-btn,
  .admin-app button.icon-btn:hover {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
  }

  .admin-app > .wrap,
  .admin-app .wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0.75rem 0 1.4rem;
    padding: 0 var(--admin-pad) 1rem;
  }

  .admin-app .drawer.admin-side,
  .admin-app > .drawer {
    top: 0;
    bottom: 0;
    width: min(17.5rem, 82vw);
    height: 100dvh;
    max-height: 100dvh;
    padding: 0.85rem var(--admin-pad) calc(0.85rem + env(safe-area-inset-bottom));
    background: #fffdfb;
    border-right: 1px solid #e8e0d6;
    box-shadow: 12px 0 28px rgba(40, 24, 10, 0.14);
    box-sizing: border-box;
  }

  .admin-app .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin: 0 0 0.65rem;
    padding: 0 0 0.65rem;
    border-bottom: 1px solid #e8e0d6 !important;
  }

  .admin-app .drawer-brand {
    gap: 0.2rem;
  }

  .admin-app .drawer-brand strong {
    color: #1c1410;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
  }

  .admin-app .drawer-brand span {
    background: #e85d04;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.6rem;
    padding: 0.1rem 0.36rem;
  }

  .admin-app .drawer-close,
  .admin-app .drawer-close:hover {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
    color: #1c1410 !important;
    background: #f5f0ea !important;
    border: 1px solid #e8e0d6 !important;
  }

  .admin-app .drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0;
    margin: 0;
  }

  .admin-app a.drawer-user,
  .admin-app a.drawer-user:hover {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.45rem;
    margin: 0;
    padding: 0.4rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    color: #1c1410;
  }

  .admin-app a.drawer-user + a.drawer-user {
    margin-top: 0;
  }

  .admin-app a.drawer-user:hover {
    background: #fff4ea;
    border-color: #f0dcc8;
  }

  .admin-app a.drawer-user.is-current {
    background: #fff1e4;
    border-color: #f0c49a;
  }

  .admin-app a.drawer-user > span:last-child {
    color: #1c1410;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.2;
  }

  .admin-app a.drawer-user.is-current > span:last-child {
    color: #9a3412;
  }

  .admin-app .drawer-ico {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 9px;
    background: #fff4ea;
    color: #9a3412;
  }

  .admin-app a.drawer-user.is-current .drawer-ico {
    background: #e85d04;
    color: #fff;
  }

  .admin-app .drawer-backdrop.is-open {
    background: rgba(20, 16, 12, 0.42);
  }

  /* Outer cards / text match drawer language */
  .admin-app .coin-bar,
  .admin-app .cashin-head,
  .admin-app .game-packs,
  .admin-app .game-admin-item,
  .admin-app .admin-user,
  .admin-app .admin-card-user,
  .admin-app .admin-card-app,
  .admin-app .feature-settings,
  .admin-app .agent-form,
  .admin-app .banner-editor,
  .admin-app .admin-crypto-settings,
  .admin-app .bill-rate-card,
  .admin-app .admin-card-fees,
  .admin-app .admin-overview,
  .admin-app .drawer-empty,
  .admin-app .empty {
    border-radius: var(--admin-radius);
    border-color: #e8e0d6;
  }

  .admin-app .hist-tabs {
    gap: 0.35rem;
    margin: 0 0 0.85rem;
  }

  .admin-app a.hist-tab,
  .admin-app a.hist-tab:hover,
  .admin-app .hist-tab {
    border-radius: 10px;
    font-size: 0.8rem;
  }

  .admin-app .game-tile span,
  .admin-app .cashin-head h1,
  .admin-app .admin-brand .users-link {
    letter-spacing: -0.02em;
  }
}

/* Crypto cash-in sheet: centered, scrollable, mobile friendly */
.crypto-cashin-back {
  align-items: center;
  overflow-y: auto;
  padding: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.crypto-cashin-sheet {
  width: min(100%, 28rem);
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0 1rem 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.crypto-cashin-sheet .sheet-head {
  position: relative;
  z-index: 2;
  background: #fff;
}

.crypto-cashin-sheet .crypto-cashin-steps {
  margin: 0.5rem 0 0.8rem;
}

.crypto-cashin-sheet .mmqr-cashin-form {
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.crypto-cashin-sheet .mmqr-cashin-form button {
  min-height: 2.8rem;
}

.crypto-cashin-sheet .cashin-card-state {
  margin: 0.5rem 0;
  text-align: center;
}

.crypto-cashin-sheet .crypto-rate {
  margin: 0.3rem 0;
  overflow-wrap: anywhere;
}

.crypto-cashin-sheet #crypto-total-amount {
  color: var(--accent-dark);
  font-size: 1.15rem;
  font-weight: 800;
  user-select: all;
}

.crypto-cashin-sheet .crypto-address-row {
  align-items: center;
  justify-content: space-between;
}

.crypto-cashin-sheet .crypto-address-row code {
  flex: 1 1 auto;
  word-break: break-all;
}

.crypto-cashin-sheet .crypto-address-row .copy-btn {
  flex: none;
  width: auto;
}

@media (max-width: 480px) {
  .crypto-cashin-back {
    padding: 0.5rem;
  }

  .crypto-cashin-sheet {
    width: 100%;
    max-height: calc(100dvh - 1rem);
    padding: 0 0.8rem 0.9rem;
    border-radius: 16px;
  }

  .crypto-cashin-sheet .crypto-network-warning {
    font-size: 0.72rem;
  }

  .crypto-cashin-sheet .crypto-address-row code {
    font-size: 0.72rem;
  }

  .crypto-cashin-sheet .crypto-address-qr {
    width: 11rem;
  }

  .crypto-cashin-sheet .crypto-address-qr-image {
    max-width: 10rem;
  }

  .crypto-cashin-sheet .crypto-rate {
    font-size: 0.74rem;
  }

  .crypto-cashin-sheet #crypto-total-amount {
    font-size: 1.05rem;
  }
}
