:root {
  color-scheme: light;
  --brand: #ff6a3d;
  --brand-dark: #d94b22;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
}

.app-main {
  width: min(1080px, calc(100% - 32px));
  margin: 32px auto;
  flex: 1;
}

.page-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.page-card h1 {
  margin: 0 0 12px;
  font-size: 28px;
}

.page-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.placeholder-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.placeholder-item strong {
  display: block;
  margin-bottom: 8px;
}

.form-card {
  max-width: 420px;
  margin: 0 auto;
}

.form-row {
  margin-top: 16px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
}

.button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  cursor: pointer;
}

.app-footer {
  padding: 20px 32px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 760px) {
  .app-header {
    padding: 0 16px;
  }

  .placeholder-grid {
    grid-template-columns: 1fr;
  }
}

.install-page {
  width: min(960px, 100%);
  margin: 0 auto;
}

.install-hero {
  padding: 30px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #171923, #26304a 54%, #ff6a3d);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.install-hero.success {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #10251d, #1f6b4f 56%, #ffc371);
}

.install-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.install-hero h1 {
  margin: 0 0 10px;
  font-size: 32px;
}

.install-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.step {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.step.active {
  color: #fff;
  border-color: #ff6a3d;
  background: #ff6a3d;
}

.install-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.install-form.narrow {
  max-width: 520px;
  margin: 0 auto;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.check-row strong,
.check-row span {
  display: block;
}

.check-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.check-row em {
  min-width: 84px;
  align-self: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.check-row.passed em {
  color: #047857;
  background: #d1fae5;
}

.check-row.failed em {
  color: #b91c1c;
  background: #fee2e2;
}

.install-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #991b1b;
  background: #fef2f2;
  line-height: 1.6;
}

.install-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  color: #854d0e;
  background: #fef3c7;
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.install-form label {
  display: block;
  margin-bottom: 16px;
}

.form-grid label {
  margin-bottom: 0;
}

.install-form label span {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.install-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-size: 15px;
}

.install-form input:focus {
  border-color: #ff6a3d;
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.12);
}

.install-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.install-actions.split {
  justify-content: space-between;
  gap: 12px;
}

.install-button {
  min-width: 180px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #ff6a3d;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.install-button.ghost {
  color: #374151;
  border: 1px solid var(--line);
  background: #fff;
}

.install-button.disabled {
  color: #9ca3af;
  background: #e5e7eb;
  cursor: not-allowed;
}

.summary-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.summary-box div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}

.summary-box span,
.summary-box strong {
  display: block;
}

.summary-box span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.success-panel {
  padding: 22px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.success-panel h2 {
  margin: 0 0 8px;
  color: #166534;
}

.success-panel p {
  margin: 0;
  color: #166534;
  line-height: 1.7;
}

.success-panel code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 760px) {
  .install-steps,
  .form-grid,
  .summary-box {
    grid-template-columns: 1fr;
  }

  .install-actions,
  .install-actions.split {
    flex-direction: column;
  }

  .install-button {
    width: 100%;
  }

  .check-row {
    flex-direction: column;
  }
}

.admin-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 106, 61, 0.18), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(255, 195, 113, 0.2), transparent 24%),
    linear-gradient(135deg, #111827, #1f2937 55%, #2a1f24);
}

.admin-login-panel {
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.admin-login-logo,
.admin-brand-logo {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  font-weight: 900;
}

.admin-login-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.admin-login-brand h1 {
  margin: 0 0 5px;
  font-size: 24px;
}

.admin-login-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-login-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  background: #fef2f2;
  font-size: 14px;
}

.admin-field {
  display: block;
  margin-bottom: 16px;
}

.admin-field span {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.admin-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-size: 15px;
}

.admin-field input:focus {
  border-color: #ff6a3d;
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.12);
}

.admin-primary-button,
.admin-small-button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #ff6a3d;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.admin-primary-button {
  width: 100%;
  height: 46px;
  font-size: 16px;
}

