﻿:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #1677ff;
  --accent-strong: #0958d9;
  --ok: #047857;
  --warn: #64748b;
  --price: #059669;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.admin-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(22, 119, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef4fb 46%, #f8fafc 100%);
}

.admin-login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  width: min(100%, 440px);
  padding: 24px;
}

.admin-login-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 24px 72px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(24px) saturate(1.18);
  padding: 28px;
}

.admin-login-brand {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.admin-login-brand span {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 950;
}

.admin-login-brand strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1.16;
}

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

.admin-login-form label {
  display: grid;
  gap: 8px;
}

.admin-login-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0 13px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 760;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.admin-login-form input:focus {
  border-color: rgba(22, 119, 255, 0.74);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}

.product-media-admin {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.media-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.media-admin-actions .field {
  flex: 1 1 240px;
}

.media-admin-actions .compact-btn {
  min-height: 36px;
  margin-bottom: 0;
}

.product-media-preview {
  width: min(100%, 360px);
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.brand {
  font-size: 18px;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a,
.nav button {
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font: inherit;
  cursor: pointer;
}

.nav a[aria-current="page"],
.nav a:hover,
.nav button:hover {
  background: #eef5ff;
  color: var(--accent-strong);
}

main {
  width: min(1160px, calc(100% - 24px));
  margin: 0 auto;
}

.hero,
.guide-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  padding: 26px 0 14px;
}

.hero {
  min-height: 220px;
}

.guide-hero {
  min-height: 280px;
}

.hero h1,
.guide-hero h1,
.order-layout h1 {
  margin: 8px 0 16px;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p,
.guide-hero p {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 18px 0 36px;
}

.guide-section {
  padding-top: 0;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section__head h2 {
  margin: 0;
  font-size: 22px;
}

.section__head p,
.muted {
  margin: 0;
  color: var(--muted);
}

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

button {
  cursor: pointer;
}

.primary,
.secondary {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover {
  background: var(--accent-strong);
}

.primary:disabled,
.secondary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.price-line {
  color: var(--price) !important;
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.field {
  display: grid;
  gap: 8px;
  margin: 16px 0 14px;
  font-weight: 700;
}

.field input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.contact-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contact-type button {
  min-height: 38px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #64748b;
  font-size: 15px;
  font-weight: 850;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    background 180ms var(--ease-out),
    color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.contact-type button:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 119, 255, 0.28);
}

.contact-type button.is-selected {
  border-color: rgba(22, 119, 255, 0.56);
  background:
    linear-gradient(145deg, rgba(238, 245, 255, 0.94), rgba(255, 255, 255, 0.72)),
    rgba(238, 245, 255, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(22, 119, 255, 0.16),
    0 10px 24px rgba(22, 119, 255, 0.08);
  color: #0f172a;
}

.field select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  color: var(--text);
  text-align: left;
}

.option-item span {
  min-width: 0;
  font-weight: 800;
}

.option-item strong {
  flex: 0 0 auto;
  color: var(--price);
}

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

.option-item.is-selected {
  border-color: var(--accent);
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.option-item:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.form-error {
  margin: 0;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  padding: 10px 12px;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 800;
}

.hero-link {
  display: inline-grid;
  place-items: center;
  width: min(100%, 240px);
  margin-top: 16px;
}

.guide-media-slot {
  display: grid;
  place-items: center;
  width: min(100%, 420px);
  aspect-ratio: 16 / 10;
  margin: 20px 0 0;
  border: 1px dashed #9ca3af;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
}

.checkout-panel {
  display: grid;
  gap: 18px;
  width: min(480px, 100%);
  margin: 28px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.flow-steps span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.flow-steps span.is-active {
  border-color: #bfdbfe;
  background: #eef5ff;
  color: var(--accent-strong);
}

.flow-steps--order {
  margin: 18px 0 12px;
}

.quick-form {
  display: grid;
  gap: 14px;
}

.price-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #f8fafc;
}

.price-strip span {
  color: var(--muted);
  font-size: 14px;
}

.price-strip strong {
  color: var(--price);
  font-size: 24px;
}

.order-layout {
  padding-top: 18px;
}

.pay-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.pay-box__main,
.status-box,
.notice-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.pay-box__main p {
  color: var(--muted);
}

.qr-wrap {
  display: grid;
  place-items: center;
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 1;
  max-width: 100%;
  margin: 18px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-wrap img {
  width: 280px;
  height: 280px;
}

.payment-notice {
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  padding: 14px;
  color: #047857;
  font-weight: 800;
}

.success-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  display: grid;
  gap: 4px;
  width: min(320px, calc(100% - 28px));
  transform: translateX(-50%);
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  padding: 14px 16px;
}

.success-toast strong {
  color: #047857;
  font-size: 16px;
}

.success-toast span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.status-box h2 {
  margin-top: 0;
  font-size: 18px;
}

.status-box p {
  margin-bottom: 6px;
  color: var(--warn);
  font-weight: 800;
}

.status-box small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.expiry-text {
  margin-top: 8px;
  color: var(--warn) !important;
}

.status-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.card-result {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.card-result span {
  color: var(--muted);
  font-size: 14px;
}

.card-result code {
  overflow-wrap: anywhere;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.result-field {
  display: grid;
  gap: 8px;
}

.result-field small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-field b {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.target-link {
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  font-weight: 800;
}

.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.copy-btn {
  width: 100%;
}

.query-result {
  display: grid;
  gap: 12px;
}

.query-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.query-card.result-panel {
  background: #f8fafc;
}

.query-card div {
  display: grid;
  gap: 4px;
}

.query-card span {
  font-weight: 800;
}

.query-card small {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.query-card code {
  overflow-wrap: anywhere;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
}

.display-admin-form {
  display: grid;
  gap: 14px;
}

.query-empty {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  color: var(--muted);
  font-weight: 800;
}

.guide-blocks {
  display: grid;
  gap: 12px;
  padding: 18px 0 36px;
}

.guide-block {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.guide-block.is-disabled {
  pointer-events: none;
}

.guide-block--text h2 {
  margin: 0;
  font-size: 22px;
}

.guide-block--text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.guide-step-media {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-block--image {
  place-items: center;
  aspect-ratio: 16 / 10;
  border-style: dashed;
  color: var(--muted);
  font-weight: 800;
  overflow: hidden;
  padding: 0;
}

.guide-block--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hidden {
  display: none !important;
}

.admin-layout {
  padding: 18px 0 40px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stats article,
.admin-table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-stats article {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-stats span {
  color: var(--muted);
  font-size: 13px;
}

.admin-stats strong {
  font-size: 24px;
}

.admin-table-panel {
  padding: 16px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-export {
  display: inline-grid;
  place-items: center;
}

.table-scroll {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-weight: 800;
}

.admin-table code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.status-pill {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--accent-strong);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.guide-admin-form {
  display: grid;
  gap: 14px;
}

.product-table-wrap {
  display: grid;
  gap: 14px;
}

.product-table {
  display: grid;
  gap: 8px;
}

.admin-series-block {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.admin-series-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-series-head .admin-actions,
.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.admin-series-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-state-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-series-title strong {
  color: var(--text);
  font-size: 18px;
}

.admin-series-title small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-order-items,
.admin-card-codes {
  display: grid;
  gap: 4px;
}

.admin-order-items small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.series-edit-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 120px minmax(180px, 1fr) 110px minmax(180px, auto);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.product-row--head {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
}

.product-row div {
  display: grid;
  gap: 3px;
}

.product-row small {
  color: var(--muted);
  font-size: 13px;
}

.product-edit-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.compact-btn {
  min-height: 34px;
  padding: 0 12px;
}

.card-import-panel {
  display: grid;
  gap: 14px;
}

.stock-workbench {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  align-items: end;
  gap: 14px;
}

.stock-state {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stock-state article {
  display: grid;
  gap: 6px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.stock-state span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stock-state strong {
  font-size: 22px;
}

.stock-actions-grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.inventory-console {
  gap: 16px;
}

.inventory-product-list {
  display: grid;
  gap: 8px;
}

.inventory-product-list article {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px 110px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.86);
  padding: 10px 12px;
}

.inventory-product-list div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.inventory-product-list strong,
.inventory-product-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-product-list small,
.inventory-product-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.inventory-submit {
  display: flex;
  align-items: flex-end;
  min-height: 72px;
}

.fulfillment-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fulfillment-lane {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.78);
  padding: 12px;
}

.fulfillment-lane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fulfillment-lane__head strong {
  color: var(--text);
  font-size: 16px;
}

.fulfillment-lane__head span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 26px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--accent-strong);
  font-weight: 850;
}

.fulfillment-list {
  display: grid;
  gap: 8px;
}

.fulfillment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.fulfillment-item div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.fulfillment-item strong,
.fulfillment-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fulfillment-item small,
.fulfillment-item > span,
.fulfillment-empty,
.fulfillment-code-preview em {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.fulfillment-code-preview {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.fulfillment-code-preview code {
  overflow: hidden;
  border-radius: 6px;
  background: rgba(241, 245, 249, 0.9);
  padding: 6px 8px;
  color: #334155;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fulfillment-empty {
  margin: 0;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.stock-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
}

.stock-box legend {
  padding: 0 0 8px;
  font-weight: 800;
}

.card-generate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.product-admin-block,
.guide-admin-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
}

.product-admin-block legend,
.guide-admin-block legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 8px;
  font-weight: 800;
}

.product-admin-block legend small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.product-check input {
  width: 22px;
  height: 22px;
}

.admin-note {
  margin: 0;
  color: var(--ok);
  font-size: 14px;
  font-weight: 800;
}

.guide-admin-block legend span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-admin-block legend button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
  color: var(--muted);
}

.guide-admin-block.is-new {
  border-color: rgba(22, 119, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.08);
}

.guide-empty-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
  padding: 14px;
}

@media (max-width: 640px) {
  .guide-empty-actions {
    grid-template-columns: 1fr;
  }
}

.guide-preview {
  width: min(100%, 360px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.guide-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .hero-link,
  .quick-form .primary,
  .pay-box .secondary {
    width: 100%;
  }

  .guide-media-slot {
    width: 100%;
  }

  .admin-actions,
  .admin-actions button {
    width: 100%;
  }

  .admin-series-head {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-admin-block legend {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .product-admin-grid {
    grid-template-columns: 1fr;
  }

  .card-generate-row {
    grid-template-columns: 1fr;
  }

  .stock-workbench,
  .stock-actions-grid,
  .stock-state,
  .fulfillment-board,
  .inventory-product-list article {
    grid-template-columns: 1fr;
  }

  .product-row,
  .product-row--head {
    grid-template-columns: 1fr;
  }

  .product-row--head {
    display: none;
  }

  .option-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .option-item strong {
    grid-column: 1 / -1;
  }

  .product-admin-block legend {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (min-width: 720px) {
  .topbar {
    height: 64px;
    padding: 0 32px;
  }

  .brand {
    font-size: 20px;
  }

  main {
    width: min(1160px, calc(100% - 48px));
  }

  .hero,
  .guide-hero {
    padding: 44px 0 24px;
  }

  .hero {
    min-height: 260px;
  }

  .guide-hero {
    min-height: 340px;
  }

  .hero h1,
  .guide-hero h1,
  .order-layout h1 {
    font-size: 46px;
  }

  .pay-box {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
  }

  .admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .guide-blocks {
    gap: 18px;
  }
}

@media (min-width: 1040px) {
  .pay-box {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

/* Visual polish: calmer surface, tactile controls, and subtle motion. */
:root {
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.08);
  --shadow-lift: 0 22px 70px rgba(15, 23, 42, 0.13);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.88), rgba(231, 238, 247, 0.96) 44%, rgba(244, 247, 251, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(225deg, rgba(22, 119, 255, 0.08), transparent 48%),
    #e8eef7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(22, 119, 255, 0.18);
}

main {
  animation: pageIn 520ms var(--ease-out) both;
}

.topbar {
  top: 12px;
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(24px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24),
    0 22px 60px rgba(31, 41, 55, 0.12);
}

.nav a,
.primary,
.secondary,
.option-item,
.guide-block,
.product-row,
.query-card {
  transition:
    transform 190ms var(--ease-out),
    box-shadow 190ms var(--ease-out),
    background 190ms var(--ease-out),
    border-color 190ms var(--ease-out),
    color 190ms var(--ease-out);
}

.nav a {
  font-weight: 750;
  border: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.36)),
    rgba(238, 245, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 24px rgba(22, 119, 255, 0.1);
}

.nav a:active,
.primary:active,
.secondary:active,
.option-item:active {
  transform: scale(0.98);
}

input,
select,
textarea,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(22, 119, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}

.primary {
  background:
    linear-gradient(180deg, rgba(47, 132, 255, 0.96), rgba(15, 111, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 28px rgba(22, 119, 255, 0.24);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(22, 119, 255, 0.28);
}

.secondary {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 24px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px) saturate(1.18);
}

.secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 119, 255, 0.28);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.checkout-panel,
.pay-box__main,
.status-box,
.notice-band,
.admin-stats article,
.admin-table-panel {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 22px 70px rgba(31, 41, 55, 0.11);
  backdrop-filter: blur(22px) saturate(1.28);
}

.hero,
.guide-hero {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 220px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(15, 23, 42, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 24px 80px rgba(31, 41, 55, 0.16);
  padding: 38px 22px;
}

.hero::before,
.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.18));
  pointer-events: none;
}

.hero > *,
.guide-hero > * {
  position: relative;
  z-index: 1;
}

.hero h1,
.guide-hero h1,
.order-layout h1 {
  text-wrap: balance;
}

.hero::after,
.guide-hero::after {
  display: none;
}

.guide-hero::after {
  display: none;
}

.guide-hero {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(15, 23, 42, 0.82);
}

.hero h1,
.guide-hero h1,
.hero .eyebrow,
.guide-hero .eyebrow {
  color: #ffffff;
}

.hero p:not(.eyebrow),
.guide-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
}

.option-item {
  position: relative;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  min-height: 76px;
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(18px) saturate(1.18);
}

.option-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.option-item.is-selected {
  border-color: rgba(90, 158, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(238, 245, 255, 0.78), rgba(255, 255, 255, 0.38)),
    rgba(238, 245, 255, 0.42);
}

.option-item.is-selected::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(22, 119, 255, 0.12);
}

.option-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-weight: 800;
}

.option-copy b {
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.option-thumb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.option-thumb b {
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 900;
}

.option-item--loading {
  pointer-events: none;
}

.option-item--loading span,
.option-item--loading small,
.option-item--loading strong {
  display: block;
  min-height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 240% 100%;
  animation: shimmer 1.2s linear infinite;
}

.option-item--loading span {
  width: 54px;
  min-height: 54px;
}

.option-item--loading small {
  width: 120px;
}

.option-item--loading strong {
  width: 70px;
}

.price-strip,
.flow-steps span,
.query-empty,
.query-card,
.guide-block,
.product-row:not(.product-row--head) {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(1.18);
}

.query-card,
.guide-block {
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.05);
  animation: riseIn 420ms var(--ease-out) both;
}

.guide-block:hover,
.product-row:not(.product-row--head):hover,
.query-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-lift);
}

.guide-block--image {
  border-style: solid;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.22)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 10px, rgba(148, 163, 184, 0.08) 10px 20px);
}

.qr-wrap {
  border-color: rgba(229, 231, 235, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 16px 48px rgba(15, 23, 42, 0.08);
}

.qr-wrap img {
  animation: qrSettle 460ms var(--ease-out) both;
}

.success-toast {
  animation: toastIn 360ms var(--ease-out) both;
}

.flow-steps {
  position: relative;
}

.flow-steps::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  background: var(--line);
  transform: translateY(-50%);
}

.flow-steps span {
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.flow-steps span.is-active {
  box-shadow: 0 10px 28px rgba(22, 119, 255, 0.14);
}

.status-pill {
  background: rgba(238, 245, 255, 0.92);
}

.status-pending {
  background: #fff7ed;
  color: #64748b;
}

.status-paid {
  background: #eef5ff;
  color: var(--accent-strong);
}

.status-delivered {
  background: #ecfdf5;
  color: #047857;
}

.status-closed {
  background: #f1f5f9;
  color: #64748b;
}

.admin-table tr {
  transition: background 160ms var(--ease-out);
}

.admin-table tbody tr:hover {
  background: rgba(248, 250, 252, 0.86);
}

.field span,
.price-strip span,
.status-box h2,
.section__head h2 {
  letter-spacing: 0;
}

.price-strip strong,
.price-line {
  font-variant-numeric: tabular-nums;
}

.card-result code,
.query-card code,
.admin-table code {
  font-variant-numeric: tabular-nums;
}

.form-error {
  animation: riseIn 260ms var(--ease-out) both;
}

@media (max-width: 640px) {
  .option-item {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 72px;
  }

  .option-item strong {
    grid-column: 2;
  }

  .option-thumb {
    width: 48px;
    height: 48px;
  }

  .hero::after,
  .guide-hero::after {
    min-height: 150px;
  }
}

@media (min-width: 720px) {
  .hero,
  .guide-hero {
    padding: 56px 36px;
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes qrSettle {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  to {
    background-position: -240% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Homepage and cashier refinement. */
body {
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.82), rgba(226, 236, 247, 0.96) 48%, rgba(245, 248, 252, 0.98)),
    linear-gradient(115deg, rgba(255, 255, 255, 0.74) 0%, transparent 34%),
    linear-gradient(245deg, rgba(39, 120, 255, 0.1) 0%, transparent 42%),
    #e7edf6;
}

.topbar {
  height: 58px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    0 24px 70px rgba(36, 54, 82, 0.16);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.1) 38%, rgba(255, 255, 255, 0.42) 72%, rgba(255, 255, 255, 0.12));
  opacity: 0.58;
  pointer-events: none;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.96), transparent);
  pointer-events: none;
}

.brand,
.nav {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.96), rgba(116, 176, 255, 0.68)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 10px 24px rgba(22, 119, 255, 0.2);
}

.nav {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.nav a {
  min-width: 58px;
  text-align: center;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.28);
}

.hero,
.guide-hero {
  min-height: clamp(300px, 42vw, 440px);
  display: flex;
  align-items: end;
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(180deg, rgba(13, 19, 31, 0.08), rgba(13, 19, 31, 0.72)),
    linear-gradient(120deg, rgba(22, 119, 255, 0.34), transparent 42%),
    rgba(15, 23, 42, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 34px 90px rgba(36, 54, 82, 0.22);
  padding: clamp(28px, 6vw, 56px);
}

.guide-hero {
  background:
    linear-gradient(180deg, rgba(13, 19, 31, 0.08), rgba(13, 19, 31, 0.72)),
    linear-gradient(120deg, rgba(22, 119, 255, 0.34), transparent 42%),
    rgba(15, 23, 42, 0.82);
}

.hero::before,
.guide-hero::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.16), transparent 34%);
}

.hero h1,
.guide-hero h1 {
  margin-bottom: 22px;
  max-width: 720px;
  font-size: clamp(40px, 8vw, 74px);
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.hero .eyebrow,
.guide-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero-link {
  min-height: 48px;
  width: min(100%, 380px);
  background:
    linear-gradient(180deg, rgba(54, 146, 255, 0.96), rgba(0, 105, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 48px rgba(0, 105, 255, 0.34);
}

.pay-box__main {
  position: relative;
  overflow: hidden;
}

.pay-box__main::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), transparent 36%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.34), transparent 34%);
  pointer-events: none;
}

.pay-box__main > * {
  position: relative;
  z-index: 1;
}

.order-layout h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 900;
}

#orderMeta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
  padding: 0 12px;
  color: #526176;
  font-weight: 760;
  backdrop-filter: blur(12px);
}

.qr-wrap {
  position: relative;
  width: min(100%, 350px);
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 26px 74px rgba(31, 41, 55, 0.18);
}

.qr-wrap::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 8px;
  background:
    linear-gradient(#1677ff, #1677ff) left top / 34px 3px no-repeat,
    linear-gradient(#1677ff, #1677ff) left top / 3px 34px no-repeat,
    linear-gradient(#1677ff, #1677ff) right top / 34px 3px no-repeat,
    linear-gradient(#1677ff, #1677ff) right top / 3px 34px no-repeat,
    linear-gradient(#1677ff, #1677ff) left bottom / 34px 3px no-repeat,
    linear-gradient(#1677ff, #1677ff) left bottom / 3px 34px no-repeat,
    linear-gradient(#1677ff, #1677ff) right bottom / 34px 3px no-repeat,
    linear-gradient(#1677ff, #1677ff) right bottom / 3px 34px no-repeat;
  opacity: 0.82;
  pointer-events: none;
}

.qr-wrap::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(22, 119, 255, 0.72), transparent);
  transform: translateY(-50%);
  opacity: 0.38;
  pointer-events: none;
}

.qr-wrap img {
  width: min(78vw, 286px);
  height: min(78vw, 286px);
  padding: 6px;
}

.qr-caption {
  margin: -2px 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.status-box {
  overflow: hidden;
}

.status-box h2 {
  color: #526176;
  font-size: 14px;
}

.status-box p {
  font-size: 20px;
}

@media (max-width: 640px) {
  .topbar {
    top: 8px;
    width: min(calc(100% - 18px), 560px);
  }

  .brand::before {
    width: 19px;
    height: 19px;
  }

  .nav {
    gap: 2px;
    padding: 3px;
  }

  .nav a {
    min-width: 50px;
    padding-inline: 8px;
  }

  .hero,
  .guide-hero {
    min-height: 280px;
    padding: 26px;
  }

  .qr-wrap {
    width: min(100%, 330px);
  }
}

/* Stronger typography and cashier hierarchy. */
:root {
  --ink: #111827;
  --ink-soft: #334155;
  --glass-fill: rgba(255, 255, 255, 0.52);
  --glass-fill-strong: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.72);
}

body {
  color: var(--ink);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", system-ui, sans-serif;
  font-weight: 650;
}

.brand {
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
}

.nav a {
  color: #334155;
  font-size: 15px;
  font-weight: 850;
}

.hero h1,
.guide-hero h1,
.order-layout h1 {
  color: var(--ink);
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1,
.guide-hero h1 {
  color: #ffffff;
}

.checkout-panel,
.pay-box__main,
.status-box,
.admin-stats article,
.admin-table-panel,
.guide-block,
.query-card,
.product-row:not(.product-row--head),
.option-item {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
    var(--glass-fill);
  border-color: var(--glass-border);
}

.order-layout {
  padding-top: 28px;
}

.pay-box {
  gap: 14px;
}

.pay-box__main {
  padding: clamp(22px, 5vw, 34px);
}

.order-layout h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(34px, 8.5vw, 54px);
  line-height: 1.02;
  text-shadow: none;
}

#orderMeta {
  min-height: 38px;
  margin-bottom: 4px;
  color: var(--price);
  font-size: 16px;
  font-weight: 780;
}

.qr-wrap {
  width: min(100%, 372px);
  max-width: 100%;
  margin: 26px auto 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.88)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 30px 80px rgba(31, 41, 55, 0.2);
}

.qr-wrap img {
  width: min(76vw, 292px);
  height: min(76vw, 292px);
}

.qr-caption {
  color: #475569;
  font-size: 14px;
  font-weight: 850;
}

.status-box {
  padding: 22px;
}

.status-box h2 {
  margin-bottom: 18px;
  color: #334155;
  font-size: 16px;
  font-weight: 900;
}

.status-box p {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 950;
}

.status-box small {
  color: #475569;
  font-size: 14px;
  font-weight: 800;
}

.expiry-text {
  color: #64748b !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

.expiry-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.expiry-clock {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: visible;
}

.expiry-clock .face {
  transform: scale(0.22);
  transform-origin: top left;
}

.status-actions {
  margin-top: 18px;
}

.status-actions .secondary,
.copy-btn {
  min-height: 48px;
  font-size: 16px;
  font-weight: 920;
}

.hero {
  min-height: clamp(340px, 54vw, 560px);
}

.hero__copy {
  max-width: 740px;
}

.hero .eyebrow,
.guide-hero .eyebrow {
  font-size: 14px;
  font-weight: 950;
}

.hero-link {
  font-size: 17px;
  font-weight: 950;
}

.guide-block--text h2 {
  color: var(--ink);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 950;
  line-height: 1.12;
}

.guide-block--text p {
  color: #64748b;
  font-size: 17px;
  font-weight: 720;
}

@media (max-width: 640px) {
  main {
    width: min(100% - 22px, 560px);
  }

  .order-layout {
    padding-top: 18px;
  }

  .pay-box__main,
  .status-box {
    padding: 20px;
  }

  .order-layout h1 {
    font-size: clamp(32px, 8.6vw, 40px);
  }

  #orderMeta {
    font-size: 15px;
  }

  .qr-wrap {
    width: min(100%, 356px);
  }
}

/* Compact payment terminal QR. */
.qr-wrap {
  width: min(100%, 306px);
  margin: 24px auto 12px;
  aspect-ratio: 1;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 22px 54px rgba(15, 23, 42, 0.14);
}

.qr-wrap::before {
  inset: 18px;
  background:
    linear-gradient(#1677ff, #1677ff) left top / 28px 3px no-repeat,
    linear-gradient(#1677ff, #1677ff) left top / 3px 28px no-repeat,
    linear-gradient(#1677ff, #1677ff) right top / 28px 3px no-repeat,
    linear-gradient(#1677ff, #1677ff) right top / 3px 28px no-repeat,
    linear-gradient(#1677ff, #1677ff) left bottom / 28px 3px no-repeat,
    linear-gradient(#1677ff, #1677ff) left bottom / 3px 28px no-repeat,
    linear-gradient(#1677ff, #1677ff) right bottom / 28px 3px no-repeat,
    linear-gradient(#1677ff, #1677ff) right bottom / 3px 28px no-repeat;
  opacity: 0.76;
}

.qr-wrap::after {
  left: 42px;
  right: 42px;
  height: 1px;
  opacity: 0.28;
}

.qr-wrap img {
  width: min(68vw, 226px);
  height: min(68vw, 226px);
  padding: 4px;
}

.qr-caption {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.qr-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(100%, 360px);
  margin: 0 auto 18px;
}

.qr-actions .primary,
.qr-actions .secondary {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 8px;
}

.qr-actions small {
  color: #64748b;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 640px) {
  .qr-wrap {
    width: min(100%, 292px);
  }

  .qr-wrap img {
    width: min(62vw, 214px);
    height: min(62vw, 214px);
  }
}

/* Refined cashier card: smaller QR, stronger payment object. */
.cashier-shell {
  width: min(100%, 390px);
  margin: 28px auto 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 68px rgba(15, 23, 42, 0.13);
  backdrop-filter: blur(24px) saturate(1.25);
  padding: 16px;
}

.cashier-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.cashier-topline span {
  color: #475569;
  font-size: 14px;
  font-weight: 900;
}

.cashier-topline b {
  color: var(--price);
  font-size: 24px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.cashier-shell .qr-wrap {
  width: 230px;
  margin: 18px auto 10px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 42px rgba(15, 23, 42, 0.12);
}

.cashier-shell .qr-wrap::before {
  inset: 14px;
  background:
    linear-gradient(#1677ff, #1677ff) left top / 22px 3px no-repeat,
    linear-gradient(#1677ff, #1677ff) left top / 3px 22px no-repeat,
    linear-gradient(#1677ff, #1677ff) right top / 22px 3px no-repeat,
    linear-gradient(#1677ff, #1677ff) right top / 3px 22px no-repeat,
    linear-gradient(#1677ff, #1677ff) left bottom / 22px 3px no-repeat,
    linear-gradient(#1677ff, #1677ff) left bottom / 3px 22px no-repeat,
    linear-gradient(#1677ff, #1677ff) right bottom / 22px 3px no-repeat,
    linear-gradient(#1677ff, #1677ff) right bottom / 3px 22px no-repeat;
}

.cashier-shell .qr-wrap::after {
  left: 34px;
  right: 34px;
}

.cashier-shell .qr-wrap img {
  width: 166px;
  height: 166px;
}

.cashier-shell .qr-caption {
  margin-bottom: 12px;
}

.cashier-shell .qr-actions {
  width: 100%;
  margin-bottom: 0;
}

.cashier-shell .qr-actions .primary {
  min-height: 48px;
  font-size: 16px;
  font-weight: 950;
}

@media (max-width: 640px) {
  .cashier-shell {
    width: 100%;
    margin-top: 24px;
    padding: 14px;
  }

  .cashier-shell .qr-wrap {
    width: 216px;
  }

  .cashier-shell .qr-wrap img {
    width: 156px;
    height: 156px;
  }
}

.modal-open {
  overflow: hidden;
}

.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(18px) saturate(1.18);
  padding: 18px;
}

.poster-modal__panel {
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 34px 90px rgba(15, 23, 42, 0.28);
  padding: 14px;
  animation: riseIn 240ms var(--ease-out) both;
}

.poster-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poster-modal__head div {
  display: grid;
  gap: 4px;
}

.poster-modal__head strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.poster-modal__head span {
  color: #64748b;
  font-size: 13px;
  font-weight: 760;
}

.poster-modal img {
  width: 100%;
  max-height: min(68vh, 620px);
  object-fit: contain;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background: #f8fafc;
}

@media (max-width: 640px) {
  .poster-modal {
    align-items: end;
    padding: 10px;
  }

  .poster-modal__panel {
    width: 100%;
    max-height: calc(100vh - 20px);
  }
}

/* Homepage guide polish. */
.guide-section {
  margin-top: 18px;
  padding-bottom: 54px;
}

.guide-section .section__head {
  margin-bottom: 18px;
}

.guide-section .section__head h2 {
  color: #0f172a;
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 950;
}

.guide-blocks {
  gap: 14px;
}

.guide-block {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  border-color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 22px 58px rgba(30, 41, 59, 0.09);
}

.guide-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 36%),
    linear-gradient(315deg, rgba(22, 119, 255, 0.06), transparent 42%);
  pointer-events: none;
}

.guide-block > * {
  position: relative;
  z-index: 1;
}

.guide-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 28px;
  border: 1px solid rgba(22, 119, 255, 0.16);
  border-radius: 999px;
  background: rgba(238, 245, 255, 0.74);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 950;
}

.guide-block--text {
  align-content: center;
  padding: 22px;
}

.guide-block--text h2 {
  margin-top: 6px;
}

.guide-block--text .guide-step-media {
  margin-top: 14px;
  border: 1px solid rgba(226, 232, 240, 0.84);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.guide-block--image {
  min-height: 220px;
  border-style: solid;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    linear-gradient(135deg, rgba(22, 119, 255, 0.06), rgba(4, 120, 87, 0.04));
}

.guide-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  width: calc(100% - 34px);
  height: calc(100% - 34px);
  min-height: 180px;
  border: 1px dashed rgba(100, 116, 139, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28)),
    rgba(248, 250, 252, 0.52);
  color: #64748b;
  text-align: center;
}

.guide-placeholder b {
  font-size: 18px;
  font-weight: 950;
}

.guide-placeholder small {
  font-size: 13px;
  font-weight: 760;
}

@media (min-width: 760px) {
  .guide-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-block--image {
    min-height: 260px;
  }

  .guide-block--image:nth-child(2n) {
    grid-row: span 2;
  }
}

@media (max-width: 640px) {
  .guide-block {
    min-height: 118px;
  }

  .guide-block--image {
    min-height: 230px;
  }
}

/* Query and delivery receipt polish. */
.query-page {
  padding-top: 24px;
}

.query-panel {
  width: min(540px, 100%);
  gap: 20px;
  padding: clamp(22px, 5vw, 34px);
}

.query-panel__head {
  display: grid;
  gap: 8px;
}

.query-panel__head h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(32px, 8vw, 46px);
  line-height: 1.05;
  font-weight: 950;
}

.query-panel__head > span {
  color: #64748b;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.6;
}

.query-panel .field span {
  color: #334155;
  font-weight: 900;
}

.query-panel input {
  height: 52px;
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 28px rgba(15, 23, 42, 0.05);
  font-size: 17px;
  font-weight: 780;
}

.query-panel input::placeholder {
  color: #94a3b8;
  font-weight: 760;
}

.query-panel input:focus {
  border-color: rgba(22, 119, 255, 0.68);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 4px rgba(22, 119, 255, 0.12),
    0 16px 36px rgba(22, 119, 255, 0.1);
}

.query-panel input.is-invalid {
  border-color: rgba(220, 38, 38, 0.62);
  box-shadow:
    0 0 0 4px rgba(220, 38, 38, 0.1),
    0 14px 34px rgba(220, 38, 38, 0.08);
}

.query-panel .primary {
  min-height: 52px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 950;
}

.query-panel .form-error {
  margin-top: -4px;
  border-color: rgba(254, 202, 202, 0.9);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(254, 242, 242, 0.72)),
    #fef2f2;
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.08);
}

.query-result {
  gap: 14px;
}

.query-card,
.card-result {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 60px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(22px) saturate(1.22);
  padding: 16px;
}

.query-card::before,
.card-result::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.42), transparent 32%);
  pointer-events: none;
}

.query-card > *,
.card-result > * {
  position: relative;
  z-index: 1;
}

.delivery-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.delivery-head span {
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.delivery-head b {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border: 1px solid rgba(4, 120, 87, 0.16);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.86);
  color: #047857;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 950;
}

.delivery-code {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.delivery-bundle {
  display: grid;
  gap: 10px;
}

.delivery-code small,
.delivery-meta small {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.delivery-code code {
  overflow-wrap: anywhere;
  border: 1px solid rgba(22, 119, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: 18px;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 950;
  line-height: 1.45;
}

.delivery-code__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.delivery-code__line code {
  margin: 0;
}

.delivery-code__line .compact-btn {
  min-width: 72px;
  min-height: 100%;
  align-self: stretch;
  font-size: 14px;
  font-weight: 900;
}

.query-card.is-used .delivery-code code,
.delivery-code.is-used code {
  border-color: rgba(100, 116, 139, 0.16);
  background: rgba(241, 245, 249, 0.84);
  color: #64748b;
}

.delivery-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.delivery-meta span {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
  padding: 10px;
}

.delivery-meta b {
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.card-result .copy-btn,
.query-card .copy-btn {
  min-height: 48px;
  font-size: 16px;
  font-weight: 950;
}

.query-empty {
  min-height: 78px;
  display: grid;
  place-items: center;
  border-color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.52);
}

@media (max-width: 640px) {
  .delivery-meta {
    grid-template-columns: 1fr;
  }

  .delivery-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Homepage brand motion hero. */
.hero--brand {
  isolation: isolate;
  display: grid;
  align-items: end;
  justify-items: center;
  min-height: clamp(280px, 40vw, 420px);
  padding-bottom: clamp(18px, 4vw, 34px);
  background:
    radial-gradient(circle at 78% 18%, rgba(22, 119, 255, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(238, 245, 255, 0.48)),
    rgba(255, 255, 255, 0.48);
}

.hero--brand::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), transparent 34%),
    linear-gradient(315deg, rgba(22, 119, 255, 0.08), transparent 42%);
}

.hero--brand .hero__actions {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(100%, 380px);
}

.hero--brand .hero-link {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 34px rgba(22, 119, 255, 0.28),
    0 8px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(0);
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

.hero--brand .hero-link:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 24px 46px rgba(22, 119, 255, 0.34),
    0 12px 22px rgba(15, 23, 42, 0.1);
}

.hero--brand .hero-link:active {
  transform: translateY(-1px);
}

.hero--brand h1 {
  color: #0f172a;
  text-shadow: none;
}

.hero--brand .eyebrow {
  color: rgba(22, 119, 255, 0.78);
}

.brand-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: clamp(96px, 13vw, 150px);
  pointer-events: none;
  animation: brandDrop 900ms var(--ease-out) both;
}

.brand-motion::before {
  content: none;
}

.brand-motion__piece {
  position: relative;
  left: auto;
  top: auto;
  color: rgba(15, 23, 42, 0.1);
  font-size: clamp(86px, 20vw, 260px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.82;
  white-space: nowrap;
  transform: translateX(0);
}

.brand-motion__piece--left {
  clip-path: none;
  -webkit-mask-image: none;
  mask-image: none;
  animation: brandJoinLeft 900ms var(--ease-out) both;
}

.brand-motion__piece--right {
  clip-path: none;
  -webkit-mask-image: none;
  mask-image: none;
  animation: brandJoinRight 900ms var(--ease-out) both;
}

@keyframes brandDrop {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandJoinLeft {
  from {
    opacity: 0.2;
    transform: translateX(-56px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes brandJoinRight {
  from {
    opacity: 0.2;
    transform: translateX(56px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .hero--brand {
    min-height: 260px;
  }

  .brand-motion__piece {
    font-size: clamp(74px, 25vw, 140px);
  }

  .brand-motion::before {
    content: none;
  }
}

/* Clearer purchase flow. */
.guide-section {
  position: relative;
  margin-top: clamp(26px, 5vw, 48px);
  padding: clamp(18px, 4vw, 34px) 0 clamp(54px, 8vw, 86px);
}

.guide-section::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    radial-gradient(circle at 24% 8%, rgba(255, 255, 255, 0.76), transparent 30%),
    radial-gradient(circle at 84% 24%, rgba(22, 119, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(226, 237, 248, 0.32));
  pointer-events: none;
}

.guide-section .section__head {
  margin-bottom: clamp(18px, 4vw, 30px);
}

.guide-section .section__head h2 {
  color: #0f172a;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  font-weight: 950;
}

.guide-blocks {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0;
}

.guide-blocks::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 42px;
  bottom: 42px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(22, 119, 255, 0.24), transparent);
}

.guide-block {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 54px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(22px) saturate(1.18);
}

.guide-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), transparent 34%),
    linear-gradient(315deg, rgba(22, 119, 255, 0.055), transparent 44%);
  pointer-events: none;
}

.guide-block::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 119, 255, 0.82), rgba(22, 119, 255, 0.12));
  opacity: 0.72;
}

.guide-block > * {
  position: relative;
  z-index: 1;
}

.guide-index {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 30px;
  border: 1px solid rgba(22, 119, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 245, 255, 0.52));
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 950;
}

.guide-block--text {
  align-content: start;
  gap: 12px;
  padding: 24px 24px 24px 42px;
}

.guide-block--text h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.12;
  font-weight: 950;
}

.guide-block--text p {
  margin: 0;
  color: #526176;
  font-size: clamp(14px, 1.45vw, 16px);
  line-height: 1.72;
  font-weight: 720;
}

.guide-placeholder {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.26)),
    rgba(248, 250, 252, 0.4);
}

@media (min-width: 820px) {
  .guide-blocks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .guide-blocks::before {
    left: 8%;
    right: 8%;
    top: 39px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 119, 255, 0.24), transparent);
  }

  .guide-block {
    min-height: 238px;
  }

  .guide-block::after {
    left: 22px;
    right: 22px;
    top: auto;
    bottom: 0;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, rgba(22, 119, 255, 0.82), rgba(22, 119, 255, 0.08));
  }

  .guide-block--text {
    padding: 24px;
  }

  .guide-block--text h2 {
    min-height: 68px;
  }
}

@media (max-width: 640px) {
  .guide-section {
    margin-top: 22px;
  }

  .guide-block--text {
    padding: 22px 20px 22px 38px;
  }
}

/* Standalone guide page sync. */
.guide-page main {
  padding-bottom: clamp(34px, 7vw, 72px);
}

.guide-page .guide-page-hero {
  display: grid;
  align-items: end;
  min-height: clamp(220px, 34vw, 360px);
  margin-top: 14px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.82), transparent 36%),
    radial-gradient(circle at 82% 22%, rgba(22, 119, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(238, 245, 255, 0.38)),
    rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 24px 74px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(24px) saturate(1.18);
}

.guide-page .guide-page-hero::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(315deg, rgba(22, 119, 255, 0.08), transparent 42%);
}

.guide-page .guide-page-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  font-weight: 950;
  text-shadow: none;
}

