/* ZhiPool console theme. Native new-api components retain their own behavior. */
:root, html.light {
  --background: #fbf7fd;
  --foreground: #27213e;
  --card: #fff;
  --card-foreground: #27213e;
  --popover: #fff;
  --popover-foreground: #27213e;
  --primary: #6542bd;
  --primary-foreground: #fff;
  --secondary: #f2eaf8;
  --secondary-foreground: #352e49;
  --muted: #f3edf8;
  --muted-foreground: #615770;
  --accent: #f0e6fb;
  --accent-foreground: #532fab;
  --destructive: #ac3434;
  --destructive-foreground: #fff;
  --border: #e5daef;
  --input: #d9c9e5;
  --ring: #7251ca;
  --radius: .7rem;
  --sidebar: #faf4fc;
  --sidebar-foreground: #352e49;
  --sidebar-primary: #6542bd;
  --sidebar-primary-foreground: #fff;
  --sidebar-accent: #f0e6fb;
  --sidebar-accent-foreground: #532fab;
  --sidebar-border: #e5daef;
  --sidebar-ring: #7251ca;
  --zp-paper: #fbf7fd;
  --zp-surface: #fff;
  --zp-warm: #f8e7ef;
  --zp-warm-ink: #783b5a;
  --zp-border-hover: #ad92d7;
  --zp-ok: #6542bd;
  --zp-warn: #8a5f17;
  --zp-shadow: 0 8px 24px -20px rgb(22 49 35 / .3);
}

html.dark, .dark {
  --background: #171323;
  --foreground: #f5effb;
  --card: #231c31;
  --card-foreground: #f5effb;
  --popover: #272039;
  --popover-foreground: #f5effb;
  --primary: #cdb4ff;
  --primary-foreground: #201631;
  --secondary: #302640;
  --secondary-foreground: #efe5fa;
  --muted: #2b233a;
  --muted-foreground: #c3b7cf;
  --accent: #3c2d54;
  --accent-foreground: #e4d3ff;
  --destructive: #ed9d9d;
  --destructive-foreground: #2b1515;
  --border: #433550;
  --input: #544263;
  --ring: #b99aee;
  --sidebar: #1c172a;
  --sidebar-foreground: #efe5fa;
  --sidebar-primary: #cdb4ff;
  --sidebar-primary-foreground: #201631;
  --sidebar-accent: #3c2d54;
  --sidebar-accent-foreground: #e4d3ff;
  --sidebar-border: #433550;
  --sidebar-ring: #b99aee;
  --zp-paper: #1c172a;
  --zp-surface: #231c31;
  --zp-warm: #432d41;
  --zp-warm-ink: #f3c7d9;
  --zp-border-hover: #a785d7;
  --zp-ok: #cdb4ff;
  --zp-warn: #f6ca80;
  --zp-shadow: 0 8px 24px -20px rgb(0 0 0 / .6);
}

/* Shared tokens used by the console's invitation, announcement and money widgets. */
html {
  --bg: var(--background);
  --surface: var(--zp-surface);
  --soft: var(--muted);
  --ink: var(--foreground);
  --ink-2: var(--muted-foreground);
  --zp-soft: var(--muted);
  --zp-ink: var(--foreground);
  --zp-ink2: var(--muted-foreground);
  --zp-muted: var(--muted-foreground);
  --zp-accent: var(--primary);
  --zp-accent-btn: var(--primary);
  --zp-accent-deep: var(--accent-foreground);
  --zp-accent-cyan: var(--primary);
  --zp-accent-soft: var(--accent);
  --zp-grad: linear-gradient(135deg, #F472B6 0%, #9333EA 56%, #6D28D9 100%);
  --zp-ok-bg: var(--accent);
  --zp-border: var(--border);
  --zp-border-solid: var(--border);
  --shadow: var(--zp-shadow);
  --zp-ease: cubic-bezier(.22, 1, .36, 1);
}

html, body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

[data-slot="sidebar-inset"] {
  background: var(--background);
  min-width: 0;
}

[data-sidebar="menu-button"] {
  border-radius: 8px;
}

[data-sidebar="menu-button"][data-active="true"] {
  color: var(--sidebar-accent-foreground);
  background: var(--sidebar-accent);
  font-weight: 650;
}

[data-slot="sidebar-inset"] [data-slot="card"],
[data-zp-pricing] [data-slot="card"] {
  border-radius: 12px;
  box-shadow: var(--zp-shadow);
}

[data-slot="sidebar-inset"] main > div:first-child > div h2 {
  font-size: clamp(1.18rem, 1.4vw, 1.46rem);
}

[data-slot="sidebar-inset"] .zptk-dot {
  background: var(--primary) !important;
}

.zp-money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--primary);
}

