/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --spacing: 0.25rem;
    --default-font-family: var(--font-geist-sans);
    --default-mono-font-family: var(--font-geist-mono);
  }
}
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html,
  :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b,
  strong {
    font-weight: bolder;
  }
  code,
  kbd,
  samp,
  pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol,
  ul,
  menu {
    list-style: none;
  }
  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    display: block;
    vertical-align: middle;
  }
  img,
  video {
    max-width: 100%;
    height: auto;
  }
  button,
  input,
  select,
  optgroup,
  textarea,
  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or
    (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit,
  ::-webkit-datetime-edit-year-field,
  ::-webkit-datetime-edit-month-field,
  ::-webkit-datetime-edit-day-field,
  ::-webkit-datetime-edit-hour-field,
  ::-webkit-datetime-edit-minute-field,
  ::-webkit-datetime-edit-second-field,
  ::-webkit-datetime-edit-millisecond-field,
  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button,
  input:where([type="button"], [type="reset"], [type="submit"]),
  ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button,
  ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .relative {
    position: relative;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .table {
    display: table;
  }
}
:root {
  --background: #f6f8fb;
  --foreground: #172033;
  --muted: #667085;
  --panel: #ffffff;
  --line: #d9e0ea;
  --brand: #1d65f2;
  --brand-dark: #1747aa;
  --green: #16a36a;
  --amber: #c98512;
  --ink: #182238;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
.site-shell {
  min-height: 100vh;
}
.hero-band {
  min-height: 680px;
  padding: 24px clamp(18px, 5vw, 72px) 64px;
  background: linear-gradient(135deg, rgba(29, 101, 242, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}
.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
}
.brand-mark,
.nav-actions,
.hero-actions,
.panel-header,
.balance-strip {
  align-items: center;
  display: flex;
}
.brand-mark {
  gap: 12px;
  font-size: 18px;
  font-weight: 760;
}
.brand-icon {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.nav-actions {
  gap: 10px;
}
.nav-actions a,
.primary-link,
.cta,
.ghost-cta,
.balance-strip button,
.signup-form button {
  border-radius: 8px;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  white-space: nowrap;
}
.nav-actions a {
  color: var(--muted);
}
.primary-link,
.cta,
.signup-form button {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.hero-grid {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  margin: 78px auto 0;
  max-width: 1180px;
}
.eyebrow,
.section-heading p {
  color: var(--brand);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  margin: 0 0 10px;
}
h1,
h2 {
  letter-spacing: 0;
  margin: 0;
}
h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
}
h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}
.hero-text {
  color: #41506a;
  font-size: 18px;
  line-height: 1.78;
  margin: 24px 0 0;
  max-width: 640px;
}
.hero-actions {
  gap: 12px;
  margin-top: 30px;
}
.cta,
.ghost-cta {
  min-height: 46px;
  padding: 0 20px;
}
.ghost-cta {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}
.console-panel,
.auth-panel,
.token-table-panel,
.amount-card {
  background: var(--panel);
  border: 1px solid rgba(119, 135, 165, 0.22);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(30, 49, 83, 0.12);
}
.console-panel {
  padding: 24px;
}
.panel-header {
  justify-content: space-between;
}
.panel-header p,
.key-box span,
.meta-grid span,
.amount-card span {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.panel-header strong {
  display: block;
  font-size: 22px;
  margin-top: 4px;
}
.status-pill {
  background: rgba(22, 163, 106, 0.1);
  border: 1px solid rgba(22, 163, 106, 0.24);
  border-radius: 999px;
  color: var(--green);
  font-size: 13px;
  font-weight: 720;
  padding: 8px 12px;
}
.balance-strip {
  background: #f1f6ff;
  border-radius: 8px;
  justify-content: space-between;
  margin-top: 24px;
  padding: 18px;
}
.balance-strip span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}
.balance-strip strong {
  display: block;
  font-size: 34px;
  margin-top: 2px;
}
.balance-strip button {
  border: 0;
  background: var(--brand-dark);
  color: #fff;
  cursor: pointer;
  font-weight: 760;
}
.key-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 16px;
  padding: 16px;
}
.key-box code {
  display: block;
  font-family: var(--font-geist-mono), monospace;
  font-size: 15px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.meta-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}
.meta-grid div {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px;
}
.meta-grid strong {
  display: block;
  font-size: 14px;
  margin-top: 6px;
}
.workflow-band,
.workspace-grid,
.recharge-band {
  margin: 0 auto;
  max-width: 1180px;
  padding: 54px clamp(18px, 4vw, 32px);
}
.workflow-band {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}
.flow-step {
  border-left: 3px solid var(--brand);
  min-height: 118px;
  padding: 8px 18px;
}
.flow-step span {
  color: var(--amber);
  font-weight: 780;
}
.flow-step p {
  color: #344054;
  line-height: 1.58;
  margin: 12px 0 0;
}
.workspace-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 380px minmax(0, 1fr);
  padding-top: 24px;
}
.auth-panel,
.token-table-panel,
.recharge-band {
  padding: 28px;
}
.signup-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.signup-form label,
.recharge-form label {
  color: #344054;
  display: grid;
  font-size: 14px;
  font-weight: 680;
  gap: 8px;
}
.signup-form input,
.recharge-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 0 12px;
}
.signup-form button,
.recharge-form button,
.signed-panel button,
.usage-toolbar button,
.admin-row button {
  border: 0;
  cursor: pointer;
  margin-top: 4px;
}
.segmented {
  background: #eef3fb;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
}
.segmented button {
  background: transparent;
  color: var(--muted);
  min-height: 36px;
}
.segmented .selected {
  background: #ffffff;
  color: var(--ink);
}
.signed-panel {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 18px;
}
.signed-panel strong {
  font-size: 22px;
}
.signed-panel span {
  color: var(--muted);
}
.signed-panel button,
.usage-toolbar button,
.admin-row button {
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  font-weight: 720;
  min-height: 38px;
  padding: 0 14px;
}
.message-line {
  background: #fff8e8;
  border: 1px solid rgba(201, 133, 18, 0.26);
  border-radius: 8px;
  color: #845400;
  line-height: 1.55;
  margin: 16px 0 0;
  padding: 12px;
}
.helper-text {
  color: var(--muted);
  line-height: 1.65;
  margin: 18px 0 0;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 22px;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  min-width: 640px;
  width: 100%;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
  text-align: left;
}
th {
  background: #f7f9fc;
  color: var(--muted);
  font-size: 13px;
}
td {
  color: #26344d;
  font-size: 14px;
}
.table-wrap td small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 4px;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
.recharge-band,
.usage-band {
  background: #ffffff;
  border: 1px solid rgba(119, 135, 165, 0.22);
  border-radius: 8px;
  margin-bottom: 28px;
}
.recharge-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}
.amount-card {
  box-shadow: none;
  padding: 22px;
}
.amount-card strong {
  display: block;
  font-size: 34px;
  margin-top: 10px;
}
.amount-card p {
  color: var(--muted);
  line-height: 1.62;
  margin: 12px 0 0;
}
.recharge-form {
  display: grid;
  gap: 14px;
}
.wechat-pay-box {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(22, 163, 106, 0.26);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 16px;
  text-align: center;
}
.wechat-pay-box img {
  height: 220px;
  width: 220px;
}
.wechat-pay-box strong {
  color: var(--green);
  font-size: 24px;
  margin: 0;
}
.wechat-pay-box span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.recharge-form button {
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  font-weight: 760;
  min-height: 44px;
}
.accent-green {
  border-color: rgba(22, 163, 106, 0.34);
}
.accent-green strong {
  color: var(--green);
}
.accent-ink {
  background: var(--ink);
  color: #fff;
}
.accent-ink span,
.accent-ink p {
  color: rgba(255, 255, 255, 0.72);
}
.usage-band {
  margin: 0 auto 60px;
  max-width: 1180px;
  padding: 28px;
}
.usage-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}
.admin-summary {
  grid-template-columns: repeat(4, 1fr);
}
.usage-metric {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.usage-metric span,
.usage-row span,
.usage-row p {
  color: var(--muted);
  font-size: 13px;
}
.usage-metric strong {
  display: block;
  font-size: 30px;
  margin-top: 8px;
}
.usage-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  overflow: hidden;
}
.usage-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.usage-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(160px, 1.2fr) minmax(120px, 1fr) auto;
  padding: 16px 18px;
}
.usage-row + .usage-row {
  border-top: 1px solid var(--line);
}
.usage-row strong {
  display: block;
  font-size: 15px;
  margin-top: 5px;
}
.usage-row p {
  margin: 0;
}
.usage-row em {
  color: var(--ink);
  font-style: normal;
  font-weight: 780;
}
.admin-title {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
  margin: 28px 0 0;
}
.admin-table table {
  min-width: 760px;
}
.admin-row button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}
@media (max-width: 900px) {
  .hero-grid,
  .workspace-grid,
  .workflow-band,
  .recharge-grid,
  .usage-grid,
  .admin-summary {
    grid-template-columns: 1fr;
  }
  .topbar {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }
  .nav-actions {
    flex-wrap: wrap;
  }
  .hero-grid {
    margin-top: 46px;
  }
  .meta-grid {
    grid-template-columns: 1fr;
  }
  .usage-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .hero-band {
    padding-inline: 16px;
  }
  .console-panel,
  .auth-panel,
  .token-table-panel,
  .recharge-band {
    padding: 20px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .cta,
  .ghost-cta {
    width: 100%;
  }
}
.login-page {
  align-items: center;
  background: radial-gradient(circle at 18% 12%, rgba(33, 150, 243, 0.26), transparent 34%),
    linear-gradient(135deg, #092045 0%, #0b5671 100%);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.login-hero {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(340px, 420px);
  max-width: 1080px;
  min-height: 670px;
  overflow: hidden;
  width: 100%;
}
.login-visual {
  background: linear-gradient(145deg, #18345f, #257c78);
  color: #ffffff;
  overflow: hidden;
  padding: 40px 34px;
  position: relative;
}
.login-visual::before {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.38) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  inset: 0;
  opacity: 0.38;
  position: absolute;
}
.login-brand,
.sidebar-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.brand-cube {
  align-items: center;
  background: linear-gradient(135deg, #2477ff, #1fc4e8);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  letter-spacing: 0;
  width: 42px;
}
.login-brand .brand-cube {
  font-size: 13px;
  height: 42px;
  width: 42px;
}
.login-brand strong,
.sidebar-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}
.login-brand span:last-child,
.hero-brand span:last-child {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 13px;
  margin-top: 2px;
}
.orbit-scene {
  height: 350px;
  margin: 18px auto 0;
  max-width: 520px;
  position: relative;
}
.orbit,
.earth,
.orbit-dot {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}
.orbit {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}
.orbit-one {
  height: 260px;
  width: 260px;
}
.orbit-two {
  height: 340px;
  width: 340px;
}
.orbit-dot {
  background: #65f3db;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(101, 243, 219, 0.8);
  height: 10px;
  width: 10px;
}
.dot-one {
  animation: orbitMove 8s linear infinite;
}
.dot-two {
  animation: orbitMove 12s linear infinite reverse;
}
.earth {
  background: radial-gradient(circle at 30% 28%, #b9f3ff 0 8%, transparent 10%),
    linear-gradient(90deg, #45d487 0 18%, #19a6f4 19% 44%, #27d9c7 45% 62%, #0355b5 63% 84%, #071b55 85%);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  box-shadow: inset -28px -18px 42px rgba(0, 0, 0, 0.34), 0 24px 80px rgba(0, 0, 0, 0.22);
  height: 210px;
  overflow: hidden;
  width: 210px;
}
.earth::before {
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0 1px, transparent 1px 18px);
  content: "";
  inset: 0;
  position: absolute;
}
.earth::after {
  background: linear-gradient(160deg, transparent 40%, rgba(255, 255, 255, 0.38) 41% 45%, transparent 46%);
  content: "";
  inset: 0;
  position: absolute;
}
.earth-glow {
  background: radial-gradient(circle, rgba(255,255,255,0.72), transparent 62%);
  border-radius: 50%;
  height: 68px;
  left: 32px;
  position: absolute;
  top: 32px;
  width: 68px;
}
.login-copy {
  bottom: 42px;
  left: 34px;
  max-width: 560px;
  position: absolute;
  right: 34px;
  z-index: 1;
}
.login-copy p {
  color: #67f1dd;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 10px;
}
.login-copy h1 {
  color: #ffffff;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.15;
}
.login-form {
  align-self: center;
  display: grid;
  gap: 16px;
  padding: 48px;
}
.mode-tabs {
  background: #edf3ff;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
}
.mode-tabs button,
.recharge-type-row button {
  border: 0;
  border-radius: 8px;
  color: #2462aa;
  cursor: pointer;
  font-weight: 760;
  min-height: 40px;
}
.mode-tabs .active,
.recharge-type-row .active {
  background: #ffffff;
  color: #061b3a;
}
.login-form label {
  color: #10213e;
  display: grid;
  font-size: 14px;
  font-weight: 760;
  gap: 8px;
}
.login-form input,
.admin-bind-form input,
.admin-bind-form select,
.custom-amount-card input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 0 12px;
}
.login-form > button,
.top-actions button,
.panel-title button,
.api-info button,
.pay-card button,
.admin-bind-form button,
td button {
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 760;
  min-height: 40px;
  padding: 0 16px;
}
.app-shell {
  background: #f3f7fc;
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: linear-gradient(180deg, #eef6ff, #f8fbff);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 30px 14px;
}
.sidebar-brand {
  background: #1688f6;
  border-radius: 8px;
  color: #ffffff;
  padding: 8px 10px;
}
.side-nav {
  display: grid;
  gap: 4px;
  margin-top: 28px;
}
.side-nav span {
  color: #7b8aa6;
  font-size: 12px;
  margin: 18px 10px 4px;
}
.side-nav button,
.home-link {
  border: 0;
  border-radius: 8px;
  color: #193152;
  cursor: pointer;
  min-height: 34px;
  padding: 0 10px;
  text-align: left;
}
.side-nav button.active {
  background: #ddebff;
  color: #0d66d8;
  font-weight: 800;
}
.home-link {
  margin-top: auto;
}
.main-area {
  min-width: 0;
  padding: 32px 24px 56px;
}
.app-topbar,
.content-panel {
  background: #ffffff;
  border: 1px solid rgba(124, 142, 171, 0.22);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(39, 64, 96, 0.06);
}
.app-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 22px 18px;
}
.crumb {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.app-topbar h1 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}
.top-actions {
  display: flex;
  gap: 10px;
}
.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}
.metric-card,
.chart-panel,
.api-panel,
.content-panel,
.balance-card,
.pay-card {
  background: #ffffff;
  border: 1px solid rgba(124, 142, 171, 0.22);
  border-radius: 8px;
}
.metric-card {
  min-height: 126px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}
.metric-card span,
.balance-card span,
.usage-summary span {
  color: var(--muted);
  font-size: 13px;
}
.metric-card strong,
.balance-card strong,
.usage-summary strong {
  color: #061b3a;
  display: block;
  font-size: 26px;
  margin-top: 10px;
}
.sparkline {
  bottom: 16px;
  fill: none;
  height: 44px;
  position: absolute;
  right: 16px;
  stroke: #1688f6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  width: 120px;
}
.sparkline.green {
  stroke: #19b985;
}
.sparkline.orange {
  stroke: #ff8a1d;
}
.sparkline.pink {
  stroke: #ff4bb2;
}
.dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 340px;
}
.chart-panel,
.api-panel,
.content-panel {
  padding: 18px;
}
.panel-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.panel-title h2,
.content-panel h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
.panel-tabs {
  display: flex;
  gap: 8px;
}
.panel-tabs span {
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
}
.panel-tabs .active {
  background: #e9f3ff;
  color: var(--brand);
  font-weight: 800;
}
.bar-chart {
  align-items: end;
  display: flex;
  gap: 24px;
  height: 320px;
  padding: 28px 18px 12px;
}
.bar-item {
  align-items: center;
  display: grid;
  flex: 1;
  gap: 10px;
  justify-items: center;
}
.bar-track {
  align-items: end;
  background: #eff4fb;
  border-radius: 8px 8px 0 0;
  display: flex;
  height: 260px;
  overflow: hidden;
  width: 100%;
}
.bar-track span {
  background: #345a8b;
  display: block;
  width: 100%;
}
.api-info code,
.key-box code {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  margin: 10px 0;
  overflow-wrap: anywhere;
  padding: 14px;
}
.empty-api {
  color: var(--muted);
  display: grid;
  min-height: 260px;
  place-items: center;
  text-align: center;
}
.content-panel {
  margin-bottom: 18px;
}
.recharge-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 42% 1fr;
}
.balance-card,
.pay-card {
  padding: 22px;
}
.recharge-type-row {
  display: flex;
  gap: 10px;
  margin: 12px 0 14px;
}
.recharge-type-row button {
  background: #e9f3ff;
  padding: 0 14px;
}
.preset-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}
.preset-grid button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #061b3a;
  min-height: 94px;
}
.preset-grid button.selected {
  background: #e8f4ff;
  border-color: #1688f6;
}
.preset-grid strong {
  display: block;
  font-size: 20px;
}
.preset-grid span {
  color: var(--green);
  display: block;
  font-size: 13px;
  margin-top: 10px;
}
.custom-amount-card {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.pay-card > button {
  background: var(--green);
  width: 100%;
}
.recharge-message,
.form-message {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  padding: 12px;
}
.form-message.compact {
  margin-bottom: 16px;
}
.wechat-pay-box {
  border: 1px solid rgba(22, 163, 106, 0.34);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  justify-items: center;
  margin-top: 14px;
  padding: 18px;
  text-align: center;
}
.wechat-pay-box img {
  height: 220px;
  width: 220px;
}
.wechat-pay-box strong {
  color: var(--green);
  font-size: 24px;
}
.auto-refresh-note {
  color: var(--muted);
  margin: 0;
}
.usage-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}
.usage-summary.four {
  grid-template-columns: repeat(4, 1fr);
}
.usage-summary > div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.admin-bind-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 20px;
}
.admin-bind-form label {
  display: grid;
  gap: 8px;
}
.admin-bind-form .wide {
  grid-column: 1 / -1;
}
.admin-usage-panel {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
  padding: 16px;
}
@keyframes orbitMove {
  from {
    transform: rotate(0deg) translateX(170px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(170px) rotate(-360deg);
  }
}
@media (max-width: 980px) {
  .login-hero,
  .app-shell,
  .dashboard-grid,
  .recharge-layout,
  .metric-grid,
  .usage-summary,
  .usage-summary.four {
    grid-template-columns: 1fr;
  }
  .sidebar {
    min-height: auto;
  }
}