.guide-page .guide-page-hero p {
  max-width: 640px;
  margin: 0;
  color: #526176;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.72;
  font-weight: 720;
}

.guide-page .guide-page-hero .hero-link {
  width: min(100%, 300px);
  margin-top: 24px;
}

.guide-page .guide-section--page {
  margin-top: clamp(18px, 4vw, 32px);
  padding-top: 0;
}

.guide-page .guide-section--page::before {
  top: -28px;
}

@media (max-width: 640px) {
  .guide-page .guide-page-hero {
    min-height: 260px;
    padding: 24px;
  }

  .guide-page .guide-page-hero .hero-link {
    width: 100%;
  }
}

/* Guide page redesign. */
.guide-page {
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(229, 238, 248, 0.92) 48%, rgba(247, 250, 253, 0.96)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.78), rgba(222, 233, 246, 0.46));
}

.guide-page main {
  width: min(1120px, calc(100% - 32px));
  padding-bottom: clamp(42px, 8vw, 86px);
}

.guide-page .guide-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  margin-top: 18px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.3)),
    linear-gradient(180deg, rgba(239, 246, 255, 0.58), rgba(255, 255, 255, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 24px 80px rgba(32, 50, 72, 0.11);
  backdrop-filter: blur(24px) saturate(1.16);
}

.guide-page .guide-page-hero::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.56), transparent 38%),
    linear-gradient(300deg, rgba(22, 119, 255, 0.08), transparent 46%);
}