.zp-money .zp-mu, .zp-mu {
  display: inline-block;
  background: center / contain no-repeat;
  width: 1.18em;
  height: 1.05em;
  margin-right: .18em;
  vertical-align: -.16em;
}

.zp-brand-mark {
  object-fit: contain;
}

/* Pricing directory. Filters and price calculations remain native. */
[data-zp-pricing] div.pointer-events-none.absolute.inset-x-0.top-0[class*="h-[600px]"] {
  display: none;
}

.zp-pricing-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 32px;
  max-width: none;
  margin: 0 0 20px;
  padding: 25px clamp(16px, 2.6vw, 36px) 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--zp-surface);
  text-align: left;
  box-shadow: var(--zp-shadow);
}

.zp-pricing-intro h1 {
  grid-column: 1;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  letter-spacing: -.045em;
}

.zp-pricing-intro > p:first-of-type {
  grid-column: 1;
  margin-top: 8px;
  color: var(--muted-foreground);
}

.zp-pricing-intro > p:nth-of-type(2) {
  display: none;
}

.zp-pricing-intro > .zp-pricing-search {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 100%;
  max-width: none;
  margin: 0;
}

.zp-pricing-search input {
  min-height: 44px;
  background: var(--background);
}

.zp-pricing-search input::placeholder {
  color: var(--muted-foreground);
}

#zp-pricing-scenes {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
}

.zp-scene-pill {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--zp-paper);
  color: var(--ink-2);
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}

.zp-scene-pill:hover, .zp-scene-pill.active {
  border-color: var(--zp-border-hover);
  background: var(--accent);
  color: var(--accent-foreground);
}

.zp-scene-pill:focus-visible,
.zp-oa-card:focus-visible,
.zp-wsec a:focus-visible,
.zp-wsec button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

[data-zp-pricing] [data-slot="card"].cursor-pointer:hover {
  border-color: var(--zp-border-hover);
}

/* Fix /pricing 24-bar sparkline overflowing w-20 (80px) into Latency column, and keep pricing 3-up on 1 row */
[data-zp-pricing] [data-slot="card"] dl > div:first-child {
  width: auto !important;
  min-width: 76px;
  overflow: hidden;
}
[data-zp-pricing] [data-slot="card"] dd[role="img"] > span {
  width: 2px !important;
}
[data-zp-pricing] [data-slot="card"] [class*="minmax(88px"] {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Dashboard quick links: clean separated cards instead of harsh 1px segmented strip. */
#zp-overview-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  background: transparent;
  border: 0;
  overflow: visible;
}

.zp-oa-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 70px;
  padding: 12px 15px;
  background: var(--zp-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--zp-shadow);
  color: var(--foreground);
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.zp-oa-card:hover { background: var(--accent); border-color: var(--zp-border-hover); transform: translateY(-1px); }
.zp-oa-card:focus-visible { outline-offset: -4px; }
.zp-oa-title, .zp-oa-desc { display: block; }
.zp-oa-title { font-size: .88rem; font-weight: 700; }
.zp-oa-desc { margin-top: 3px; color: var(--muted-foreground); font-size: .76rem; }
.zp-oa-arrow { color: var(--muted-foreground); }

.zp-oa-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-foreground);
  font: 700 1rem/1 ui-monospace, Consolas, monospace;
}

.zp-oa-card:nth-child(3) .zp-oa-icon { background: var(--zp-warm); color: var(--zp-warm-ink); }

#zp-ref-bar {
  border-radius: 10px !important;
  border: 1px solid var(--border) !important;
  background: var(--zp-surface) !important;
  box-shadow: none !important;
}

