:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --accent: #10b981;
  --accent-ink: #065f46;
  --accent-soft: #d1fae5;
  --gold: #ca8a04;
  --gold-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --lift: 0 24px 70px rgba(16, 185, 129, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--text);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

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

.nav a:hover,
.nav .active {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
  box-shadow: none;
}

.button-dark {
  background: var(--text);
  color: white;
}

.button-accent {
  background: var(--accent);
  color: white;
  box-shadow: var(--lift);
}

.button-light {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
}

.button-danger {
  background: var(--danger);
  color: white;
}

.button.small {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 13px;
}

.button.wide {
  width: 100%;
}

.hero,
.purchase-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px clamp(20px, 4vw, 48px);
  overflow: hidden;
}

.hero::before,
.purchase-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 48% 10%, rgba(16, 185, 129, 0.18), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(254, 243, 199, 0.8), transparent 32%);
  content: "";
}

.badge,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 900;
}

.badge {
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.badge::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.hero h1,
.purchase-hero h1 {
  margin: 24px 0 0;
  color: var(--text);
  font-size: clamp(44px, 6vw, 70px);
  line-height: 1.04;
  font-weight: 900;
}

.purchase-hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.08;
}

.hero h1 span {
  color: var(--accent);
}

.hero p,
.purchase-hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.cta-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.micro,
.pill-row span {
  border-radius: 999px;
  background: white;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.kit-card,
.price-card,
.form-card,
.side-card,
.complete-card,
.table-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: white;
  box-shadow: var(--shadow);
}

.kit-card {
  align-self: center;
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 18px 22px;
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
}

.window-bar span:first-child {
  background: #ef4444;
}

.window-bar span:nth-child(2) {
  background: #f59e0b;
}

.window-bar em {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kit-items {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.kit-items div,
.feature-grid article,
.process-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  padding: 22px;
}

.kit-items b,
.kit-items small {
  display: block;
}

.kit-items b {
  margin-bottom: 6px;
}

.kit-items small {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px clamp(20px, 4vw, 48px);
}

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

.section-heading p,
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}

.section-heading span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.process-card {
  min-height: 220px;
  background: white;
}

.process-card em {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-style: normal;
  font-weight: 900;
}

.process-card h3 {
  margin: 16px 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.process-card p,
.feature-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-grid article {
  background: white;
}

.purchase-band {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto 72px;
  padding: 0 clamp(20px, 4vw, 48px);
}

.price-card {
  padding: 28px;
}

.price-panel {
  border-radius: 24px;
  background: var(--text);
  padding: 28px;
  color: white;
}

.price-panel p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 900;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.regular {
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  font-weight: 900;
  text-decoration: line-through;
}

.discount {
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 7px 12px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
}

.price-main {
  margin-top: 10px;
  font-size: clamp(52px, 7vw, 68px);
  font-weight: 900;
  line-height: 1;
}

.price-main span {
  margin-right: 4px;
  font-size: 28px;
}

.price-main small {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.slot-meter {
  display: grid;
  gap: 3px;
  margin-top: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
}

.slot-meter span,
.slot-meter small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.slot-meter strong {
  color: white;
  font-size: 18px;
}

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

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  content: "✓";
  font-weight: 900;
}

.purchase-flow {
  border-radius: 32px;
  background: white;
  padding: 32px;
  box-shadow: var(--shadow);
}

.purchase-flow h2 {
  margin: 0 0 24px;
  font-size: 28px;
}

.purchase-flow ol,
.mini-flow {
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.purchase-flow li,
.mini-flow li {
  position: relative;
  padding-left: 52px;
  counter-increment: flow;
}

.purchase-flow li::before,
.mini-flow li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  content: counter(flow);
  font-weight: 900;
}

.purchase-flow strong,
.purchase-flow span,
.mini-flow strong,
.mini-flow span {
  display: block;
}

.purchase-flow span,
.mini-flow span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 72px;
}

.form-card {
  padding: 32px;
}

.form-card.is-disabled {
  border-color: var(--line);
}

.purchase-fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.purchase-fieldset:disabled {
  opacity: 0.72;
}

.purchase-lock {
  display: grid;
  gap: 8px;
  margin: 20px 0 2px;
  border: 1px solid var(--gold-soft);
  border-radius: 18px;
  background: #fffbeb;
  padding: 16px 18px;
  color: #92400e;
  line-height: 1.7;
}

.purchase-lock strong {
  color: #78350f;
}

.purchase-lock span {
  color: #92400e;
  font-size: 14px;
}