.guide-hero__copy {
  display: grid;
  align-content: center;
  min-height: clamp(320px, 38vw, 440px);
  padding: clamp(28px, 6vw, 58px);
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin-bottom: 18px;
  border: 1px solid rgba(22, 119, 255, 0.16);
  border-radius: 999px;
  background: rgba(238, 245, 255, 0.54);
  color: #0958d9;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 950;
}

.guide-page .guide-page-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #0f172a;
  font-size: clamp(42px, 7.8vw, 82px);
  line-height: 0.96;
  font-weight: 950;
  text-shadow: none;
}

.guide-page .guide-page-hero p {
  max-width: 620px;
  margin: 0;
  color: #4b5b70;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.76;
  font-weight: 720;
}

.guide-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.guide-page .guide-hero__actions .hero-link {
  width: min(100%, 210px);
  margin: 0;
}

.guide-page .guide-hero__actions .secondary {
  border-color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.42);
  color: #233044;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 34px rgba(15, 23, 42, 0.06);
}

.guide-hero__panel {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 260px;
  border-top: 1px solid rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.18)),
    rgba(248, 250, 252, 0.34);
  padding: 24px;
}

.guide-hero__panel span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: #475569;
  font-size: 15px;
  font-weight: 850;
}

.guide-hero__panel span:last-child {
  border-bottom: 0;
}

.guide-hero__panel b {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.guide-page .guide-section--page {
  margin-top: clamp(26px, 5vw, 46px);
  padding: 0;
}

.guide-page .guide-section--page::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(226, 237, 248, 0.28));
}

.guide-section__head {
  align-items: end;
  margin-bottom: 18px;
}

.guide-section__head h2 {
  font-size: clamp(26px, 4.4vw, 42px);
}

.guide-section__head p {
  max-width: 360px;
  color: #64748b;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.6;
}

.guide-page .guide-blocks {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
}

.guide-page .guide-blocks::before {
  display: none;
}

.guide-page .guide-block {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 58px rgba(15, 23, 42, 0.075);
  backdrop-filter: blur(20px) saturate(1.14);
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.guide-page .guide-block:hover {
  border-color: rgba(22, 119, 255, 0.28);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 24px 70px rgba(15, 23, 42, 0.11);
}

.guide-page .guide-block::after {
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  height: auto;
  background: linear-gradient(180deg, #1677ff, rgba(20, 184, 166, 0.52));
}

.guide-page .guide-block--text {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 16px;
  padding: 22px 20px 22px 24px;
}

.guide-page .guide-index {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(238, 245, 255, 0.58));
  font-size: 14px;
}

.guide-page .guide-block--text h2 {
  min-height: 0;
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.12;
}

.guide-page .guide-block--text p {
  margin: 0;
  color: #5f6f84;
  font-size: 15px;
  line-height: 1.68;
}

.guide-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 20px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(22px) saturate(1.16);
  padding: 18px;
}

.guide-final div {
  display: grid;
  gap: 4px;
}

.guide-final span {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.guide-final strong {
  color: #0f172a;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.12;
  font-weight: 950;
}

.guide-final .primary {
  display: grid;
  place-items: center;
  width: min(100%, 220px);
  min-height: 48px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 42px rgba(22, 119, 255, 0.26);
}

@media (min-width: 820px) {
  .guide-page .guide-page-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  }

  .guide-hero__panel {
    min-height: auto;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.68);
    padding: clamp(24px, 4vw, 38px);
  }

  .guide-page .guide-blocks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .guide-page .guide-block--text {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
    min-height: 248px;
    padding: 22px;
  }

  .guide-page .guide-index {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .guide-page main {
    width: min(100% - 22px, 560px);
  }

  .guide-hero__copy {
    min-height: 300px;
    padding: 24px;
  }

  .guide-hero__actions,
  .guide-page .guide-hero__actions .hero-link,
  .guide-final,
  .guide-final .primary {
    width: 100%;
  }

  .guide-hero__actions,
  .guide-final {
    display: grid;
  }

  .guide-section__head {
    display: grid;
    gap: 8px;
  }
}

/* Trust and guarantee surface. */
.guarantee-line {
  display: inline-flex;
  justify-content: center;
  width: min(100%, 380px);
  margin-top: 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.trust-strip span,
.checkout-trust,
.deal-guarantee {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 38px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px) saturate(1.12);
}

.trust-strip span {
  display: grid;
  place-items: center;
  min-height: 40px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.checkout-trust,
.deal-guarantee {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.checkout-trust strong,
.deal-guarantee strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.checkout-trust span,
.deal-guarantee span,
.field-hint {
  color: #64748b;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.55;
}

.field-hint {
  display: block;
}

.option-trust {
  color: #0958d9 !important;
}

.deal-guarantee {
  margin: 14px 0 16px;
}

.status-guarantee {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-height: 28px;
  margin-bottom: 10px;
  border: 1px solid rgba(22, 119, 255, 0.16);
  border-radius: 999px;
  background: rgba(238, 245, 255, 0.72);
  color: #0958d9;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
}

.trust-page main {
  width: min(1120px, calc(100% - 32px));
}

.trust-hero {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.82), transparent 34%),
    radial-gradient(circle at 86% 24%, rgba(22, 119, 255, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 24px 80px rgba(32, 50, 72, 0.11);
  backdrop-filter: blur(24px) saturate(1.16);
}

.trust-hero__copy {
  display: grid;
  align-content: center;
  min-height: clamp(340px, 42vw, 500px);
  padding: clamp(28px, 6vw, 58px);
}

.trust-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: #0f172a;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
}

.trust-hero p {
  max-width: 640px;
  margin: 0;
  color: #4b5b70;
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.76;
  font-weight: 720;
}

.trust-promise {
  display: grid;
  gap: 4px;
  width: min(100%, 560px);
  margin-top: 28px;
  border: 1px solid rgba(22, 119, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(238, 245, 255, 0.44)),
    rgba(238, 245, 255, 0.44);
  padding: 16px;
}

.trust-promise strong {
  color: #0f172a;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.18;
  font-weight: 950;
}

.trust-promise span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.trust-hero__panel {
  display: grid;
  align-content: center;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.18)),
    rgba(248, 250, 252, 0.34);
  padding: clamp(22px, 4vw, 38px);
}

.trust-hero__panel span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: #475569;
  font-size: 15px;
  font-weight: 850;
}

.trust-hero__panel span:last-child {
  border-bottom: 0;
}

.trust-hero__panel b {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.trust-section {
  margin-top: clamp(26px, 5vw, 46px);
}

.trust-section__head {
  align-items: end;
  margin-bottom: 18px;
}

.trust-section__head h2 {
  font-size: clamp(28px, 4.8vw, 44px);
}

.trust-section__head p {
  max-width: 420px;
  color: #64748b;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.6;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.trust-grid article {
  display: grid;
  gap: 10px;
  min-height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 58px rgba(15, 23, 42, 0.075);
  backdrop-filter: blur(20px) saturate(1.14);
  padding: 20px;
}

.trust-grid article span {
  color: #0958d9;
  font-size: 13px;
  font-weight: 950;
}

.trust-grid article h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.12;
  font-weight: 950;
}

.trust-grid article p {
  margin: 0;
  color: #5f6f84;
  font-size: 15px;
  line-height: 1.68;
  font-weight: 720;
}

.trust-card--accent {
  border-color: rgba(22, 119, 255, 0.22) !important;
  background:
    linear-gradient(145deg, rgba(238, 245, 255, 0.82), rgba(255, 255, 255, 0.34)),
    rgba(238, 245, 255, 0.46) !important;
}

.trust-final {
  margin-top: 20px;
}

@media (min-width: 760px) {
  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .trust-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  }

  .trust-hero__panel {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.68);
  }

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

  .trust-card--accent {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .trust-page main {
    width: min(100% - 22px, 560px);
  }

  .trust-hero__copy {
    min-height: 360px;
    padding: 24px;
  }
}

/* Purchase-page conversion banner. */
.checkout-panel .checkout-trust {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(22, 119, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(238, 245, 255, 0.92), rgba(255, 255, 255, 0.56)),
    rgba(238, 245, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 34px rgba(22, 119, 255, 0.1);
  padding: 12px 14px;
  text-align: center;
}

.checkout-panel .checkout-trust strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 950;
}

