/* ============================================================
   NexGlobal — light fintech dashboard
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbfaff;
  --surface-3: #f4f1fd;
  --ink: #171233;
  --ink-2: #2b2350;
  --muted: #6b6688;
  --muted-2: #928dab;
  --line: #ece8f7;
  --line-strong: #ddd7ee;
  --brand: #6d4df0;
  --brand-2: #8b6cf6;
  --brand-soft: #f2edff;
  --brand-ink: #ffffff;
  --blue: #2f7cf6;
  --blue-soft: #eef4ff;
  --gold: #e9a400;
  --gold-soft: #fff7e0;
  --violet: #7c5cf0;
  --violet-soft: #f2efff;
  --red: #dc3545;
  --red-soft: #fff0f1;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 61, 0.04);
  --shadow: 0 18px 42px -28px rgba(15, 31, 61, 0.22);
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

::selection {
  background: rgba(109, 77, 240, 0.16);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ------------------------------------------------------------- layout */
.app-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px 16px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  overflow-y: auto;
  scrollbar-width: thin;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  backdrop-filter: blur(16px);
}

.topbar-title {
  min-width: 0;
  flex: 1;
}

.topbar-title h1 {
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-title p {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 28px 40px;
  flex: 1;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 24px;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.app-footer-links {
  display: flex;
  gap: 16px;
}

.app-footer a:hover {
  color: var(--brand);
}

/* ------------------------------------------------------------- brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(145deg, #9b7ff8, #6d4df0 55%, #e9a400);
  box-shadow: 0 8px 18px -10px rgba(109, 77, 240, 0.55);
}

.brand-mark.admin-mark {
  background: linear-gradient(145deg, #253a5e, #0b1b33);
  box-shadow: 0 8px 18px -10px rgba(11, 27, 51, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.brand-text small {
  color: var(--muted-2);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- sidebar nav */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  display: block;
  padding: 8px 10px 5px;
  color: var(--muted-2);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-label-gap {
  margin-top: 9px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
  transition: 140ms ease;
}

.nav-link svg {
  width: 17px;
  height: 17px;
  opacity: 0.75;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-link.is-active {
  color: #5b35e0;
  background: var(--brand-soft);
}

.nav-link.is-active svg {
  opacity: 1;
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 20px;
  background: #fff1d6;
  color: #9a5b00;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
}

.sidebar-referral {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.sidebar-referral > span {
  color: var(--muted-2);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sidebar-referral > strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.mini-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.mini-copy svg {
  width: 12px;
  height: 12px;
}

.mini-copy:hover {
  color: var(--brand);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 4px 0;
  border-top: 1px solid var(--line);
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.sidebar-user-meta strong {
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-meta small {
  color: var(--muted-2);
  font-size: 0.63rem;
}

.admin-sidebar-note .mini-copy {
  color: var(--ink-2);
}

.sidebar-backdrop {
  display: none;
}

/* ------------------------------------------------------------- avatars & icons */
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ddd3ff;
  background: var(--brand-soft);
  color: #5b35e0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.61rem;
}

.avatar-xs {
  width: 28px;
  height: 28px;
  font-size: 0.56rem;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 0.95rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  transition: 140ms ease;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.icon-btn.ghost {
  border-color: transparent;
  background: none;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.menu-btn {
  display: none;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #ddd3ff;
  border-radius: 8px;
  background: var(--brand-soft);
  font-size: 0.68rem;
}

.balance-pill span {
  color: #4f7566;
}

.balance-pill strong {
  color: #5b35e0;
  font-size: 0.75rem;
}

.balance-pill.is-topup {
  border-color: #d8e6ff;
  background: var(--blue-soft);
}

.balance-pill.is-topup span {
  color: #5d7192;
}

.balance-pill.is-topup strong {
  color: #1f5fc4;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid #e0e7f0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-chip svg {
  width: 13px;
  height: 13px;
}

/* ------------------------------------------------------------- headings */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.page-head h2 {
  margin-top: 3px;
  font-size: clamp(1.45rem, 2.1vw, 1.8rem);
  font-weight: 800;
}

.page-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-head-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-head-person h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0;
}

.page-head-person p {
  margin-top: 2px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.muted-text {
  color: var(--muted);
  font-size: 0.75rem;
}

.fine-print {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.55;
}

.fine-print svg {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

.text-mint { color: var(--brand) !important; }
.text-red { color: var(--red) !important; }
.text-muted { color: var(--muted-2) !important; }

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-size: 0.73rem;
  font-weight: 800;
}

.link-inline svg {
  width: 13px;
  height: 13px;
}

.link-inline:hover {
  color: #5b35e0;
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.79rem;
  font-weight: 800;
  white-space: nowrap;
  transition: 140ms ease;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #8468f4, #5b35e0);
  box-shadow: 0 8px 18px -10px rgba(109, 77, 240, 0.6);
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-ghost {
  color: var(--ink-2);
  border-color: var(--line-strong);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: #c9bbff;
  background: var(--brand-soft);
  color: #5b35e0;
}

.btn-warning {
  color: #6b3c00;
  background: #ffe9bd;
}

.btn-danger-ghost {
  color: var(--red);
  border-color: #f4c9ce;
  background: var(--red-soft);
}

.btn-danger-ghost:hover {
  background: #ffe2e5;
}

.btn-block {
  width: 100%;
}

.btn-small {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 0.7rem;
  border-radius: 8px;
}

.btn-small svg {
  width: 13px;
  height: 13px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.btn-count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.62rem;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ------------------------------------------------------------- flash */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 13px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.78rem;
  box-shadow: var(--shadow-sm);
  animation: flash-in 220ms ease both;
}

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.flash-icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.flash-success {
  border-color: #d9ceff;
  background: #f0fbf6;
  color: #5b35e0;
}

.flash-error {
  border-color: #f4c9ce;
  background: var(--red-soft);
  color: #b42333;
}

.flash-info {
  border-color: #d8e6ff;
  background: var(--blue-soft);
  color: #1f5fc4;
}

.flash-warning {
  border-color: #f5dfb3;
  background: var(--gold-soft);
  color: #8a5402;
}

/* ------------------------------------------------------------- cards */
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card + .card {
  margin-top: 14px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 15px;
}

.card-head-wrap {
  flex-wrap: wrap;
  align-items: center;
}

.card-head h3 {
  margin-top: 1px;
  font-size: 1.02rem;
  font-weight: 800;
}

.card-head-icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}

.divider {
  height: 1px;
  margin: 16px 0;
  border: 0;
  background: var(--line);
}

.content-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.content-grid-main {
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
}

.content-grid-admin {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* ------------------------------------------------------------- stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 18px;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--tone, var(--brand));
  background: var(--tone-soft, var(--brand-soft));
  flex-shrink: 0;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-label {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 1px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-hint {
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 0.65rem;
}

.tone-mint { --tone: var(--brand); --tone-soft: var(--brand-soft); }
.tone-blue { --tone: var(--blue); --tone-soft: var(--blue-soft); }
.tone-gold { --tone: var(--gold); --tone-soft: var(--gold-soft); }
.tone-violet { --tone: var(--violet); --tone-soft: var(--violet-soft); }
.tone-red { --tone: var(--red); --tone-soft: var(--red-soft); }

/* ------------------------------------------------------------- notices */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.notice > svg {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  flex-shrink: 0;
}

.notice > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.notice strong {
  font-size: 0.82rem;
}

.notice span {
  color: var(--muted);
  font-size: 0.73rem;
}

.notice-warning {
  border-color: #f5dfb3;
  background: #fffdf7;
}

.notice-warning > svg { color: var(--gold); }

.notice-info {
  border-color: #d8e6ff;
  background: #f8fbff;
}

.notice-info > svg { color: var(--blue); }

.notice-success {
  border-color: #d9ceff;
  background: #f7fdfa;
}

.notice-success > svg { color: var(--brand); }

/* ------------------------------------------------------------- package card */
.package-card {
  background:
    radial-gradient(420px 180px at 95% 0%, rgba(109, 77, 240, 0.07), transparent 70%),
    var(--surface);
}

.package-visual {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 18px 0;
}

.cap-ring {
  --cap: 0;
  position: relative;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--cap) * 1%), #f0ecfa 0);
}

.cap-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--surface);
}

.cap-ring > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.cap-ring strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand);
}

.cap-ring span {
  color: var(--muted-2);
  font-size: 0.6rem;
}

.package-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  flex: 1;
}

.package-numbers > div {
  display: flex;
  flex-direction: column;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.package-numbers span {
  color: var(--muted-2);
  font-size: 0.64rem;
}

.package-numbers strong {
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-weight: 800;
}

.package-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------- progress */
.progress-wrap {
  width: 100%;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 0.65rem;
}

.progress {
  height: 7px;
  border-radius: 20px;
  background: #edf2f7;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #6d4df0, #e9a400);
  transition: width 500ms ease;
}

/* ------------------------------------------------------------- mini stats */
.mini-stat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 13px;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tone-soft, var(--brand-soft));
  color: var(--tone, var(--brand));
  flex-shrink: 0;
}

.mini-icon svg {
  width: 16px;
  height: 16px;
}

.mini-stat div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mini-stat span {
  color: var(--muted-2);
  font-size: 0.64rem;
}

.mini-stat strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.live-dot span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: livepulse 2s infinite;
}

@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(109, 77, 240, 0.35); }
  70% { box-shadow: 0 0 0 6px rgba(109, 77, 240, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 77, 240, 0); }
}

/* ------------------------------------------------------------- levels */
.level-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.level-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.level-row.is-unlocked {
  border-color: #d9ceff;
  background: #f7fdfa;
}

.level-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.67rem;
  font-weight: 800;
  flex-shrink: 0;
}

.level-row.is-unlocked .level-badge {
  color: #fff;
  background: linear-gradient(145deg, #8b6cf6, #6d4df0);
}

.level-info {
  flex: 1;
  min-width: 0;
}

.level-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.level-top strong {
  font-size: 0.8rem;
}

.level-top span {
  color: var(--brand);
  font-size: 0.66rem;
  font-weight: 700;
}

.level-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 0.63rem;
}

.level-state {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  white-space: nowrap;
}

.level-state svg {
  width: 10px;
  height: 10px;
}

.state-on {
  color: #5b35e0;
  background: var(--brand-soft);
}

.state-ready {
  color: #1f5fc4;
  background: var(--blue-soft);
}

.state-off {
  color: var(--muted-2);
  background: var(--surface-3);
}

