:root {
  --ink: #2b211d;
  --ink-soft: #766b65;
  --line: #eadfd8;
  --paper: #ffffff;
  --canvas: #faf7f3;
  --canvas-deep: #f3ede7;
  --teal: #bd4e27;
  --teal-dark: #9f3d1d;
  --teal-soft: #f8e9e1;
  --lime: #e7a77f;
  --amber: #c85b32;
  --amber-soft: #fbe9df;
  --danger: #b33a2f;
  --shadow: 0 22px 60px rgba(83, 48, 30, 0.1);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 0%, rgba(200, 91, 50, 0.12), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(189, 78, 39, 0.08), transparent 30%),
    linear-gradient(rgba(189, 78, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 78, 39, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  width: min(1240px, calc(100% - 48px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(234, 223, 216, 0.9);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(83, 48, 30, 0.05);
  backdrop-filter: blur(12px);
}

.site-nav a {
  padding: 8px 13px;
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  transition: 160ms ease;
}

.site-nav a:hover {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.service-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
}

.header-actions,
.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-button,
.outline-button,
.small-primary-button,
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: 160ms ease;
}

.text-button {
  color: var(--ink-soft);
  background: transparent;
  border: 0;
}

.text-button:hover {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.outline-button {
  color: #33423f;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.outline-button:hover {
  color: var(--teal-dark);
  border-color: #d9b8a6;
  background: white;
}

.outline-button.is-authenticated {
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-color: rgba(189, 78, 39, 0.18);
}

.small-primary-button {
  color: white;
  background: var(--teal);
  border: 1px solid var(--teal);
  box-shadow: 0 8px 18px rgba(189, 78, 39, 0.18);
}

.small-primary-button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
}

.small-primary-button:disabled,
.outline-button:disabled,
.checkout-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.5);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

main,
.site-footer {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.intro {
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.62fr);
  gap: 56px;
  align-items: center;
  padding: 42px 0 54px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.step-label {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.intro-lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 28px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #33423f;
  font-size: 13px;
  font-weight: 650;
}

.trust-row .icon {
  color: var(--teal);
}

.snapshot {
  overflow: hidden;
  color: #ecf8f4;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.snapshot-head {
  display: grid;
  gap: 5px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.snapshot-head span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.snapshot-head strong {
  font-size: 18px;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 12px;
}

.snapshot-grid > div {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0 8px;
  text-align: center;
}

.snapshot-grid > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.snapshot-number {
  font-size: 28px;
  font-weight: 760;
  line-height: 1;
}

.snapshot-label {
  color: #aab8b4;
  font-size: 11px;
}

.snapshot-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  color: #d9e7e3;
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
}

.snapshot-note .icon {
  color: var(--lime);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.82fr);
  gap: 52px;
  align-items: start;
  padding: 70px 0 58px;
}

.section-heading,
.checkout-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.checkout-heading h2,
.faq-heading h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--canvas-deep);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.billing-toggle button.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(83, 48, 30, 0.09);
}

.billing-toggle button span {
  padding: 2px 5px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
}

.billing-static {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 1px solid rgba(189, 78, 39, 0.15);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}

.plan-list {
  display: grid;
  gap: 12px;
}

.plan-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 19px 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.plan-option:hover {
  transform: translateY(-1px);
  border-color: #d9b8a6;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(83, 48, 30, 0.07);
}

.plan-option.is-selected {
  background: var(--paper);
  border-color: var(--teal);
  box-shadow:
    0 0 0 2px rgba(189, 78, 39, 0.1),
    0 14px 34px rgba(83, 48, 30, 0.08);
}

.plan-option.is-out-of-stock {
  cursor: not-allowed;
  opacity: 0.58;
}

.plan-option.is-out-of-stock:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.plan-option input,
.payment-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.plan-radio {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1.5px solid #a9b7b3;
  border-radius: 50%;
}

.plan-option.is-selected .plan-radio {
  border-color: var(--teal);
}