.field-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.field-title > span {
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.field-title small {
  color: #64748b;
  font-size: 13px;
  font-weight: 760;
}

.series-list {
  display: grid;
  gap: 10px;
}

.series-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 16px 42px rgba(15, 23, 42, 0.06);
  padding: 14px;
  color: #0f172a;
  text-align: left;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.series-card:hover {
  border-color: rgba(22, 119, 255, 0.3);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 22px 58px rgba(15, 23, 42, 0.1);
}

.series-card.is-selected {
  border-color: rgba(22, 119, 255, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(22, 119, 255, 0.32),
    0 22px 58px rgba(22, 119, 255, 0.12);
}

.series-card:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.series-card__media {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.series-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-card__media b {
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 950;
}

.series-card__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.series-card__copy b {
  overflow: hidden;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-card__copy em {
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-card__copy small {
  color: #526176;
  font-size: 12px;
  font-weight: 850;
}

.series-card > strong {
  color: var(--price);
  font-size: 18px;
  font-weight: 950;
}

.series-card--loading {
  min-height: 96px;
}

.series-empty {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px dashed rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  color: #64748b;
  font-weight: 850;
}

.product-panel {
  display: grid;
  gap: 12px;
}

.checkout-details {
  display: grid;
  gap: 14px;
}

.product-picker.is-detail-mode > .field-title,
.product-picker.is-detail-mode > .series-list {
  display: none;
}

.checkout-panel {
  width: min(600px, 100%);
  min-height: 390px;
  align-content: start;
  gap: 20px;
  padding: 22px;
}

.checkout-panel .quick-form {
  min-height: 206px;
}

.product-picker {
  min-height: 190px;
}

.field-title {
  display: block;
}

.field-title > span,
.checkout-panel .checkout-trust strong,
.series-card__copy b,
.product-panel__head span {
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

.field-title > span {
  font-size: 26px;
  line-height: 1.12;
  font-weight: 880;
}

.checkout-panel .checkout-trust strong {
  font-size: 18px;
  font-weight: 850;
}

.series-list {
  min-height: 130px;
  align-content: start;
  padding-top: 8px;
}

.series-card {
  min-height: 118px;
  padding: 18px;
}

.series-card__media {
  width: 76px;
  height: 76px;
}

.series-card__copy b {
  font-size: 25px;
  line-height: 1.12;
  font-weight: 880;
}

.series-card__copy em {
  font-size: 16px;
}

.series-card__copy small {
  font-size: 15px;
}

.series-card > strong {
  font-size: 22px;
}

.series-empty {
  min-height: 170px;
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 22px;
  font-weight: 780;
  color: #334155;
}

.product-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}

.product-panel__head div {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: right;
}

.product-panel__head span {
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-panel__head small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .series-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .series-card > strong {
    grid-column: 2;
    justify-self: start;
    font-size: 20px;
  }

  .series-card__media {
    width: 58px;
    height: 58px;
  }

  .product-panel__head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-panel__head div {
    text-align: left;
  }
}

/* Final checkout layout: separate sections instead of one narrow container. */
.checkout-panel {
  width: min(760px, 100%);
  min-height: 0;
  align-content: start;
  gap: 18px;
  margin: 28px auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.checkout-panel .quick-form {
  display: grid;
  gap: 18px;
  min-height: 0;
}

.checkout-panel > .flow-steps {
  padding: 0;
}

.checkout-panel > .checkout-trust,
.checkout-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 52px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(22px) saturate(1.24);
}

.checkout-card {
  margin: 0;
  padding: 28px;
}

.product-picker {
  min-height: 246px;
}

.series-list {
  min-height: 150px;
}

.series-card {
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
}

.series-card__copy {
  gap: 2px;
}

.series-card__copy b {
  font-size: 22px;
}

.series-card__copy em {
  display: none;
}

.series-card__copy small {
  color: #64748b;
  font-size: 13px;
}

.series-card > strong {
  grid-column: 2;
  justify-self: start;
  font-size: 21px;
  line-height: 1.05;
  white-space: nowrap;
}

@media (min-width: 700px) {
  .series-card {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .series-card > strong {
    grid-column: 3;
    justify-self: end;
  }
}

.checkout-details {
  gap: 16px;
}

.checkout-panel .checkout-trust strong,
.field-title > span,
.series-card__copy b,
.product-panel__head span {
  color: rgba(48, 84, 132, 0.82);
}

.checkout-panel .checkout-trust strong {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

.field-title > span,
.series-card__copy b {
  color: rgba(15, 23, 42, 0.78);
}

.field-title > span {
  font-size: 23px;
  font-weight: 820;
}

.series-card__copy b {
  font-size: 20px;
  font-weight: 820;
}

@media (max-width: 640px) {
  .checkout-panel {
    width: min(100% - 22px, 560px);
    margin-top: 18px;
  }

  .checkout-card {
    padding: 18px;
  }

  .series-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .series-card > strong {
    grid-column: 2;
    justify-self: start;
    font-size: 18px;
  }
}

/* Homepage guide replacement. */
.guide-experience {
  display: grid;
  gap: 18px;
}

.guide-promise,
.guide-products,
.guide-mission {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 54px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(22px) saturate(1.18);
}

.guide-promise {
  min-height: 66px;
}

.guide-promise__track {
  display: flex;
  width: max-content;
  animation: guidePromiseSlide 12s linear infinite;
}

.guide-promise__track span {
  display: grid;
  place-items: center;
  min-width: min(760px, calc(100vw - 28px));
  min-height: 66px;
  padding: 0 22px;
  color: rgba(48, 84, 132, 0.82);
  font-size: clamp(16px, 3.6vw, 21px);
  line-height: 1.35;
  font-weight: 850;
  text-align: center;
}

.guide-products {
  padding: 18px;
}

.guide-product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 320px);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.guide-product-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 108px;
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(248, 250, 252, 0.54)),
    rgba(255, 255, 255, 0.58);
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.guide-product-card__media {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(238, 245, 255, 0.7);
}

.guide-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-product-card__media b {
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 900;
}

.guide-product-card__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.guide-product-card__copy b {
  overflow: hidden;
  color: rgba(15, 23, 42, 0.78);
  font-size: 19px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-product-card__copy small {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.guide-product-card strong {
  grid-column: 2;
  color: var(--price);
  font-size: 17px;
  font-weight: 920;
  white-space: nowrap;
}

.guide-product-card--loading span,
.guide-product-card--loading div {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.45), rgba(255, 255, 255, 0.72), rgba(226, 232, 240, 0.45));
  animation: shimmer 1.2s linear infinite;
}

.guide-product-empty {
  display: grid;
  place-items: center;
  min-height: 108px;
  color: #64748b;
  font-weight: 850;
}

.guide-mission {
  margin: 0;
  padding: 18px 20px;
  color: rgba(15, 23, 42, 0.72);
  font-size: clamp(17px, 3.6vw, 22px);
  line-height: 1.5;
  font-weight: 820;
  text-align: center;
}

@keyframes guidePromiseSlide {
  0%, 26% {
    transform: translateX(0);
  }

  34%, 60% {
    transform: translateX(-33.333%);
  }

  68%, 94% {
    transform: translateX(-66.666%);
  }

  100% {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .guide-products {
    padding: 12px;
  }

  .guide-product-rail {
    grid-auto-columns: minmax(230px, 82vw);
  }
}

/* Softer homepage guide section. */
.guide-experience {
  gap: 20px;
}

.guide-promise,
.guide-mission {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.guide-promise {
  margin: 0;
  padding: 0 10px;
  color: rgba(48, 84, 132, 0.82);
  font-size: clamp(17px, 4vw, 22px);
  line-height: 1.45;
  font-weight: 850;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

.guide-promise__track {
  animation: none;
}

.guide-products {
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 2px 0;
}

.guide-product-rail {
  display: block;
  overflow: hidden;
  padding: 0;
  scrollbar-width: none;
}

.guide-product-rail::-webkit-scrollbar {
  display: none;
}

.guide-product-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: guideProductMarquee 30s linear infinite;
  will-change: transform;
}

.guide-product-track.is-static {
  justify-content: center;
  width: 100%;
  animation: none;
}

.guide-products:hover .guide-product-track {
  animation-play-state: paused;
}

.guide-product-card {
  flex: 0 0 238px;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  min-height: 82px;
  border-color: rgba(255, 255, 255, 0.68);
  padding: 10px 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 28px rgba(48, 84, 132, 0.08);
}

.guide-product-card__media {
  width: 54px;
  height: 54px;
}

.guide-product-card__copy b {
  font-size: 17px;
}

.guide-product-card__copy small {
  font-size: 12px;
}

.guide-product-card strong {
  font-size: 15px;
}

.guide-mission {
  margin: 0;
  padding: 0 14px 10px;
  color: rgba(48, 84, 132, 0.74);
  font-size: clamp(16px, 3.8vw, 21px);
  line-height: 1.55;
  font-weight: 760;
  text-align: center;
}

@keyframes guideProductMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

/* Rebuilt guide interaction: soft sparkle recognition. */
.guide-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 4px 10px;
}

.guide-support__text {
  max-width: 260px;
  margin: 0;
  color: rgba(48, 84, 132, 0.74);
  font-size: clamp(14px, 3.4vw, 17px);
  line-height: 1.55;
  font-weight: 760;
  text-align: right;
}

.guide-support__action {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
}

.guide-support__button {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -10px 24px rgba(22, 119, 255, 0.05),
    0 12px 28px rgba(48, 84, 132, 0.1);
  cursor: pointer;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.guide-support__button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -10px 24px rgba(22, 119, 255, 0.08),
    0 18px 42px rgba(48, 84, 132, 0.16);
}

.guide-support__button:disabled {
  cursor: default;
}

.guide-support__orb {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 24%, #ffffff 0 16%, rgba(159, 211, 255, 0.92) 40%, rgba(5, 150, 105, 0.7) 100%);
  box-shadow:
    0 0 0 7px rgba(22, 119, 255, 0.045),
    0 8px 18px rgba(5, 150, 105, 0.14);
}

.guide-support__spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.62);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}

.guide-support__spark--two,
.guide-support__spark--five {
  background: rgba(22, 119, 255, 0.48);
}

.guide-support__spark--three,
.guide-support__spark--six {
  width: 3px;
  height: 3px;
  background: rgba(148, 163, 184, 0.68);
}

.guide-support__spark--one {
  --x: -23px;
  --y: -15px;
}

.guide-support__spark--two {
  --x: 2px;
  --y: -27px;
}

.guide-support__spark--three {
  --x: 25px;
  --y: -12px;
}

.guide-support__spark--four {
  --x: 24px;
  --y: 16px;
}

.guide-support__spark--five {
  --x: -3px;
  --y: 27px;
}

.guide-support__spark--six {
  --x: -25px;
  --y: 12px;
}

.guide-support__wave {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 999px;
  opacity: 0;
}

.guide-support__button.is-tapped {
  animation: guideSupportTap 560ms var(--ease-out) both;
}

.guide-support__button.is-tapped .guide-support__wave {
  animation: guideSupportWave 680ms var(--ease-out) both;
}

.guide-support__button.is-tapped .guide-support__spark {
  animation: guideSupportSpark 720ms var(--ease-out) both;
}

.guide-support__bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 4;
  transform: translateX(-50%);
  width: max-content;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(238, 245, 255, 0.28)),
    rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 12px 28px rgba(48, 84, 132, 0.1);
  backdrop-filter: blur(16px) saturate(1.18);
  padding: 8px 11px;
  color: rgba(48, 84, 132, 0.78);
  font-size: 12px;
  font-weight: 850;
  pointer-events: none;
  animation: guideSupportBubble 1150ms var(--ease-out) both;
}

.guide-support__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
}

.guide-support__count {
  position: relative;
  display: grid;
  gap: 2px;
}

.guide-support__count strong {
  color: rgba(15, 23, 42, 0.68);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.guide-support__count strong.is-bumped {
  animation: guideCountBump 620ms var(--ease-out) both;
}

.guide-support__count span {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.guide-support__delta {
  position: absolute;
  left: calc(100% + 6px);
  top: -6px;
  color: var(--price);
  font-size: 13px;
  font-weight: 950;
  pointer-events: none;
  animation: guideCountDelta 820ms var(--ease-out) both;
}

@keyframes guideSupportTap {
  0% {
    transform: scale(1);
  }

  42% {
    transform: scale(0.92);
  }

  74% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes guideSupportWave {
  0% {
    opacity: 0.72;
    transform: scale(0.72);
  }

  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

@keyframes guideSupportSpark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }

  36% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.15);
  }
}

@keyframes guideCountBump {
  0% {
    color: rgba(15, 23, 42, 0.68);
    transform: translateY(0) scale(1);
  }

  42% {
    color: var(--price);
    transform: translateY(-4px) scale(1.12);
  }

  100% {
    color: rgba(15, 23, 42, 0.68);
    transform: translateY(0) scale(1);
  }
}

@keyframes guideSupportBubble {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.96);
  }

  18%, 66% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -24px) scale(0.98);
  }
}

@keyframes guideCountDelta {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.86);
  }

  24% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-16px) scale(1.08);
  }
}

@media (max-width: 640px) {
  .guide-support {
    flex-direction: column;
    gap: 10px;
  }

  .guide-support__text {
    max-width: 280px;
    text-align: center;
  }
}

/* Component-library inspired guide block: masked marquee + compact proof action. */
.guide-section {
  margin-top: clamp(20px, 4vw, 42px);
  padding-top: clamp(8px, 2vw, 16px);
}

.guide-section .section__head {
  display: none;
}

.guide-blocks {
  display: block;
}

.guide-blocks::before {
  content: none;
}

.guide-experience {
  width: min(760px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.guide-promise {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px;
  color: rgba(48, 84, 132, 0.72);
  font-size: clamp(16px, 3.6vw, 20px);
  line-height: 1.45;
  font-weight: 820;
}

.guide-products {
  position: relative;
  margin: 2px auto 0;
  padding: 10px 0;
}

.guide-products::before,
.guide-products::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 74px;
  pointer-events: none;
}

.guide-products::before {
  left: 0;
  background: linear-gradient(90deg, rgba(226, 237, 248, 0.95), rgba(226, 237, 248, 0));
}

.guide-products::after {
  right: 0;
  background: linear-gradient(270deg, rgba(226, 237, 248, 0.95), rgba(226, 237, 248, 0));
}

.guide-product-rail {
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.guide-product-track {
  gap: 14px;
  animation-duration: 34s;
}

.guide-product-track.is-static {
  justify-content: center;
}

.guide-product-card {
  flex-basis: 268px;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 78px;
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 10px 26px rgba(48, 84, 132, 0.07);
}

.guide-product-card__media {
  width: 52px;
  height: 52px;
}

.guide-product-card__copy b {
  color: rgba(15, 23, 42, 0.68);
  font-size: 16px;
  font-weight: 820;
}

.guide-product-card strong {
  font-size: 14px;
  font-weight: 900;
}

.guide-support {
  width: min(560px, 100%);
  margin: 2px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 12px 32px rgba(48, 84, 132, 0.07);
  backdrop-filter: blur(18px) saturate(1.14);
  padding: 10px 14px 10px 18px;
}

.guide-support__text {
  max-width: none;
  color: rgba(48, 84, 132, 0.7);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.guide-support__button {
  width: 46px;
  height: 46px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.98), rgba(226, 237, 248, 0.62) 46%, rgba(255, 255, 255, 0.32)),
    rgba(255, 255, 255, 0.34);
}

.guide-support__count strong {
  font-size: 22px;
}

.guide-mission {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 16px;
  color: rgba(48, 84, 132, 0.62);
  font-size: clamp(15px, 3.4vw, 19px);
  font-weight: 760;
}

@media (max-width: 640px) {
  .guide-experience {
    gap: 16px;
  }

  .guide-products::before,
  .guide-products::after {
    width: 44px;
  }

  .guide-product-card {
    flex-basis: 236px;
  }

  .guide-support {
    width: min(100%, 360px);
    grid-template-columns: 1fr;
    border-radius: 18px;
    padding: 14px;
  }

  .guide-support__text {
    text-align: center;
  }
}

/* Final home guide texture: one cohesive glass surface matching the hero. */
.guide-section {
  width: min(100%, 760px);
  margin: clamp(18px, 4vw, 32px) auto 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.78), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(22, 119, 255, 0.055), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(238, 245, 255, 0.18)),
    rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 18px 54px rgba(31, 41, 55, 0.07);
  backdrop-filter: blur(20px) saturate(1.16);
  padding: clamp(20px, 4vw, 28px);
}

.guide-section::before {
  content: none;
}

.guide-experience {
  width: 100%;
  gap: 18px;
}

.guide-promise {
  max-width: 560px;
  color: rgba(48, 84, 132, 0.68);
  font-size: clamp(16px, 3.2vw, 20px);
  font-weight: 820;
}

.guide-products {
  margin: 0;
  padding: 0;
}

.guide-products::before,
.guide-products::after {
  width: 54px;
}

.guide-product-rail {
  padding: 2px 0;
}

.guide-product-track.is-static {
  justify-content: center;
}

.guide-product-track.is-static .guide-product-card {
  flex-basis: min(100%, 390px);
}

.guide-product-card {
  min-height: 74px;
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 10px 24px rgba(48, 84, 132, 0.055);
}

.guide-product-card__media {
  opacity: 0.92;
}

.guide-support {
  width: min(100%, 520px);
  border-color: rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 8px 22px rgba(48, 84, 132, 0.045);
}

.guide-mission {
  max-width: 560px;
  color: rgba(48, 84, 132, 0.58);
  font-size: clamp(15px, 3.2vw, 18px);
}

@media (max-width: 640px) {
  .guide-section {
    width: min(100% - 16px, 560px);
    padding: 18px 12px;
  }

  .guide-products::before,
  .guide-products::after {
    width: 30px;
  }

  .guide-support {
    border-radius: 8px;
  }
}

/* Final guide pass: integrated proof strip instead of stacked cards. */
.guide-section {
  position: relative;
  isolation: isolate;
  width: min(100%, 980px);
  margin: clamp(12px, 3vw, 26px) auto 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: clamp(12px, 3vw, 22px) 0 clamp(48px, 7vw, 78px);
}

.guide-section::before {
  content: "";
  position: absolute;
  inset: -20px max(-24px, -3vw) auto;
  z-index: -1;
  height: 76%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18) 42%, transparent 72%),
    linear-gradient(90deg, transparent, rgba(22, 119, 255, 0.055) 36%, rgba(5, 150, 105, 0.045) 64%, transparent);
  filter: blur(10px);
  pointer-events: none;
}

.guide-blocks {
  position: relative;
  z-index: 1;
}

.guide-experience {
  width: 100%;
  gap: clamp(18px, 3vw, 26px);
}

.guide-promise {
  max-width: 720px;
  padding: 0 18px;
  color: rgba(43, 78, 124, 0.76);
  font-size: clamp(16px, 2.8vw, 21px);
  line-height: 1.42;
  font-weight: 820;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.guide-products {
  position: relative;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 8px 0 10px;
}

.guide-products::before,
.guide-products::after {
  width: clamp(42px, 9vw, 110px);
}

.guide-products::before {
  background: linear-gradient(90deg, rgba(232, 240, 249, 0.98), rgba(232, 240, 249, 0));
}

.guide-products::after {
  background: linear-gradient(270deg, rgba(232, 240, 249, 0.98), rgba(232, 240, 249, 0));
}

.guide-product-rail {
  padding: 4px 0 8px;
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}

.guide-product-track {
  gap: 12px;
  animation-duration: 42s;
}

.guide-product-track.is-static {
  animation: guideProductMarquee 42s linear infinite;
}

.guide-product-card {
  flex: 0 0 222px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 8px 22px rgba(48, 84, 132, 0.055);
  padding: 9px 10px;
}

.guide-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 14px 32px rgba(48, 84, 132, 0.09);
}

.guide-product-card__media {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.82), rgba(226, 237, 248, 0.38)),
    rgba(255, 255, 255, 0.2);
}

.guide-product-card__copy b {
  color: rgba(17, 24, 39, 0.64);
  font-size: 14px;
  font-weight: 780;
}

.guide-product-card__copy small {
  color: rgba(48, 84, 132, 0.56);
  font-size: 11px;
  font-weight: 760;
}

.guide-product-card strong {
  color: rgba(5, 150, 105, 0.78);
  font-size: 13px;
  font-weight: 860;
}

.guide-support {
  width: min(100% - 28px, 560px);
  margin: -2px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.guide-support__text {
  max-width: 260px;
  color: rgba(48, 84, 132, 0.66);
  font-size: clamp(13px, 2.8vw, 15px);
  line-height: 1.42;
  font-weight: 740;
  text-align: right;
}

.guide-support__action {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 28px rgba(48, 84, 132, 0.045);
  padding: 6px 12px 6px 7px;
}

.guide-support__button {
  width: 46px;
  height: 46px;
  border-color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.96) 0 15%, rgba(170, 220, 255, 0.72) 42%, rgba(92, 205, 164, 0.52) 100%),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 20px rgba(5, 150, 105, 0.08),
    0 12px 24px rgba(48, 84, 132, 0.12);
}

.guide-support__button:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -10px 22px rgba(5, 150, 105, 0.1),
    0 18px 34px rgba(48, 84, 132, 0.16);
}

.guide-support__orb {
  width: 15px;
  height: 15px;
  background:
    radial-gradient(circle at 32% 24%, #ffffff 0 17%, rgba(108, 190, 255, 0.92) 44%, rgba(5, 150, 105, 0.66) 100%);
  box-shadow:
    0 0 0 7px rgba(22, 119, 255, 0.045),
    0 7px 16px rgba(5, 150, 105, 0.15);
}

.guide-support__bubble {
  bottom: calc(100% + 12px);
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(238, 245, 255, 0.34)),
    rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 32px rgba(48, 84, 132, 0.12);
  padding: 8px 12px;
  color: rgba(43, 78, 124, 0.8);
  font-size: 12px;
  letter-spacing: 0;
  animation-duration: 1250ms;
}

.guide-support__bubble::after {
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.guide-support__count {
  min-width: 68px;
}

.guide-support__count strong {
  color: rgba(17, 24, 39, 0.64);
  font-size: 24px;
  font-weight: 880;
}

.guide-support__count span {
  color: rgba(48, 84, 132, 0.55);
  font-size: 12px;
  font-weight: 760;
}

.guide-support__delta {
  left: auto;
  right: -6px;
  top: -10px;
  color: rgba(5, 150, 105, 0.86);
  font-size: 14px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.guide-mission {
  max-width: 640px;
  padding: 0 18px;
  color: rgba(48, 84, 132, 0.56);
  font-size: clamp(15px, 2.9vw, 18px);
  line-height: 1.55;
  font-weight: 720;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

@media (max-width: 640px) {
  .guide-section {
    width: 100%;
    margin-top: 12px;
    padding: 12px 0 56px;
  }

  .guide-section::before {
    inset-inline: -18px;
    height: 82%;
  }

  .guide-experience {
    gap: 18px;
  }

  .guide-products {
    width: calc(100% + 24px);
    margin-left: -12px;
  }

  .guide-product-card {
    flex-basis: 210px;
  }

  .guide-support {
    width: min(100% - 24px, 360px);
    flex-direction: column;
    gap: 8px;
  }

  .guide-support__text {
    max-width: 300px;
    text-align: center;
  }
}

/* Remove the framed guide container: content now sits directly on the page texture. */
.guide-section {
  width: min(100%, 980px);
  margin-top: clamp(10px, 2.6vw, 22px);
  padding: clamp(10px, 2.6vw, 18px) 0 clamp(50px, 7vw, 78px);
  overflow: visible;
}

.guide-section::before {
  content: none;
}

.guide-blocks {
  padding: 0;
}

.guide-experience {
  gap: clamp(20px, 3.2vw, 28px);
}

.guide-promise {
  color: rgba(83, 147, 216, 0.78);
  font-size: clamp(17px, 3vw, 22px);
  font-weight: 840;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 24px rgba(83, 147, 216, 0.18);
  will-change: transform;
  animation: guideTextFloat 4.8s var(--ease-out) infinite;
}

.guide-promise::after {
  content: "";
  display: block;
  width: min(220px, 48%);
  height: 1px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, rgba(117, 177, 230, 0.48), transparent);
  opacity: 0.58;
  animation: guideTextGlow 4.8s var(--ease-out) infinite;
}

.guide-products {
  width: min(100vw, 960px);
  padding: 2px 0 4px;
}

.guide-products::before,
.guide-products::after {
  z-index: 3;
}

.guide-products::before {
  background: linear-gradient(90deg, rgba(232, 240, 249, 0.96), rgba(232, 240, 249, 0));
}

.guide-products::after {
  background: linear-gradient(270deg, rgba(232, 240, 249, 0.96), rgba(232, 240, 249, 0));
}

.guide-product-rail {
  position: relative;
}

.guide-product-rail::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 8px;
  bottom: 8px;
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 24% 50%, rgba(95, 171, 238, 0.18), transparent 46%),
    radial-gradient(ellipse at 76% 50%, rgba(138, 196, 246, 0.14), transparent 48%);
  opacity: 0.82;
  pointer-events: none;
}