.admin-body {
  background: #f3f4f6;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}

.admin-sidebar {
  background: #111827;
  color: #fff;
  padding: 22px 16px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.admin-brand strong,
.admin-brand span {
  display: block;
}

.admin-brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.admin-menu {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.admin-menu a,
.admin-menu button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.admin-menu a.active,
.admin-menu a:hover,
.admin-menu button:hover {
  color: #fff;
  background: rgba(255, 106, 61, 0.18);
}

.admin-menu form {
  margin: 6px 0 0;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-topbar h1 {
  margin: 0 0 5px;
  font-size: 22px;
}

.admin-topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-profile {
  min-width: 130px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}

.admin-profile span,
.admin-profile small {
  display: block;
}

.admin-profile span {
  font-weight: 800;
}

.admin-profile small {
  margin-top: 2px;
  color: var(--muted);
}

.admin-content {
  padding: 28px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-stats {
  grid-template-columns: repeat(5, 1fr);
}

.admin-stat-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.admin-stat-card {
  padding: 18px;
}

.admin-stat-card:nth-child(2),
.admin-stat-card:nth-child(5) {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.admin-stat-card:nth-child(8) {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4, #fff);
}

.admin-stat-card span,
.admin-stat-card p {
  color: var(--muted);
}

.admin-stat-card span {
  font-size: 13px;
}

.admin-stat-card strong {
  display: block;
  margin: 8px 0;
  font-size: 28px;
  line-height: 1.15;
}

.admin-stat-card p {
  margin: 0;
  font-size: 13px;
}

.admin-card {
  padding: 20px;
}

.dashboard-section {
  margin-bottom: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-card-head h2 {
  margin: 0;
  font-size: 18px;
}

.admin-small-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
}

.admin-small-button.muted {
  color: #6b7280;
  background: #e5e7eb;
}

.admin-small-button.danger-solid {
  background: #dc2626;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  color: #374151;
  background: #f9fafb;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.admin-badge.success {
  color: #047857;
  background: #d1fae5;
}

.admin-badge.warning {
  color: #92400e;
  background: #fef3c7;
}

.admin-badge.danger {
  color: #b91c1c;
  background: #fee2e2;
}

.admin-placeholder-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-card-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.6;
  font-size: 14px;
}

.admin-alert.success {
  color: #047857;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

.admin-alert.error {
  color: #991b1b;
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.admin-row-desc {
  display: block;
  max-width: 280px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-muted {
  color: var(--muted);
}

.admin-badge.muted {
  color: #4b5563;
  background: #e5e7eb;
}

.admin-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-action-row form {
  margin: 0;
}

.admin-text-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  color: #374151;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.admin-text-button:hover {
  border-color: #ff6a3d;
  color: #ff6a3d;
}

.admin-text-button.danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.admin-form label,
.admin-form-full {
  display: block;
}

.admin-form span {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 15px;
}

.admin-form input,
.admin-form select {
  height: 44px;
  padding: 0 12px;
}

.admin-form textarea {
  padding: 12px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: #ff6a3d;
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.12);
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.admin-filter-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}

.admin-filter-form label span {
  display: block;
  margin-bottom: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.admin-filter-form input,
.admin-filter-form select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.admin-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.admin-order-table {
  min-width: 1320px;
}

.admin-user-table {
  min-width: 980px;
}

.admin-token-log-table {
  min-width: 1120px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.admin-pagination div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-pagination a {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #374151;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}

.admin-pagination a.active {
  color: #fff;
  border-color: #ff6a3d;
  background: #ff6a3d;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.admin-detail-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}

.admin-detail-box.full {
  margin-top: 16px;
}

.admin-detail-box h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.admin-detail-box dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.admin-detail-box dt {
  color: var(--muted);
}

.admin-detail-box dd {
  margin: 0;
  min-width: 0;
  word-break: break-all;
  font-weight: 700;
}

.admin-raw-box {
  max-height: 320px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 8px;
  color: #d1d5db;
  background: #111827;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.admin-card.nested {
  margin-top: 16px;
  box-shadow: none;
}

.admin-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.admin-mini-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}

.admin-mini-form h3 {
  margin: 0;
  font-size: 16px;
}

.admin-mini-form label span,
.admin-token-modal-panel label span {
  display: block;
  margin-bottom: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.admin-mini-form input,
.admin-token-modal-panel input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.admin-token-modal[hidden] {
  display: none;
}

.admin-token-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-token-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.56);
}

.admin-token-modal-panel {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.admin-token-modal-panel h2,
.admin-token-modal-panel p {
  margin: 0;
}

.admin-token-modal-panel p {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-menu {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-stats,
  .dashboard-stats,
  .admin-filter-form,
  .admin-detail-grid,
  .admin-manual-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-menu,
  .admin-stats,
  .dashboard-stats,
  .admin-form-grid,
  .admin-filter-form,
  .admin-detail-grid,
  .admin-manual-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-detail-box dl {
    grid-template-columns: 1fr;
  }
}

.recharge-body {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 95, 109, 0.25), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(255, 195, 113, 0.28), transparent 28%),
    linear-gradient(135deg, #0f1020, #171a2f 45%, #231528);
}

.recharge-page {
  max-width: 1180px;
  margin: 0 auto;
}

.recharge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.recharge-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recharge-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  box-shadow: 0 12px 30px rgba(255, 95, 109, 0.35);
  font-weight: 900;
}

.recharge-brand h1 {
  margin: 0 0 4px;
  font-size: 24px;
}

.recharge-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.recharge-user {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.recharge-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.recharge-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.recharge-left-panel {
  padding: 28px;
}

.recharge-title span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 195, 113, 0.28);
  border-radius: 999px;
  color: #ffc371;
  background: rgba(255, 195, 113, 0.12);
  font-size: 13px;
}

.recharge-title h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.25;
}

.recharge-title p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.recharge-token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.recharge-loading {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.recharge-token-card {
  position: relative;
  min-height: 188px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  text-align: left;
  cursor: pointer;
  transition: 0.22s;
}

.recharge-token-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 195, 113, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.recharge-token-card.active {
  border-color: #ffc371;
  background: linear-gradient(145deg, rgba(255, 95, 109, 0.24), rgba(255, 195, 113, 0.13));
  box-shadow: 0 16px 40px rgba(255, 95, 109, 0.18);
}

.recharge-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  max-width: 86px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #161616;
  background: #ffc371;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.recharge-token-name {
  margin-bottom: 12px;
  padding-right: 72px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.recharge-token-num {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 900;
}

.recharge-token-num small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 500;
}

.recharge-token-price {
  margin-bottom: 10px;
  color: #ffc371;
  font-size: 22px;
  font-weight: 800;
}

.recharge-token-desc {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.6;
}

.recharge-feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.recharge-feature {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.recharge-feature h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.recharge-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.6;
}

.recharge-right-panel {
  position: sticky;
  top: 24px;
  padding: 24px;
}

.recharge-order-title {
  margin: 0 0 18px;
  font-size: 22px;
}

.recharge-summary {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.22);
}

.recharge-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.recharge-summary-row:last-child {
  border-bottom: 0;
}

.recharge-summary-row strong {
  color: #fff;
  text-align: right;
}

.recharge-form-group {
  margin-bottom: 16px;
}

.recharge-form-group label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.recharge-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
}

.recharge-input:focus {
  border-color: #ffc371;
}

.recharge-pay-single {
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 195, 113, 0.5);
  border-radius: 14px;
  color: #ffc371;
  background: rgba(255, 195, 113, 0.16);
  font-weight: 800;
}

.recharge-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 20px 0;
}

.recharge-total span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.recharge-total strong {
  color: #ffc371;
  font-size: 34px;
}

.recharge-btn {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 16px;
  color: #191919;
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  box-shadow: 0 16px 38px rgba(255, 95, 109, 0.32);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  transition: 0.22s;
}

.recharge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(255, 95, 109, 0.42);
}

.recharge-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.recharge-tips {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  line-height: 1.7;
}

.recharge-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
  transition: 0.25s;
}