/* ------------------------------------------------------------- activity */
.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.activity-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: var(--tone-soft, var(--brand-soft));
  color: var(--tone, var(--brand));
  flex-shrink: 0;
}

.activity-icon svg {
  width: 14px;
  height: 14px;
}

.activity-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.activity-body strong {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-body span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 0.62rem;
}

.activity-amount {
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.activity-amount.is-positive { color: var(--brand); }
.activity-amount.is-negative { color: var(--red); }

/* ------------------------------------------------------------- cta strip */
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid #ddd3ff;
  border-radius: var(--radius);
  background:
    radial-gradient(420px 160px at 8% 0%, rgba(109, 77, 240, 0.1), transparent 70%),
    #f8fdfb;
}

.cta-strip h3 {
  margin-top: 3px;
  font-size: 1.12rem;
}

.cta-strip p {
  margin-top: 4px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.76rem;
}

.cta-strip-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ------------------------------------------------------------- badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.5;
}

.badge-pending { color: #8a5402; border-color: #f5dfb3; background: var(--gold-soft); }
.badge-active,
.badge-approved,
.badge-paid,
.badge-completed,
.badge-mint { color: #5b35e0; border-color: #d9ceff; background: var(--brand-soft); }
.badge-rejected,
.badge-suspended,
.badge-cancelled { color: #b42333; border-color: #f4c9ce; background: var(--red-soft); }
.badge-info { color: #1f5fc4; border-color: #d8e6ff; background: var(--blue-soft); }
.badge-default { color: var(--muted); background: var(--surface-3); }

/* ------------------------------------------------------------- tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.data-table th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted-2);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fbfcfe;
}

.data-table.compact td {
  padding: 7px 9px;
}

.table-primary {
  font-weight: 700;
}

.table-sub {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 0.63rem;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.person-cell > span:last-child,
.person-cell > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.person-cell strong {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.person-cell small {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.lead-message {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.69rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 15px;
  color: var(--muted-2);
  font-size: 0.69rem;
}

/* ------------------------------------------------------------- empty */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 30px 14px;
  text-align: center;
}

.empty-icon {
  width: 32px;
  height: 32px;
  color: var(--muted-2);
  opacity: 0.7;
}

.empty-state h3 {
  margin-top: 3px;
  font-size: 0.92rem;
}

.empty-state p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.73rem;
}

.empty-state .btn {
  margin-top: 7px;
}

/* ------------------------------------------------------------- forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field > span {
  color: var(--ink-2);
  font-size: 0.67rem;
  font-weight: 700;
}

.field > span em {
  color: var(--muted-2);
  font-style: normal;
  font-weight: 500;
}

.field-full {
  grid-column: 1 / -1;
}

.field-hint {
  color: var(--muted-2);
  font-size: 0.63rem;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.input-wrap:focus-within {
  border-color: #a58ef6;
  box-shadow: 0 0 0 3px rgba(109, 77, 240, 0.08);
}

.input-wrap > svg {
  width: 15px;
  height: 15px;
  margin-left: 11px;
  color: var(--muted-2);
  flex-shrink: 0;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.8rem;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: #a6b3c2;
}

.input-wrap select {
  appearance: none;
  cursor: pointer;
}

.input-wrap > svg + input,
.input-wrap > svg + select,
.input-wrap > svg + textarea {
  padding-left: 7px;
}

.textarea-wrap {
  align-items: flex-start;
}

.textarea-wrap > svg {
  margin-top: 11px;
}

.input-wrap textarea {
  resize: vertical;
  min-height: 82px;
  line-height: 1.5;
}

.input-prefix {
  padding: 0 0 0 11px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.amount-input input {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 1px;
}

.form-actions .muted-text {
  max-width: 38ch;
}

.form-errors {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 13px;
  padding: 11px 13px;
  border: 1px solid #f4c9ce;
  border-radius: 9px;
  background: var(--red-soft);
  color: #b42333;
  font-size: 0.76rem;
}

.form-errors > svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-errors ul {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.5;
  cursor: pointer;
}

.check-field input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.check-field.compact {
  font-size: 0.68rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

/* ------------------------------------------------------------- auth */
.auth-body {
  background: #ffffff;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 100vh;
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  overflow: hidden;
}

.auth-brand-copy {
  margin: auto 0;
  max-width: 440px;
}

.auth-brand-copy h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.auth-brand-copy h1 span {
  color: var(--brand);
}

.auth-brand-copy p {
  margin-top: 14px;
  max-width: 40ch;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.auth-brand-stats {
  display: flex;
  gap: 26px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #d8e5e0;
}

.auth-brand-stats > div {
  display: flex;
  flex-direction: column;
}

.auth-brand-stats strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.auth-brand-stats span {
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-brand-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  color: var(--muted-2);
  font-size: 0.65rem;
}

.auth-brand-foot a {
  color: var(--muted);
}

.auth-brand-foot a:hover {
  color: var(--brand);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.auth-card {
  width: 100%;
  max-width: 540px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 80px -50px rgba(15, 31, 61, 0.35);
}

.auth-head {
  margin-bottom: 18px;
}

.auth-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.auth-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.77rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form .btn-block {
  margin-top: 5px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.link-muted {
  color: var(--muted);
  font-size: 0.68rem;
}

.link-muted:hover {
  color: var(--brand);
}

.auth-switch {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.auth-switch a {
  color: var(--brand);
  font-weight: 800;
}

.auth-help {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 0.65rem;
  text-align: center;
}

.auth-bottom-note {
  margin-top: 15px;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.auth-bottom-note a {
  color: var(--brand);
}

.sponsor-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 10px;
  border: 1px solid #ddd3ff;
  border-radius: 9px;
  background: var(--brand-soft);
}

.sponsor-chip > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sponsor-chip small {
  color: var(--muted-2);
  font-size: 0.6rem;
}

.sponsor-chip strong {
  font-size: 0.73rem;
}

.sponsor-check {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.payment-mini {
  padding: 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
}

.payment-mini-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}

.payment-mini-head > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 800;
}

.payment-mini-head em {
  color: var(--muted-2);
  font-style: normal;
  font-weight: 500;
}

.payment-mini-head small {
  color: var(--muted-2);
  font-size: 0.61rem;
}

.payment-mini .field-row {
  gap: 9px;
}

.payment-mini .field > span {
  font-size: 0.62rem;
}

/* ------------------------------------------------------------- payment desk */
.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

a.pay-method:hover {
  border-color: #d9ceff;
  background: #f7fdfa;
}

.pay-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.pay-icon svg {
  width: 16px;
  height: 16px;
}

.pay-icon.wa { color: #0f9f6e; background: #e8f8f2; }
.pay-icon.ep { color: #b7791f; background: #fff6e6; }
.pay-icon.bank { color: #2f7cf6; background: #eef4ff; }

.pay-method > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.pay-method small {
  color: var(--muted-2);
  font-size: 0.6rem;
}

.pay-method strong {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.pay-ext {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}

.pay-bank-full {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 0.6rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pay-method .mini-copy {
  align-self: center;
}

.payment-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.payment-status > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.payment-status strong {
  font-size: 0.73rem;
}

.payment-status span {
  color: var(--muted-2);
  font-size: 0.63rem;
}

.payment-status.pending {
  border-color: #f5dfb3;
  background: #fffdf7;
}

.payment-status.rejected {
  border-color: #f4c9ce;
  background: #fff8f8;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.payment-status.rejected .status-dot {
  background: var(--red);
}

/* ------------------------------------------------------------- details & timeline */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 16px;
}

.detail {
  display: flex;
  flex-direction: column;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.detail span,
.detail-list > div > span {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.detail strong {
  font-size: 0.8rem;
}

.detail-list {
  display: flex;
  flex-direction: column;
}

.detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list strong {
  font-size: 0.74rem;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.timeline {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.timeline-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 16px;
  opacity: 0.55;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 2px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-dot {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-dot svg {
  width: 12px;
  height: 12px;
}

.timeline-step.is-done {
  opacity: 1;
}

.timeline-step.is-done .timeline-dot {
  border-color: #b7e6d5;
  background: var(--brand-soft);
  color: var(--brand);
}

.timeline-step > div {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}

.timeline-step strong {
  font-size: 0.75rem;
}

.timeline-step span {
  color: var(--muted-2);
  font-size: 0.63rem;
}

.inline-stats {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.inline-stats > span {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted-2);
  font-size: 0.64rem;
}

.inline-stats strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
}

.re-topup-form {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.anchor-card {
  scroll-margin-top: 90px;
}

/* ------------------------------------------------------------- copy & invite */
.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
}

.copy-box > span {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-box.link > span {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0;
}

.invite-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 11px;
}

.bonus-ladder {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bonus-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.bonus-level {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.bonus-level svg {
  width: 14px;
  height: 14px;
}

.bonus-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bonus-info strong {
  font-size: 0.74rem;
}

.bonus-info span {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.bonus-amount {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.rule-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.rule-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--tone-soft);
  color: var(--tone);
}

.rule-icon svg {
  width: 15px;
  height: 15px;
}

.rule-card strong {
  display: block;
  font-size: 0.77rem;
}

.rule-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------- wallet */
.earning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.earning-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.earning-card > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.earning-card span {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.earning-card strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
}

.split-visual .split-bar {
  display: flex;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.65rem;
  font-weight: 800;
}

.split-visual .split-bar > span {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8b6cf6, #6d4df0);
  color: #fff;
}

.split-visual .split-bar .topup-part {
  background: linear-gradient(135deg, #2f7cf6, #1f5fc4);
  color: #fff;
}

.split-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.split-legend > div {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 2px 8px;
  align-items: center;
}

.split-legend strong {
  font-size: 0.74rem;
}

.split-legend small {
  grid-column: 2;
  color: var(--muted-2);
  font-size: 0.63rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-mint { background: var(--brand); }
.dot-blue { background: var(--blue); }

.filter-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  transition: 130ms ease;
}

.pill span {
  color: var(--muted-2);
  font-size: 0.6rem;
}

.pill:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.pill.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--ink);
}

.pill.is-active span {
  color: rgba(255, 255, 255, 0.65);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

.search-form > svg {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.search-form input {
  width: 205px;
  padding: 5px 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 0.72rem;
}

/* ------------------------------------------------------------- withdraw */
.withdraw-preview {
  display: flex;
  align-items: stretch;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.withdraw-preview > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.withdraw-preview span {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.withdraw-preview strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
}

.withdraw-preview .preview-net {
  padding-left: 9px;
  border-left: 1px dashed var(--line-strong);
}

.withdraw-preview .preview-net strong {
  color: var(--brand);
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.5;
}

.policy-list svg {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: var(--brand);
  flex-shrink: 0;
}

.policy-list strong {
  color: var(--ink);
}

.support-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  margin-top: 14px;
  padding: 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: var(--surface-2);
}

.support-box > span {
  color: var(--muted);
  font-size: 0.7rem;
}

/* ------------------------------------------------------------- ranks */
.rank-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid #f0e2c4;
  border-radius: var(--radius);
  background:
    radial-gradient(420px 180px at 85% 0%, rgba(196, 122, 10, 0.08), transparent 70%),
    linear-gradient(120deg, #fffdf8, #fbfcff);
}

.rank-hero h2 {
  margin-top: 3px;
  font-size: 1.8rem;
  font-weight: 800;
  color: #8a5402;
}

.rank-hero p {
  margin-top: 5px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.76rem;
}

.rank-metrics {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.rank-metrics span {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted-2);
  font-size: 0.65rem;
}

.rank-metrics strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.rank-hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 140px;
  padding: 16px;
  border: 1px solid #f0e2c4;
  border-radius: 13px;
  background: #fff;
  text-align: center;
}

.rank-star {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffe9b5, #f0b44a 65%, #b7791f);
  color: #5b3a00;
  box-shadow: 0 8px 18px -10px rgba(196, 122, 10, 0.5);
}

.rank-star svg {
  width: 22px;
  height: 22px;
}

.rank-hero-badge strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.rank-hero-badge small {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.requirement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.requirement {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}

.requirement-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.requirement-top span {
  color: var(--muted);
  font-size: 0.65rem;
}

.requirement-top strong {
  font-size: 0.69rem;
}

.requirement small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.61rem;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 14px;
}

.rank-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  overflow: hidden;
}

.rank-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--line);
}

.rank-card.rank-silver::before { background: linear-gradient(90deg, #94a3b8, #e2e8f0); }
.rank-card.rank-gold::before { background: linear-gradient(90deg, #d99a2b, #f5d38a); }
.rank-card.rank-diamond::before { background: linear-gradient(90deg, #6d4df0, #b9a9ff); }
.rank-card.is-achieved { border-color: #ddd3ff; }
.rank-card.is-next { border-color: #d8e6ff; }

.rank-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.rank-medal {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--muted);
}

.rank-medal svg {
  width: 18px;
  height: 18px;
}

.rank-card.rank-silver .rank-medal { color: #64748b; background: #f1f5f9; }
.rank-card.rank-gold .rank-medal { color: #b7791f; background: var(--gold-soft); }
.rank-card.rank-diamond .rank-medal { color: var(--violet); background: var(--violet-soft); }

.rank-card h3 {
  font-size: 0.96rem;
}

.rank-reward {
  display: flex;
  flex-direction: column;
  margin: 7px 0 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rank-reward span {
  color: var(--muted-2);
  font-size: 0.59rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rank-reward strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
}

.rank-reward small {
  color: var(--muted-2);
  font-size: 0.61rem;
}

.rank-requirements {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.rank-requirements li {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 0.64rem;
}

.rank-requirements svg {
  width: 11px;
  height: 11px;
  color: var(--red);
}

.rank-requirements li.is-met {
  color: var(--muted);
}

.rank-requirements li.is-met svg {
  color: var(--brand);
}

.rank-claim {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--brand);
  font-size: 0.63rem;
}

.rank-claim svg {
  width: 11px;
  height: 11px;
}

.rank-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 16px;
}

.rank-admin-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.rank-admin-stat > div:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rank-admin-stat strong {
  font-size: 0.77rem;
}

.rank-admin-stat span {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.rank-admin-reward {
  text-align: right;
}

.rank-admin-reward strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
}

.rank-admin-stat.rank-gold { border-color: #f0e2c4; }
.rank-admin-stat.rank-diamond { border-color: #e2dbff; }

/* ------------------------------------------------------------- profile */
.profile-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(120deg, var(--brand-soft), #fff);
}

.profile-banner > div {
  display: flex;
  flex-direction: column;
}

.profile-banner strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.profile-banner span {
  color: var(--muted);
  font-size: 0.67rem;
}

/* ------------------------------------------------------------- admin dashboard */
.action-queue {
  margin-bottom: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.action-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.queue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.queue-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  transition: 130ms ease;
}

.queue-card:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.queue-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tone-soft);
  color: var(--tone);
  flex-shrink: 0;
}

.queue-icon svg {
  width: 15px;
  height: 15px;
}

.queue-card > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.queue-card strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.queue-card span:last-child {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.queue-card > svg {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.chart {
  display: flex;
  gap: 8px;
  height: 200px;
  padding-top: 5px;
  border-bottom: 1px solid var(--line);
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  height: 100%;
}

.chart-value {
  height: 14px;
  color: var(--muted-2);
  font-size: 0.54rem;
  white-space: nowrap;
  overflow: hidden;
}

.chart-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chart-bar {
  width: 100%;
  max-width: 38px;
  min-height: 3px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #8b6cf6, #e9e1ff);
}

.chart-label {
  height: 13px;
  color: var(--muted-2);
  font-size: 0.58rem;
}

.chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 0.62rem;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
}

.health-stat {
  display: flex;
  flex-direction: column;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.health-stat span {
  color: var(--muted-2);
  font-size: 0.61rem;
}

.health-stat strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
}

.health-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.review-list {
  display: flex;
  flex-direction: column;
}

.review-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.review-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.review-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.review-body strong {
  font-size: 0.74rem;
}

.review-body span {
  color: var(--muted-2);
  font-size: 0.61rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-amount {
  color: var(--brand);
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

.log-list {
  display: flex;
  flex-direction: column;
}

.log-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.log-row:last-child {
  border-bottom: 0;
}

.log-dot {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.log-row > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.log-row strong {
  font-size: 0.7rem;
}

.log-row span {
  color: var(--muted-2);
  font-size: 0.61rem;
  overflow-wrap: anywhere;
}

.log-time {
  color: var(--muted-2);
  font-size: 0.58rem;
  white-space: nowrap;
}

/* ------------------------------------------------------------- approvals */
.approval-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.approval-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.approval-card.is-pending {
  border-color: #f3e3c2;
  background: #fffdf8;
}

.approval-card.is-highlight {
  box-shadow: 0 0 0 2px rgba(109, 77, 240, 0.35);
}

.approval-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
}

.approval-name {
  font-size: 0.81rem;
  font-weight: 800;
}

.approval-name:hover {
  color: var(--brand);
}

.approval-head-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.approval-amount {
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 800;
  color: var(--brand);
}

.approval-sub {
  color: var(--muted-2);
  font-size: 0.59rem;
}

.approval-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.approval-grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.approval-grid span {
  color: var(--muted-2);
  font-size: 0.59rem;
}

.approval-grid strong {
  font-size: 0.69rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.approval-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.67rem;
}

.approval-note svg {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.approval-note.is-admin {
  background: var(--brand-soft);
  color: #5b35e0;
}

.approval-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.approval-actions form {
  margin: 0;
}

.reject-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.reject-form input {
  width: 180px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: var(--surface);
  font-size: 0.69rem;
}

.reject-form input:focus {
  border-color: #a58ef6;
}

.approval-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--muted-2);
  font-size: 0.63rem;
}

/* ------------------------------------------------------------- settings */
.bonus-form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.level-config-table th,
.level-config-table td {
  vertical-align: middle;
}

.table-input {
  width: 100%;
  max-width: 110px;
  min-height: 33px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: var(--surface);
  font-size: 0.73rem;
}

.table-input:focus {
  border-color: #a58ef6;
}

.input-with-prefix {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.input-with-prefix .table-input {
  max-width: 90px;
}

.level-total {
  color: var(--gold);
  font-weight: 800;
}

.save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  padding: 12px 15px;
  border: 1px solid #ddd3ff;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 16px 40px -22px rgba(15, 31, 61, 0.3);
  backdrop-filter: blur(10px);
}

.save-bar > div {
  display: flex;
  flex-direction: column;
}

.save-bar strong {
  font-size: 0.77rem;
}

.save-bar span {
  color: var(--muted-2);
  font-size: 0.63rem;
}

.code-block {
  display: inline-block;
  margin-top: 2px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  color: #5b35e0;
  font-size: 0.61rem;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------- toast */
.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #d9ceff;
  border-radius: 9px;
  background: #fff;
  color: #5b35e0;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 14px 30px -16px rgba(15, 31, 61, 0.3);
  animation: toast-in 180ms ease both;
}

.toast svg {
  width: 14px;
  height: 14px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-grid,
  .rank-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approval-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bonus-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 272px;
    transform: translateX(-103%);
    transition: transform 200ms ease;
    box-shadow: 24px 0 60px -28px rgba(15, 31, 61, 0.35);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(11, 27, 51, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-btn {
    display: grid;
  }

  .content-grid-main,
  .content-grid-admin {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-brand {
    padding: 24px 24px 28px;
    border-right: 0;
    border-bottom: 1px solid #dfe8f1;
  }

  .auth-brand-copy {
    margin: 32px 0 0;
  }

  .auth-brand-copy h1 {
    font-size: 2.1rem;
  }

  .auth-brand-stats {
    margin-top: 18px;
  }

  .auth-brand-foot {
    margin-top: 18px;
  }

  .auth-panel {
    padding: 24px 18px 36px;
  }
}

@media (max-width: 800px) {
  body {
    font-size: 14px;
  }

  .topbar {
    padding: 11px 14px;
    gap: 9px;
  }

  .topbar-title h1 {
    font-size: 1rem;
  }

  .topbar-title p {
    display: none;
  }

  .balance-pill {
    display: none;
  }

  .page {
    padding: 16px 14px 30px;
  }

  .app-footer {
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .btn {
    flex: 1;
  }

  .page-head-person {
    flex-wrap: wrap;
  }

  .page-head-person h2 {
    font-size: 1.4rem;
  }

  .package-visual {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cap-ring {
    width: 112px;
    height: 112px;
  }

  .package-numbers {
    width: 100%;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px;
  }

  .cta-strip-actions {
    width: 100%;
  }

  .cta-strip-actions .btn {
    flex: 1;
  }

  .rule-grid,
  .requirement-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px;
  }

  .rank-hero h2 {
    font-size: 1.55rem;
  }

  .rank-hero-badge {
    width: 100%;
  }

  .form-grid,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approval-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approval-head {
    flex-direction: column;
    gap: 7px;
  }

  .approval-head-right {
    width: 100%;
    justify-content: flex-start;
  }

  .queue-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chart {
    height: 165px;
  }

  .save-bar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .save-bar .btn {
    width: 100%;
  }

  .withdraw-preview {
    flex-direction: column;
  }

  .withdraw-preview .preview-net {
    padding-left: 0;
    padding-top: 7px;
    border-left: 0;
    border-top: 1px dashed var(--line-strong);
  }

  .bonus-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-brand-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .auth-card {
    padding: 20px;
  }

  .data-table {
    min-width: 620px;
  }

  .data-table.compact {
    min-width: 520px;
  }
}

@media (max-width: 560px) {
  .stats-grid,
  .rank-grid,
  .rank-admin-grid,
  .earning-grid,
  .health-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-grid,
  .bonus-form-grid,
  .approval-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reject-form {
    width: 100%;
  }

  .reject-form input {
    flex: 1;
    width: auto;
  }

  .search-form {
    width: 100%;
  }

  .search-form input {
    width: auto;
    flex: 1;
  }

  .page-actions .btn {
    flex: 1 1 auto;
  }

  .page-head p {
    font-size: 0.74rem;
  }

  .card {
    padding: 15px;
    border-radius: 15px;
  }

  .stat-card {
    padding: 12px;
  }

  .auth-brand {
    padding: 18px 16px 22px;
  }

  .auth-brand-copy {
    margin-top: 24px;
  }

  .auth-brand-copy h1 {
    font-size: 1.7rem;
  }

  .auth-brand-copy p {
    font-size: 0.79rem;
  }

  .auth-brand-foot {
    flex-direction: column;
    gap: 4px;
  }

  .auth-panel {
    padding: 16px 10px 30px;
  }

  .auth-card {
    padding: 17px 14px;
    border-radius: 15px;
  }

  .auth-head h2 {
    font-size: 1.3rem;
  }

  .payment-status {
    flex-wrap: wrap;
  }

  .inline-stats > span {
    min-width: 100%;
  }
}

/* ------------------------------------------------------------- quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.63rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: 140ms ease;
}

.quick-action:hover {
  border-color: #c9bbff;
  background: #fbfefc;
}

.qa-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--tone-soft);
  color: var(--tone);
}

.qa-icon svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------- auth polish */
.auth-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 34px 80px -48px rgba(61, 36, 150, 0.38);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #6d4df0, #8b6cf6 55%, #e9a400);
}

.auth-head {
  padding-top: 3px;
}

.auth-mobile-brand .brand-mark {
  width: 33px;
  height: 33px;
}

.auth-form .field-hint {
  padding-left: 2px;
}

@media (max-width: 1024px) {
  .auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    margin: 0 0 18px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
  }

  .auth-mobile-brand .brand-text strong {
    font-size: 0.9rem;
  }

  .auth-panel {
    padding-top: calc(18px + env(safe-area-inset-top));
  }

  .auth-form {
    gap: 11px;
  }

  .auth-card {
    padding: 21px 18px;
  }
}

@media (max-width: 1024px) and (max-height: 760px) {
  .auth-mobile-brand {
    display: none;
  }

  .auth-panel {
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
  }

  .auth-card {
    padding: 15px 14px;
  }

  .auth-form {
    gap: 8px;
  }

  .auth-head {
    margin-bottom: 11px;
  }

  .auth-head h2 {
    font-size: 1.24rem;
  }

  .auth-head p {
    font-size: 0.7rem;
  }

  .field > span {
    font-size: 0.63rem;
  }

  .input-wrap {
    min-height: 39px;
  }

  .check-field {
    font-size: 0.66rem;
  }

  .auth-switch {
    margin-top: 11px;
    font-size: 0.7rem;
  }
}

/* ------------------------------------------------------------- dashboard refresh */
.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-head h2 {
  margin-top: 2px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
}

.dash-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 0.64rem;
  font-weight: 600;
}

.dash-code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.59rem;
}

.dash-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.dash-copy {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.dash-copy svg {
  width: 16px;
  height: 16px;
}

.dash-copy:hover {
  border-color: #c9bbff;
  background: var(--brand-soft);
  color: var(--brand);
}

.wallet-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 19px;
  border-radius: 22px;
  background: linear-gradient(135deg, #4a28c8 0%, #7250ee 58%, #d99a12 145%);
  color: #ffffff;
  box-shadow: 0 24px 46px -28px rgba(74, 40, 200, 0.65);
}

.wallet-hero::before {
  content: "";
  position: absolute;
  right: -58px;
  top: -78px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.wallet-hero::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -80px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.wallet-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wallet-hero-tag {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.55rem;
  letter-spacing: 0.05em;
}

.wallet-hero-value {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 2.55rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.wallet-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
}

.wallet-hero-meta strong {
  color: #ffffff;
  font-weight: 800;
}

.wallet-hero-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 8px;
  margin-top: 17px;
}

.wallet-hero-actions .btn {
  min-height: 42px;
  border-radius: 11px;
  font-size: 0.76rem;
}

.btn-hero-light {
  background: #ffffff;
  color: #4a28c8;
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.4);
}

.btn-hero-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.18);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.dash-stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.dash-stat span {
  color: var(--muted-2);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dash-stat strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.dash-stat small {
  color: var(--muted-2);
  font-size: 0.57rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-rank {
  font-size: 0.82rem !important;
  line-height: 1.3 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-two {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 14px;
  margin-bottom: 14px;
}

.compact-package {
  padding: 18px;
}

.compact-package .package-visual {
  gap: 16px;
  margin: 14px 0;
}

.compact-package .cap-ring {
  width: 112px;
  height: 112px;
}

.compact-package .package-numbers {
  gap: 8px 14px;
}

.chart-card {
  display: flex;
  flex-direction: column;
}

.chart-total {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.chart-card .mini-chart {
  flex: 1;
  min-height: 90px;
  height: auto;
  align-items: flex-end;
  margin-top: 4px;
}

.chart-card .mini-chart-col {
  min-height: 90px;
}

.chart-card .mini-chart-bar {
  max-width: 20px;
}

.chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 0.62rem;
}

@media (max-width: 800px) {
  .dash-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .compact-package .cap-ring {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 560px) {
  .wallet-hero {
    padding: 17px;
  }

  .wallet-hero-value {
    font-size: 2.25rem;
  }

  .wallet-hero-actions .btn {
    padding: 8px 8px;
    font-size: 0.7rem;
  }

  .dash-head h2 {
    font-size: 1.35rem;
  }
}

/* ------------------------------------------------------------- package page */
.pkg-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.pkg-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 19px;
  border-radius: 22px;
}

.pkg-hero-pending {
  color: #ffffff;
  background: linear-gradient(135deg, #4a28c8 0%, #7250ee 58%, #d99a12 145%);
  box-shadow: 0 24px 46px -28px rgba(74, 40, 200, 0.65);
}

.pkg-hero-pending::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -78px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.pkg-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pkg-status-pill {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.55rem;
  letter-spacing: 0.05em;
}

.pkg-price {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.pkg-price small {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
}

.pkg-hero-pending > p {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.74rem;
}

.pkg-benefits {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.pkg-benefits span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
}

.pkg-hero-active {
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(109, 77, 240, 0.07), transparent 70%),
    #ffffff;
  box-shadow: var(--shadow-sm);
}

.pkg-hero-active .pkg-hero-top {
  color: var(--muted-2);
}

.pkg-active-main {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

.pkg-active-main .cap-ring {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
}

.pkg-active-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  flex: 1;
}

.pkg-active-metrics > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pkg-active-metrics span {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.pkg-active-metrics strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.pkg-active-metrics small {
  color: var(--muted-2);
  font-size: 0.58rem;
}

.pkg-hero-active .progress-wrap {
  margin-top: 14px;
}

.pkg-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 0.64rem;
}

.pkg-steps {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.pkg-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 0.58rem;
  font-weight: 700;
}

.pkg-step > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
}

.pkg-step span svg {
  width: 13px;
  height: 13px;
}

.pkg-step.is-done {
  color: var(--muted);
}

.pkg-step.is-done > span {
  background: var(--brand-soft);
  color: var(--brand);
}

.pkg-step.is-current {
  color: var(--ink);
}

.pkg-step.is-current > span {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 14px -8px rgba(109, 77, 240, 0.7);
}

.pkg-status-card,
.pkg-pay-card,
.pkg-topup-card {
  margin-bottom: 12px;
}

.pkg-status-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.pkg-status-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--gold-soft);
  color: var(--gold);
  flex-shrink: 0;
}

.pkg-status-icon svg {
  width: 18px;
  height: 18px;
}

.pkg-status-head > div {
  flex: 1;
  min-width: 0;
}

.pkg-status-head h3 {
  font-size: 1rem;
}

.pkg-status-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.pkg-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}

.pkg-status-grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pkg-status-grid span {
  color: var(--muted-2);
  font-size: 0.6rem;
}

.pkg-status-grid strong {
  font-size: 0.71rem;
  overflow-wrap: anywhere;
}

.pkg-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid #f4c9ce;
  border-radius: 12px;
  background: #fff5f6;
  color: #a21f2d;
}

.pkg-alert svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.pkg-alert > div {
  display: flex;
  flex-direction: column;
}

.pkg-alert strong {
  font-size: 0.76rem;
}

.pkg-alert span {
  color: #8a4b52;
  font-size: 0.68rem;
}

.pkg-pay-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.pkg-pay-amount strong {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.pkg-pay-amount small {
  color: var(--muted-2);
  font-size: 0.6rem;
}

.pkg-pay-note {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.pkg-pay-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pay-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-option-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.pay-option-text strong {
  font-size: 0.77rem;
}

.pay-option-text small {
  color: var(--muted-2);
  font-size: 0.62rem;
  overflow-wrap: anywhere;
}

.pay-option-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  flex-shrink: 0;
  transition: 130ms ease;
}

.pay-option-check svg {
  width: 11px;
  height: 11px;
}

.pay-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(109, 77, 240, 0.08);
}

.pay-option:has(input:checked) .pay-option-check,
.pay-option input:checked ~ .pay-option-check {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.pkg-bank-details {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}

.pkg-bank-details summary {
  padding: 9px 10px;
  color: var(--ink-2);
  font-size: 0.69rem;
  font-weight: 700;
  cursor: pointer;
}

.pkg-bank-details p {
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.6;
}

.pkg-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 700;
}

.pkg-wa-link svg {
  width: 12px;
  height: 12px;
}

.pkg-topup-balance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.pkg-topup-balance > div {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}

.pkg-topup-balance span {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.pkg-topup-balance strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.pkg-manual {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.pkg-manual summary {
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.pkg-manual .form-grid {
  margin-top: 10px;
}

.pkg-history {
  display: flex;
  flex-direction: column;
}

.pkg-history-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.pkg-history-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pkg-history-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}

.pkg-history-icon svg {
  width: 15px;
  height: 15px;
}

.pkg-history-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.pkg-history-body > div {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pkg-history-body strong {
  font-size: 0.78rem;
}

.pkg-history-body span {
  color: var(--muted-2);
  font-size: 0.64rem;
  overflow-wrap: anywhere;
}

.pkg-history-body small {
  color: #8a4b52;
  font-size: 0.64rem;
}

@media (max-width: 560px) {
  .pkg-hero {
    padding: 17px;
  }

  .pkg-price {
    font-size: 2.35rem;
  }

  .pkg-active-main {
    gap: 14px;
  }

  .pkg-active-main .cap-ring {
    width: 104px;
    height: 104px;
  }

  .pkg-active-metrics {
    gap: 7px 10px;
  }

  .pkg-status-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------- package flow cards */
.pkg-card-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.pkg-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -8px rgba(109, 77, 240, 0.7);
}

.pkg-card-title > div {
  flex: 1;
  min-width: 0;
}

.pkg-card-title h3 {
  margin-top: 1px;
  font-size: 1rem;
  line-height: 1.3;
}

.pkg-card-title p {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.68rem;
}

.pkg-amount-pill {
  padding: 4px 8px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.pkg-send-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid #cdeee0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2fdf7, #ffffff 70%);
}

.pkg-send-card .ep-logo {
  grid-column: 1;
  grid-row: 1;
}

.pkg-send-card .mini-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.pkg-send-info {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

.pkg-send-info span {
  color: var(--muted);
  font-size: 0.6rem;
}

.pkg-send-info strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.pkg-send-info small {
  color: var(--muted-2);
  font-size: 0.6rem;
}

.pkg-alt-pay {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-wa-outline {
  border: 1px solid #b7e6d5;
  background: #f7fdfa;
  color: #087f58;
}

.btn-wa-outline:hover {
  border-color: #8bd7bc;
  background: #eefbf5;
}

.pkg-proof-card {
  margin-bottom: 12px;
}

.pkg-proof-card .pkg-pay-form {
  margin-top: 2px;
}

.pkg-pay-card,
.pkg-status-card,
.pkg-topup-card {
  margin-bottom: 12px;
}

/* ------------------------------------------------------------- payment proof UI */
.pkg-send-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #cdeee0;
  border-radius: 13px;
  background: linear-gradient(135deg, #f4fdf8, #ffffff);
}

.ep-logo {
  width: auto;
  height: 26px;
  flex-shrink: 0;
}

.pkg-send-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pkg-send-info span {
  color: var(--muted);
  font-size: 0.6rem;
}

.pkg-send-info strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.pkg-send-info small {
  color: var(--muted-2);
  font-size: 0.6rem;
}

.pkg-send-card .mini-copy {
  align-self: center;
  flex-shrink: 0;
}

.pkg-wa-pay {
  min-height: 44px;
  margin-bottom: 10px;
  border-radius: 11px;
  font-size: 0.78rem;
}

.pkg-bank-details {
  margin-bottom: 10px;
}

.proof-upload {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  min-height: 72px;
  padding: 13px;
  border: 1.5px dashed #d8d0ee;
  border-radius: 13px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 130ms ease, background 130ms ease;
}

.proof-upload:hover {
  border-color: #bfb0ec;
  background: #fbfaff;
}

.proof-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.proof-upload-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  grid-column: 1;
  grid-row: 1;
  flex-shrink: 0;
}

.proof-upload-icon svg {
  width: 18px;
  height: 18px;
}

.proof-upload-copy {
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.proof-upload-copy strong {
  font-size: 0.75rem;
}

.proof-upload-copy small {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.proof-preview {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  object-fit: cover;
  grid-column: 1;
  grid-row: 1;
}

.proof-file-name {
  display: none;
  grid-column: 2;
  grid-row: 2;
  color: var(--muted-2);
  font-size: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-upload.has-file {
  border-style: solid;
  border-color: #c9bbff;
  background: #fbfaff;
}

.proof-upload.has-file .proof-upload-icon {
  display: none;
}

.proof-upload.has-file .proof-preview {
  display: block;
}

.proof-upload.has-file .proof-file-name {
  display: block;
}

/* Compact payment method cards */
.pay-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.pay-option {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 104px;
  padding: 10px 9px;
}

.pay-option-text {
  flex: 0 0 auto;
  width: 100%;
}

.pay-option-text strong {
  font-size: 0.7rem;
}

.pay-option-text small {
  font-size: 0.55rem;
  line-height: 1.3;
  word-break: break-word;
}

.pay-option-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 17px;
  height: 17px;
}

.pay-option-check svg {
  width: 9px;
  height: 9px;
}

/* ------------------------------------------------------------- activation & onboarding */
.wallet-hero-tag.is-inactive {
  border-color: #ffffff;
  background: #ffffff;
  color: #b42333;
}

.activation-alert {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #f4c9ce;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff2f3, #fffafa);
  box-shadow: 0 14px 30px -26px rgba(180, 35, 51, 0.5);
}

.activation-alert-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #dc3545;
  color: #ffffff;
  flex-shrink: 0;
}

.activation-alert-icon svg {
  width: 18px;
  height: 18px;
}

.activation-alert > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 165px;
}

.activation-alert strong {
  color: #a21f2d;
  font-size: 0.8rem;
}

.activation-alert span {
  color: #8a4b52;
  font-size: 0.69rem;
}

.btn-danger {
  border-color: #dc3545;
  background: #dc3545;
  color: #ffffff;
  box-shadow: 0 8px 18px -12px rgba(220, 53, 69, 0.6);
}

.btn-danger:hover {
  filter: brightness(1.04);
}

.quick-actions.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.onboarding-card {
  padding: 18px;
}

.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 2px 0 17px;
}

.onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.onboarding-step > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.onboarding-step strong {
  font-size: 0.78rem;
}

.onboarding-step span:last-child {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------- activity popups */
.activity-popups {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 85;
  width: 318px;
  max-width: calc(100vw - 40px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.activity-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 44px -24px rgba(15, 31, 61, 0.35);
  pointer-events: auto;
  animation: activity-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.activity-toast.is-out {
  animation: activity-out 220ms ease both;
}

@keyframes activity-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes activity-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}

.activity-toast-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #9b7ff8, #6d4df0 55%, #e9a400);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -8px rgba(109, 77, 240, 0.7);
}

.activity-toast-copy {
  flex: 1;
  min-width: 0;
}

.activity-toast-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 0.58rem;
  font-weight: 700;
}

.activity-toast-meta strong {
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 800;
}

.activity-toast-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.activity-toast-copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.4;
}

.activity-toast-copy p strong {
  color: var(--ink);
  font-weight: 800;
}

.activity-toast-copy p b {
  font-weight: 800;
}

.activity-toast.is-earned p b { color: #0b9367; }
.activity-toast.is-withdrew p b { color: var(--violet); }
.activity-toast.is-deposited p b { color: var(--blue); }

.activity-toast-close {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: -2px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.activity-toast-close:hover {
  background: var(--surface-3);
  color: var(--ink);
}

@media (max-width: 1024px) {
  .activity-popups {
    left: 12px;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
  }
}

/* ------------------------------------------------------------- mobile app shell */
.tabbar {
  display: none;
}

.auth-mobile-brand {
  display: none;
}

@media (max-width: 1024px) {
  .app-body:not(.admin-body) .sidebar {
    display: none;
  }

  .app-body:not(.admin-body) .sidebar-backdrop {
    display: none !important;
  }

  .app-body:not(.admin-body) .menu-btn {
    display: none !important;
  }

  .app-body:not(.admin-body) .topbar {
    min-height: 64px;
    padding: calc(9px + env(safe-area-inset-top)) 16px 9px;
    background: #ffffff;
  }

  .app-body:not(.admin-body) .topbar-title h1 {
    font-size: 1.03rem;
  }

  .app-body:not(.admin-body) .topbar-title p {
    display: none;
  }

  .app-body:not(.admin-body) .topbar-actions {
    gap: 7px;
  }

  .app-body:not(.admin-body) .topbar-actions .avatar {
    width: 34px;
    height: 34px;
    font-size: 0.62rem;
  }

  .app-body:not(.admin-body) .page {
    padding: 14px 14px calc(96px + env(safe-area-inset-bottom));
  }

  .app-body:not(.admin-body) .app-footer {
    display: none;
  }

  .app-body:not(.admin-body) .page-head {
    margin-bottom: 16px;
  }

  .app-body:not(.admin-body) .page-head h2 {
    font-size: 1.38rem;
  }

  .app-body:not(.admin-body) .page-head p {
    font-size: 0.73rem;
  }

  .app-body:not(.admin-body) .card {
    border-radius: 17px;
  }

  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 2px;
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 7px 8px env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 -14px 36px -28px rgba(15, 31, 61, 0.35);
    backdrop-filter: blur(20px);
  }

  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0 5px;
    border-radius: 11px;
    color: var(--muted-2);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: color 140ms ease;
  }

  .tab-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    transition: background 140ms ease, color 140ms ease;
  }

  .tab-icon svg {
    width: 19px;
    height: 19px;
  }

  .tab-item.is-active {
    color: var(--brand);
  }

  .tab-item.is-active .tab-icon {
    background: var(--brand-soft);
    color: var(--brand);
  }

  .tab-main {
    position: relative;
  }

  .tab-main .tab-icon {
    width: 48px;
    height: 48px;
    margin-top: -21px;
    border-radius: 15px;
    background: linear-gradient(145deg, #8b6cf6, #6d4df0);
    color: #fff;
    box-shadow: 0 12px 24px -10px rgba(109, 77, 240, 0.7);
  }

  .tab-main > span:last-child {
    margin-top: 1px;
    color: var(--ink-2);
  }

  .tab-main.is-active .tab-icon {
    background: linear-gradient(145deg, #8b6cf6, #6d4df0);
    color: #fff;
  }

  .tab-item:active {
    transform: scale(0.96);
  }
}

@media (max-width: 560px) {
  .app-body:not(.admin-body) .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .app-body:not(.admin-body) .stat-card {
    padding: 11px;
    gap: 8px;
    border-radius: 13px;
  }

  .app-body:not(.admin-body) .stat-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .app-body:not(.admin-body) .stat-icon svg {
    width: 16px;
    height: 16px;
  }

  .app-body:not(.admin-body) .stat-value {
    font-size: 1.04rem;
  }

  .app-body:not(.admin-body) .stat-label {
    font-size: 0.57rem;
  }

  .app-body:not(.admin-body) .stat-hint {
    display: none;
  }

  .app-body:not(.admin-body) .page {
    padding-left: 13px;
    padding-right: 13px;
  }

  .app-body:not(.admin-body) .package-visual {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  .app-body:not(.admin-body) .cap-ring {
    width: 104px;
    height: 104px;
  }

  .app-body:not(.admin-body) .cap-ring strong {
    font-size: 1.1rem;
  }

  .app-body:not(.admin-body) .package-numbers {
    gap: 7px 12px;
  }

  .app-body:not(.admin-body) .quick-action {
    padding: 10px 5px;
    font-size: 0.58rem;
  }

  .app-body:not(.admin-body) .qa-icon {
    width: 33px;
    height: 33px;
    border-radius: 10px;
  }

  .app-body:not(.admin-body) .cta-strip {
    padding: 16px;
  }
}

/* ------------------------------------------------------------- mobile auth */
@media (max-width: 1024px) {
  .auth-shell {
    display: block;
    min-height: 100dvh;
  }

  .auth-brand {
    display: none;
  }

  .auth-panel {
    min-height: 100dvh;
    justify-content: flex-start;
    padding: calc(20px + env(safe-area-inset-top)) 16px calc(26px + env(safe-area-inset-bottom));
    background: #ffffff;
  }

  .auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: center;
    margin: 4px 0 20px;
  }

  .auth-card {
    max-width: 470px;
    padding: 22px 18px;
    border-radius: 18px;
    box-shadow: 0 24px 60px -40px rgba(15, 31, 61, 0.4);
  }

  .auth-bottom-note {
    margin-top: 14px;
  }
}

/* ------------------------------------------------------------- mini chart */
.mini-chart-wrap {
  margin: 12px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.mini-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 0.62rem;
}

.mini-chart-head strong {
  color: var(--ink);
  font-size: 0.7rem;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 66px;
}

.mini-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 3px;
}

.mini-chart-bar {
  width: 100%;
  max-width: 24px;
  max-height: calc(100% - 13px);
  min-height: 3px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #8b6cf6, #e9a400);
  transform-origin: bottom;
  animation: chart-rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mini-chart-col:nth-child(2) .mini-chart-bar { animation-delay: 50ms; }
.mini-chart-col:nth-child(3) .mini-chart-bar { animation-delay: 100ms; }
.mini-chart-col:nth-child(4) .mini-chart-bar { animation-delay: 150ms; }
.mini-chart-col:nth-child(5) .mini-chart-bar { animation-delay: 200ms; }
.mini-chart-col:nth-child(6) .mini-chart-bar { animation-delay: 250ms; }
.mini-chart-col:nth-child(7) .mini-chart-bar { animation-delay: 300ms; }

.mini-chart-col small {
  color: var(--muted-2);
  font-size: 0.5rem;
  font-weight: 700;
}

/* ------------------------------------------------------------- light motion */
@keyframes chart-rise {
  from { transform: scaleY(0); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes progress-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.chart-bar {
  transform-origin: bottom;
  animation: chart-rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.chart-col:nth-child(2) .chart-bar { animation-delay: 60ms; }
.chart-col:nth-child(3) .chart-bar { animation-delay: 120ms; }
.chart-col:nth-child(4) .chart-bar { animation-delay: 180ms; }
.chart-col:nth-child(5) .chart-bar { animation-delay: 240ms; }
.chart-col:nth-child(6) .chart-bar { animation-delay: 300ms; }
.chart-col:nth-child(7) .chart-bar { animation-delay: 360ms; }

.progress > span {
  transform-origin: left;
  animation: progress-grow 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (max-width: 1024px) and (max-height: 760px) {
  .auth-mobile-brand {
    display: none !important;
  }

  .auth-panel {
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)) !important;
  }

  .auth-card {
    padding: 15px 14px !important;
    border-radius: 16px;
  }

  .auth-form {
    gap: 8px;
  }

  .auth-head {
    margin-bottom: 11px;
  }

  .auth-head h2 {
    font-size: 1.24rem;
  }

  .auth-head p {
    font-size: 0.7rem;
  }

  .field > span {
    font-size: 0.63rem;
  }

  .input-wrap {
    min-height: 39px;
  }

  .check-field {
    font-size: 0.66rem;
  }

  .auth-switch {
    margin-top: 10px;
    font-size: 0.7rem;
  }

  .auth-bottom-note {
    margin-top: 9px;
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================ package page v2 */
.pkg-page {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

/* ------------------------------------------------------------- hero */
.pkgx-hero {
  position: relative;
  overflow: hidden;
  padding: 19px;
  border-radius: 22px;
  color: #ffffff;
  background:
    radial-gradient(240px 160px at 100% 0%, rgba(255, 255, 255, 0.2), transparent 62%),
    radial-gradient(200px 150px at 0% 120%, rgba(255, 196, 84, 0.22), transparent 60%),
    linear-gradient(135deg, #3b1dab 0%, #5d37df 52%, #8561f5 100%);
  box-shadow: 0 24px 44px -30px rgba(61, 31, 176, 0.85);
}

.pkgx-hero::before,
.pkgx-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.pkgx-hero::before {
  width: 190px;
  height: 190px;
  right: -74px;
  top: -84px;
}

.pkgx-hero::after {
  width: 130px;
  height: 130px;
  right: 14px;
  bottom: -88px;
}

.pkgx-hero > * {
  position: relative;
  z-index: 1;
}

.pkgx-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pkgx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pkgx-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ef0c2;
  box-shadow: 0 0 0 3px rgba(142, 240, 194, 0.16);
  flex-shrink: 0;
}

.pkgx-hero.is-pending .pkgx-kicker::before,
.pkgx-hero.is-review .pkgx-kicker::before {
  background: #ffd67a;
  box-shadow: 0 0 0 3px rgba(255, 214, 122, 0.16);
}

.pkgx-hero.is-complete .pkgx-kicker::before {
  background: #ffe08a;
  box-shadow: 0 0 0 3px rgba(255, 224, 138, 0.16);
}

.pkgx-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pkgx-chip.is-warn {
  border-color: #ffedbf;
  background: #ffedbf;
  color: #704400;
}

.pkgx-chip.is-review {
  border-color: #e8efff;
  background: #e8efff;
  color: #2458b8;
}

.pkgx-chip.is-live {
  border-color: #d9f8e9;
  background: #d9f8e9;
  color: #076b4c;
}

.pkgx-chip.is-done {
  border-color: #ffe7a8;
  background: #ffe7a8;
  color: #6d4300;
}

.pkgx-hero-main {
  margin-top: 13px;
}

.pkgx-hero-label {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.66rem;
  font-weight: 700;
}

.pkgx-hero-amount {
  margin-top: 1px;
  font-family: var(--font-display);
  font-size: 2.65rem;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.065em;
}

.pkgx-hero-sub {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.4;
}

.pkgx-progress {
  height: 7px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.pkgx-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8df0c3, #ffe08a);
  transition: width 600ms ease;
}

.pkgx-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pkgx-fact {
  min-width: 0;
  padding: 0 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.pkgx-fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.pkgx-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pkgx-fact span {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.6rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pkgx-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.58rem;
}

.pkgx-hero-foot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pkgx-hero-foot span:last-child {
  flex-shrink: 0;
  text-align: right;
}

/* ------------------------------------------------------------- review state */
.pkgx-status {
  margin-top: 14px;
  padding: 22px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.pkgx-status-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 9px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #b07800;
}

.pkgx-status-icon svg {
  width: 23px;
  height: 23px;
}

.pkgx-status h2 {
  font-size: 1.04rem;
}

.pkgx-status > p {
  max-width: 380px;
  margin: 3px auto 0;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.5;
}

.pkgx-receipt {
  margin-top: 14px;
  padding: 2px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  text-align: left;
}

.pkgx-receipt-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.66rem;
}

.pkgx-receipt-row:last-child {
  border-bottom: 0;
}

.pkgx-receipt-row > span {
  color: var(--muted-2);
  flex-shrink: 0;
}

.pkgx-receipt-row strong {
  font-size: 0.66rem;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.pkgx-receipt-row strong.is-ok {
  color: #087a55;
}

.pkgx-support,
.pkgx-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  border-radius: 10px;
  font-size: 0.73rem;
  font-weight: 800;
}

.pkgx-support {
  margin-top: 12px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-2);
}

.pkgx-support svg {
  width: 15px;
  height: 15px;
  color: #0d8a63;
}

/* ------------------------------------------------------------- rejected notice */
.pkgx-reject {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid #f4c9ce;
  border-radius: 14px;
  background: #fff5f6;
  color: #a21f2d;
}

.pkgx-reject > svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex-shrink: 0;
}

.pkgx-reject strong {
  display: block;
  font-size: 0.72rem;
}

.pkgx-reject span {
  display: block;
  margin-top: 2px;
  color: #8a4b52;
  font-size: 0.65rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------- payment steps */
.pkgx-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.pkgx-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.pkgx-step {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pkgx-step-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -8px rgba(109, 77, 240, 0.65);
}

.pkgx-step-label {
  display: block;
  color: var(--brand);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pkgx-step h2 {
  margin-top: 1px;
  font-size: 1rem;
  line-height: 1.25;
}

.pkgx-step-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.45;
}

.pkgx-paybox {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d8efe5;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5fdf9, #ffffff);
}

.pkgx-pay-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pkgx-pay-brand img {
  width: auto;
  height: 24px;
  flex-shrink: 0;
}

.pkgx-pay-tag {
  padding: 3px 7px;
  border-radius: 999px;
  background: #e3f8ee;
  color: #087a55;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pkgx-pay-amount {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #d6ebe1;
}

.pkgx-pay-amount > span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
}

.pkgx-pay-amount > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 1px;
}

.pkgx-pay-amount strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pkgx-pay-amount small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.pkgx-account {
  display: block;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #d8efe5;
  border-radius: 11px;
  background: #ffffff;
}

.pkgx-account-head {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pkgx-account span {
  color: var(--muted-2);
  font-size: 0.6rem;
}

.pkgx-account strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pkgx-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  padding: 6px 9px;
  border: 1px solid #b7e6d5;
  border-radius: 8px;
  background: #ecfaf3;
  color: #08704f;
  font-size: 0.67rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: background 140ms ease, border-color 140ms ease;
}

.pkgx-copy:hover {
  border-color: #8bd7bc;
  background: #e0f7ec;
}

.pkgx-copy svg {
  width: 12px;
  height: 12px;
}

.pkgx-guide {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #d6ebe1;
}

.pkgx-guide-title {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 0.64rem;
  font-weight: 800;
}

.pkgx-guide-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pkgx-guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.pkgx-guide-num {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: #e3f8ee;
  color: #087a55;
  font-size: 0.55rem;
  font-weight: 800;
  flex-shrink: 0;
}

.pkgx-guide-list p {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.pkgx-guide-list strong {
  color: var(--ink-2);
  font-weight: 800;
}

.pkgx-hint {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.45;
}

.pkgx-hint svg {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  color: var(--muted-2);
  flex-shrink: 0;
}

.pkgx-wa {
  margin-top: 10px;
  padding: 0 12px;
  background: #0d8a63;
  color: #ffffff;
  box-shadow: 0 9px 18px -12px rgba(13, 138, 99, 0.5);
}

.pkgx-wa svg {
  width: 16px;
  height: 16px;
}

.pkgx-wa:active {
  transform: translateY(1px);
}

.pkgx-bank {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.pkgx-bank summary {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 0.63rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.pkgx-bank summary::-webkit-details-marker {
  display: none;
}

.pkgx-bank summary svg {
  width: 13px;
  height: 13px;
  color: var(--brand);
}

.pkgx-bank p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------- proof form */
.pkgx-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 12px;
}

.pkgx-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pkgx-label {
  color: var(--ink-2);
  font-size: 0.67rem;
  font-weight: 800;
}

.pkgx-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pkgx-method {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 57px;
  padding: 6px 3px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.pkgx-method input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pkgx-method svg {
  width: 16px;
  height: 16px;
}

.pkgx-method:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: 0 0 0 3px rgba(109, 77, 240, 0.07);
}

.pkgx-method input:checked ~ span {
  color: var(--brand);
}

.pkgx-input {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.8rem;
  outline: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.pkgx-input::placeholder {
  color: #a6b3c2;
}

.pkgx-input:focus {
  border-color: #a58ef6;
  box-shadow: 0 0 0 3px rgba(109, 77, 240, 0.08);
}

.pkgx-help {
  color: var(--muted-2);
  font-size: 0.6rem;
  line-height: 1.4;
}

.pkgx-upload {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 9px;
  min-height: 72px;
  padding: 11px;
  border: 1.5px dashed #d8d0ee;
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.pkgx-upload:hover {
  border-color: #bfb0ec;
  background: #fbfaff;
}

.pkgx-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pkgx-upload-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  grid-column: 1;
  grid-row: 1 / span 2;
}

.pkgx-upload-icon svg {
  width: 17px;
  height: 17px;
}

.pkgx-upload-copy {
  display: flex;
  flex-direction: column;
  grid-column: 2;
  min-width: 0;
}

.pkgx-upload-copy strong {
  font-size: 0.7rem;
  line-height: 1.3;
}

.pkgx-upload-copy small {
  color: var(--muted-2);
  font-size: 0.6rem;
  line-height: 1.4;
}

.pkgx-upload .proof-preview {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  object-fit: cover;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.pkgx-upload .proof-file-name {
  display: none;
  grid-column: 2;
  color: var(--muted-2);
  font-size: 0.58rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pkgx-upload.has-file {
  border-style: solid;
  border-color: #c9bbff;
  background: #fbfaff;
}

.pkgx-upload.has-file .pkgx-upload-icon {
  display: none;
}

.pkgx-upload.has-file .proof-preview,
.pkgx-upload.has-file .proof-file-name {
  display: block;
}

.pkgx-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 45px;
  margin-top: 1px;
  padding: 9px 14px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #8468f4, #5b35e0);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 10px 20px -13px rgba(109, 77, 240, 0.65);
  transition: filter 140ms ease, transform 140ms ease;
}

.pkgx-submit:hover {
  filter: brightness(1.04);
}

.pkgx-submit:active {
  transform: translateY(1px);
}

.pkgx-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
}

.pkgx-submit svg {
  width: 15px;
  height: 15px;
}

.pkgx-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 0.6rem;
  line-height: 1.4;
  text-align: center;
}

.pkgx-secure svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------- re-topup */
.pkgx-topup {
  margin-top: 14px;
  padding: 17px;
  border: 1px solid #f1e3bd;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffcf3, #ffffff);
  box-shadow: var(--shadow-sm);
}

.pkgx-topup-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.pkgx-topup-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #b07800;
  flex-shrink: 0;
}

.pkgx-topup-icon svg {
  width: 17px;
  height: 17px;
}

.pkgx-topup h2 {
  font-size: 0.95rem;
  line-height: 1.3;
}

.pkgx-topup-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.pkgx-wallet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.pkgx-wallet > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
}

.pkgx-wallet span {
  display: block;
  color: var(--muted-2);
  font-size: 0.58rem;
}

.pkgx-wallet strong {
  display: block;
  margin-top: 1px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 800;
}

.pkgx-topup-progress {
  height: 6px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  overflow: hidden;
}

.pkgx-topup-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0b52e, #e9a400);
}

.pkgx-topup-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 11px;
}

.pkgx-topup-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 0.6rem;
  line-height: 1.45;
}

.pkgx-topup-note svg {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}

.pkgx-manual {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pkgx-manual > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  color: var(--ink-2);
  font-size: 0.71rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.pkgx-manual > summary::-webkit-details-marker {
  display: none;
}

.pkgx-manual > summary > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pkgx-manual > summary svg {
  width: 14px;
  height: 14px;
}

.pkgx-manual-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.pkgx-manual-body .pkgx-flow {
  margin-top: 14px;
}

.pkgx-note-strip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.45;
}

.pkgx-note-strip svg {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  flex-shrink: 0;
  color: var(--brand);
}

/* ------------------------------------------------------------- panels */
.pkgx-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pkgx-panel > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  list-style: none;
  cursor: pointer;
}

.pkgx-panel > summary::-webkit-details-marker {
  display: none;
}

.pkgx-panel-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}

.pkgx-panel-icon svg {
  width: 16px;
  height: 16px;
}

.pkgx-panel-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pkgx-panel-title strong {
  font-size: 0.78rem;
  line-height: 1.3;
}

.pkgx-panel-title small {
  color: var(--muted-2);
  font-size: 0.6rem;
  line-height: 1.4;
}

.pkgx-panel-count {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.pkgx-chevron {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--muted-2);
  flex-shrink: 0;
}

.pkgx-chevron svg {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
  transition: transform 200ms ease;
}

.pkgx-panel[open] > summary .pkgx-chevron svg,
.pkgx-manual[open] > summary .pkgx-chevron svg {
  transform: rotate(-90deg);
}

.pkgx-panel-body {
  padding: 0 15px 5px;
  border-top: 1px solid var(--line);
}

.pkgx-panel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
}

/* ------------------------------------------------------------- levels */
.pkgx-level {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.pkgx-level:first-child {
  border-top: 0;
}

.pkgx-level-badge {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

.pkgx-level.is-open .pkgx-level-badge {
  background: var(--brand-soft);
  color: var(--brand);
}

.pkgx-level-body {
  flex: 1;
  min-width: 0;
}

.pkgx-level-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pkgx-level-top strong {
  font-size: 0.73rem;
  line-height: 1.3;
}

.pkgx-level-rate {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.67rem;
  font-weight: 800;
  white-space: nowrap;
}

.pkgx-level-rate small {
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
}

.pkgx-level-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 1px;
}

.pkgx-level-meta > span:first-child {
  min-width: 0;
  color: var(--muted-2);
  font-size: 0.6rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pkgx-level-state {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.pkgx-level-state.is-locked {
  background: var(--surface-3);
  color: var(--muted-2);
}

.pkgx-level-state.is-ready {
  background: var(--brand-soft);
  color: var(--brand);
}

.pkgx-level-state.is-active {
  background: #e8faf1;
  color: #087a55;
}

.pkgx-level-state.is-target {
  background: var(--gold-soft);
  color: #8a5402;
}

.pkgx-level-foot {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 9px 15px 11px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.58rem;
  line-height: 1.4;
}

.pkgx-level-foot svg {
  width: 11px;
  height: 11px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ------------------------------------------------------------- payment history */
.pkgx-history-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.pkgx-history-row:first-child {
  border-top: 0;
}

.pkgx-history-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}

.pkgx-history-icon svg {
  width: 15px;
  height: 15px;
}

.pkgx-history-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pkgx-history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pkgx-history-top strong {
  font-size: 0.74rem;
}

.pkgx-history-body > span {
  color: var(--muted);
  font-size: 0.6rem;
  overflow-wrap: anywhere;
}

.pkgx-history-ref {
  color: var(--muted-2);
  font-size: 0.57rem;
  overflow-wrap: anywhere;
}

.pkgx-history-note {
  margin-top: 1px;
  color: #8a4b52;
  font-size: 0.59rem;
  line-height: 1.4;
}

/* ------------------------------------------------------------- responsive */
@media (min-width: 760px) {
  .pkgx-hero {
    padding: 24px;
  }

  .pkgx-hero-amount {
    font-size: 3rem;
  }

  .pkgx-card {
    padding: 20px;
  }

  .pkgx-status {
    padding: 26px 22px 20px;
  }

  .pkgx-receipt {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .pkgx-support {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .pkgx-topup {
    padding: 20px;
  }
}

@media (max-width: 760px) {
  .pkgx-flow {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .pkgx-hero {
    padding: 16px;
  }

  .pkgx-hero-amount {
    font-size: 2.35rem;
  }

  .pkgx-fact strong {
    font-size: 0.77rem;
  }

  .pkgx-fact span {
    font-size: 0.55rem;
  }

  .pkgx-card {
    padding: 15px;
  }

  .pkgx-pay-amount strong {
    font-size: 1.4rem;
  }

  .pkgx-account strong {
    font-size: 0.98rem;
  }

  .pkgx-level-meta > span:first-child {
    font-size: 0.56rem;
  }
}

/* ============================================================ member pages v2 */
/* Shared page building blocks */
.appx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 12px 10px;
  text-align: center;
}

.appx-empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}

.appx-empty-icon svg {
  width: 21px;
  height: 21px;
}

.appx-empty strong {
  font-size: 0.78rem;
}

.appx-empty p {
  max-width: 290px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.45;
}

.appx-empty-action {
  width: 100%;
  max-width: 230px;
  margin-top: 11px;
}

.team-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.team-section-head h2 {
  margin-top: 1px;
  font-size: 0.94rem;
  line-height: 1.3;
}

.team-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.wal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  margin-top: 10px;
  padding: 7px 12px;
  border: 1px solid #d9ceff;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.65rem;
  font-weight: 800;
}

.wal-cta svg {
  width: 14px;
  height: 14px;
}

/* ------------------------------------------------------------- team page */
.pkgx-hero.is-rank .pkgx-kicker::before {
  background: #ffe08a;
  box-shadow: 0 0 0 3px rgba(255, 224, 138, 0.16);
}

.team-share,
.team-members,
.team-bonus,
.team-rule,
.wal-activate,
.wal-breakdown,
.wal-tx-card,
.rk-next,
.rk-ladder,
.rk-history {
  margin-top: 14px;
}

.team-share-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.team-share-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}

.team-share-icon svg {
  width: 18px;
  height: 18px;
}

.team-share-head h2 {
  font-size: 0.98rem;
  line-height: 1.3;
}

.team-share-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.45;
}

.team-code {
  margin-top: 13px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.team-code > span {
  display: block;
  color: var(--muted-2);
  font-size: 0.58rem;
}

.team-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 1px;
}

.team-code-row strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}

.team-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #d9ceff;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.6rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.team-copy svg {
  width: 11px;
  height: 11px;
}

.team-link {
  display: block;
  margin-top: 10px;
}

.team-link > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 0.58rem;
}

.team-link-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.team-link-row input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
}

.team-copy.is-icon {
  min-height: 40px;
  padding: 0 10px;
}

.team-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 11px;
}

.team-wa,
.team-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 41px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 800;
}

.team-wa {
  background: #0d8a63;
  color: #ffffff;
  box-shadow: 0 9px 18px -12px rgba(13, 138, 99, 0.5);
}

.team-wa svg,
.team-msg svg {
  width: 15px;
  height: 15px;
}

.team-msg {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-2);
}

.team-member-list {
  margin-top: 4px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.team-member:first-child {
  border-top: 0;
}

.team-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 800;
  flex-shrink: 0;
}

.team-member-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.team-member-body strong {
  font-size: 0.73rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-member-body span {
  color: var(--muted-2);
  font-size: 0.58rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-member-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.team-member-side small {
  color: var(--muted-2);
  font-size: 0.54rem;
  white-space: nowrap;
}

.team-bonus-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.team-bonus-row:first-child {
  border-top: 0;
}

.team-bonus-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 800;
  flex-shrink: 0;
}

.team-bonus-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.team-bonus-body strong {
  font-size: 0.69rem;
}

.team-bonus-body span {
  color: var(--muted-2);
  font-size: 0.56rem;
}

.team-bonus-amount {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.team-bonus-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 9px 15px 11px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.57rem;
  line-height: 1.4;
}

.team-bonus-note svg {
  width: 11px;
  height: 11px;
  margin-top: 1px;
  flex-shrink: 0;
}

.team-rule {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #f1e3bd;
  border-radius: 12px;
  background: #fffcf3;
  color: var(--muted);
}

.team-rule > svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #b07800;
  flex-shrink: 0;
}

.team-rule p {
  font-size: 0.62rem;
  line-height: 1.5;
}

.team-rule strong {
  color: var(--ink-2);
}

/* ------------------------------------------------------------- wallet page */
.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.wallet-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

.wallet-action svg {
  width: 15px;
  height: 15px;
}

.wallet-action.is-light {
  background: #ffffff;
  color: var(--brand);
  box-shadow: 0 8px 16px -12px rgba(23, 18, 51, 0.5);
}

.wallet-action.is-glass {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.wal-activate {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #f1e3bd;
  border-radius: 12px;
  background: #fffbef;
}

.wal-activate-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gold-soft);
  color: #b07800;
  flex-shrink: 0;
}

.wal-activate-icon svg {
  width: 15px;
  height: 15px;
}

.wal-activate-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.wal-activate-copy strong {
  font-size: 0.68rem;
}

.wal-activate-copy small {
  color: var(--muted);
  font-size: 0.57rem;
  line-height: 1.4;
}

.wal-activate-link {
  color: var(--brand);
  font-size: 0.63rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.wal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wal-head h2 {
  margin-top: 1px;
  font-size: 0.94rem;
  line-height: 1.3;
}

.wal-month {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.wal-month small {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 600;
}

.wal-earn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.wal-earn {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.wal-earn-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--tone-soft, var(--brand-soft));
  color: var(--tone, var(--brand));
  flex-shrink: 0;
}

.wal-earn-icon svg {
  width: 14px;
  height: 14px;
}

.wal-earn > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.wal-earn span {
  color: var(--muted-2);
  font-size: 0.54rem;
  line-height: 1.25;
}

.wal-earn strong {
  font-size: 0.7rem;
  line-height: 1.3;
}

.wal-earn strong.is-neg {
  color: var(--red);
}

.wal-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 11px;
  color: var(--muted-2);
  font-size: 0.58rem;
  line-height: 1.45;
}

.wal-note svg {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}

.wal-tx-head {
  margin-bottom: 10px;
}

.wal-filters {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.wal-filter {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.wal-filter.is-active {
  background: #ffffff;
  color: var(--brand);
  box-shadow: 0 2px 7px -4px rgba(23, 18, 51, 0.3);
}

.wal-tx-list {
  margin-top: 8px;
}

.wal-tx {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.wal-tx:first-child {
  border-top: 0;
}

.wal-tx-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--tone-soft, var(--brand-soft));
  color: var(--tone, var(--brand));
  flex-shrink: 0;
}

.wal-tx-icon svg {
  width: 15px;
  height: 15px;
}

.wal-tx-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wal-tx-body strong {
  font-size: 0.7rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wal-tx-body > span {
  color: var(--muted-2);
  font-size: 0.56rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wal-tx-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.wal-tx-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}

.wal-tx-side strong {
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

.wal-tx-side strong.is-plus {
  color: #087a55;
}

.wal-tx-side strong.is-minus {
  color: var(--red);
}

.wal-tx-side span {
  color: var(--muted-2);
  font-size: 0.53rem;
  white-space: nowrap;
}

.wal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.58rem;
}

.wal-page-btn {
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink-2);
  font-size: 0.6rem;
  font-weight: 800;
}

/* ------------------------------------------------------------- ranks page */
.rk-hero-name {
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.rk-next-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rk-next-top h2 {
  margin-top: 1px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.rk-next-top p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.4;
}

.rk-reward-pill {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #8a5402;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.rk-requirements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 13px;
}

.rk-req {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}

.rk-req-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.rk-req-top span {
  color: var(--muted);
  font-size: 0.6rem;
}

.rk-req-top strong {
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
}

.rk-bar {
  height: 6px;
  margin-top: 7px;
  border-radius: 999px;
  background: #e9e3f8;
  overflow: hidden;
}

.rk-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6cf6, #6d4df0);
}

.rk-req small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.54rem;
}

.rk-next-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 11px;
  color: var(--muted-2);
  font-size: 0.58rem;
  line-height: 1.4;
}

.rk-next-note svg {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}

.rk-ladder-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #8a5402;
  font-size: 0.58rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.rk-ladder-badge svg {
  width: 12px;
  height: 12px;
}

.rk-list {
  margin-top: 5px;
}

.rk-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.rk-item:first-child {
  border-top: 0;
}

.rk-item.is-current {
  margin: 0 -8px;
  padding: 11px 8px;
  border-top: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7f3ff, #ffffff);
}

.rk-medal {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--muted);
  flex-shrink: 0;
}

.rk-medal svg {
  width: 17px;
  height: 17px;
}

.rk-medal-silver {
  background: #f1f3f8;
  color: #6f7890;
}

.rk-medal-gold {
  background: var(--gold-soft);
  color: #b07800;
}

.rk-medal-diamond {
  background: var(--brand-soft);
  color: var(--brand);
}

.rk-medal-member {
  background: var(--surface-3);
  color: var(--muted);
}

.rk-item.is-next .rk-medal {
  box-shadow: 0 0 0 2px #f5dfb3;
}

.rk-item-body {
  flex: 1;
  min-width: 0;
}

.rk-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rk-item-top strong {
  font-size: 0.74rem;
}

.rk-state {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.51rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.rk-state.is-current {
  background: var(--brand-soft);
  color: var(--brand);
}

.rk-state.is-achieved {
  background: #e8faf1;
  color: #087a55;
}

.rk-state.is-next {
  background: var(--gold-soft);
  color: #8a5402;
}

.rk-state.is-locked {
  background: var(--surface-3);
  color: var(--muted-2);
}

.rk-item-reward {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.59rem;
  line-height: 1.35;
}

.rk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.rk-chips span {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted-2);
  font-size: 0.52rem;
  font-weight: 700;
}

.rk-claim {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  color: #087a55;
  font-size: 0.54rem;
}

.rk-claim.is-pending {
  color: #8a5402;
}

.rk-claim svg {
  width: 10px;
  height: 10px;
}

.rk-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.57rem;
  line-height: 1.4;
}

.rk-note svg {
  width: 11px;
  height: 11px;
  margin-top: 1px;
  flex-shrink: 0;
}

.rk-history-list {
  margin-top: 4px;
}

.rk-history-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.rk-history-row:first-child {
  border-top: 0;
}

.rk-history-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gold-soft);
  color: #b07800;
  flex-shrink: 0;
}

.rk-history-icon svg {
  width: 15px;
  height: 15px;
}

.rk-history-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rk-history-body strong {
  font-size: 0.72rem;
}

.rk-history-body span {
  color: var(--muted-2);
  font-size: 0.56rem;
}

.rk-history-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}

.rk-history-side strong {
  font-family: var(--font-display);
  font-size: 0.74rem;
}

.rk-paid {
  padding: 2px 6px;
  border-radius: 999px;
  background: #e8faf1;
  color: #087a55;
  font-size: 0.49rem;
  font-weight: 800;
}

/* ------------------------------------------------------------- responsive */
@media (min-width: 760px) {
  .wallet-actions {
    max-width: 380px;
  }

  .team-share-actions {
    max-width: 430px;
  }
}

@media (max-width: 380px) {
  .rk-hero-name {
    font-size: 1.95rem;
  }

  .team-share-actions {
    grid-template-columns: 1fr;
  }

  .team-link-row input {
    font-size: 0.62rem;
  }

  .wal-earn-grid {
    grid-template-columns: 1fr;
  }
}