.guide-product-track {
  position: relative;
  z-index: 1;
  gap: 18px;
  animation-duration: 48s;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.guide-product-group {
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
}

.guide-product-card {
  flex-basis: 230px;
  min-height: 58px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.guide-product-card:hover {
  background: transparent;
  box-shadow: none;
}

.guide-product-card__media {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 10px 24px rgba(48, 84, 132, 0.07);
}

.guide-product-card__copy b {
  color: rgba(17, 24, 39, 0.58);
}

.guide-product-card__copy small {
  color: rgba(51, 84, 128, 0.52);
}

.guide-product-card strong {
  color: #000000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Stable mobile marquee containment. */
.guide-product-track {
  display: flex;
  width: max-content;
}

.guide-product-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  width: 230px;
  max-width: 230px;
  flex: 0 0 230px;
  overflow: hidden;
}

.guide-product-card__media {
  grid-row: 1 / 3;
  grid-column: 1;
}

.guide-product-card__copy,
.guide-product-card__copy b,
.guide-product-card__copy small,
.guide-product-card strong {
  min-width: 0;
  max-width: 100%;
}

.guide-product-card strong {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-product-card__copy b,
.guide-product-card__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .guide-product-card {
    grid-template-columns: 48px minmax(0, 1fr);
    width: 214px;
    max-width: 214px;
    flex-basis: 214px;
  }

  .guide-product-card strong {
    font-size: 15px;
  }
}

.guide-support {
  width: min(100% - 28px, 560px);
  margin-top: 0;
  gap: 16px;
}

.guide-support__action {
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.guide-support__text {
  max-width: 230px;
  color: rgba(137, 104, 142, 0.62);
  font-size: clamp(12px, 2.6vw, 14px);
  font-weight: 680;
  letter-spacing: 0;
}

.guide-support__button {
  border-color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.98) 0 15%, rgba(170, 220, 255, 0.72) 42%, rgba(92, 205, 164, 0.54) 100%),
    rgba(255, 255, 255, 0.28);
  backdrop-filter: none;
}

.guide-support__count strong {
  color: rgba(17, 24, 39, 0.6);
}

.guide-support__count span {
  color: rgba(51, 84, 128, 0.52);
}

.guide-mission {
  color: rgba(51, 84, 128, 0.56);
}

@media (max-width: 640px) {
  .guide-section {
    width: 100%;
    padding-top: 8px;
  }

  .guide-products {
    width: calc(100% + 24px);
  }

  .guide-product-card {
    flex-basis: 214px;
  }
}

@keyframes guideTextFloat {
  0%, 100% {
    transform: translateY(0);
  }

  48% {
    transform: translateY(-3px);
  }
}

@keyframes guideTextGlow {
  0%, 100% {
    opacity: 0.36;
    transform: scaleX(0.86);
  }

  48% {
    opacity: 0.72;
    transform: scaleX(1);
  }
}

/* Uiverse checkbox by catraco, adapted as the recognition interaction. */
.heart-container {
  --heart-color: rgb(255, 91, 137);
  position: relative;
  width: 50px;
  height: 50px;
  transition: .3s;
}

.heart-container .checkbox {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 20;
  cursor: pointer;
}

.heart-container .svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.heart-container .svg-outline,
.heart-container .svg-filled {
  fill: var(--heart-color);
  position: absolute;
}

.heart-container .svg-outline,
.heart-container .svg-filled {
  width: 100%;
  height: 100%;
}

.heart-container .svg-filled {
  animation: keyframes-svg-filled 1s;
  display: none;
}

.heart-container .svg-celebrate {
  position: absolute;
  animation: keyframes-svg-celebrate .5s;
  animation-fill-mode: forwards;
  display: none;
  stroke: var(--heart-color);
  fill: var(--heart-color);
  stroke-width: 2px;
}

.heart-container .checkbox:checked~.svg-container .svg-filled {
  display: block
}

.heart-container .checkbox:checked~.svg-container .svg-celebrate {
  display: block
}

.heart-container.guide-support__button {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  cursor: pointer;
}

.heart-container.guide-support__button:hover {
  transform: scale(1.08);
  box-shadow: none;
}

.heart-container.guide-support__button[aria-disabled="true"] {
  cursor: default;
}

@keyframes keyframes-svg-filled {
  0% {
    transform: scale(0);
  }

  25% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(1);
    filter: brightness(1.5);
  }
}

@keyframes keyframes-svg-celebrate {
  0% {
    transform: scale(0);
  }

  50% {
    opacity: 1;
    filter: brightness(1.5);
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
    display: none;
  }
}

/* Uiverse clock by david-mohseni, used beside the payment countdown. */
.face {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  outline: 10px solid #333;
  background: repeating-radial-gradient(circle at 50% 50%, 
  rgba(200,200,200,.2) 0%, rgba(200,200,200,.2) 2%, 
  transparent 2%, transparent 3%, rgba(200,200,200,.2) 3%, 
  transparent 3%), conic-gradient(white 0%, silver 10%, 
  white 35%, silver 45%, white 60%, silver 70%, 
  white 80%, silver 95%, white 100%);
  box-shadow: inset 0 0 20px #0007;
}

.hour {
  position: absolute;
  width: 5px;
  height: 60px;
  background: #aaa;
  left: 87.5px;
  top: 43px;
  border-radius: 3px 3px 1px 1px;
  transform-origin: 2px 47px;
  box-shadow: 0 0 5px #0005,inset 1.5px 3px 0px #333, inset -1.5px -3px 0px #333;
  z-index: 1;
  animation: watch 43200s linear infinite;
}

.minute {
  position: absolute;
  width: 4px;
  height: 78px;
  background: #aaa;
  left: 88px;
  top: 25px;
  border-radius: 3px 3px 1px 1px;
  transform-origin: 2px 65px;
  box-shadow: 0 0 5px #0005, inset 1.5px 3px 0px #333, inset -1.5px -3px 0px #333;
  z-index: 2;
  animation: watch 3600s linear infinite;
}

.second {
  position: absolute;
  width: 10px;
  height: 10px;
  background: red;
  left: 85px;
  top: 85px;
  border-radius: 50%;
  border: 1px solid #eee;
  z-index: 3;
  animation: watch 60s steps(60, end) 0s infinite;
}

.second::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 85px;
  left: 3px;
  bottom: -10px;
  background: red;
  border-radius: 2px;
  box-shadow: 5px 0 2px rgba(128, 128, 128, 0.2);
}

.second::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  left: 2px;
  top: 2px;
  background: #555;
  border-radius: 50%;
}

.v-index {
  position: absolute;
  color: #333;
  font-size: 24px;
  left: 83.5px;
  top: -3px;
  text-shadow: 0 157px 0 #333;
  z-index: 1
}

.h-index {
  position: absolute;
  color: #333;
  font-size: 24px;
  top: 72px;
  left: 5px;
  transform: rotate(-90deg);
  text-shadow: 0 158px 0 #333;
  z-index: 1;
}

.expiry-clock .v-index,
.expiry-clock .h-index {
  margin: 0;
}

@keyframes watch {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Uiverse button by alexmaracinaru, used for purchase/order CTAs. */
.cta {
  border: none;
  background: none;
  cursor: pointer;
}

.cta span {
  padding-bottom: 7px;
  letter-spacing: 4px;
  font-size: 14px;
  padding-right: 15px;
  text-transform: uppercase;
}

.cta svg {
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.cta:hover svg {
  transform: translateX(0);
}

.cta:active svg {
  transform: scale(0.9);
}

.hover-underline-animation {
  position: relative;
  color: black;
  padding-bottom: 20px;
}

.hover-underline-animation:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000000;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.cta:hover .hover-underline-animation:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.buy-cta,
.hero--brand .hero-link.buy-cta,
.cashier-shell .qr-actions .buy-cta,
.qr-actions .buy-cta,
.quick-form .buy-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  border: none;
  border-radius: 0;
  background: none;
  color: #000;
  box-shadow: none;
  padding: 0;
  transform: none;
}

.buy-cta:hover,
.hero--brand .hero-link.buy-cta:hover,
.cashier-shell .qr-actions .buy-cta:hover,
.qr-actions .buy-cta:hover,
.quick-form .buy-cta:hover {
  background: none;
  box-shadow: none;
  color: #000;
  transform: none;
}

.buy-cta:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.buy-cta:disabled svg {
  transform: translateX(-8px);
}

.buy-cta:disabled .hover-underline-animation:after {
  transform: scaleX(0);
}

.hero--brand .hero__actions,
.checkout-details .buy-cta,
.qr-actions .buy-cta {
  justify-self: center;
}

@media (max-width: 640px) {
  .quick-form .buy-cta,
  .hero-link.buy-cta,
  .qr-actions .buy-cta {
    width: fit-content;
  }
}

/* Uiverse card by SteveBloX, applied to checkout series cards. */
.series-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  min-height: 254px;
}

.series-card {
  box-sizing: border-box;
  width: 190px;
  height: 254px;
  min-height: 254px;
  background: rgba(217, 217, 217, 0.58);
  border: 1px solid white;
  box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  border-radius: 17px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  font-weight: bolder;
  color: black;
  padding: 18px;
  gap: 12px;
}

.series-card:hover {
  border: 1px solid black;
  transform: scale(1.05);
}

.series-card:active {
  transform: scale(0.95) rotateZ(1.7deg);
}

.series-card.is-selected {
  border: 1px solid black;
  box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
}

.series-card:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.series-card__media {
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: none;
}

.series-card__copy {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  width: 100%;
}

.series-card__copy b {
  width: 100%;
  color: black;
  font-size: 18px;
  font-weight: bolder;
  text-align: center;
}

.series-card__copy small {
  color: rgba(15, 23, 42, 0.62);
  font-size: 13px;
  font-weight: bolder;
}