.recharge-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.recharge-header.compact {
  margin-bottom: 16px;
}

.recharge-hero.compact {
  grid-template-columns: minmax(0, 1.28fr) 380px;
  gap: 16px;
}

.recharge-title.compact h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.recharge-title.compact p {
  display: -webkit-box;
  max-height: 52px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.65;
}

.recharge-hero.compact .recharge-left-panel {
  padding: 22px;
}

.recharge-hero.compact .recharge-token-grid {
  gap: 12px;
  margin-top: 16px;
}

.recharge-hero.compact .recharge-token-card {
  min-height: 146px;
  padding: 16px;
  border-radius: 16px;
}

.recharge-hero.compact .recharge-token-name {
  margin-bottom: 8px;
  font-size: 15px;
}

.recharge-hero.compact .recharge-token-num {
  margin-bottom: 6px;
  font-size: 24px;
}

.recharge-hero.compact .recharge-token-price {
  margin-bottom: 6px;
  font-size: 19px;
}

.recharge-hero.compact .recharge-token-desc {
  display: -webkit-box;
  max-height: 38px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recharge-hero.compact .recharge-right-panel {
  top: 16px;
  padding: 20px;
  border-radius: 20px;
}

.recharge-hero.compact .recharge-order-title {
  margin-bottom: 12px;
}

.recharge-hero.compact .recharge-summary {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 16px;
}

.recharge-hero.compact .recharge-summary-row {
  padding: 8px 0;
}

.recharge-hero.compact .recharge-form-group {
  margin-bottom: 12px;
}

.recharge-hero.compact .recharge-total {
  margin: 14px 0;
}

.recharge-hero.compact .recharge-total strong {
  font-size: 30px;
}

.recharge-hero.compact .recharge-tips {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .recharge-hero {
    grid-template-columns: 1fr;
  }

  .recharge-hero.compact {
    grid-template-columns: 1fr;
  }

  .recharge-hero.compact .recharge-right-panel {
    order: -1;
  }

  .recharge-token-grid,
  .recharge-feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .recharge-right-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .recharge-body {
    padding: 10px;
  }

  .recharge-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }

  .recharge-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .recharge-brand h1 {
    font-size: 18px;
  }

  .recharge-brand p,
  .recharge-user {
    font-size: 12px;
  }

  .recharge-user {
    padding: 7px 11px;
  }

  .recharge-left-panel,
  .recharge-right-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .recharge-title h2 {
    font-size: 20px;
  }

  .recharge-title.compact span,
  .recharge-title.compact p,
  .recharge-tips {
    display: none;
  }

  .recharge-hero.compact .recharge-token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .recharge-hero.compact .recharge-token-card {
    min-height: 112px;
    padding: 12px;
    border-radius: 13px;
  }

  .recharge-badge {
    top: 9px;
    right: 9px;
    max-width: 58px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .recharge-hero.compact .recharge-token-name {
    margin-bottom: 7px;
    padding-right: 48px;
    font-size: 13px;
  }

  .recharge-hero.compact .recharge-token-num {
    font-size: 18px;
  }

  .recharge-token-num small {
    font-size: 11px;
  }

  .recharge-hero.compact .recharge-token-price {
    font-size: 16px;
  }

  .recharge-hero.compact .recharge-token-desc {
    display: none;
  }

  .recharge-order-title {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .recharge-hero.compact .recharge-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 10px;
    padding: 8px 12px;
  }

  .recharge-hero.compact .recharge-summary-row {
    padding: 6px 0;
    font-size: 13px;
  }

  .recharge-hero.compact .recharge-form-group {
    margin-bottom: 9px;
  }

  .recharge-form-group label {
    margin-bottom: 5px;
    font-size: 13px;
  }

  .recharge-input,
  .recharge-pay-single {
    height: 40px;
    border-radius: 11px;
  }

  .recharge-hero.compact .recharge-total {
    margin: 8px 0 56px;
  }

  .recharge-hero.compact .recharge-total strong {
    font-size: 24px;
  }

  .recharge-hero.compact .recharge-right-panel {
    padding-bottom: 12px;
  }

  .recharge-hero.compact .recharge-btn {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    width: auto;
    height: 48px;
    border-radius: 13px;
  }
}

.pay-submit-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 95, 109, 0.24), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(255, 195, 113, 0.26), transparent 24%),
    linear-gradient(135deg, #0f1020, #171a2f 48%, #231528);
}