#zp-ref-bar .zrb-btn:not(.ghost):not(.ok),
#zp-ref-fab,
.zpq-fab,
#zp-ref-modal .zrf-copy:not(.ok),
#zp-ref-modal .zrf-foot a.primary {
  background: var(--zp-grad) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px -8px rgba(147, 51, 234, 0.5) !important;
}

/* Remove redundant #zp-ref-fab (invite bar is already pinned at top of console)
   and guarantee console pagination on /keys, /usage-logs, /wallet always clears .zpq-fab */
#zp-ref-fab {
  display: none !important;
}
[data-slot="sidebar-inset"] .zpq-fab {
  height: 36px !important;
  bottom: 14px !important;
  right: 18px !important;
  font-size: 12px !important;
}
/* Clean visual divider on sticky right-hand table action columns (/keys, /usage-logs) */
[data-slot="sidebar-inset"] table :is(th, td).sticky.right-0 {
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 14px -10px rgba(39, 33, 62, 0.22);
}

.zpq-fab .zpq-fab-ico { background: transparent; color: inherit; }
#zp-qr-modal, #zp-ref-modal { border-radius: 16px !important; }

/* Wallet summary and purchase choices. */
#zp-wallet-live {
  overflow: hidden;
  border-radius: 12px;
  border-color: var(--border);
  background: var(--zp-surface);
}

#zp-wallet-live > :first-child {
  background: var(--accent);
}

#zp-wallet-live > div { min-width: 0; }

#zp-promo-strip { min-width: 0; }

.zp-wsec {
  padding: clamp(14px, 2.2vw, 24px);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--zp-surface);
  box-shadow: var(--zp-shadow);
  color: var(--foreground);
}