.series-card > strong {
  grid-column: auto;
  justify-self: center;
  color: #000000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.series-card--loading span,
.series-card--loading div {
  border-radius: 10px;
}

@media (max-width: 640px) {
  .series-list {
    min-height: 236px;
  }

  .series-card {
    width: min(100%, 190px);
    height: 236px;
    min-height: 236px;
  }
}

/* Uiverse pricing card by emmanuelh-dev, applied to checkout package options. */
.option-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.option-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-height: 260px;
  border: 0;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  padding: 32px 24px 24px;
  color: #000000;
  text-align: left;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.option-item:hover {
  transform: translateY(-2px);
  border: 0;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.option-item:active {
  transform: translateY(0);
}

.option-item.is-selected {
  border: 0;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.option-item.is-selected::after {
  content: none;
}

.option-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.option-copy b {
  overflow: visible;
  color: #4b5563;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.05em;
  text-overflow: clip;
  white-space: normal;
}

.option-copy em {
  display: block;
  overflow: visible;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
  font-style: normal;
  font-weight: 500;
  -webkit-line-clamp: unset;
}

.option-copy small {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
}

.option-item > strong {
  display: block;
  margin-top: 24px;
  color: #000000;
  font-size: clamp(36px, 8vw, 48px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.option-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 28px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background: #000000;
  color: #ffffff;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.option-item:hover .option-action {
  background: transparent;
  border-color: #000000;
  color: #000000;
}

.option-item.is-selected .option-action {
  background: transparent;
  color: #000000;
}

.option-item:disabled .option-action {
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.42);
}

.product-panel__head > div {
  display: none;
}

.checkout-details {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  gap: 18px;
}

.checkout-details .price-strip {
  min-height: auto;
  border: 0;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  padding: 24px;
}

.checkout-details .price-strip span,
.checkout-details .field > span {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.checkout-details .price-strip strong {
  color: #000000;
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.selected-product-info {
  display: grid;
  gap: 12px;
  border-radius: 1.5rem;
  background: #ffffff;
  padding: 18px;
}

.selected-product-info > span {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

.selected-product-info > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.selected-product-info article {
  display: grid;
  gap: 10px;
  min-width: 0;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 16px;
}

.selected-product-info article > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.selected-product-info strong {
  min-width: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 500;
}

.selected-product-info small {
  flex: 0 0 auto;
  color: #000000;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 500;
}

.selected-product-info p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.checkout-details .field {
  gap: 12px;
  margin: 0;
  color: #4b5563;
  font-weight: 500;
}

.checkout-details .contact-type {
  gap: 10px;
}

.checkout-details .contact-type button {
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1rem;
  background: #ffffff;
  color: #6b7280;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
  box-shadow: none;
}

.checkout-details .contact-type button:hover {
  transform: none;
  border-color: rgba(0, 0, 0, 0.32);
}

.checkout-details .contact-type button.is-selected {
  border-color: #000000;
  background: #ffffff;
  box-shadow: none;
  color: #000000;
}

.checkout-details .field input {
  height: 54px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 1rem;
  background: #ffffff;
  color: #000000;
  padding: 0 16px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.checkout-details .field input::placeholder {
  color: rgba(75, 85, 99, 0.62);
}

.checkout-details .field input:focus {
  border-color: #000000;
  box-shadow: none;
}

/* Payment page: status above QR, synchronized with pricing-card typography. */
.pay-box {
  grid-template-columns: 1fr;
}

.pay-box__main {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cashier-shell {
  width: min(100%, 390px);
  border: 0;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  padding: 24px;
}

.cashier-status {
  display: grid;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cashier-status > span,
.cashier-topline span {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.cashier-status > strong {
  color: #000000;
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.cashier-status > small {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
}

.cashier-status .expiry-row {
  min-height: 44px;
  margin: 2px 0 8px;
}

.cashier-status .expiry-text {
  color: #6b7280 !important;
  font-size: 16px !important;
  line-height: 1.25;
  font-weight: 500 !important;
  letter-spacing: -0.025em;
}

.cashier-status #refreshOrderBtn {
  width: 100%;
  min-height: 42px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background: #000000;
  color: #ffffff;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

.cashier-status #refreshOrderBtn:hover {
  background: transparent;
  color: #000000;
  transform: none;
}

.cashier-topline {
  min-height: 0;
  margin: 22px 0 18px;
  border-bottom: 0;
}

.cashier-topline b {
  color: #000000;
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.cashier-shell .qr-wrap {
  width: 100%;
  margin: 0 auto 14px;
  border: 0;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.cashier-shell .qr-wrap img {
  width: min(62vw, 230px);
  height: min(62vw, 230px);
}

.cashier-shell .qr-caption,
.cashier-shell .qr-actions small {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.status-box {
  display: contents;
}

.status-box > *:not(.card-result) {
  display: none;
}

.card-result {
  width: min(100%, 390px);
  margin: 0 auto;
  border: 0;
  border-radius: 1.5rem;
  background: #ffffff;
  padding: 24px;
}

@media (max-width: 640px) {
  .option-list {
    grid-template-columns: 1fr;
  }

  .option-item {
    min-height: 230px;
    padding: 26px 22px 22px;
  }
}

/* Query and delivery pages aligned to the pricing-card visual language. */
.query-page {
  padding-top: clamp(18px, 4vw, 34px);
}

.query-panel {
  width: min(100%, 760px);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.query-panel__head {
  gap: 10px;
  padding: 0 0 10px;
}

.query-panel__head .eyebrow {
  color: #000000;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.query-panel__head > span {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}

.query-panel .quick-form {
  border: 0;
  border-radius: 1.5rem;
  background: #ffffff;
  padding: 24px;
  box-shadow: none;
}

.query-panel .field {
  margin: 0;
  gap: 12px;
  color: #4b5563;
  font-weight: 500;
}

.query-panel .field span {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.query-panel input {
  height: 54px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: none;
  color: #000000;
  padding: 0 16px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.query-panel input::placeholder {
  color: rgba(75, 85, 99, 0.62);
  font-weight: 500;
}

.query-panel input:focus {
  border-color: #000000;
  background: #ffffff;
  box-shadow: none;
}

.query-panel #queryBtn {
  width: 100%;
  min-height: 46px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background: #000000;
  color: #ffffff;
  box-shadow: none;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.query-panel #queryBtn:hover {
  background: transparent;
  border-color: #000000;
  color: #000000;
  transform: none;
}

.query-panel #queryBtn:disabled {
  cursor: wait;
  opacity: 0.52;
}

.query-result {
  gap: 16px;
}

.query-card,
.card-result {
  border: 0;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  padding: 24px;
  color: #000000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.query-card::before,
.card-result::before {
  content: none;
}

.delivery-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.delivery-head span {
  color: #4b5563;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.05em;
}

.delivery-head b {
  min-height: 34px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background: #000000;
  color: #ffffff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}

.delivery-bundle {
  gap: 14px;
}

.delivery-code {
  gap: 10px;
}

.delivery-code small,
.delivery-meta small,
.result-field small {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
}

.delivery-code__line {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.delivery-code code {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: none;
  color: #000000;
  padding: 16px;
  font-size: clamp(16px, 3.8vw, 22px);
  line-height: 1.42;
  font-weight: 500;
}

.delivery-code__line .compact-btn,
.query-card .copy-btn,
.card-result .copy-btn,
.result-field .copy-btn {
  min-height: 42px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background: #000000;
  box-shadow: none;
  color: #ffffff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
}

.delivery-code__line .compact-btn:hover,
.query-card .copy-btn:hover,
.card-result .copy-btn:hover,
.result-field .copy-btn:hover {
  background: transparent;
  color: #000000;
  transform: none;
}

.delivery-meta {
  gap: 12px;
  margin-top: 4px;
}

.delivery-meta span {
  border: 0;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 14px;
}

.delivery-meta b,
.result-field b,
.target-link {
  color: #000000;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.query-card.is-used .delivery-code code,
.delivery-code.is-used code {
  border-color: rgba(0, 0, 0, 0.08);
  background: #f3f4f6;
  color: #6b7280;
}

.query-empty {
  min-height: 92px;
  border: 0;
  border-radius: 1.5rem;
  background: #ffffff;
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .query-panel {
    width: min(100% - 22px, 560px);
  }

  .query-card,
  .card-result,
  .query-panel .quick-form {
    padding: 22px;
  }

  .delivery-code__line {
    grid-template-columns: 1fr;
  }
}

/* Delivered order view: make fulfilment feel like its own page. */
body.order-delivered-view .order-layout {
  width: min(100% - 32px, 980px);
  padding-top: clamp(18px, 4vw, 42px);
}

body.order-delivered-view .pay-box {
  gap: clamp(18px, 4vw, 34px);
}

body.order-delivered-view .pay-box__main {
  width: min(100%, 760px);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

body.order-delivered-view .pay-box__main h1 {
  margin-bottom: 6px;
  color: rgba(15, 23, 42, 0.72);
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 400;
  letter-spacing: 0;
}

body.order-delivered-view #orderMeta {
  min-height: 0;
  margin: 0 auto 12px;
  color: rgba(71, 85, 105, 0.66);
  font-size: 13px;
  font-weight: 500;
}

body.order-delivered-view .payment-notice {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: rgba(15, 23, 42, 0.58);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
}

body.order-delivered-view .cashier-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  padding: 12px 18px;
}

body.order-delivered-view .cashier-status,
body.order-delivered-view .cashier-shell .qr-wrap,
body.order-delivered-view .cashier-shell .qr-caption,
body.order-delivered-view .cashier-shell .qr-actions,
body.order-delivered-view #mockPaidBtn {
  display: none !important;
}

body.order-delivered-view .cashier-topline {
  display: flex;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  margin: 0;
}

body.order-delivered-view .cashier-topline span,
body.order-delivered-view .cashier-topline b {
  color: rgba(15, 23, 42, 0.62);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

body.order-delivered-view .card-result.delivery-page {
  width: min(100%, 920px);
  margin: 0 auto;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 30px 90px rgba(55, 85, 120, 0.12);
  padding: clamp(24px, 5vw, 42px);
}

body.order-delivered-view .delivery-page .delivery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

body.order-delivered-view .delivery-page .delivery-head span {
  color: rgba(30, 41, 59, 0.76);
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 300;
  letter-spacing: 0;
}

body.order-delivered-view .delivery-subject {
  margin: 0 0 clamp(20px, 4vw, 30px);
  color: rgba(71, 85, 105, 0.72);
  font-size: 15px;
  font-weight: 500;
}

body.order-delivered-view .delivery-service-note {
  margin: -12px 0 clamp(18px, 3vw, 26px);
  color: rgba(44, 116, 146, 0.76);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
}

body.order-delivered-view .delivery-bundle {
  display: grid;
  gap: 16px;
}

body.order-delivered-view .delivery-code {
  display: grid;
  gap: 10px;
}

body.order-delivered-view .delivery-code__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: stretch;
  gap: 12px;
}

body.order-delivered-view .delivery-code code {
  min-height: 82px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px 20px;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.order-delivered-view .delivery-code__line .compact-btn {
  min-height: 82px;
  border-radius: 18px;
}

body.order-delivered-view .delivery-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

body.order-delivered-view .delivery-meta span {
  min-height: 96px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
  padding: 16px;
}

body.order-delivered-view .delivery-page > .copy-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  body.order-delivered-view .delivery-code__line,
  body.order-delivered-view .delivery-meta {
    grid-template-columns: 1fr;
  }

body.order-delivered-view .delivery-code__line .compact-btn {
    min-height: 48px;
  }
}

/* Admin console polish: clearer hierarchy, calmer glass, tactile controls. */
.admin-page {
  --admin-sidebar-left: 32px;
  --admin-sidebar-width: 148px;
  --admin-content-left: 220px;
  --admin-content-right: 96px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(96, 165, 250, 0.16), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(20, 184, 166, 0.10), transparent 30%),
    linear-gradient(180deg, #f6f9fd 0%, #eef4fb 48%, #f8fafc 100%);
}

.admin-page .topbar {
  width: auto;
  max-width: none;
  margin-left: var(--admin-content-left);
  margin-right: var(--admin-content-right);
  border-bottom-color: rgba(203, 213, 225, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
  backdrop-filter: blur(20px) saturate(1.18);
}

.admin-page .brand {
  color: rgba(15, 23, 42, 0.82);
  font-weight: 920;
}

.admin-page .nav a,
.admin-page .nav button,
.admin-page .primary,
.admin-page .secondary,
.admin-page .compact-btn,
.admin-page .table-export {
  position: relative;
  transform: translateY(0) scale(1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 9px 22px rgba(15, 23, 42, 0.055);
  transition:
    transform 150ms var(--ease-out),
    box-shadow 150ms var(--ease-out),
    background 150ms var(--ease-out),
    border-color 150ms var(--ease-out),
    color 150ms var(--ease-out);
}

.admin-page .nav a:hover,
.admin-page .nav button:hover,
.admin-page .primary:hover,
.admin-page .secondary:hover,
.admin-page .compact-btn:hover,
.admin-page .table-export:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 30px rgba(15, 23, 42, 0.085);
}

.admin-page .nav a:active,
.admin-page .nav button:active,
.admin-page .primary:active,
.admin-page .secondary:active,
.admin-page .compact-btn:active,
.admin-page .table-export:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    inset 0 2px 5px rgba(15, 23, 42, 0.12),
    0 4px 10px rgba(15, 23, 42, 0.055);
}

.admin-page .primary {
  border: 1px solid rgba(9, 88, 217, 0.18);
  background:
    linear-gradient(180deg, rgba(55, 145, 255, 0.98), rgba(9, 88, 217, 0.98)),
    var(--accent);
}

.admin-page .secondary,
.admin-page .nav a,
.admin-page .nav button {
  border: 1px solid rgba(203, 213, 225, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.72)),
    rgba(255, 255, 255, 0.76);
  color: rgba(51, 65, 85, 0.86);
}

.admin-page .admin-layout {
  width: auto;
  max-width: none;
  margin-left: var(--admin-content-left);
  margin-right: var(--admin-content-right);
  padding: 24px 0 48px;
}

.admin-page .admin-view {
  display: none;
}

.admin-page .admin-view.is-active {
  display: grid;
  animation: adminViewIn 220ms var(--ease-out) both;
}

.admin-view-switcher {
  position: fixed;
  top: 82px;
  left: var(--admin-sidebar-left);
  right: auto;
  z-index: 12;
  display: grid;
  gap: 8px;
  width: var(--admin-sidebar-width);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 20px 54px rgba(15, 23, 42, 0.11);
  backdrop-filter: blur(22px) saturate(1.16);
  padding: 10px;
}

.admin-view-switcher button {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 24px;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid rgba(203, 213, 225, 0.56);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.58)),
    rgba(255, 255, 255, 0.7);
  color: rgba(71, 85, 105, 0.84);
  padding: 0 8px;
  font-size: 13px;
  font-weight: 860;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    transform 150ms var(--ease-out),
    box-shadow 150ms var(--ease-out),
    border-color 150ms var(--ease-out),
    background 150ms var(--ease-out),
    color 150ms var(--ease-out);
}

.admin-view-switcher button:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 22px rgba(15, 23, 42, 0.08);
}

.admin-view-switcher button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.12);
}

.admin-view-switcher button.is-active {
  border-color: rgba(22, 119, 255, 0.46);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.62)),
    rgba(239, 246, 255, 0.78);
  color: rgba(29, 78, 216, 0.9);
}

.admin-view-switcher span {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.admin-view-switcher b {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 11px;
  font-weight: 920;
}

.admin-page .admin-stats {
  gap: 12px;
}

.admin-page .admin-stats article,
.admin-page .admin-table-panel {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 22px 58px rgba(15, 23, 42, 0.075);
  backdrop-filter: blur(22px) saturate(1.16);
}

.admin-page .admin-stats article {
  min-height: 96px;
  padding: 18px;
}

.admin-page .admin-stats span {
  color: rgba(71, 85, 105, 0.72);
  font-size: 12px;
  letter-spacing: 0;
}

.admin-page .admin-stats strong {
  color: rgba(15, 23, 42, 0.82);
  font-size: 26px;
  line-height: 1.08;
  font-weight: 920;
}

.admin-page .admin-table-panel {
  overflow: hidden;
  padding: 18px;
}

.admin-page .section__head {
  align-items: center;
  margin-bottom: 16px;
}

.admin-page .section__head h2 {
  color: rgba(15, 23, 42, 0.82);
  font-size: 20px;
  font-weight: 920;
}

.admin-page .field span {
  color: rgba(71, 85, 105, 0.78);
  font-size: 12px;
  font-weight: 860;
}

.admin-page .field input,
.admin-page .field select,
.admin-page .field textarea {
  border-color: rgba(203, 213, 225, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.68)),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.035),
    0 1px 0 rgba(255, 255, 255, 0.82);
  color: rgba(15, 23, 42, 0.82);
  transition:
    border-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out),
    background 160ms var(--ease-out);
}

.admin-page .field input:hover,
.admin-page .field select:hover,
.admin-page .field textarea:hover {
  border-color: rgba(96, 165, 250, 0.48);
}

.admin-page .field input:focus,
.admin-page .field select:focus,
.admin-page .field textarea:focus {
  border-color: rgba(22, 119, 255, 0.64);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.035),
    0 0 0 4px rgba(22, 119, 255, 0.105);
  outline: none;
}

.admin-page .table-scroll {
  border: 1px solid rgba(226, 232, 240, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
}

.admin-page .admin-table {
  border-collapse: separate;
  border-spacing: 0;
}

.admin-page .admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom-color: rgba(203, 213, 225, 0.7);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.9)),
    rgba(248, 250, 252, 0.92);
  color: rgba(71, 85, 105, 0.76);
  font-size: 12px;
  font-weight: 880;
}

.admin-page .admin-table td {
  border-bottom-color: rgba(226, 232, 240, 0.7);
  color: rgba(30, 41, 59, 0.84);
}

.admin-page .admin-table tbody tr {
  transition: background 150ms var(--ease-out);
}

.admin-page .admin-table tbody tr:hover {
  background: rgba(238, 245, 255, 0.54);
}

.admin-page .admin-table code,
.admin-page .admin-card-codes code,
.admin-page .fulfillment-code-preview code {
  border: 1px solid rgba(203, 213, 225, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 245, 249, 0.74)),
    rgba(248, 250, 252, 0.78);
  color: rgba(30, 41, 59, 0.82);
}

.admin-page .status-pill {
  border: 1px solid rgba(147, 197, 253, 0.42);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(219, 234, 254, 0.56)),
    rgba(239, 246, 255, 0.72);
  color: rgba(29, 78, 216, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-page .status-paid,
.admin-page .status-delivered {
  border-color: rgba(16, 185, 129, 0.30);
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.94), rgba(209, 250, 229, 0.58)),
    rgba(236, 253, 245, 0.7);
  color: rgba(4, 120, 87, 0.86);
}

.admin-page .status-closed {
  border-color: rgba(148, 163, 184, 0.36);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.64)),
    rgba(241, 245, 249, 0.76);
  color: rgba(71, 85, 105, 0.82);
}

.admin-page .admin-series-block,
.admin-page .series-edit-row,
.admin-page .product-edit-row,
.admin-page .product-admin-block,
.admin-page .stock-box {
  border-color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(248, 250, 252, 0.42)),
    rgba(255, 255, 255, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 32px rgba(15, 23, 42, 0.055);
}

.admin-page .product-row,
.admin-page .inventory-product-list article,
.admin-page .stock-state article,
.admin-page .fulfillment-lane,
.admin-page .fulfillment-item {
  border-color: rgba(226, 232, 240, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.54)),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 26px rgba(15, 23, 42, 0.045);
  transition:
    transform 150ms var(--ease-out),
    box-shadow 150ms var(--ease-out),
    border-color 150ms var(--ease-out),
    background 150ms var(--ease-out);
}

.admin-page .product-row:not(.product-row--head):hover,
.admin-page .inventory-product-list article:hover,
.admin-page .fulfillment-item:hover {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 34px rgba(15, 23, 42, 0.07);
}

.admin-page .product-row--head {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(71, 85, 105, 0.68);
}

.admin-page .fulfillment-lane {
  position: relative;
  overflow: hidden;
}

.admin-page .fulfillment-lane::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(96, 165, 250, 0.56);
  content: "";
}

.admin-page .fulfillment-lane--pending::before,
.admin-page .fulfillment-lane--high::before {
  background: rgba(245, 158, 11, 0.62);
}

.admin-page .fulfillment-lane--critical::before {
  background: rgba(239, 68, 68, 0.62);
}

.admin-page .fulfillment-lane--delivered::before,
.admin-page .fulfillment-lane--redeemed::before {
  background: rgba(16, 185, 129, 0.58);
}

.admin-page .fulfillment-lane__head span {
  border: 1px solid rgba(147, 197, 253, 0.38);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(219, 234, 254, 0.62)),
    rgba(239, 246, 255, 0.76);
}

.admin-page .fulfillment-empty {
  border-color: rgba(147, 197, 253, 0.38);
  background: rgba(248, 250, 252, 0.52);
}

.admin-page .guide-preview,
.admin-page .product-media-preview {
  border-color: rgba(203, 213, 225, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 26px rgba(15, 23, 42, 0.05);
}

.admin-page .admin-note {
  min-height: 22px;
  color: rgba(4, 120, 87, 0.86);
}

.admin-detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  justify-items: end;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(4px);
}

.admin-detail-drawer.hidden {
  display: none;
}

.admin-detail-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  width: min(460px, 100%);
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.74)),
    rgba(255, 255, 255, 0.82);
  box-shadow: -24px 0 70px rgba(15, 23, 42, 0.18);
  padding: 16px;
  animation: adminDrawerIn 220ms var(--ease-out) both;
}

.admin-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-detail-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-detail-head span {
  width: fit-content;
  border: 1px solid rgba(147, 197, 253, 0.44);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.76);
  color: rgba(29, 78, 216, 0.88);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}

.admin-detail-head strong {
  overflow-wrap: anywhere;
  color: rgba(15, 23, 42, 0.86);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 920;
}

.admin-detail-head small {
  color: rgba(71, 85, 105, 0.72);
  font-size: 12px;
  font-weight: 760;
}

.admin-detail-body {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.admin-detail-row {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.58)),
    rgba(255, 255, 255, 0.62);
  padding: 9px 10px;
}

.admin-detail-row span {
  color: rgba(71, 85, 105, 0.7);
  font-size: 12px;
  font-weight: 860;
}

.admin-detail-row b {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: rgba(15, 23, 42, 0.84);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 760;
}

.admin-detail-note {
  margin: 0;
}

.admin-detail-note textarea {
  min-height: 76px;
}

@keyframes adminViewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes adminDrawerIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .admin-page .topbar {
    width: min(100% - 22px, 560px);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .admin-page .admin-layout {
    width: min(100% - 22px, 560px);
    max-width: 560px;
    margin: 0 auto;
    padding-top: 16px;
  }

  .admin-page .admin-table-panel,
  .admin-page .admin-stats article {
    padding: 14px;
  }

  .admin-view-switcher {
    position: sticky;
    top: 64px;
    left: auto;
    right: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100% - 22px, 560px);
    margin: 10px auto 0;
  }

  .admin-view-switcher button {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Admin unified skin: keep newer modules in the same clear OnePw visual system. */
.admin-page {
  --admin-ink: rgba(30, 41, 59, 0.82);
  --admin-muted: rgba(71, 85, 105, 0.64);
  --admin-soft: rgba(96, 165, 250, 0.12);
  --admin-line: rgba(191, 219, 254, 0.42);
  --admin-line-strong: rgba(147, 197, 253, 0.58);
  --admin-panel: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(239, 246, 255, 0.48));
  --admin-panel-deep: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 242, 255, 0.58));
  --admin-shadow: 0 22px 70px rgba(38, 80, 130, 0.11);
  --admin-soft-shadow: 0 12px 34px rgba(38, 80, 130, 0.075);
  color: var(--admin-ink);
  background:
    radial-gradient(circle at 10% 3%, rgba(96, 165, 250, 0.18), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(125, 211, 252, 0.18), transparent 28%),
    radial-gradient(circle at 45% 105%, rgba(34, 197, 94, 0.07), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #eef7ff 42%, #f8fbff 100%);
}

.admin-page .topbar,
.admin-view-switcher,
.admin-page .admin-table-panel,
.admin-detail-panel {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--admin-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--admin-shadow);
  backdrop-filter: blur(24px) saturate(1.18);
}

.admin-page .topbar {
  border-radius: 0 0 8px 8px;
}

.admin-page .brand,
.admin-page .section__head h2 {
  color: rgba(30, 41, 59, 0.78);
  font-weight: 760;
  letter-spacing: 0;
}

.admin-page .brand::before {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.92), rgba(14, 165, 233, 0.72));
  box-shadow: 0 10px 28px rgba(96, 165, 250, 0.22);
}

.admin-page .nav a,
.admin-page .nav button,
.admin-page .primary,
.admin-page .secondary,
.admin-page .compact-btn,
.admin-page .table-export,
.admin-view-switcher button {
  border: 1px solid var(--admin-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(239, 246, 255, 0.58)),
    rgba(255, 255, 255, 0.66);
  color: rgba(51, 65, 85, 0.74);
  font-weight: 720;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 24px rgba(38, 80, 130, 0.065);
}

.admin-page .primary {
  border-color: rgba(37, 99, 235, 0.22);
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.96), rgba(37, 99, 235, 0.86)),
    #3b82f6;
  color: rgba(255, 255, 255, 0.96);
}

.admin-page .nav a:hover,
.admin-page .nav button:hover,
.admin-page .primary:hover,
.admin-page .secondary:hover,
.admin-page .compact-btn:hover,
.admin-page .table-export:hover,
.admin-view-switcher button:hover {
  border-color: var(--admin-line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(219, 234, 254, 0.66)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 34px rgba(38, 80, 130, 0.105);
}

.admin-page .primary:hover {
  background:
    linear-gradient(180deg, rgba(125, 183, 255, 0.98), rgba(37, 99, 235, 0.9)),
    #3b82f6;
  color: #ffffff;
}

.admin-view-switcher {
  gap: 9px;
  padding: 11px;
}

.admin-view-switcher button {
  min-height: 40px;
  padding: 0 9px;
  font-size: 13px;
}

.admin-view-switcher button.is-active {
  border-color: rgba(96, 165, 250, 0.58);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(191, 219, 254, 0.68)),
    rgba(219, 234, 254, 0.78);
  color: rgba(29, 78, 216, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 32px rgba(96, 165, 250, 0.14);
}

.admin-view-switcher b {
  background: rgba(255, 255, 255, 0.76);
  color: inherit;
  font-weight: 760;
}

.admin-page .admin-table-panel {
  padding: 20px;
}

.admin-page .section__head {
  min-height: 42px;
  border-bottom: 1px solid rgba(191, 219, 254, 0.24);
  padding-bottom: 14px;
}

.admin-page .admin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-page .admin-stats article,
.admin-page .admin-series-block,
.admin-page .series-edit-row,
.admin-page .product-edit-row,
.admin-page .product-admin-block,
.admin-page .stock-box,
.admin-page .product-row,
.admin-page .inventory-product-list article,
.admin-page .stock-state article,
.admin-page .fulfillment-lane,
.admin-page .fulfillment-item,
.admin-detail-row,
.admin-page .table-scroll {
  border: 1px solid var(--admin-line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(239, 246, 255, 0.42)),
    rgba(255, 255, 255, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    var(--admin-soft-shadow);
}

.admin-page .admin-stats article {
  position: relative;
  overflow: hidden;
}

.admin-page .admin-stats article::after {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.58), rgba(34, 211, 238, 0.18), transparent);
  content: "";
}