.plan-option.is-selected .plan-radio::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--teal);
  border-radius: 50%;
}

.plan-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.plan-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-name-row strong {
  font-size: 16px;
}

.plan-name-row em {
  padding: 3px 7px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.plan-name-row em.neutral {
  color: #805819;
  background: var(--amber-soft);
}

.plan-description {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.plan-features span {
  padding: 3px 7px;
  color: #766b65;
  background: #f7f0eb;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 650;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  min-width: 92px;
  color: var(--ink);
}

.plan-price .currency {
  margin-right: 2px;
  font-size: 13px;
  font-weight: 700;
}

.plan-price strong {
  font-size: 26px;
  letter-spacing: -0.04em;
}

.plan-price small {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.plan-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.plan-footnote .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.loading-panel {
  padding: 34px 20px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 12px;
  text-align: center;
}

.comparison-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  overflow: hidden;
  background: var(--canvas-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.comparison-strip div {
  display: grid;
  gap: 4px;
  padding: 15px 18px;
}

.comparison-strip div + div {
  border-left: 1px solid var(--line);
}

.comparison-strip span {
  color: var(--ink-soft);
  font-size: 10px;
}

.comparison-strip strong {
  font-size: 14px;
}

.checkout-column {
  position: sticky;
  top: 24px;
}

.login-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding: 14px;
  background: var(--amber-soft);
  border: 1px solid rgba(231, 165, 61, 0.28);
  border-radius: 11px;
}

.login-notice[hidden] {
  display: none;
}

.login-notice strong {
  font-size: 12px;
}

.login-notice p {
  margin: 4px 0 0;
  color: #6f5321;
  font-size: 10px;
  line-height: 1.5;
}

.checkout-panel {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checkout-heading {
  align-items: center;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.secure-badge .icon {
  width: 13px;
  height: 13px;
}

.progress-track {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  margin-top: 26px;
}

.progress-track span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #899793;
  background: #f0f4f2;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.progress-track span.is-complete {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.progress-track span.is-current {
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(189, 78, 39, 0.09);
}

.progress-track i {
  height: 1px;
  background: var(--line);
}

.progress-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 7px;
  color: #899793;
  font-size: 9px;
  font-weight: 650;
  text-align: center;
}

.progress-labels span:first-child {
  text-align: left;
}

.progress-labels span:last-child {
  text-align: right;
}

#checkout-form {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.field-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-group > label,
.field-group > legend {
  display: block;
  margin-bottom: 9px;
  color: #2c3a37;
  font-size: 12px;
  font-weight: 750;
}

.field-group textarea,
.simple-field textarea {
  width: 100%;
  min-height: 98px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fdfbf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  resize: vertical;
  font-size: 12px;
  line-height: 1.55;
  transition: 160ms ease;
}

.field-group textarea:focus,
.simple-field textarea:focus,
.simple-field input:focus,
.simple-field select:focus {
  background: white;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(189, 78, 39, 0.09);
}

.field-group textarea::placeholder {
  color: #a6b2af;
}

.inline-link {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.input-shell {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: #fdfbf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: 160ms ease;
}

.input-shell:focus-within {
  background: white;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(189, 78, 39, 0.09);
}

.input-shell .icon {
  color: #7d8b87;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.input-shell input::placeholder {
  color: #a6b2af;
}

.input-shell.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(195, 72, 61, 0.08);
}

.field-hint,
.field-error {
  margin: 7px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.field-hint {
  color: #7b8985;
}

.field-error {
  min-height: 0;
  color: var(--danger);
  font-weight: 650;
}

.field-error:empty {
  display: none;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.payment-methods.two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.payment-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px;
  color: var(--ink-soft);
  background: #fdfbf9;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.payment-option:hover {
  border-color: #d9b8a6;
}

.payment-option.is-selected {
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-color: var(--teal);
}

.payment-option .icon {
  width: 16px;
  height: 16px;
}

.order-summary {
  display: grid;
  gap: 10px;
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
}

.summary-row,
.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.summary-row {
  color: var(--ink-soft);
  font-size: 11px;
}

.summary-row strong {
  color: #33423f;
  font-size: 12px;
}

.discount-row strong {
  color: var(--teal);
}

.summary-total {
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}

.summary-total span {
  font-size: 13px;
  font-weight: 750;
}

.summary-total strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.invoice-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
  cursor: pointer;
}

.invoice-option input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}

.invoice-modal {
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.invoice-modal > p:not(.step-label) {
  margin: 10px 0 20px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.invoice-form {
  display: grid;
  gap: 15px;
}

.invoice-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.invoice-preview {
  padding: 18px;
  color: #4a2420;
  background: #fffdfc;
  border: 1px solid #e8c7bd;
  border-radius: 13px;
  box-shadow: 0 14px 34px rgba(120, 54, 36, 0.08);
}

.invoice-preview-head,
.invoice-preview-line,
.invoice-preview-total > div,
.invoice-preview-party > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.invoice-preview-head {
  padding-bottom: 14px;
  border-bottom: 2px solid #b72f37;
}

.invoice-preview-head > div > span,
.invoice-preview-party span,
.invoice-preview-line span,
.invoice-preview-total span,
.invoice-preview-remark > span {
  display: block;
  color: #8b6760;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.invoice-preview-head h3 {
  margin: 4px 0 0;
  color: #b72f37;
  font-family: "STKaiti", "KaiTi", "PingFang SC", serif;
  font-size: 18px;
}

.invoice-preview-head em {
  padding: 4px 8px;
  color: #b72f37;
  background: #fff1f0;
  border: 1px solid #efc4c2;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.invoice-preview-party {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #efdcd6;
}

.invoice-preview-party > div,
.invoice-preview-total > div {
  align-items: center;
}

.invoice-preview-party strong,
.invoice-preview-line strong,
.invoice-preview-total strong {
  max-width: 68%;
  overflow-wrap: anywhere;
  font-size: 11px;
  text-align: right;
}

.invoice-preview-line {
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #efdcd6;
}

.invoice-preview-line > div:first-child {
  min-width: 0;
}

.invoice-preview-line > div:first-child strong,
.invoice-preview-line > div:first-child small {
  display: block;
  max-width: none;
  text-align: left;
}

.invoice-preview-line > div:first-child small {
  margin-top: 4px;
  color: #9b7b74;
  font-size: 9px;
}

.invoice-preview-total {
  display: grid;
  gap: 9px;
  padding: 14px 0;
  border-bottom: 1px solid #efdcd6;
}

.invoice-preview-total strong {
  color: #b72f37;
}

.invoice-preview-remark {
  padding-top: 13px;
}

.invoice-preview-remark p {
  margin: 7px 0 0;
  color: #4a2420;
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.invoice-preview-note {
  margin: 14px 0 0;
  padding-top: 10px;
  color: #9b7b74;
  border-top: 1px dashed #efdcd6;
  font-size: 9px;
  line-height: 1.55;
}

.invoice-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 3px;
}

.invoice-form-actions .modal-action {
  width: auto;
  min-width: 132px;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
  cursor: pointer;
}

.terms input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}

.terms a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-button,
.modal-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  color: white;
  background: var(--teal);
  border: 0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(189, 78, 39, 0.2);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.checkout-button:hover,
.modal-action:hover {
  transform: translateY(-1px);
  background: var(--teal-dark);
  box-shadow: 0 13px 28px rgba(189, 78, 39, 0.26);
}

.checkout-button:focus-visible,
.modal-action:focus-visible,
.billing-toggle button:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid rgba(189, 78, 39, 0.24);
  outline-offset: 2px;
}

.checkout-button .icon {
  width: 17px;
  height: 17px;
}

.checkout-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -7px 0 0;
  color: #75837f;
  font-size: 9.5px;
  line-height: 1.55;
}

.checkout-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--teal);
}

.assurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.assurance-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.assurance-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 10px;
}

.assurance-item strong {
  font-size: 13px;
}

.assurance-item p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 70px;
  padding: 86px 0;
}

.faq-heading {
  align-self: start;
  position: sticky;
  top: 30px;
}

.faq-heading h2 {
  font-size: 32px;
}

.faq-heading > p:last-child {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.faq-list {
  display: grid;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: 14px;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 50%;
  font-size: 16px;
  transform: translateY(-50%);
  transition: 160ms ease;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 700px;
  margin: -7px 0 23px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.footer-brand .brand-mark svg {
  width: 20px;
  height: 20px;
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 10px;
}

.footer-meta a {
  color: var(--teal);
  font-weight: 750;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 28, 25, 0.52);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(440px, 100%);
  padding: 30px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(10, 20, 17, 0.28);
  animation: modal-in 180ms ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: var(--canvas);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.modal-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: white;
  background: var(--teal);
  border-radius: 13px;
}

.modal h2 {
  margin: 0;
  font-size: 24px;
}

.auth-modal {
  width: min(460px, 100%);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin: -5px 0 24px;
  padding: 5px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.auth-tabs button {
  min-height: 38px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.auth-tabs button.is-active {
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 8px rgba(83, 48, 30, 0.09);
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form h2 {
  margin: -3px 0 3px;
}

.simple-field {
  display: grid;
  gap: 7px;
  color: #2c3a37;
  font-size: 11px;
  font-weight: 750;
}

.simple-field input,
.simple-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fdfbf9;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  font-size: 13px;
  transition: 160ms ease;
}

.simple-field select {
  cursor: pointer;
}

.simple-field input::placeholder,
.simple-field textarea::placeholder {
  color: #a6b2af;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100% - 40px));
}

.toast {
  padding: 13px 15px;
  color: white;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(10, 20, 17, 0.22);
  font-size: 12px;
  line-height: 1.5;
  animation: modal-in 180ms ease-out;
}

.toast.is-error {
  background: #8f342c;
}

.toast.is-warning {
  color: #3d2d0d;
  background: #f3c976;
}

.dashboard-main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.035em;
}

.dashboard-hero p:last-child {
  max-width: 660px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.user-chip {
  max-width: 260px;
  overflow: hidden;
  padding: 8px 11px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stat-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(83, 48, 30, 0.05);
}

.stat-card span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.stat-card strong {
  overflow-wrap: anywhere;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.data-section {
  margin-top: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(83, 48, 30, 0.06);
}

.data-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.data-section-head h2 {
  margin: 0;
  font-size: 20px;
}

.muted-text {
  color: var(--ink-soft);
  font-size: 10px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0e8e2;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: #766b65;
  background: #fdfbf9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fdf9f6;
}

.data-table td {
  color: #33423f;
}

.data-table td > strong,
.data-table td > span,
.data-table td > small {
  display: block;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
}

.cell-sub {
  display: block;
  max-width: 260px;
  margin-top: 4px;
  overflow: hidden;
  color: #82908c;
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-text {
  color: var(--danger);
}

.empty-cell {
  padding: 36px 20px !important;
  color: #82908c !important;
  text-align: center !important;
}

.status-badge {
  display: inline-flex !important;
  align-items: center;
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.status-created,
.status-pending {
  color: #77551c;
  background: var(--amber-soft);
}

.status-processing,
.status-unknown {
  color: #285c8b;
  background: #e8f2fb;
}

.status-success,
.status-available {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.status-failed,
.status-exhausted {
  color: #8f342c;
  background: #fce9e6;
}

.status-in_use {
  color: #5f4a86;
  background: #eee9f8;
}

.table-action {
  min-height: 30px;
  padding: 0 9px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 0;
  font-size: 10px;
}

.table-action:hover {
  background: #d6ebe4;
}

.table-action.danger {
  color: #8f342c;
  background: #fce9e6;
}

.table-actions {
  display: flex;
  gap: 6px;
}

.admin-body {
  min-height: 100vh;
  background: #faf7f3;
}

.admin-auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(200, 91, 50, 0.14), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(189, 78, 39, 0.1), transparent 34%),
    #faf7f3;
}

.admin-auth-gate[hidden],
.admin-shell[hidden] {
  display: none;
}

.admin-auth-card {
  width: min(440px, 100%);
  padding: 30px;
  background: var(--paper);
  border: 1px solid rgba(234, 223, 216, 0.9);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.admin-auth-brand {
  margin-bottom: 30px;
}

.admin-auth-copy h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.025em;
}

.admin-auth-copy > p:last-child {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.admin-auth-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.admin-auth-form .modal-action {
  width: 100%;
}

.admin-auth-back {
  display: inline-flex;
  margin-top: 20px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 750;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 240px;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  color: #dce9e5;
  background: #2b211d;
}

.admin-brand {
  color: white;
}

.admin-brand .brand-mark {
  background: var(--teal);
}

.admin-nav {
  display: grid;
  gap: 5px;
  margin-top: 38px;
}

.admin-nav button {
  min-height: 43px;
  padding: 0 13px;
  color: #aab9b4;
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.admin-nav button:hover,
.admin-nav button.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav button.is-active {
  box-shadow: inset 3px 0 0 var(--lime);
}

.admin-sidebar-footer {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 15px;
  color: #91a09c;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 10px;
  font-size: 10px;
}

.admin-sidebar-footer a {
  color: var(--lime);
  font-weight: 750;
}

.admin-main {
  min-height: 100vh;
  margin-left: 240px;
  padding: 36px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.025em;
}

.admin-view {
  display: none;
}

.admin-view.is-active {
  display: block;
  animation: modal-in 160ms ease-out;
}

.admin-stats {
  margin-top: 0;
}

.finance-stats {
  margin-top: 12px;
}

.plan-editor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.plan-editor {
  display: grid;
  gap: 15px;
  padding: 19px;
  background: #fdfbf9;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.plan-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.plan-editor-head strong,
.plan-editor-head span {
  display: block;
}

.plan-editor-head span {
  margin-top: 5px;
  color: var(--ink-soft);
}

.switch-control,
.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #33423f;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.switch-control input,
.toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.price-editor-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
  align-items: start;
}

.settings-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(83, 48, 30, 0.06);
}

.settings-card h2 {
  margin: 0;
  font-size: 21px;
}

.callback-test-result {
  display: grid;
  gap: 7px;
  padding: 14px;
  color: #315146;
  background: #eef8f3;
  border: 1px solid #cbe6d9;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.callback-test-result[hidden] {
  display: none;
}

.callback-test-result strong {
  color: #1f6f52;
  font-size: 13px;
}

.callback-test-result span {
  display: block;
}

.callback-test-result code {
  overflow-wrap: anywhere;
  color: #315146;
  font-size: 11px;
}

.callback-test-result small {
  color: #698278;
  font-size: 10px;
}

.settings-test-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.admin-docs article {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fdfbf9;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-docs h3,
.admin-docs p {
  margin: 0;
}

.admin-docs h3 {
  font-size: 14px;
}

.admin-docs code {
  overflow-wrap: anywhere;
  color: var(--teal-dark);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.admin-docs p {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.card-form textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fdfbf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
}

.compact-table .data-table {
  min-width: 620px;
}

.card-modal {
  width: min(600px, 100%);
}

.card-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.docs-main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 64px;
  padding: 56px 0 90px;
}

.docs-nav {
  position: sticky;
  top: 28px;
  align-self: start;
  display: grid;
  gap: 4px;
}

.docs-nav .step-label {
  margin-bottom: 8px;
}

.docs-nav a {
  padding: 9px 11px;
  color: var(--ink-soft);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.docs-nav a:hover {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.docs-content {
  display: grid;
  gap: 62px;
  min-width: 0;
}

.docs-content h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.04em;
}

.docs-content h2 {
  margin: 0 0 20px;
  font-size: 27px;
  letter-spacing: -0.025em;
}

.docs-lead {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.docs-content code {
  padding: 2px 5px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.docs-callout {
  margin-top: 26px;
  padding: 18px;
  background: #2b211d;
  border-radius: 12px;
  color: #dce9e5;
}

.docs-callout strong {
  color: var(--lime);
  font-size: 12px;
}

.docs-callout p {
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.7;
}

.endpoint-list {
  display: grid;
  gap: 10px;
}

.endpoint-list article {
  display: grid;
  grid-template-columns: 58px minmax(210px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: start;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.endpoint-list code {
  overflow-wrap: anywhere;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.endpoint-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.method {
  display: inline-flex;
  justify-content: center;
  width: 52px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 850;
}

.method.get {
  color: #285c8b;
  background: #e8f2fb;
}

.method.post {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.method.put {
  color: #77551c;
  background: var(--amber-soft);
}

.code-block {
  margin-top: 16px;
  overflow: hidden;
  background: #241b18;
  border-radius: 12px;
}

.code-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  color: #b8c6c2;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 750;
}

.code-block-head button {
  color: var(--lime);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.code-block pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
}

.code-block code {
  padding: 0;
  color: #dce9e5;
  background: transparent;
  font-size: 11px;
  line-height: 1.75;
}

.docs-content section > p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.docs-table {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.docs-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-list li {
  position: relative;
  padding: 14px 16px 14px 38px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.7;
}

.docs-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 13px;
  color: var(--teal);
  font-weight: 850;
}

.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .plan-editor-list {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    width: 210px;
  }

  .admin-main {
    margin-left: 210px;
    padding: 28px;
  }
}

@media (max-width: 820px) {
  .header-actions .text-button {
    display: none;
  }

  .dashboard-main {
    width: min(100% - 32px, 680px);
    padding-top: 36px;
  }

  .invoice-modal-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    display: grid;
    align-items: start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-sidebar {
    position: static;
    width: auto;
    padding: 18px;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    overflow-x: visible;
  }

  .admin-nav button {
    text-align: center;
    white-space: normal;
  }

  .admin-nav button.is-active {
    box-shadow: inset 0 -3px 0 var(--lime);
  }

  .admin-sidebar-footer {
    grid-template-columns: 1fr auto;
    margin-top: 18px;
  }

  .admin-main {
    margin-left: 0;
    padding: 24px 16px 60px;
  }

  .docs-main {
    width: min(100% - 32px, 680px);
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 36px;
  }

  .docs-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .docs-nav .step-label {
    width: 100%;
  }

  .endpoint-list article {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .endpoint-list article p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .header-actions {
    gap: 6px;
    flex: 0 1 auto;
    max-width: 44%;
    min-width: 0;
  }

  .outline-button {
    padding: 0 10px;
    font-size: 10px;
  }

  .outline-button.is-authenticated {
    display: block;
    max-width: 100%;
    overflow: hidden;
    line-height: 38px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-main .site-header {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .dashboard-main .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .user-chip {
    max-width: calc(100% - 76px);
  }

  .dashboard-hero h1 {
    font-size: 38px;
  }

  .dashboard-actions {
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .data-section-head {
    align-items: flex-start;
  }

  .plan-editor-list {
    padding: 14px;
  }

  .price-editor-row {
    grid-template-columns: 1fr;
  }

  .admin-docs {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .card-form {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .dashboard-main .table-wrap,
  .admin-main .table-wrap {
    overflow-x: visible;
  }

  .dashboard-main .data-table,
  .admin-main .data-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .dashboard-main .data-table thead,
  .admin-main .data-table thead {
    display: none;
  }

  .dashboard-main .data-table tbody,
  .admin-main .data-table tbody {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .dashboard-main .data-table tr,
  .admin-main .data-table tr {
    display: grid;
    gap: 9px;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 11px;
  }

  .dashboard-main .data-table td,
  .admin-main .data-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .dashboard-main .data-table td::before,
  .admin-main .data-table td::before {
    color: #82908c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .dashboard-main .data-table td:nth-child(1)::before {
    content: "订单";
  }

  .dashboard-main .data-table td:nth-child(2)::before {
    content: "订阅";
  }

  .dashboard-main .data-table td:nth-child(3)::before {
    content: "账号";
  }

  .dashboard-main .data-table td:nth-child(4)::before {
    content: "金额";
  }

  .dashboard-main .data-table td:nth-child(5)::before {
    content: "状态";
  }

  .dashboard-main .data-table td:nth-child(6)::before {
    content: "更新时间";
  }

  .dashboard-main .data-table td:nth-child(7)::before {
    content: "操作";
  }

  .admin-main .data-table td:nth-child(1)::before {
    content: "订单";
  }

  .admin-main .data-table td:nth-child(2)::before {
    content: "用户";
  }

  .admin-main .data-table td:nth-child(3)::before {
    content: "订阅";
  }

  .admin-main .data-table td:nth-child(4)::before {
    content: "上游单号";
  }

  .admin-main .data-table td:nth-child(5)::before {
    content: "金额";
  }

  .admin-main .data-table td:nth-child(6)::before {
    content: "状态";
  }

  .admin-main .data-table td:nth-child(7)::before {
    content: "更新时间";
  }

  .admin-main .data-table td:nth-child(8)::before {
    content: "操作";
  }

  .dashboard-main .data-table .empty-cell,
  .admin-main .data-table .empty-cell {
    display: block;
    padding: 22px !important;
    text-align: center !important;
  }

  .dashboard-main .data-table .empty-cell::before,
  .admin-main .data-table .empty-cell::before {
    display: none;
  }

  .cell-sub {
    max-width: 100%;
  }
}

.modal > p:not(.step-label) {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.modal-order {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 16px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.modal-order div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 11px;
}

.modal-order span {
  color: var(--ink-soft);
}

.modal-order strong {
  font-size: 12px;
}

@media (max-width: 1050px) {
  .intro {
    grid-template-columns: 1fr 340px;
    gap: 36px;
  }

  .workspace {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .checkout-column {
    position: static;
  }

  .checkout-panel {
    max-width: 680px;
  }
}

@media (max-width: 820px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 32px, 680px);
  }

  .site-header {
    height: 72px;
  }

  .site-nav {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 0 46px;
  }

  .intro h1 {
    font-size: clamp(36px, 10vw, 56px);
  }

  .snapshot {
    max-width: 500px;
  }

  .workspace {
    padding: 52px 0 46px;
  }

  .assurance {
    grid-template-columns: 1fr;
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 66px 0;
  }

  .faq-heading {
    position: static;
  }
}

@media (max-width: 620px) {
  .service-state {
    font-size: 0;
  }

  .service-state .pulse-dot {
    width: 9px;
    height: 9px;
  }

  .intro {
    min-height: 0;
  }

  .intro-lead {
    font-size: 14px;
  }

  .trust-row {
    display: grid;
    gap: 11px;
  }

  .section-heading {
    display: grid;
  }

  .billing-toggle {
    width: max-content;
  }

  .plan-option {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 17px 15px;
  }

  .plan-price {
    grid-column: 2;
    justify-content: flex-start;
    min-width: 0;
  }

  .plan-description {
    white-space: normal;
  }

  .comparison-strip {
    grid-template-columns: 1fr;
  }

  .comparison-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .checkout-panel {
    padding: 22px 18px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .footer-meta {
    flex-wrap: wrap;
  }

  .modal {
    padding: 26px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
