@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #02040a;
  --surface: #070b13;
  --surface-soft: #0b1220;
  --line: #172235;
  --line-strong: #314460;
  --text: #f1f6ff;
  --muted: #96a6ba;
  --dim: #64748b;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-soft: rgba(59, 130, 246, 0.16);
  --green: #63d69d;
  --amber: #f1c56c;
  --red: #fb8a63;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: radial-gradient(circle at 50% -18%, rgba(37, 99, 235, 0.12), transparent 34%), var(--bg);
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-noise {
  display: none;
}

.shell {
  width: calc(100% - 32px);
  max-width: 1500px;
  margin: 0 auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 10px;
}

.brand-strip {
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
  text-decoration: none;
}

.brand-motto {
  display: none;
}

.brand-icon {
  width: 176px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: auto;
  transform: translateZ(0);
}

.brand-admin-logo {
  width: 116px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-admin-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-motto {
  display: none;
  font-family: "Arial Black", Impact, "Manrope", sans-serif;
  font-size: clamp(18px, 2.2vw, 34px);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(7, 11, 19, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.seo-intro {
  max-width: 980px;
  padding: 8px 0 20px;
}

.seo-intro h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.12;
}

.seo-intro p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  font-weight: 800;
}

.brand small,
.muted,
.section-note {
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-actions a,
.pill,
.ghost-btn,
.filters button,
.admin-actions button,
.primary-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 9px 13px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.ghost-btn,
.filters button,
.admin-actions button,
.primary-btn,
.primary-link,
.card-cta,
.feature-toggle,
.checkout-close {
  cursor: pointer;
}

.ghost-btn:hover,
.top-actions a:hover,
.primary-link:hover,
.admin-actions button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.primary-link,
.primary-btn {
  border-color: transparent;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.24);
}

.primary-link:hover,
.primary-btn:hover {
  background: var(--blue-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 22px;
  align-items: stretch;
  padding: 34px 0 28px;
}

.hero-copy {
  display: grid;
  align-content: center;
  min-height: 330px;
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.02;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  margin-bottom: 0;
}

h3 {
  font-size: 18px;
  line-height: 1.14;
  margin-bottom: 0;
}

.hero-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.trust-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trust-list div {
  min-height: 135px;
  display: grid;
  align-content: end;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
}

.trust-list strong {
  display: block;
  color: var(--blue);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.trust-list span {
  color: var(--muted);
  font-size: 14px;
}

.catalog-section {
  padding: 18px 0 46px;
}

.store-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 0 8px;
}

.benefit-card {
  min-height: 164px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.055), transparent 68%),
    #050914;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.benefit-card h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.benefit-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #8dbbff;
  border: 1px solid rgba(59, 130, 246, 0.26);
  border-radius: var(--radius);
  background: rgba(59, 130, 246, 0.12);
  animation: benefit-drift 6.5s ease-in-out infinite;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-icon--lock {
  animation-delay: -1.2s;
}

.benefit-icon--shield {
  animation-delay: -2.4s;
}

.benefit-icon--price {
  animation-delay: -3.6s;
}

@keyframes benefit-drift {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }

  50% {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
  }
}

.content-page {
  padding: 22px 0 72px;
}

.content-hero {
  max-width: 860px;
  margin-bottom: 22px;
}

.content-hero h1 {
  font-size: clamp(36px, 5vw, 68px);
}

.content-hero p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.back-home {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.back-home:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.info-card,
.terms-panel,
.steps-list article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.info-card {
  min-height: 180px;
  padding: 18px;
}

.info-card p,
.terms-panel p,
.terms-panel li,
.steps-list p {
  color: var(--muted);
  line-height: 1.5;
}

.steps-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.steps-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.steps-list span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
  font-weight: 900;
}

.terms-panel {
  max-width: 900px;
  padding: 20px;
  margin-bottom: 12px;
}