.reservation-note {
  display: grid;
  gap: 6px;
  max-width: 620px;
  margin-top: 24px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.reservation-note strong {
  color: var(--accent-ink);
  font-size: 14px;
}

.reservation-note span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.form-card.compact {
  max-width: 480px;
  width: 100%;
}

.form-card h1,
.form-card h2,
.complete-card h1,
.admin h1 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.2;
}

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

label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 900;
}

label small {
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

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

.template-textarea {
  min-height: 280px;
  line-height: 1.65;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
  outline: none;
}

.confirm-box {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  padding: 22px;
}

.confirm-box h3 {
  margin: 0 0 12px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.side-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.side-card {
  padding: 24px;
}

.side-card h2 {
  margin: 0 0 18px;
}

.simple-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px clamp(20px, 4vw, 48px);
}

.complete-card {
  padding: 40px;
}

.complete-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

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

.amount-box {
  min-width: 190px;
  height: fit-content;
  border-radius: 24px;
  background: var(--text);
  padding: 24px;
  color: white;
}

.amount-box span,
.amount-box small {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 900;
}

.amount-box strong {
  display: block;
  margin: 6px 0;
  font-size: 42px;
  line-height: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.info-grid div {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  padding: 20px;
}

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

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

.info-grid strong {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.bank-card {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
}

.bank-card h2 {
  margin: 0 0 18px;
}

.bank-card dl,
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0;
}

.bank-card dt,
.detail-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.bank-card dd,
.detail-list dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.notice,
.error {
  margin-top: 24px;
  border-radius: 20px;
  padding: 18px 20px;
  line-height: 1.7;
}

.notice {
  border: 1px solid rgba(202, 138, 4, 0.22);
  background: var(--gold-soft);
}

.compact-notice {
  margin-top: 18px;
}

.payment-rules h4 {
  margin: 18px 0 6px;
}

.payment-rules p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.7;
}

.error {
  border: 1px solid rgba(220, 38, 38, 0.24);
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-login {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 48px 20px;
}

.admin {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 48px);
}

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

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.table-card {
  overflow: auto;
  padding: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td a {
  color: var(--accent);
  font-weight: 900;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  background: var(--surface-2);
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.status.delivered,
.status.paid,
.status.reserved_paid,
.status.sent {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.status.failed {
  background: var(--danger-soft);
  color: var(--danger);
}

.status.payment_pending {
  background: var(--gold-soft);
  color: var(--gold);
}

.status.logged {
  background: var(--gold-soft);
  color: var(--gold);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-bottom: 24px;
}

.detail-card h2,
.table-card h2 {
  margin-top: 0;
}

.ops-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.ops-summary-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  padding: 20px;
  color: var(--text);
  text-decoration: none;
}

.ops-summary-card:hover {
  border-color: rgba(13, 148, 136, 0.34);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.ops-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ops-summary-card strong {
  font-size: 28px;
  line-height: 1;
}

.ops-summary-card small {
  color: var(--muted);
  line-height: 1.5;
}

.ops-summary-card.ready {
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.ops-summary-card.attention {
  background: var(--gold-soft);
}

.ops-summary-card.danger {
  border-color: rgba(220, 38, 38, 0.26);
  background: var(--danger-soft);
}

.admin-guide-panel,
.reconcile-panel,
.order-action-panel {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.admin-guide-panel h2,
.reconcile-panel h2,
.order-action-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.admin-guide-panel p,
.reconcile-panel p,
.order-action-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-guide-steps li {
  display: grid;
  gap: 6px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 14px;
}

.admin-guide-steps strong {
  font-size: 14px;
}

.admin-guide-steps span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.reconcile-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.reconcile-checks span {
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
}

.order-action-panel {
  grid-template-columns: 1fr 1.2fr;
}

.order-action-panel.attention {
  border-color: rgba(202, 138, 4, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.order-action-panel.ready {
  border-color: rgba(16, 185, 129, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.order-action-panel.danger {
  border-color: rgba(220, 38, 38, 0.26);
  background: var(--danger-soft);
}

.order-action-panel dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
}

.order-action-panel dl div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.order-action-panel dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.order-action-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.next-action {
  display: grid;
  gap: 5px;
  min-width: 220px;
  max-width: 320px;
}

.next-action strong {
  font-size: 13px;
}

.next-action small {
  color: var(--muted);
  line-height: 1.45;
}

.next-action.attention strong {
  color: var(--gold);
}

.next-action.ready strong {
  color: var(--accent-ink);
}

.next-action.danger strong {
  color: var(--danger);
}

.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.backup-summary-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 0.8fr;
  gap: 14px;
  margin-bottom: 24px;
}

.payment-summary-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  padding: 20px;
}

.payment-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.payment-summary-card strong {
  font-size: 28px;
  line-height: 1;
}

.payment-summary-card small {
  color: var(--muted);
  line-height: 1.5;
}

.backup-summary-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  padding: 20px;
}

.backup-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.backup-summary-card strong {
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.1;
}

.backup-summary-card small {
  color: var(--muted);
  line-height: 1.5;
}

.backup-summary-card.ready {
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.backup-summary-card.attention {
  background: var(--gold-soft);
}

.payment-summary-card.needs-attention {
  border-color: rgba(202, 138, 4, 0.34);
  background: var(--gold-soft);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 220px;
}

.row-actions form {
  margin: 0;
}

.settings-form {
  display: grid;
  gap: 34px;
}

.launch-card {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 24px;
}

.launch-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.launch-card h2 {
  margin: 0;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.readiness-item {
  display: grid;
  gap: 8px;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 16px;
}

.readiness-item span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
}

.readiness-item.ready span {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.readiness-item.not-ready span {
  background: var(--gold-soft);
  color: var(--gold);
}

.readiness-item strong {
  font-size: 15px;
}

.readiness-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.launch-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 16px;
}

.launch-toggle.disabled {
  color: var(--muted);
  opacity: 0.78;
}

.launch-toggle input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.launch-toggle span {
  display: grid;
  gap: 4px;
}

.launch-toggle small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.launch-check {
  align-self: end;
  min-height: 52px;
}

.reservation-release-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-bottom: 24px;
}

.mail-status-card {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 24px;
}

.mail-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.test-mail-form {
  align-content: end;
  display: grid;
  gap: 12px;
}

.asset-status-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 18px;
}

.asset-status-panel h3 {
  margin: 4px 0 8px;
}

.asset-status-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.asset-error {
  color: var(--danger) !important;
}

.asset-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.asset-status {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  padding: 14px;
}

.asset-status span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
}

.asset-status.ready span {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.asset-status.missing span {
  background: var(--gold-soft);
  color: var(--gold);
}

.asset-status small {
  overflow-wrap: anywhere;
  color: var(--muted);
  line-height: 1.55;
}

.mail-preview-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  padding: 18px;
}

.mail-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.mail-preview-head h3 {
  margin: 4px 0 0;
}

.mail-preview-head span {
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 5px 10px;
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 900;
}

.mail-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mail-preview-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 16px;
}

.mail-preview-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mail-preview-card-head small {
  color: var(--muted);
  font-size: 12px;
}

.detail-list.compact {
  gap: 8px;
}

.detail-list.compact div {
  grid-template-columns: 64px 1fr;
  padding: 0;
}

.mail-preview-body {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  padding: 16px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}

.mail-preview-body p {
  margin: 0 0 14px;
}

.mail-preview-body p:last-child {
  margin-bottom: 0;
}

.mail-preview-body a {
  overflow-wrap: anywhere;
  color: var(--accent-ink);
  font-weight: 800;
}

.cancel-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.settings-form section {
  display: grid;
  gap: 4px;
}

.settings-form h2 {
  margin: 0;
}

.span-2 {
  grid-column: 1 / -1;
}

.copy-url {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.legal p {
  font-size: 16px;
}

.legal-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 28px;
}

.legal-section h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
}

.legal-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25em;
  color: var(--muted);
  line-height: 1.8;
}

.legal-list {
  margin: 24px 0;
}

.legal-note {
  margin: 18px 0 0;
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--line);
  background: white;
  padding: 36px clamp(20px, 4vw, 48px);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.footer p,
.footer-links {
  max-width: 1120px;
  margin-inline: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}

.footer a:hover {
  color: var(--accent);
}

@media (max-width: 980px) {
  .hero,
  .purchase-hero,
  .purchase-band,
  .form-layout,
  .detail-grid,
  .mail-status-card,
  .readiness-grid,
  .ops-summary-grid,
  .payment-summary-grid,
  .backup-summary-grid,
  .admin-guide-panel,
  .reservation-release-card,
  .reconcile-panel,
  .order-action-panel,
  .admin-guide-steps,
  .order-action-panel dl,
  .asset-status-grid {
    grid-template-columns: 1fr;
  }

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

  .nav {
    display: none;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 12px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero,
  .purchase-hero {
    padding-block: 52px;
  }

  .hero h1,
  .purchase-hero h1 {
    font-size: 39px;
  }

  .process-grid,
  .feature-grid,
  .form-grid,
  .info-grid,
  .bank-card dl,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .complete-head {
    flex-direction: column;
  }

  .launch-card-head {
    flex-direction: column;
  }

  .form-card,
  .complete-card,
  .table-card {
    padding: 24px;
    border-radius: 24px;
  }
}