.admin-page .admin-stats span,
.admin-page .field span,
.admin-page .admin-table th,
.admin-page .inventory-product-list small,
.admin-page .inventory-product-list span,
.admin-page .fulfillment-item small,
.admin-page .fulfillment-item > span,
.admin-detail-row span {
  color: var(--admin-muted);
  font-weight: 620;
  letter-spacing: 0;
}

.admin-page .admin-stats strong,
.admin-page .stock-state strong {
  color: rgba(30, 41, 59, 0.78);
  font-weight: 720;
}

.admin-page .field input,
.admin-page .field select,
.admin-page .field textarea {
  min-height: 44px;
  border: 1px solid rgba(191, 219, 254, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.54)),
    rgba(255, 255, 255, 0.72);
  color: rgba(30, 41, 59, 0.78);
  font-weight: 600;
}

.admin-page .field textarea {
  line-height: 1.55;
}

.admin-page .field input:focus,
.admin-page .field select:focus,
.admin-page .field textarea:focus {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.03),
    0 0 0 4px rgba(96, 165, 250, 0.13),
    0 12px 30px rgba(96, 165, 250, 0.08);
}

.admin-page .product-admin-grid,
.admin-page .stock-workbench,
.admin-page .stock-actions-grid {
  gap: 12px;
}

.admin-page .stock-workbench,
.admin-page .stock-actions-grid,
.admin-page .inventory-product-list,
.admin-page .fulfillment-board,
.admin-page .product-table-wrap {
  position: relative;
}

.admin-page .stock-workbench {
  border: 1px solid rgba(191, 219, 254, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  padding: 14px;
}

.admin-page .inventory-product-list article,
.admin-page .fulfillment-item,
.admin-page .product-row:not(.product-row--head) {
  min-height: 56px;
}

.admin-page .product-row:not(.product-row--head):hover,
.admin-page .inventory-product-list article:hover,
.admin-page .fulfillment-item:hover,
.admin-page .admin-series-block:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 42px rgba(38, 80, 130, 0.11);
}

.admin-page .admin-series-head,
.admin-page .fulfillment-lane__head {
  border-bottom: 1px solid rgba(191, 219, 254, 0.24);
  padding-bottom: 10px;
}

.admin-page .admin-series-title strong,
.admin-page .inventory-product-list strong,
.admin-page .fulfillment-item strong,
.admin-page .fulfillment-lane__head strong {
  color: rgba(30, 41, 59, 0.78);
  font-weight: 700;
  letter-spacing: 0;
}

.admin-page .admin-series-title small,
.admin-page .product-row small {
  color: rgba(71, 85, 105, 0.58);
  font-weight: 560;
}

.admin-page .product-row--head {
  min-height: 30px;
  color: rgba(71, 85, 105, 0.52);
  font-size: 12px;
  font-weight: 640;
}

.admin-page .fulfillment-board {
  gap: 14px;
}

.admin-page .fulfillment-lane {
  padding: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(239, 246, 255, 0.38)),
    rgba(255, 255, 255, 0.5);
}

.admin-page .fulfillment-lane::before {
  width: 2px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.72), rgba(125, 211, 252, 0.22));
}

.admin-page .fulfillment-lane__head span,
.admin-page .status-pill {
  border: 1px solid rgba(147, 197, 253, 0.42);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(219, 234, 254, 0.62)),
    rgba(239, 246, 255, 0.72);
  color: rgba(29, 78, 216, 0.78);
  font-weight: 680;
}

.admin-page .admin-table {
  font-size: 13px;
}

.admin-page .admin-table th {
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(232, 244, 255, 0.9)),
    rgba(248, 252, 255, 0.92);
}

.admin-page .admin-table td {
  color: rgba(30, 41, 59, 0.76);
}

.admin-page .admin-table tbody tr:hover {
  background: rgba(219, 234, 254, 0.32);
}

.admin-page .admin-table code,
.admin-page .admin-card-codes code,
.admin-page .fulfillment-code-preview code {
  border-color: rgba(191, 219, 254, 0.46);
  background: rgba(255, 255, 255, 0.68);
  color: rgba(30, 41, 59, 0.72);
  font-weight: 560;
}

.admin-page .admin-note {
  color: rgba(14, 116, 144, 0.76);
  font-size: 13px;
  font-weight: 600;
}

.admin-detail-drawer {
  background:
    radial-gradient(circle at 78% 16%, rgba(96, 165, 250, 0.16), transparent 30%),
    rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(7px);
}

.admin-detail-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--admin-panel-deep);
}

.admin-detail-head span {
  border-color: rgba(147, 197, 253, 0.42);
  background: rgba(239, 246, 255, 0.78);
  color: rgba(29, 78, 216, 0.78);
  font-weight: 680;
}

.admin-detail-head strong,
.admin-detail-row b {
  color: rgba(30, 41, 59, 0.78);
  font-weight: 640;
}

@media (max-width: 900px) {
  .admin-page {
    --admin-content-left: 192px;
    --admin-content-right: 24px;
    --admin-sidebar-left: 24px;
    --admin-sidebar-width: 140px;
  }

  .admin-page .admin-stats,
  .admin-page .fulfillment-board {
    grid-template-columns: 1fr;
  }
}

/* Fulfillment and exception boards use the same refined glass language as the customer-facing pages. */
.admin-page .fulfillment-board {
  gap: 16px;
  align-items: stretch;
}

.admin-page .fulfillment-lane {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 276px;
  border: 1px solid rgba(191, 219, 254, 0.44);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 0%, rgba(96, 165, 250, 0.13), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.42)),
    rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 46px rgba(38, 80, 130, 0.09);
  padding: 16px;
  overflow: hidden;
}

.admin-page .fulfillment-lane::before {
  inset: 0 16px auto;
  width: auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.72), rgba(34, 211, 238, 0.28), transparent);
}

.admin-page .fulfillment-lane--pending::before,
.admin-page .fulfillment-lane--high::before,
.admin-page .fulfillment-lane--critical::before,
.admin-page .fulfillment-lane--delivered::before,
.admin-page .fulfillment-lane--redeemed::before {
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.68), rgba(45, 212, 191, 0.3), transparent);
}

.admin-page .fulfillment-lane__head {
  min-height: 36px;
  border-bottom: 1px solid rgba(191, 219, 254, 0.26);
  padding: 0 0 12px;
}

.admin-page .fulfillment-lane__head strong {
  color: rgba(30, 41, 59, 0.76);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 720;
}

.admin-page .fulfillment-lane__head span {
  min-width: 34px;
  min-height: 28px;
  border-color: rgba(96, 165, 250, 0.34);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(219, 234, 254, 0.6)),
    rgba(255, 255, 255, 0.62);
  color: rgba(37, 99, 235, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(96, 165, 250, 0.12);
  font-size: 15px;
  font-weight: 720;
}

.admin-page .fulfillment-list {
  gap: 10px;
}

.admin-page .fulfillment-item {
  gap: 10px;
  border: 1px solid rgba(191, 219, 254, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.48)),
    rgba(255, 255, 255, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px rgba(38, 80, 130, 0.065);
  padding: 12px;
}

.admin-page .fulfillment-item:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 42px rgba(38, 80, 130, 0.12);
}

.admin-page .fulfillment-item strong {
  color: rgba(15, 23, 42, 0.78);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 690;
}

.admin-page .fulfillment-item small,
.admin-page .fulfillment-item > span,
.admin-page .fulfillment-code-preview em {
  color: rgba(71, 85, 105, 0.58);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 560;
}

.admin-page .fulfillment-code-preview {
  gap: 6px;
}

.admin-page .fulfillment-code-preview code,
.admin-page .fulfillment-code-preview em {
  display: block;
  border: 1px solid rgba(191, 219, 254, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.52)),
    rgba(255, 255, 255, 0.62);
  padding: 7px 10px;
  color: rgba(51, 65, 85, 0.7);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 560;
}

.admin-page .fulfillment-item .compact-btn {
  width: 100%;
  min-height: 38px;
  border-radius: 999px;
  border-color: rgba(96, 165, 250, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(219, 234, 254, 0.6)),
    rgba(255, 255, 255, 0.64);
  color: rgba(37, 99, 235, 0.74);
  font-size: 14px;
  font-weight: 720;
}

.admin-page .fulfillment-item .compact-btn:hover {
  border-color: rgba(96, 165, 250, 0.62);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(191, 219, 254, 0.66)),
    rgba(219, 234, 254, 0.72);
}

.admin-page .fulfillment-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 0;
  border: 1px solid rgba(191, 219, 254, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.11), transparent 40%),
    rgba(255, 255, 255, 0.38);
  color: rgba(71, 85, 105, 0.46);
  font-size: 14px;
  font-weight: 620;
  text-align: center;
}

@media (max-width: 900px) {
  .admin-page .fulfillment-lane {
    min-height: 220px;
  }
}