.terms-panel ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin-bottom: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head.compact {
  align-items: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.catalog-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.catalog-toolbar .filters {
  flex: 1 1 auto;
}

.sort-control {
  position: relative;
  width: min(260px, 100%);
  flex: 0 0 260px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sort-control span {
  line-height: 1;
}

.sort-control select {
  min-height: 42px;
  padding: 10px 38px 10px 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  appearance: none;
  cursor: pointer;
}

.sort-control::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 15px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  pointer-events: none;
}

.filters button.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.status-strip {
  border: 1px solid var(--line);
  background: #050912;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  margin-bottom: 14px;
}

.workspace {
  display: block;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.plan-card,
.order-card,
.tool-panel,
.checkout-sticky,
.checkout-dialog,
.order-dialog {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.plan-card {
  min-height: 380px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 14px;
  padding: 15px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.plan-card:hover,
.plan-card.selected {
  transform: translateY(-2px);
  border-color: var(--blue);
  background: #09101d;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(59, 130, 246, 0.16);
}

.plan-card.unavailable {
  opacity: 1;
}

.plan-card.unavailable:hover {
  transform: none;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.plan-top,
.price-row,
.order-head,
.order-metrics,
.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-logo {
  width: 132px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1) brightness(1.78);
  opacity: 0.74;
}

.logo-elevenlabs {
  width: 46px;
  height: 26px;
}

.logo-wordmark {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.health,
.live-dot,
.badge {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(99, 214, 157, 0.12);
  color: var(--green);
  border: 1px solid rgba(99, 214, 157, 0.24);
  white-space: nowrap;
}

.health.seed,
.health.last_known,
.health.configured {
  background: rgba(241, 197, 108, 0.13);
  color: var(--amber);
  border-color: rgba(241, 197, 108, 0.26);
}

.health.stale {
  background: rgba(251, 138, 99, 0.13);
  color: var(--red);
  border-color: rgba(251, 138, 99, 0.26);
}

.plan-main {
  display: grid;
  align-content: start;
  gap: 7px;
}

.plan-main p,
.plan-card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 13px;
}

.feature-block {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 116px;
}

.feature-list {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: #c5d0df;
  font-size: 12px;
  line-height: 1.28;
}

.feature-icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.feature-toggle {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7fb1ff;
  background: transparent;
  border: 0;
  padding: 2px 0;
  font-size: 12px;
  font-weight: 800;
}

.feature-toggle .feature-icon {
  width: 15px;
  height: 15px;
  transition: transform 160ms ease;
}

.feature-toggle.open .feature-icon {
  transform: rotate(180deg);
}

.price-row {
  display: grid;
  gap: 3px;
  align-self: end;
}

.price-row strong {
  color: var(--text);
  font-size: clamp(22px, 1.7vw, 28px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.price-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: start;
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(59, 130, 246, 0.28);
  border-radius: 999px;
}

.badge .feature-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.badge.hot {
  color: #fff;
  background: rgba(242, 13, 23, 0.92);
  border-color: rgba(255, 143, 143, 0.42);
  box-shadow: 0 10px 24px rgba(242, 13, 23, 0.2);
}

.badge.hot .feature-icon {
  color: #fff;
  fill: currentColor;
  stroke: none;
}

.card-cta {
  min-height: 42px;
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.card-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
}

.card-cta:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--line);
  box-shadow: none;
}

.card-cta:disabled:hover {
  transform: none;
  filter: none;
}

.availability-note {
  margin: 0;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.checkout-sticky {
  position: sticky;
  top: 16px;
  padding: 18px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.checkout-head {
  align-items: flex-start;
}

.checkout-dialog {
  width: min(560px, calc(100% - 28px));
  color: var(--text);
  padding: 22px;
  margin: auto;
  box-shadow: var(--shadow);
}

.checkout-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
}

.checkout-modal {
  display: grid;
}

.checkout-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 24px;
  line-height: 1;
}

.checkout-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.selected-description {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.selected-description strong {
  font-size: 32px;
  font-weight: 800;
}

.selected-description span {
  color: var(--muted);
  font-size: 14px;
}

.order-form {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

label {
  display: grid;
  gap: 7px;
  color: #c9d5e6;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: #040814;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 11px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

input::placeholder,
textarea::placeholder {
  color: var(--dim);
}

.primary-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  padding: 11px 14px;
}

.primary-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.guide-box,
.empty-qr,
.warning,
.success-box,
.result-box,
.empty-state {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 13px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  line-height: 1.45;
}

.warning {
  color: var(--amber);
}

.success-box {
  color: var(--green);
  border-color: rgba(99, 214, 157, 0.26);
  background: rgba(99, 214, 157, 0.1);
}

.order-dialog {
  width: min(560px, calc(100% - 28px));
  color: var(--text);
  padding: 20px;
  box-shadow: var(--shadow);
}

.order-dialog::backdrop {
  background: rgba(2, 6, 14, 0.72);
}

.payment-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 14px 0;
}

.payment-total strong {
  font-size: 38px;
  font-weight: 800;
}

.payment-total b {
  grid-column: 1 / -1;
  color: var(--muted);
}

.qr {
  width: 280px;
  max-width: 100%;
  display: block;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 14px 0;
}

.qr.tiny {
  width: 120px;
}

.formation-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  margin-top: 14px;
  text-align: center;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: var(--radius);
  background: #050914;
}

.formation-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f8fbff;
  font-weight: 900;
  letter-spacing: 0;
}

.formation-title span {
  font-size: 18px;
}

.formation-title b {
  color: var(--blue);
  font-size: 13px;
}

.formation-qr-shell {
  width: min(280px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), transparent 42%),
    #020617;
}

.formation-spinner {
  width: 58px;
  height: 58px;
  border: 5px solid rgba(148, 163, 184, 0.18);
  border-top-color: var(--blue);
  border-radius: 999px;
  animation: formation-spin 900ms linear infinite;
}

.formation-timer {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.formation-timer strong {
  min-width: 34px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.formation-panel p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

@keyframes formation-spin {
  to {
    transform: rotate(360deg);
  }
}

.payment-link {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 800;
}

.payment-expiry {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.full-link,
.miniapp-link {
  width: 100%;
  margin-top: 10px;
  font-weight: 900;
}

.miniapp-link {
  width: fit-content;
  margin: 0 0 8px;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(220px, 0.7fr);
  gap: 16px;
  align-items: center;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.site-footer span,
.site-footer p,
.site-footer a {
  font-size: 13px;
  line-height: 1.4;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: #fff;
}

.crypto-details {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.crypto-details span {
  color: var(--muted);
}

.crypto-details code,
.published-payment code {
  overflow-wrap: anywhere;
  color: #dbeafe;
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.copy-btn {
  min-height: 40px;
  margin-top: 10px;
  padding: 9px 13px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-row .copy-btn {
  margin-top: 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 20px;
  padding: 30px 0 54px;
}

.admin-hero {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.admin-hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
}

.admin-hero p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.orders-list {
  display: grid;
  gap: 12px;
}

.order-card,
.tool-panel {
  padding: 15px;
}

.order-head strong,
.order-head span {
  display: block;
}

.order-head span {
  color: var(--muted);
}

.status {
  color: var(--blue);
  font-weight: 800;
}

.order-metrics {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 12px 0;
}

.order-metrics span {
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--surface-soft);
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.admin-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050912;
}

.admin-tabs button {
  min-height: 38px;
  padding: 8px 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.admin-tabs button.active {
  color: #fff;
  background: var(--blue);
}

.payment-setup,
.published-payment {
  display: grid;
  gap: 10px;
  padding: 13px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050912;
}

.payment-setup h3 {
  font-size: 15px;
}

.payment-setup ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.setup-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px;
}

.message-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.cardholder-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cardholder-form input[name="cardholderName"] {
  grid-column: 1 / -1;
}

.fulfillment-panel {
  display: grid;
  gap: 12px;
  padding: 13px;
  margin: 12px 0;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: var(--radius);
  background: #050912;
}

.fulfillment-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.fulfillment-head p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.fulfillment-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.1);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fulfillment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fulfillment-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.fulfillment-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fulfillment-grid code {
  overflow-wrap: anywhere;
  color: #dbeafe;
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.fulfillment-steps {
  display: grid;
  gap: 8px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.fulfillment-steps li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.35;
}

.fulfillment-steps li.done {
  color: #dcfce7;
  border-color: rgba(34, 197, 94, 0.32);
}

.fulfillment-steps li.active {
  color: #dbeafe;
  border-color: rgba(59, 130, 246, 0.42);
}

.fulfillment-steps li.problem {
  color: #fee2e2;
  border-color: rgba(248, 113, 113, 0.42);
}

.fulfillment-steps span {
  min-width: 74px;
  color: inherit;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.delivery-box {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: var(--radius);
  color: #dcfce7;
  background: rgba(22, 163, 74, 0.08);
  font-family: "Consolas", "SFMono-Regular", monospace;
  line-height: 1.45;
}

.setup-grid input:last-child {
  grid-column: 1 / -1;
}

.compact-btn {
  width: fit-content;
  min-height: 42px;
  padding-inline: 16px;
}

.published-payment a {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.admin-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.tool-panel .primary-btn {
  width: auto;
  margin-top: 10px;
}

.result-box {
  overflow: auto;
  max-height: 220px;
  white-space: pre-wrap;
  margin-bottom: 0;
}

.health-list {
  display: grid;
  gap: 6px;
  max-height: 420px;
  overflow: auto;
}

.health-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--surface-soft);
}

.health-list span {
  color: var(--muted);
}

summary {
  cursor: pointer;
  color: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media (max-width: 1320px) {
  .plans-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .hero,
  .workspace,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .checkout-sticky {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 18px);
    max-width: none;
  }

  .topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    min-height: 76px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 12px;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .site-nav a {
    width: 100%;
    min-width: 0;
  }

  .seo-intro {
    padding: 4px 0 18px;
  }

  .seo-intro h1 {
    font-size: 28px;
  }

  .seo-intro p {
    font-size: 15px;
  }

  .brand-strip {
    min-height: 62px;
    padding: 0;
  }

  .brand-icon {
    width: 150px;
    height: 62px;
  }

  .hero {
    padding: 26px 0 22px;
  }

  .hero-copy {
    min-height: auto;
    padding: 22px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-text,
  .admin-hero p:last-child {
    font-size: 16px;
  }

  .trust-list {
    grid-template-columns: 1fr 1fr;
  }

  .plans-grid,
  .store-benefits {
    grid-template-columns: 1fr;
  }

  .filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }

  .benefit-card,
  .plan-card,
  .catalog-toolbar {
    min-width: 0;
  }

  .benefit-card p,
  .plan-card {
    overflow-wrap: anywhere;
  }

  .plan-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .badge {
    max-width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-toolbar,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    flex-direction: column;
  }

  .sort-control {
    width: 100%;
    flex-basis: auto;
  }

  .site-footer {
    align-items: start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer p {
    text-align: left;
  }

  .admin-actions {
    grid-template-columns: 1fr 1fr;
  }

  .admin-actions input {
    grid-column: 1 / -1;
  }

  .fulfillment-head,
  .fulfillment-grid,
  .message-meta-grid {
    grid-template-columns: 1fr;
  }

  .fulfillment-head {
    display: grid;
  }
}

@media (max-width: 460px) {
  .site-header {
    gap: 10px;
  }

  .brand-strip {
    justify-content: flex-start;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions a,
  .top-actions button,
  .pill {
    flex: 1 1 auto;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  .trust-list {
    grid-template-columns: 1fr 1fr;
  }

  .trust-list div {
    min-height: 112px;
    padding: 16px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .store-benefits {
    grid-template-columns: 1fr;
  }

  .steps-list article {
    grid-template-columns: 1fr;
  }
}
