.ab-module {
  color: #111827;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

.ab-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  background: #f8fafc;
}

.ab-tabs button {
  min-width: 118px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #475569;
  font-weight: 900;
}

.ab-tabs button.active {
  border-color: #1f6feb;
  background: #1f6feb;
  color: #fff;
}

.ab-tabs button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.ab-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #c7d2e2;
  border-radius: 6px;
  background: #f8fbff;
  color: #26364d;
  font-weight: 700;
}

.ab-success {
  border-color: #b6dfc5;
  background: #f2fff6;
  color: #176834;
}

.ab-error {
  border-color: #efc4bc;
  background: #fff5f3;
  color: #9a341f;
}

.ab-card,
.ab-orders,
.ab-payment-panel {
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.ab-auth-card {
  display: grid;
  gap: 10px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.ab-auth-card h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
}

.ab-auth-card input,
.ab-admin-confirm input {
  height: 36px;
  border: 1px solid #d8e0ea;
  border-radius: 5px;
  padding: 0 10px;
}

.ab-auth-card button,
.ab-payment-method button,
.ab-order button,
.ab-admin-confirm button,
.ab-pricing-table button {
  height: 34px;
  border: 1px solid #1473e6;
  border-radius: 4px;
  background: #1473e6;
  color: #fff;
  font-weight: 800;
}

.ab-auth-card hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.ab-pricing-head {
  display: grid;
  gap: 8px;
  padding: 8px 0 14px;
  text-align: center;
}

.ab-pricing-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.ab-pricing-head p {
  margin: 0;
  color: #64748b;
}

.ab-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
}

.ab-pricing-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
}

.ab-pricing-table th,
.ab-pricing-table td {
  border-right: 1px solid #e8edf3;
  border-bottom: 1px solid #e8edf3;
  padding: 13px 12px;
  text-align: center;
}

.ab-pricing-table th:last-child,
.ab-pricing-table td:last-child {
  border-right: 0;
}

.ab-pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.ab-feature {
  width: 150px;
  background: #fbfcfe;
  color: #111827;
  font-weight: 800;
  text-align: left !important;
}

.ab-price {
  display: block;
  margin-top: 12px;
  color: #1473e6;
  font-size: 26px;
  font-weight: 900;
}

.ab-recommend {
  display: inline-block;
  color: #f59e0b;
  font-weight: 900;
}

.ab-selected-col {
  background: #f7fbff !important;
}

.ab-check {
  color: #1473e6;
  font-size: 18px;
  font-weight: 900;
}

.ab-cross {
  color: #ef476f;
  font-size: 18px;
  font-weight: 900;
}

.ab-billing-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.ab-orders {
  display: grid;
  gap: 10px;
}

.ab-order {
  display: grid;
  gap: 6px;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 12px;
}

.ab-order small,
.ab-meta,
.ab-payment-head span {
  color: #64748b;
}

.ab-admin-confirm {
  display: grid;
  gap: 8px;
}

.ab-payment-panel {
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.ab-payment-head {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.ab-payment-head strong {
  font-size: 18px;
  font-weight: 900;
}

.ab-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
}

.ab-payment-method {
  display: grid;
  gap: 12px;
  border: 1px solid #d3dce8;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.ab-method-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ab-method-head span {
  color: #0f4fb8;
  font-weight: 900;
}

.ab-qr {
  display: grid;
  place-items: center;
  min-height: 320px;
  max-height: 560px;
  overflow: auto;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  background: #f8fafc;
  padding: 14px;
}

.ab-qr img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.ab-meta {
  display: grid;
  gap: 3px;
}

.ab-meta b {
  user-select: all;
}

@media (max-width: 900px) {
  .ab-billing-grid,
  .ab-payment-methods {
    grid-template-columns: 1fr;
  }
}
