:root {
  --ink: #101114;
  --muted: #606873;
  --line: #d7dce2;
  --paper: #ffffff;
  --soft: #f6f7f8;
  --charcoal: #0c0f14;
  --charcoal-2: #181d25;
  --teal: #0b9c8c;
  --teal-dark: #056e64;
  --amber: #b9872f;
  --platinum: #eef0f2;
  --red: #b42318;
  --shadow: 0 20px 60px rgba(16, 17, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(217, 222, 231, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 220px;
  max-width: 44vw;
  height: auto;
}

.brand.inline {
  margin-bottom: 26px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--charcoal);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a,
.header-action,
.site-footer a {
  text-decoration: none;
}

.main-nav a:hover,
.header-action:hover,
.site-footer a:hover {
  color: var(--teal-dark);
}

.header-action {
  color: var(--teal-dark);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(100vh - 138px);
  max-height: 820px;
  overflow: hidden;
  color: #ffffff;
  background: var(--charcoal);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.86), rgba(8, 10, 13, 0.54) 43%, rgba(8, 10, 13, 0.1) 78%),
    rgba(8, 10, 13, 0.08);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 138px);
  max-width: 760px;
  padding: 72px 32px 56px;
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #72e4d8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 690px;
  margin-bottom: 20px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions,
.message-actions,
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-dark), #0a8678);
  box-shadow: 0 10px 24px rgba(5, 110, 100, 0.18);
}

.button.primary:hover {
  background: #055c52;
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: linear-gradient(180deg, #ffffff, #f7f8f9);
}

.hero .button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.button.danger {
  color: #ffffff;
  background: var(--red);
}

.button.small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 14px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 680px;
  margin: 40px 0 0;
}

.hero-metrics div {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-metrics dt,
.status-list dt,
.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-metrics dt {
  color: rgba(255, 255, 255, 0.62);
}

.hero-metrics dd,
.status-list dd,
.detail-grid dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip span {
  padding: 18px 24px;
  background: #fbfcfd;
  color: var(--charcoal-2);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.section {
  padding: 86px 32px;
}

.section-heading {
  max-width: 790px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:not(.eyebrow),
.order-copy p,
.workflow-grid p,
.faq-grid p {
  color: var(--muted);
}

.section-heading.compact {
  margin-bottom: 28px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.catalog-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 18px;
}

.class-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--charcoal-2);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active {
  color: #ffffff;
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.catalog-search {
  width: min(100%, 360px);
}

.plan-table-wrap {
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: auto;
}

.plan-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.plan-table th,
.plan-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.plan-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-table td {
  font-size: 14px;
}

.plan-table td strong,
.plan-table td span {
  display: block;
}

.plan-table td span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.class-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e5f6f4;
  font-size: 12px;
  font-weight: 800;
}

.table-price {
  color: var(--charcoal);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.empty-catalog {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.plan-card.featured {
  border-color: rgba(15, 159, 143, 0.48);
  box-shadow: var(--shadow);
}

.plan-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  margin-bottom: 14px;
}

.badge,
.featured-label,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge {
  color: var(--teal-dark);
  background: #e5f6f4;
}

.featured-label {
  color: #7b4b00;
  background: #fff1d7;
}

.plan-card p {
  min-height: 74px;
  color: var(--muted);
}

.price {
  margin: 8px 0 20px;
}

.price span {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
}

.price small {
  color: var(--muted);
  font-weight: 700;
}

.spec-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.spec-list li {
  position: relative;
  padding-left: 22px;
  color: var(--charcoal-2);
  font-size: 14px;
  font-weight: 650;
}

.spec-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--teal-dark);
  content: "✓";
}

.plan-card .button {
  width: 100%;
  margin-top: auto;
}

.workflow-band {
  padding: 76px 32px;
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.workflow-grid article {
  padding: 22px 0;
  border-top: 2px solid var(--charcoal);
}

.workflow-grid span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--amber);
  font-weight: 800;
}

.order-section {
  background: #ffffff;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.order-copy {
  position: sticky;
  top: 104px;
}

.support-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-left: 4px solid var(--amber);
  background: #fff8eb;
  color: #5f3c00;
}

.order-form {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.two.wide-plan {
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
}

.form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: var(--charcoal-2);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd2dd;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}