.pay-submit-card {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.pay-submit-card h1 {
  margin: 18px 0 12px;
  font-size: 24px;
}

.pay-submit-card p {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.72);
}

.pay-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ffc371;
  border-radius: 50%;
  animation: pay-spin 0.85s linear infinite;
}

.pay-submit-button {
  width: 100%;
  height: 48px;
  margin-top: 22px;
  border: 0;
  border-radius: 14px;
  color: #191919;
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  font-weight: 900;
  cursor: pointer;
}

@keyframes pay-spin {
  to {
    transform: rotate(360deg);
  }
}

.pay-result-card {
  max-width: 720px;
  margin: 36px auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.pay-result-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.pay-result-card.success .pay-result-icon {
  background: #10b981;
}

.pay-result-card.processing .pay-result-icon {
  background: #f59e0b;
}

.pay-result-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.pay-result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.pay-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.pay-result-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}

.pay-result-grid span,
.pay-result-grid strong {
  display: block;
}

.pay-result-grid span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.pay-result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.pay-result-button {
  min-width: 150px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: #ff6a3d;
  font-weight: 800;
  text-decoration: none;
}

.pay-result-button.ghost {
  color: #374151;
  border: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 640px) {
  .pay-result-grid {
    grid-template-columns: 1fr;
  }

  .pay-result-actions {
    flex-direction: column;
  }

  .pay-result-button {
    width: 100%;
  }
}