.zp-wsec:last-child { margin-bottom: 0; }
.zp-topup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.zp-wsec h2 { margin: 0; font-size: 1.15rem; font-weight: 750; letter-spacing: -.025em; }
.zp-whint, .zp-wnote { margin: 4px 0 0; color: var(--muted-foreground); font-size: .84rem; }
.zp-wlink { color: var(--primary); font-size: .85rem; font-weight: 650; text-underline-offset: 4px; }
.zp-wlink:hover { text-decoration: underline; }
.zp-topup-grid, .zp-sub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.zp-topup-card, .zp-sub-card { display: flex; min-width: 0; flex-direction: column; gap: 7px; padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--zp-paper); }
.zp-topup-card { color: var(--foreground); text-decoration: none; }
.zp-topup-card:hover { border-color: var(--zp-border-hover); background: var(--accent); }
.zp-t-top { display: flex; align-items: flex-start; gap: 4px 8px; flex-wrap: wrap; justify-content: space-between; }
.zp-t-face { font-size: clamp(.98rem, 1.2vw, 1.18rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.zp-t-disc, .zp-sub-tag { padding: 2px 6px; border-radius: 5px; background: var(--zp-warm); color: var(--zp-warm-ink); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.zp-t-disc.base { background: var(--muted); color: var(--muted-foreground); }
.zp-t-pay { color: var(--foreground); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.zp-t-save { color: var(--muted-foreground); font-size: .76rem; }
.zp-custom-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.zp-custom-wrap { display: flex; flex: 1 1 180px; min-width: 0; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--input); border-radius: 8px; }
.zp-custom-wrap:focus-within { border-color: var(--ring); box-shadow: 0 0 0 2px var(--accent); }
.zp-custom-prefix { color: var(--muted-foreground); font-size: .84rem; white-space: nowrap; }
.zp-custom-input { width: 100%; min-width: 0; height: 42px; border: 0; background: transparent; color: inherit; outline: none; font-size: 1rem; }
.zp-custom-btn, .zp-sub-btn { display: inline-flex; min-height: 44px; padding: 8px 20px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; background: var(--zp-grad); color: #FFFFFF; font-size: .88rem; font-weight: 650; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(147, 51, 234, 0.5); transition: transform .16s var(--zp-ease), filter .16s var(--zp-ease); }
.zp-custom-btn:hover, .zp-sub-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.zp-custom-preview { flex-basis: 100%; color: var(--muted-foreground); font-size: .81rem; }
.zp-custom-preview[data-invalid] { color: var(--destructive); }
.zp-sub-card.pro { border-color: var(--zp-border-hover); }
.zp-sub-name { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 8px; font-size: 1rem; font-weight: 720; }
.zp-sub-price { font-size: 1.5rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.zp-sub-price small { margin-left: 4px; color: var(--muted-foreground); font-size: .8rem; font-weight: 450; }
.zp-sub-meta { margin: 0 0 6px; padding: 0; list-style: none; color: var(--muted-foreground); font-size: .84rem; line-height: 1.55; }
.zp-sub-meta li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1px 8px; }
.zp-sub-meta b { color: var(--foreground); }
.zp-sub-btn { margin-top: auto; background: var(--zp-surface); color: var(--primary); border-color: var(--zp-border-hover); box-shadow: none; }
.zp-sub-card.pro .zp-sub-btn { background: var(--zp-grad); color: #FFFFFF; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(147, 51, 234, 0.5); }
.zp-wnote { margin-top: 12px; }

/* Subscription Reset Card & Exclusive Invite Link Panel */
.zp-rc-panel {
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid #F0D2EC;
  background: linear-gradient(135deg, #FFF5FA 0%, #F7EFFF 55%, #FFF8F2 100%);
  color: var(--foreground);
}
html.dark .zp-rc-panel {
  border-color: rgba(205, 180, 255, 0.22);
  background: linear-gradient(135deg, #251B34 0%, #1F182E 60%, #281C2C 100%);
}
.zp-rc-gift {
  margin-bottom: 11px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ECFDF5;
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #047857;
  font-size: .82rem;
}
html.dark .zp-rc-gift {
  background: rgba(16, 185, 129, 0.14);
  color: #6EE7B7;
}
.zp-rc-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.zp-rc-left {
  flex: 1 1 320px;
  min-width: 0;
}
.zp-rc-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.zp-rc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--zp-grad);
  color: #FFFFFF;
  font-size: .78rem;
  font-weight: 750;
}
.zp-rc-count {
  font-size: .92rem;
  font-weight: 700;
}
.zp-rc-count b {
  color: var(--primary);
  font-size: 1.05rem;
}
.zp-rc-count small {
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: .78rem;
}
.zp-rc-desc {
  margin: 6px 0 8px;
  color: var(--muted-foreground);
  font-size: .81rem;
  line-height: 1.5;
}
.zp-rc-subbar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  font-size: .8rem;
}
html.dark .zp-rc-subbar {
  background: rgba(255, 255, 255, 0.05);
}
.zp-rc-subbar.muted {
  color: var(--muted-foreground);
}
.zp-rc-use-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--zp-surface);
  color: var(--muted-foreground);
  font-size: .83rem;
  font-weight: 700;
  cursor: default;
  white-space: nowrap;
}
.zp-rc-use-btn.ready {
  background: var(--zp-grad);
  color: #FFFFFF;
  border-color: transparent;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(147, 51, 234, 0.55);
}
.zp-rc-use-btn.ready:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.zp-rc-share {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--border);
}
.zp-rc-share-lbl {
  font-size: .79rem;
  font-weight: 700;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.zp-rc-share-url {
  flex: 1 1 220px;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--zp-surface);
  border: 1px solid var(--border);
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zp-rc-copy-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--zp-border-hover);
  background: var(--zp-surface);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.zp-rc-copy-btn:hover {
  background: var(--accent);
}
.zp-rc-msg {
  display: none;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 650;
}
.zp-rc-msg.ok {
  display: block;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.zp-rc-msg.err {
  display: block;
  background: #FFF1F2;
  color: #BE123C;
  border: 1px solid rgba(244, 63, 94, 0.28);
}

/* Compact bottom utility row (My Subscriptions + Redeem Code & Orders) — align-items:start prevents 240px stretched void. */
.zp-native-wallet-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
  margin-top: 16px !important;
}
.zp-native-wallet-row > * {
  min-width: 0;
  height: auto !important;
  align-self: start;
  border-radius: 16px !important;
  box-shadow: var(--zp-shadow);
}
[data-zp-compact-redeem="1"] {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .zp-native-wallet-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Sign-in and sign-up share the native form and a branded image panel at desktop widths. */
#root .relative.grid.h-svh.max-w-none:has(> a > h1) {
  min-height: 100svh;
  height: auto;
  background: var(--background);
}

#root .relative.grid.h-svh.max-w-none:has(> a > h1) > a:first-child {
  color: var(--foreground);
}