/* Admin fulfillment boards: match the clean customer-facing package-card style. */
.admin-page [data-admin-view="fulfillment"] .fulfillment-board,
.admin-page [data-admin-view="exceptions"] .fulfillment-board {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-lane,
.admin-page [data-admin-view="exceptions"] .fulfillment-lane {
  gap: 18px;
  min-height: 276px;
  border: 0;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: none;
  padding: 24px;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-lane::before,
.admin-page [data-admin-view="exceptions"] .fulfillment-lane::before {
  content: none;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-lane__head,
.admin-page [data-admin-view="exceptions"] .fulfillment-lane__head {
  min-height: auto;
  border-bottom: 0;
  padding: 0;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-lane__head strong,
.admin-page [data-admin-view="exceptions"] .fulfillment-lane__head strong {
  color: #4b5563;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: 0;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-lane__head span,
.admin-page [data-admin-view="exceptions"] .fulfillment-lane__head span {
  min-width: auto;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 400;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-list,
.admin-page [data-admin-view="exceptions"] .fulfillment-list {
  gap: 12px;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-item,
.admin-page [data-admin-view="exceptions"] .fulfillment-item {
  gap: 12px;
  border: 0;
  border-radius: 18px;
  background: #f8fafc;
  box-shadow: none;
  padding: 16px;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-item:hover,
.admin-page [data-admin-view="exceptions"] .fulfillment-item:hover {
  transform: translateY(-1px);
  background: #f3f7fb;
  box-shadow: none;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-item strong,
.admin-page [data-admin-view="exceptions"] .fulfillment-item strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-item small,
.admin-page [data-admin-view="fulfillment"] .fulfillment-item > span,
.admin-page [data-admin-view="fulfillment"] .fulfillment-code-preview em,
.admin-page [data-admin-view="exceptions"] .fulfillment-item small,
.admin-page [data-admin-view="exceptions"] .fulfillment-item > span,
.admin-page [data-admin-view="exceptions"] .fulfillment-code-preview em {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-code-preview,
.admin-page [data-admin-view="exceptions"] .fulfillment-code-preview {
  gap: 8px;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-code-preview code,
.admin-page [data-admin-view="fulfillment"] .fulfillment-code-preview em,
.admin-page [data-admin-view="exceptions"] .fulfillment-code-preview code,
.admin-page [data-admin-view="exceptions"] .fulfillment-code-preview em {
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #4b5563;
  box-shadow: none;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-item .compact-btn,
.admin-page [data-admin-view="exceptions"] .fulfillment-item .compact-btn {
  width: 100%;
  min-height: 44px;
  border: 2px solid #000000;
  border-radius: 9999px;
  background: #000000;
  box-shadow: none;
  color: #ffffff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-item .compact-btn:hover,
.admin-page [data-admin-view="exceptions"] .fulfillment-item .compact-btn:hover {
  background: transparent;
  color: #000000;
  transform: none;
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-item .compact-btn:active,
.admin-page [data-admin-view="exceptions"] .fulfillment-item .compact-btn:active {
  transform: scale(0.985);
}

.admin-page [data-admin-view="fulfillment"] .fulfillment-empty,
.admin-page [data-admin-view="exceptions"] .fulfillment-empty {
  min-height: 150px;
  border: 0;
  border-radius: 18px;
  background: #f8fafc;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .admin-page [data-admin-view="fulfillment"] .fulfillment-board,
  .admin-page [data-admin-view="exceptions"] .fulfillment-board {
    grid-template-columns: 1fr;
  }
}

/* Admin full-page customer-facing style pass. */
.admin-page {
  --admin-content-left: 220px;
  --admin-content-right: 40px;
  --admin-card-white: #ffffff;
  --admin-card-soft: #f8fafc;
  --admin-card-hover: #f3f7fb;
  --admin-text-soft: #4b5563;
  --admin-text-muted: #6b7280;
  --admin-black: #000000;
  background:
    radial-gradient(circle at 8% 0%, rgba(191, 219, 254, 0.56), transparent 30%),
    radial-gradient(circle at 90% 6%, rgba(186, 230, 253, 0.46), transparent 28%),
    linear-gradient(180deg, #eef6ff 0%, #f8fbff 42%, #eef3f8 100%);
  color: var(--admin-text-soft);
}

.admin-page .topbar {
  height: 58px;
  border: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 62px rgba(37, 55, 78, 0.09);
  padding: 0 18px;
}

.admin-page .brand {
  color: #111827;
  font-size: 20px;
  font-weight: 500;
}

.admin-page .brand::before {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.96), rgba(37, 99, 235, 0.72));
  box-shadow: 0 12px 28px rgba(96, 165, 250, 0.24);
}

.admin-page .admin-layout {
  padding: 28px 0 56px;
}

.admin-page .admin-table-panel {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 90px rgba(37, 55, 78, 0.11);
  backdrop-filter: blur(18px) saturate(1.08);
  padding: clamp(26px, 3vw, 36px);
}

.admin-page .admin-view.is-active {
  gap: 24px;
}

.admin-page .section__head {
  min-height: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.admin-page .section__head h2 {
  color: #1f2937;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  font-weight: 500;
}

.admin-view-switcher {
  top: 82px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(37, 55, 78, 0.12);
  padding: 10px;
}

.admin-view-switcher button {
  min-height: 42px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  box-shadow: none;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
}

.admin-view-switcher button:hover {
  background: #f8fafc;
  box-shadow: none;
  transform: none;
}

.admin-view-switcher button.is-active {
  border: 0;
  background: #000000;
  box-shadow: none;
  color: #ffffff;
}

.admin-view-switcher b {
  min-width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-weight: 500;
}

.admin-page .nav a,
.admin-page .nav button,
.admin-page .primary,
.admin-page .secondary,
.admin-page .compact-btn,
.admin-page .table-export {
  min-height: 42px;
  border-radius: 9999px;
  box-shadow: none;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms ease;
}

.admin-page .primary {
  border: 2px solid var(--admin-black);
  background: var(--admin-black);
  color: #ffffff;
}

.admin-page .secondary,
.admin-page .nav a,
.admin-page .nav button,
.admin-page .table-export {
  border: 2px solid var(--admin-black);
  background: transparent;
  color: var(--admin-black);
}

.admin-page .primary:hover,
.admin-page .secondary:hover,
.admin-page .nav a:hover,
.admin-page .nav button:hover,
.admin-page .compact-btn:hover,
.admin-page .table-export:hover {
  border-color: var(--admin-black);
  background: transparent;
  box-shadow: none;
  color: var(--admin-black);
  transform: none;
}

.admin-page .secondary:hover,
.admin-page .nav a:hover,
.admin-page .nav button:hover,
.admin-page .table-export:hover {
  background: var(--admin-black);
  color: #ffffff;
}

.admin-page .primary:active,
.admin-page .secondary:active,
.admin-page .nav a:active,
.admin-page .nav button:active,
.admin-page .compact-btn:active,
.admin-page .table-export:active {
  transform: scale(0.985);
  box-shadow: none;
}

.admin-page .admin-actions,
.admin-page .admin-inline-actions {
  gap: 10px;
}

.admin-page .admin-stats {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
}

.admin-page .admin-stats article {
  min-height: 156px;
  border: 0;
  border-radius: 28px;
  background: var(--admin-card-white);
  box-shadow: none;
  padding: 28px;
}

.admin-page .admin-stats article::after {
  content: none;
}

.admin-page .admin-stats span {
  color: var(--admin-text-muted);
  font-size: 15px;
  font-weight: 500;
}

.admin-page .admin-stats strong {
  color: #000000;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 300;
}

.admin-page .display-admin-form,
.admin-page .card-import-panel,
.admin-page .product-table-wrap {
  gap: 18px;
}

.admin-page .product-admin-grid {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 16px;
}

.admin-page .field {
  margin: 0;
  gap: 10px;
}

.admin-page .field span {
  color: var(--admin-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.admin-page .field input,
.admin-page .field select,
.admin-page .field textarea {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: var(--admin-card-white);
  box-shadow: none;
  color: #111827;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
}

.admin-page .field textarea {
  min-height: 120px;
  padding: 14px 16px;
}

.admin-page .field input:focus,
.admin-page .field select:focus,
.admin-page .field textarea:focus {
  background: #ffffff;
  box-shadow: 0 0 0 2px #000000;
}

.admin-page .admin-series-block,
.admin-page .product-admin-block,
.admin-page .guide-admin-block,
.admin-page .stock-workbench,
.admin-page .stock-actions-grid {
  border: 0;
  border-radius: 28px;
  background: var(--admin-card-white);
  box-shadow: none;
  padding: 24px;
}

.admin-page .admin-series-head,
.admin-page .product-admin-block legend,
.admin-page .guide-admin-block legend {
  border: 0;
  padding: 0;
}

.admin-page .admin-series-title strong,
.admin-page .product-admin-block legend,
.admin-page .guide-admin-block legend,
.admin-page .stock-box legend {
  color: #4b5563;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 300;
}

.admin-page .admin-series-title small,
.admin-page .product-admin-block legend small {
  color: var(--admin-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.admin-page .product-table,
.admin-page .inventory-product-list {
  gap: 12px;
}

.admin-page .product-row,
.admin-page .inventory-product-list article,
.admin-page .stock-state article,
.admin-page .series-edit-row,
.admin-page .product-edit-row,
.admin-page .stock-box,
.admin-detail-row {
  border: 0;
  border-radius: 18px;
  background: var(--admin-card-soft);
  box-shadow: none;
  padding: 16px;
}

.admin-page .product-row {
  grid-template-columns: minmax(220px, 1.4fr) 110px minmax(180px, 1fr) 96px minmax(210px, auto);
}

.admin-page .product-row--head {
  min-height: 28px;
  border-radius: 0;
  background: transparent;
  color: var(--admin-text-muted);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
}

.admin-page .product-row:not(.product-row--head):hover,
.admin-page .inventory-product-list article:hover,
.admin-page .admin-series-block:hover {
  transform: none;
  background: var(--admin-card-hover);
  box-shadow: none;
}

.admin-page .product-row strong,
.admin-page .inventory-product-list strong,
.admin-page .admin-order-items strong {
  color: #111827;
  font-size: 16px;
  font-weight: 500;
}

.admin-page .product-row small,
.admin-page .inventory-product-list small,
.admin-page .inventory-product-list span {
  color: var(--admin-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.admin-page .stock-workbench {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.admin-page .stock-state {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-page .stock-state article {
  min-height: 106px;
}

.admin-page .stock-state span {
  color: var(--admin-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.admin-page .stock-state strong {
  color: #000000;
  font-size: 34px;
  font-weight: 300;
}

.admin-page .stock-actions-grid {
  grid-template-columns: minmax(180px, 260px) minmax(280px, 1fr) 180px;
  align-items: end;
}

.admin-page .inventory-submit {
  min-height: 72px;
}

.admin-page .inventory-submit .primary {
  width: 100%;
}

.admin-page .fulfillment-board {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}

.admin-page .fulfillment-lane {
  gap: 18px;
  min-height: 276px;
  border: 0;
  border-radius: 28px;
  background: var(--admin-card-white);
  box-shadow: none;
  padding: 24px;
}

.admin-page .fulfillment-lane::before {
  content: none;
}

.admin-page .fulfillment-lane__head {
  min-height: auto;
  border: 0;
  padding: 0;
}

.admin-page .fulfillment-lane__head strong {
  color: #4b5563;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 300;
}

.admin-page .fulfillment-lane__head span {
  min-width: auto;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--admin-text-muted);
  font-size: 18px;
  font-weight: 400;
}

.admin-page .fulfillment-item {
  gap: 12px;
  border: 0;
  border-radius: 18px;
  background: var(--admin-card-soft);
  box-shadow: none;
  padding: 16px;
}

.admin-page .fulfillment-item:hover {
  transform: none;
  background: var(--admin-card-hover);
  box-shadow: none;
}

.admin-page .fulfillment-item strong {
  color: #111827;
  font-size: 17px;
  font-weight: 500;
}

.admin-page .fulfillment-item small,
.admin-page .fulfillment-item > span,
.admin-page .fulfillment-code-preview em {
  color: var(--admin-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.admin-page .fulfillment-code-preview code,
.admin-page .fulfillment-code-preview em {
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
  color: #4b5563;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
}

.admin-page .fulfillment-item .compact-btn {
  width: 100%;
  min-height: 44px;
}

.admin-page .fulfillment-empty {
  min-height: 150px;
  border: 0;
  border-radius: 18px;
  background: var(--admin-card-soft);
  color: var(--admin-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.admin-page .table-scroll {
  border: 0;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: none;
  padding: 8px;
}

.admin-page .admin-table {
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.admin-page .admin-table th {
  border: 0;
  background: #ffffff;
  color: var(--admin-text-muted);
  padding: 16px 14px;
  font-size: 13px;
  font-weight: 500;
}

.admin-page .admin-table td {
  border-top: 8px solid #ffffff;
  border-bottom: 0;
  background: var(--admin-card-soft);
  color: #4b5563;
  padding: 16px 14px;
  font-weight: 500;
}

.admin-page .admin-table td:first-child {
  border-radius: 18px 0 0 18px;
}

.admin-page .admin-table td:last-child {
  border-radius: 0 18px 18px 0;
}

.admin-page .admin-table tbody tr:hover {
  background: transparent;
}

.admin-page .admin-table tbody tr:hover td {
  background: var(--admin-card-hover);
}

.admin-page .admin-table code,
.admin-page .admin-card-codes code {
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #4b5563;
  padding: 8px 10px;
  font-weight: 500;
}

.admin-page .status-pill {
  border: 0;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: none;
  color: #4b5563;
  min-height: 28px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
}

.admin-page .status-paid,
.admin-page .status-delivered {
  background: #ecfdf5;
  color: #047857;
}

.admin-page .status-closed {
  background: #f3f4f6;
  color: #6b7280;
}

.admin-detail-drawer {
  background: rgba(17, 24, 39, 0.18);
  backdrop-filter: blur(8px);
}

.admin-detail-panel {
  width: min(480px, 100%);
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: -30px 0 90px rgba(37, 55, 78, 0.16);
  padding: 22px;
}

.admin-detail-head span {
  border: 0;
  border-radius: 9999px;
  background: #f8fafc;
  color: #4b5563;
  font-weight: 500;
}

.admin-detail-head strong {
  color: #111827;
  font-size: 24px;
  font-weight: 300;
}

.admin-detail-head small,
.admin-detail-row span {
  color: var(--admin-text-muted);
  font-weight: 500;
}

.admin-detail-row b {
  color: #111827;
  font-weight: 500;
}

.admin-page .admin-note {
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 1180px) {
  .admin-page {
    --admin-content-left: 196px;
    --admin-content-right: 22px;
    --admin-sidebar-left: 22px;
    --admin-sidebar-width: 142px;
  }

  .admin-page .product-admin-grid,
  .admin-page .stock-workbench,
  .admin-page .admin-stats,
  .admin-page .fulfillment-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .stock-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-page .topbar,
  .admin-page .admin-layout {
    margin-left: auto;
    margin-right: auto;
  }

  .admin-page .admin-table-panel {
    padding: 22px;
  }

  .admin-page .product-admin-grid,
  .admin-page .stock-workbench,
  .admin-page .stock-state,
  .admin-page .admin-stats,
  .admin-page .fulfillment-board,
  .admin-page .product-row,
  .admin-page .inventory-product-list article {
    grid-template-columns: 1fr;
  }

  .admin-page .product-row--head {
    display: none;
  }
}

/* Admin density audit fixes: stop wide data pages from squeezing content. */
.admin-page [data-admin-view="orders"] .table-scroll {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.admin-page .order-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-page .order-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 2px solid var(--admin-black);
  border-radius: 9999px;
  padding: 0 14px 0 16px;
  color: var(--admin-black);
  background: transparent;
}

.admin-page .order-filter span {
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.admin-page .order-filter select {
  min-width: 136px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.admin-page .order-filter select:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.18);
  outline-offset: 3px;
}

.admin-page [data-admin-view="orders"] .admin-table {
  display: block;
  min-width: 0;
  width: 100%;
}

.admin-page [data-admin-view="orders"] .admin-table thead {
  display: none;
}

.admin-page [data-admin-view="orders"] .admin-table tbody {
  display: grid;
  gap: 14px;
}

.admin-page [data-admin-view="orders"] .admin-table tr {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.45fr) minmax(100px, 0.55fr) minmax(110px, 0.6fr);
  grid-template-areas:
    "id type amount status"
    "contact type created expire"
    "paid redeem card card"
    "actions actions actions actions";
  gap: 16px;
  align-items: start;
  border-radius: 28px;
  background: var(--admin-card-soft);
  padding: 20px;
  overflow: hidden;
}

.admin-page [data-admin-view="orders"] .admin-table tr.admin-empty-row {
  display: block;
}

.admin-page [data-admin-view="orders"] .admin-table tr.admin-empty-row td {
  min-height: 120px;
  place-items: center;
  color: var(--admin-text-muted);
  text-align: center;
}

.admin-page [data-admin-view="orders"] .admin-table tr.admin-empty-row td::before {
  content: none;
}

.admin-page [data-admin-view="orders"] .admin-table td {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: #4b5563;
  overflow-wrap: anywhere;
}

.admin-page [data-admin-view="orders"] .admin-table td::before {
  color: var(--admin-text-muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(1) {
  grid-area: id;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(1)::before {
  content: "订单号";
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(2) {
  grid-area: type;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(2)::before {
  content: "商品";
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(3) {
  grid-area: amount;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(3)::before {
  content: "金额";
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(4) {
  grid-area: status;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(4)::before {
  content: "状态";
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(5) {
  grid-area: contact;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(5)::before {
  content: "联系方式";
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(6) {
  grid-area: created;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(6)::before {
  content: "创建";
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(7) {
  grid-area: expire;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(7)::before {
  content: "过期";
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(8) {
  grid-area: paid;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(8)::before {
  content: "支付";
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(9) {
  grid-area: redeem;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(9)::before {
  content: "核销";
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(10) {
  grid-area: card;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(10)::before {
  content: "卡密";
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(11) {
  grid-area: actions;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(11)::before {
  content: "操作";
}

.admin-page [data-admin-view="orders"] .admin-table code,
.admin-page [data-admin-view="orders"] .admin-card-codes code {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-page [data-admin-view="orders"] .admin-order-items {
  gap: 6px;
}

.admin-page [data-admin-view="orders"] .admin-order-items strong {
  font-size: 18px;
  line-height: 1.25;
}

.admin-page [data-admin-view="orders"] .status-pill {
  width: fit-content;
}

.admin-page [data-admin-view="orders"] .admin-inline-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 10px;
}

.admin-page [data-admin-view="orders"] .admin-inline-actions .compact-btn {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(10),
.admin-page [data-admin-view="orders"] .admin-table td:nth-child(11) {
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
}

.admin-page .topbar .nav {
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.admin-page .topbar .nav a,
.admin-page .topbar .nav button {
  min-width: 82px;
  white-space: nowrap;
}

.admin-page .admin-view {
  min-width: 0;
}

.admin-page .admin-table-panel,
.admin-page .admin-stats article,
.admin-page .admin-series-block,
.admin-page .product-row,
.admin-page .stock-workbench,
.admin-page .stock-actions-grid,
.admin-page .fulfillment-lane {
  min-width: 0;
}

@media (max-width: 1360px) {
  .admin-page [data-admin-view="orders"] .admin-table tr {
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.45fr) minmax(110px, 0.65fr);
    grid-template-areas:
      "id type status"
      "amount type contact"
      "created expire paid"
      "redeem card card"
      "actions actions actions";
  }
}

@media (max-width: 980px) {
  .admin-page [data-admin-view="orders"] .admin-table tr {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "type type"
      "id status"
      "amount contact"
      "created expire"
      "paid redeem"
      "card card"
      "actions actions";
  }

  .admin-page [data-admin-view="orders"] .admin-inline-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-page [data-admin-view="orders"] .admin-table tr {
    grid-template-columns: 1fr;
    grid-template-areas:
      "type"
      "id"
      "amount"
      "status"
      "contact"
      "created"
      "expire"
      "paid"
      "redeem"
      "card"
      "actions";
  }

  .admin-page [data-admin-view="orders"] .admin-inline-actions {
    grid-template-columns: 1fr;
  }
}

/* Adaptive admin grids: content should wrap by available space, not by fixed viewport guesses. */
.admin-page .admin-stats,
.admin-page .product-admin-grid,
.admin-page .stock-workbench,
.admin-page .stock-state,
.admin-page .fulfillment-board {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.admin-page .stock-actions-grid {
  grid-template-columns: minmax(min(100%, 220px), 260px) minmax(min(100%, 280px), 1fr) minmax(min(100%, 160px), 190px);
}

.admin-page .inventory-product-list article {
  grid-template-columns: minmax(min(100%, 260px), 1fr) repeat(2, minmax(90px, auto));
}

.admin-page [data-admin-view="orders"] .admin-table tr {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr));
  grid-template-areas: none;
}

.admin-page [data-admin-view="orders"] .admin-table td {
  grid-area: auto;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(2) {
  grid-column: span 2;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(10),
.admin-page [data-admin-view="orders"] .admin-table td:nth-child(11) {
  grid-column: 1 / -1;
}

.admin-page [data-admin-view="orders"] .admin-inline-actions {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr));
}

@media (max-width: 720px) {
  .admin-page .stock-actions-grid,
  .admin-page .inventory-product-list article,
  .admin-page [data-admin-view="orders"] .admin-table td:nth-child(2) {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}

/* Final order-card layout: flexible rows, no named grid areas, no horizontal squeeze. */
.admin-page [data-admin-view="orders"] .admin-table tr {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

.admin-page [data-admin-view="orders"] .admin-table td,
.admin-page [data-admin-view="orders"] .admin-table td:nth-child(n) {
  grid-area: auto !important;
  grid-column: auto !important;
  flex: 1 1 170px;
  min-width: 0;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(1) {
  flex-basis: 220px;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(2) {
  flex: 2 1 320px;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(5) {
  flex-basis: 220px;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(10),
.admin-page [data-admin-view="orders"] .admin-table td:nth-child(11) {
  flex: 1 1 100%;
}

.admin-page [data-admin-view="orders"] .admin-table td:nth-child(11) {
  order: 99;
}

.admin-page [data-admin-view="orders"] .admin-inline-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}

.admin-page [data-admin-view="orders"] .admin-inline-actions .compact-btn {
  min-height: 48px;
}

.admin-page [data-admin-view="service-tasks"] .fulfillment-board {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 16px;
}

.admin-page [data-admin-view="service-tasks"] .fulfillment-lane {
  min-width: 0;
  min-height: 360px;
}

.admin-page [data-admin-view="service-tasks"] .service-task-item {
  align-content: start;
}

.admin-page [data-admin-view="service-tasks"] .service-task-item strong,
.admin-page [data-admin-view="service-tasks"] .service-task-item small,
.admin-page [data-admin-view="service-tasks"] .service-task-item > span,
.admin-page [data-admin-view="service-tasks"] .service-task-item em {
  overflow-wrap: anywhere;
}

.admin-page [data-admin-view="service-tasks"] .fulfillment-code-preview {
  display: flex;
  flex-wrap: wrap;
}

.admin-page [data-admin-view="service-tasks"] .fulfillment-code-preview em {
  max-width: 100%;
}

.admin-page [data-admin-view="service-tasks"] .service-task-item .compact-btn + .compact-btn {
  margin-top: -4px;
}

@media (max-width: 1320px) {
  .admin-page [data-admin-view="service-tasks"] .fulfillment-board {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-page [data-admin-view="service-tasks"] .fulfillment-board {
    grid-template-columns: 1fr;
  }
}

.admin-page .compact-select {
  min-height: 34px;
  max-width: 150px;
  border: 1px solid rgba(191, 219, 254, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(30, 41, 59, 0.72);
  font-size: 12px;
  font-weight: 650;
}

.admin-page .staff-directory-admin,
.admin-page .staff-admin-list {
  display: grid;
  gap: 14px;
}

.admin-page .staff-admin-list {
  margin-top: 12px;
}

.admin-page .staff-admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(239, 246, 255, 0.42)),
    rgba(255, 255, 255, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    var(--admin-soft-shadow);
}

.admin-page .staff-admin-row strong {
  display: block;
  color: rgba(30, 41, 59, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.admin-page .staff-admin-row small,
.admin-page .staff-admin-row > span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 620;
}

.staff-page {
  min-height: 100vh;
  color: rgba(30, 41, 59, 0.82);
  background:
    radial-gradient(circle at 14% 0%, rgba(96, 165, 250, 0.18), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(125, 211, 252, 0.2), transparent 28%),
    radial-gradient(circle at 48% 106%, rgba(34, 197, 94, 0.08), transparent 34%),
    linear-gradient(180deg, #f8fcff 0%, #edf8ff 48%, #f8fbff 100%);
}

.staff-shell {
  width: min(1120px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.staff-login,
.staff-hero,
.staff-lane,
.staff-task-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(239, 246, 255, 0.48)),
    rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 22px 70px rgba(38, 80, 130, 0.11);
  backdrop-filter: blur(24px) saturate(1.18);
}

.staff-login {
  width: min(440px, 100%);
  margin: 12vh auto 0;
  padding: 28px;
  border-radius: 10px;
}

.staff-logo {
  width: fit-content;
  margin-bottom: 18px;
  color: rgba(37, 99, 235, 0.82);
  font-size: 14px;
  font-weight: 760;
}

.staff-login h1,
.staff-hero h1 {
  margin: 0;
  color: rgba(30, 41, 59, 0.78);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 760;
  letter-spacing: 0;
}

.staff-login-form,
.staff-task-list {
  display: grid;
  gap: 14px;
}

.staff-login-form {
  margin-top: 22px;
}

.staff-task-list {
  margin-top: 12px;
}

.staff-page .field span,
.staff-hero span,
.staff-hero p,
.staff-task-card small,
.staff-task-meta,
.staff-task-code span {
  color: rgba(71, 85, 105, 0.62);
  font-size: 13px;
  font-weight: 630;
  letter-spacing: 0;
}

.staff-page .field input {
  min-height: 46px;
  border: 1px solid rgba(191, 219, 254, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.58)),
    rgba(255, 255, 255, 0.72);
  color: rgba(30, 41, 59, 0.78);
}

.staff-page .primary,
.staff-page .secondary {
  min-height: 42px;
  border: 1px solid rgba(147, 197, 253, 0.52);
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 740;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.staff-page .primary {
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.96), rgba(37, 99, 235, 0.86)),
    #3b82f6;
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(96, 165, 250, 0.18);
}

.staff-page .secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.62)),
    rgba(255, 255, 255, 0.7);
  color: rgba(51, 65, 85, 0.74);
}

.staff-page .primary:hover,
.staff-page .secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(38, 80, 130, 0.13);
}

.staff-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 156px;
  padding: 24px;
  border-radius: 10px;
}

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

.staff-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.staff-lane {
  min-height: 420px;
  border-radius: 10px;
  padding: 14px;
}

.staff-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(191, 219, 254, 0.28);
}

.staff-lane-head strong {
  color: rgba(30, 41, 59, 0.78);
  font-size: 15px;
  font-weight: 720;
}

.staff-lane-head span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.72);
  color: rgba(29, 78, 216, 0.82);
  font-size: 12px;
  font-weight: 760;
}

.staff-task-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 30px rgba(38, 80, 130, 0.075);
}

.staff-task-main strong {
  display: block;
  color: rgba(30, 41, 59, 0.78);
  font-size: 15px;
  font-weight: 720;
}

.staff-task-meta,
.staff-task-code {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.staff-task-meta span:first-child {
  color: rgba(22, 163, 74, 0.82);
  font-weight: 760;
}

.staff-task-code code {
  overflow-wrap: anywhere;
  border: 1px solid rgba(191, 219, 254, 0.46);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px 9px;
  color: rgba(30, 41, 59, 0.72);
  font-size: 12px;
}

.staff-task-redeem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.staff-task-redeem input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0 14px;
  color: #1f2937;
}

.staff-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(147, 197, 253, 0.46);
  border-radius: 8px;
  color: rgba(71, 85, 105, 0.54);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

@media (max-width: 980px) {
  .staff-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-lane {
    min-height: 0;
  }

  .admin-page .staff-admin-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .staff-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .staff-hero-actions button {
    flex: 1;
  }

  .staff-task-redeem {
    grid-template-columns: 1fr;
  }
}