button:disabled,
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.checkbox-line {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.checkbox-line a {
  color: var(--teal-dark);
}

.selected-plan {
  align-self: end;
  display: grid;
  gap: 2px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.selected-plan span,
.selected-plan small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.selected-plan strong {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 159, 143, 0.18);
  border-color: var(--teal);
}

.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.checkout-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-summary strong {
  font-size: 24px;
}

.checkout-button {
  min-width: 190px;
}

.faq-section {
  background: var(--soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

details {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 12px 0 0;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 30px 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.simple-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background: var(--soft);
}

.message-panel {
  width: min(100%, 680px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.payment-body,
.account-body {
  background:
    radial-gradient(circle at 18% 12%, rgba(185, 135, 47, 0.12), transparent 28%),
    linear-gradient(135deg, #0c0f14 0%, #171c22 48%, #f5f6f7 48.2%, #ffffff 100%);
}

.payment-panel,
.account-panel {
  width: min(100%, 880px);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.crypto-invoice {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.invoice-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(185, 135, 47, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, #101114, #232932);
  color: #ffffff;
}

.invoice-total span,
.account-access span,
.delivery-card span,
.account-order span,
.account-order-code span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-total span {
  color: rgba(255, 255, 255, 0.66);
}

.invoice-total strong {
  grid-column: 1;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.copy-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.address-line {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.status-list .wide {
  grid-column: 1 / -1;
}

.account-access,
.delivery-card,
.tx-submit-box {
  display: grid;
  gap: 6px;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid rgba(11, 156, 140, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbfa, #ffffff);
}

.account-access strong,
.delivery-card strong {
  color: var(--charcoal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(22px, 4.8vw, 34px);
  overflow-wrap: anywhere;
}

.account-access p,
.delivery-card p,
.tx-submit-box p {
  margin: 0;
  color: var(--muted);
}

.check-notice {
  min-height: 24px;
  font-size: 13px;
  font-weight: 800;
}

.button.loading::before {
  width: 16px;
  height: 16px;
  margin-right: 9px;
  border: 2px solid rgba(255, 255, 255, 0.44);
  border-top-color: #ffffff;
  border-radius: 50%;
  content: "";
  animation: spin 0.8s linear infinite;
}

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

.account-orders {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.account-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.account-order strong,
.account-order small {
  display: block;
}

.account-order small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-order-code {
  display: grid;
  gap: 2px;
  min-width: 170px;
}

.account-order-code strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.message-panel h1 {
  font-size: clamp(34px, 6vw, 56px);
}

.legal-panel {
  width: min(100%, 820px);
}

.legal-panel h1 {
  max-width: 740px;
}

.legal-panel h2 {
  margin-top: 26px;
  font-size: 22px;
}

.legal-panel p {
  color: var(--muted);
}

.lookup-form,
.login-panel form {
  display: grid;
  gap: 16px;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.status-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.admin-page {
  background: var(--soft);
}

.admin-main {
  padding: 30px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.order-list,
.order-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.order-list {
  overflow: hidden;
}

.admin-section-title {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.admin-section-title h1 {
  margin: 0;
  font-size: 28px;
}

.order-row {
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.order-row.active {
  background: #ecf8f6;
}

.order-row span,
.order-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-detail {
  min-height: 680px;
  padding: 26px;
}

.empty-state {
  display: grid;
  min-height: 560px;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-heading h2 {
  margin: 0;
  font-size: 32px;
}

.status-pill {
  color: var(--teal-dark);
  background: #e5f6f4;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.detail-grid dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-block {
  margin-top: 20px;
}

.admin-block h3 {
  font-size: 16px;
}

pre {
  overflow: auto;
  min-height: 50px;
  max-height: 240px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  white-space: pre-wrap;
}

.admin-actions {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.timeline {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.timeline li span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.error-text {
  color: var(--red);
  font-weight: 800;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef1f5;
}

@media (max-width: 1040px) {
  .plan-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .order-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
    padding: 16px;
  }

  .main-nav,
  .header-action {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding: 56px 20px 42px;
  }

  h1 {
    font-size: clamp(42px, 16vw, 68px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-metrics,
  .trust-strip,
  .form-row.two,
  .form-row.two.wide-plan,
  .form-row.three,
  .faq-grid,
  .status-list,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .workflow-band {
    padding: 58px 18px;
  }

  .plan-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: auto;
  }

  .order-form,
  .message-panel,
  .order-detail {
    padding: 20px;
  }

  .checkout-summary,
  .site-footer,
  .detail-heading,
  .account-order {
    align-items: stretch;
    flex-direction: column;
  }

  .account-order {
    display: grid;
    grid-template-columns: 1fr;
  }

  .invoice-total {
    grid-template-columns: 1fr;
  }

  .checkout-button,
  .button {
    width: 100%;
  }

  .admin-main {
    padding: 16px;
  }

  .admin-header {
    padding: 16px;
  }
}