#root .relative.grid.h-svh.max-w-none:has(> a > h1) > a:first-child img {
  content: url("/img/zhipool-mark.png");
  object-fit: contain;
}

#root .relative.grid.h-svh.max-w-none:has(> a > h1) > .container {
  width: 100%;
  padding: 72px 16px 24px;
}

#root .relative.grid.h-svh.max-w-none:has(> a > h1) > .container > div {
  width: min(100%, 470px);
  padding: clamp(19px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--zp-surface);
  box-shadow: var(--zp-shadow);
}

#root .relative.grid.h-svh.max-w-none:has(> a > h1) h2 { text-align: start; font-size: 1.65rem; }
#root .relative.grid.h-svh.max-w-none:has(> a > h1) form input:not([type="hidden"]),
#root .relative.grid.h-svh.max-w-none:has(> a > h1) form button[type="submit"] { min-height: 44px; }
#root .relative.grid.h-svh.max-w-none:has(> a > h1) form input:not([type="hidden"]) { padding-inline: 12px; }

@media (min-width: 850px) {
  #root .relative.grid.h-svh.max-w-none:has(> a > h1) {
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  }
  #root .relative.grid.h-svh.max-w-none:has(> a > h1)::before {
    content: "";
    display: block;
    margin: 88px 0 26px 28px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: url("/img/zhipool-mark.png") center / clamp(100px, 34%, 235px) auto no-repeat,
                radial-gradient(ellipse at 48% 46%, var(--zp-surface), transparent 64%),
                linear-gradient(145deg, var(--accent) 0%, var(--zp-warm) 100%);
  }
}

@media (min-width: 1260px) {
  .zp-topup-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  #zp-overview-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  /* Fix /pricing mobile table: prevent 输入/输出 price collision and 按量… truncation */
  [data-zp-pricing] table {
    min-width: 760px !important;
  }
  [data-zp-pricing] table :is(th, td):nth-child(2) {
    min-width: 88px;
    white-space: nowrap;
  }
  [data-zp-pricing] table :is(th, td):nth-child(3) {
    min-width: 156px;
    white-space: nowrap;
  }
  [data-zp-pricing] table td:nth-child(3) > div,
  [data-zp-pricing] table td:nth-child(3) > div > div {
    gap: 12px !important;
  }
  [data-zp-pricing] table :is(th, td):nth-child(4) {
    min-width: 96px;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .zp-pricing-intro { display: block; padding-top: 16px; }
  .zp-pricing-intro > .zp-pricing-search { margin-top: 13px; }
  .zp-pricing-search input {
    padding-left: 34px !important;
    padding-right: 12px !important;
    font-size: 13.5px !important;
  }
  #zp-pricing-scenes { flex-wrap: wrap; margin-top: 14px; }
  .zp-scene-pill { min-height: 42px; }
  .zp-oa-card { gap: 7px; padding: 10px; }
  .zp-oa-icon { width: 27px; height: 27px; }
  .zp-oa-arrow { display: none; }
  .zp-topup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .zp-topup-card { padding: 10px 11px; gap: 5px; }
  .zp-t-top { flex-wrap: nowrap; align-items: center; gap: 4px; }
  .zp-t-face { font-size: 0.92rem; white-space: nowrap; }
  .zp-t-disc { font-size: 0.68rem; padding: 2px 5px; }
  .zp-sub-grid { grid-template-columns: minmax(0, 1fr); }
  .zp-custom-btn { flex: 1 1 120px; }
  #zp-wallet-live > div > div { overflow-wrap: anywhere; }
  [data-slot="sidebar-inset"] .line-clamp-1 {
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }
}

@media (max-width: 355px) {
  .zp-oa-card { grid-template-columns: minmax(0, 1fr); }
  .zp-oa-icon { display: none; }
}
