:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #dbe1ea;
  --brand: #126b58;
  --brand-dark: #0d4f42;
  --danger: #b42318;
  --danger-soft: #fff7ed;
  --danger-line: #fed7aa;
  --focus-ring: rgba(15, 118, 110, 0.28);
  --import-denomination-blue: #dbeafe;
  --import-denomination-blue-accent: #3b82f6;
  --import-denomination-orange: #ffedd5;
  --import-denomination-orange-accent: #f97316;
  --import-denomination-green: #d1fae5;
  --import-denomination-green-accent: #10b981;
  --import-denomination-violet: #ede9fe;
  --import-denomination-violet-accent: #8b5cf6;
  --import-denomination-rose: #ffe4e6;
  --import-denomination-rose-accent: #f43f5e;
  --import-denomination-divider: #94a3b8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans TC", Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

body.maintenance-page {
  background: #071916;
  color: #edf8f4;
}

a {
  color: var(--brand);
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: #10231f;
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
}

.brand {
  color: white;
  font-size: 22px;
  font-weight: 700;
}

.brand-logo {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
}

.brand-logo img {
  display: block;
  height: clamp(30px, 3vw, 40px);
  max-width: min(230px, 54vw);
  object-fit: contain;
  object-position: left center;
  width: auto;
}

nav {
  align-items: center;
  display: flex;
  gap: 16px;
}

nav a,
nav button {
  color: white;
}

.member-nav-name {
  color: #dbeafe;
  font-weight: 700;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.cart-nav-link {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  position: relative;
  transition: background .16s ease, transform .16s ease;
  width: 44px;
}

.cart-nav-link:hover {
  background: rgba(255, 255, 255, .12);
}

.cart-nav-link.cart-bump {
  transform: scale(1.12);
}

.cart-nav-icon {
  border: 2px solid currentColor;
  border-radius: 3px;
  display: inline-block;
  height: 15px;
  position: relative;
  width: 18px;
}

.cart-nav-icon::before {
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  content: "";
  height: 9px;
  left: -7px;
  position: absolute;
  top: -7px;
  transform: skewX(-18deg);
  width: 8px;
}

.cart-nav-icon::after {
  background: currentColor;
  border-radius: 999px;
  box-shadow: 13px 0 0 currentColor;
  content: "";
  height: 4px;
  left: 1px;
  position: absolute;
  top: 18px;
  width: 4px;
}

.cart-count {
  align-items: center;
  background: #e11d48;
  border: 2px solid #10231f;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  line-height: 1;
  min-width: 20px;
  padding: 0 5px;
  position: absolute;
  right: -8px;
  top: -7px;
}

.cart-count[hidden] {
  display: none;
}

.cart-fly-item {
  background: var(--brand);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 2px solid white;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .2);
  color: white;
  font-weight: 800;
  height: 48px;
  pointer-events: none;
  position: fixed;
  transition: transform .58s cubic-bezier(.2, .8, .2, 1), opacity .58s ease;
  width: 48px;
  z-index: 2000;
}

.cart-feedback {
  align-items: center;
  background: #10231f;
  border: 1px solid rgba(219, 225, 234, .18);
  border-radius: 14px;
  bottom: 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .28);
  color: #f8fafc;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  left: 50%;
  max-width: min(520px, calc(100vw - 28px));
  opacity: 0;
  padding: 12px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 18px);
  transition: opacity .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
  width: 100%;
  z-index: 2200;
}

.cart-feedback.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cart-feedback-mark {
  align-items: center;
  background: #14b8a6;
  border-radius: 999px;
  color: #ecfeff;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.cart-feedback-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cart-feedback-copy strong,
.cart-feedback-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-feedback-copy strong {
  font-size: 15px;
}

.cart-feedback-copy span {
  color: #cbd5e1;
  font-size: 13px;
}

.cart-feedback-action {
  background: #f59e0b;
  border-radius: 9px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 10px;
  white-space: nowrap;
}

.cart-feedback-action:hover {
  background: #fbbf24;
  color: #111827;
}

.dashboard-page .topbar {
  align-items: center;
  background: rgba(7, 4, 15, .88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 16px 44px rgba(7, 4, 15, .2);
  gap: 22px;
  min-height: 72px;
  padding: 12px 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.dashboard-page .brand-logo img {
  filter: drop-shadow(0 0 18px rgba(6, 182, 212, .18));
  height: clamp(32px, 3vw, 42px);
}

.dashboard-page .topbar nav {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: flex-end;
  min-width: 0;
  padding: 8px 10px;
}

.dashboard-page .topbar nav form {
  display: contents;
}

.dashboard-page .topbar nav a,
.dashboard-page .topbar nav button,
.dashboard-page .member-nav-name {
  border-radius: 10px;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  padding: 8px 10px;
  transition:
    background-color 220ms cubic-bezier(.16, 1, .3, 1),
    color 220ms cubic-bezier(.16, 1, .3, 1),
    transform 220ms cubic-bezier(.16, 1, .3, 1);
}

.dashboard-page .topbar nav a:hover,
.dashboard-page .topbar nav button:hover,
.dashboard-page .topbar nav a:focus-visible,
.dashboard-page .topbar nav button:focus-visible {
  background: rgba(255, 255, 255, .075);
  color: #f7fbff;
  transform: translateY(-1px);
}

.dashboard-page .topbar nav a:focus-visible,
.dashboard-page .topbar nav button:focus-visible {
  outline: 2px solid rgba(6, 182, 212, .68);
  outline-offset: 2px;
}

.dashboard-page .member-nav-name {
  background: rgba(6, 182, 212, .1);
  color: #67e8f9;
  max-width: 180px;
}

.dashboard-page.admin-page .topbar {
  align-items: flex-start;
}

.dashboard-page.admin-page .topbar nav {
  justify-content: flex-end;
}

.admin-menu-toggle {
  display: none;
}

.dashboard-page .topbar nav a.active,
.dashboard-page .topbar nav a[aria-current="page"] {
  background: rgba(255, 255, 255, .1);
  color: #f7fbff;
}

.admin-auth-page .topbar nav {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.referral-partners-page {
  color: var(--ink);
}

.referral-partners-page .section-heading {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.referral-partners-page h1,
.referral-partners-page strong,
.referral-partners-page th,
.referral-partners-page td,
.referral-partners-page label {
  color: var(--ink);
}

.referral-filter-bar {
  align-items: end;
  margin: 20px 0;
}

.referral-heading-actions {
  flex: 0 0 auto;
}

.referral-table-scroll {
  border: 1px solid var(--line);
  border-radius: 10px;
}

.referral-partners-table {
  min-width: 1180px;
}

.referral-partners-table tbody tr {
  transition: background-color 160ms ease;
}

.referral-partners-table tbody tr:hover {
  background: #f1f5f9;
}

.referral-partners-table code {
  color: #0f766e;
  font-weight: 800;
}

.partner-contact {
  max-width: 260px;
  overflow-wrap: anywhere;
}

.partner-contact span {
  display: block;
}

.partner-dialog {
  background: var(--panel);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .32);
  color: var(--ink);
  max-height: calc(100dvh - 32px);
  max-width: 760px;
  overflow: hidden;
  padding: 0;
  width: calc(100% - 32px);
}

.partner-dialog::backdrop {
  background: rgba(7, 4, 15, .72);
  backdrop-filter: blur(5px);
}

.partner-dialog form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
}

.partner-dialog-header,
.partner-dialog-footer {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  justify-content: space-between;
  padding: 18px 22px;
}

.partner-dialog-header {
  border-bottom: 1px solid var(--line);
}

.partner-dialog-header h2 {
  font-size: 22px;
  margin: 0;
}

.partner-dialog-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
}

.partner-dialog-footer {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

.partner-dialog-close[aria-label] {
  align-items: center;
  background: #e2e8f0;
  border: 0;
  border-radius: 8px;
  color: #334155;
  display: inline-flex;
  font-size: 24px;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.partner-dialog-close[aria-label]:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.partner-dialog :focus-visible,
.referral-partners-page :focus-visible {
  outline: 3px solid rgba(6, 182, 212, .32);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .referral-partners-page .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .referral-partners-page .section-heading > button {
    width: 100%;
  }

  .referral-heading-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .referral-heading-actions > * {
    justify-content: center;
    width: 100%;
  }

  .referral-filter-bar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .referral-filter-bar .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .partner-dialog {
    border-radius: 14px 14px 0 0;
    margin: auto 0 0;
    max-height: calc(100dvh - env(safe-area-inset-top) - 12px);
    max-width: none;
    width: 100%;
  }

  .partner-dialog form {
    max-height: calc(100dvh - env(safe-area-inset-top) - 12px);
  }

  .partner-dialog-body .form-grid {
    grid-template-columns: 1fr;
  }

  .partner-dialog-footer {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .partner-dialog-footer button {
    flex: 1 1 0;
  }
}

main {
  margin: 0 auto;
  max-width: 1500px;
  padding: 32px 20px 56px;
}

.admin-page main {
  max-width: min(1840px, calc(100vw - 32px));
}

.hero {
  align-items: center;
  background: #e9f3ee;
  border: 1px solid #cfe3db;
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr .8fr;
  margin-bottom: 28px;
  overflow: hidden;
  padding: 34px;
}

.hero h1 {
  font-size: 38px;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.hero p,
.muted {
  color: var(--muted);
}

.hero > img {
  display: block;
  max-height: 220px;
  margin-left: auto;
  width: min(100%, 360px);
}

.home-brand-hero {
  background: #07110f;
  border: 1px solid rgba(22, 242, 244, .18);
  border-radius: 18px;
  color: #edf7f4;
  display: block;
  margin: 6px auto 36px;
  min-height: clamp(360px, 48vw, 620px);
  padding: 0;
  position: relative;
  isolation: isolate;
}

.home-hero-bg {
  background:
    linear-gradient(90deg, rgba(5, 13, 18, .88) 0%, rgba(5, 13, 18, .55) 38%, rgba(5, 13, 18, .24) 64%, rgba(5, 13, 18, .68) 100%),
    linear-gradient(180deg, rgba(4, 7, 15, .15) 0%, rgba(4, 7, 15, .74) 100%),
    url("/assets/hurryup-hero-banner.png") center / cover no-repeat;
  inset: 0;
  position: absolute;
  z-index: -2;
}

.home-brand-hero::before {
  background:
    radial-gradient(circle at 28% 56%, rgba(7, 232, 242, .24), transparent 34%),
    radial-gradient(circle at 72% 58%, rgba(255, 153, 0, .24), transparent 30%);
  content: "";
  inset: 0;
  opacity: .85;
  position: absolute;
  z-index: -1;
}

.home-brand-hero::after {
  background-image:
    linear-gradient(rgba(12, 221, 224, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 221, 224, .08) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  opacity: .35;
  position: absolute;
  z-index: -1;
}

.home-hero-content {
  align-items: center;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(280px, 720px);
  min-height: inherit;
  padding: clamp(28px, 5vw, 70px);
}

.home-hero-logo {
  display: block;
  filter: drop-shadow(0 28px 52px rgba(0, 0, 0, .42));
  max-width: min(820px, 100%);
  width: 100%;
}

.home-hero-copy {
  border: 1px solid rgba(198, 247, 243, .2);
  border-radius: 16px;
  background: rgba(5, 17, 17, .74);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
  padding: clamp(22px, 3vw, 36px);
}

.home-hero-kicker {
  color: #7df7f2;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 14px;
}

.home-hero-copy h1 {
  color: #f1fbf8;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.05;
  margin: 0 0 16px;
}

.home-hero-copy p {
  color: #c8dfdc;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.8;
  margin: 0;
}

.home-hero-points {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.home-hero-points li {
  align-items: start;
  color: #e2f6f1;
  display: grid;
  font-size: 15px;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.65;
}

.home-hero-points li::before {
  background: linear-gradient(135deg, #12e4e4, #ff9c17);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(18, 228, 228, .42);
  content: "";
  height: 8px;
  margin-top: .58em;
  width: 8px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-primary-action {
  background: #0ed9d8;
  color: #06110f;
  font-weight: 800;
  padding: 13px 20px;
}

.home-primary-action:hover {
  background: #57f4ef;
  color: #06110f;
}

.home-secondary-action.button.secondary {
  background: rgba(255, 153, 0, .14);
  border: 1px solid rgba(255, 172, 44, .58);
  color: #ffd084;
  font-weight: 800;
  padding: 12px 19px;
}

.home-secondary-action.button.secondary:hover {
  background: rgba(255, 153, 0, .24);
  color: #fff1d1;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.card {
  position: relative;
}

.card.featured {
  background: linear-gradient(180deg, #fffdf4 0, #ffffff 46%);
  border-color: #e7a917;
  box-shadow: 0 14px 28px rgba(176, 126, 0, .18);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}

.badge {
  background: #e11d48;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
}

.badge.warning {
  background: #b45309;
}

.badge.featured-badge {
  background: #f0b429;
  color: #1f2937;
}

.card img {
  background: #eef5f2;
  border-radius: 8px;
  display: block;
  height: 150px;
  margin-bottom: 14px;
  object-fit: contain;
  width: 100%;
}

.price {
  font-size: 26px;
  font-weight: 700;
  margin: 10px 0;
}

.price-line {
  align-items: baseline;
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.price-line .price {
  color: #b42318;
  margin: 0;
}

.list-price {
  color: var(--muted);
  text-decoration: line-through;
}

.promo {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  color: #be123c;
  font-weight: 700;
  padding: 8px 10px;
}

.product-image-link {
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

button,
.button {
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  padding: 10px 14px;
}

button:hover,
.button:hover {
  background: var(--brand-dark);
  color: white;
}

button:focus-visible,
.button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 42%, white);
  outline-offset: 3px;
}

button.secondary,
.button.secondary {
  background: #e2e8f0;
  color: var(--ink);
}

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

button.danger:hover,
.button.danger:hover {
  background: #8f1d14;
}

.small-action {
  padding: 8px 10px;
  white-space: nowrap;
}

.row-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
}

[data-coupon-toggle] button {
  min-width: 58px;
}

[data-coupon-toggle][aria-busy="true"] button,
[data-coupon-edit-form][aria-busy="true"],
.partner-toggle[aria-busy="true"] {
  cursor: wait;
  pointer-events: none;
}

.partner-toggle {
  min-width: 58px;
}

[data-stable-submit][aria-busy="true"],
[data-async-submit][aria-busy="true"],
[aria-busy="true"].toggle-status-btn {
  cursor: wait;
  pointer-events: none;
}

[data-account-field][aria-busy="true"] {
  cursor: wait;
  pointer-events: none;
}

[data-account-unlock][aria-busy="true"],
[data-admin-unlock][aria-busy="true"] {
  cursor: wait;
  pointer-events: none;
}

#partner-form[aria-busy="true"] {
  cursor: wait;
  pointer-events: none;
}

.actions-cell {
  text-align: right;
  width: 132px;
}

.admin-order-actions {
  align-items: stretch;
  display: grid;
  gap: 7px;
  justify-content: end;
  min-width: 112px;
}

.admin-order-actions form {
  display: grid;
  gap: 5px;
  margin: 0;
}

.admin-order-actions input {
  box-sizing: border-box;
  min-height: 36px;
  min-width: 0;
  width: 160px;
}

.admin-order-actions button,
.admin-order-actions .button {
  border-radius: 7px;
  min-height: 36px;
  padding: 8px 12px;
  width: 100%;
}

.admin-order-actions button.secondary {
  background: #edf2f7;
  color: #334155;
}

.admin-order-actions button.secondary:hover {
  background: #dbe4ef;
}

.support-compose textarea {
  min-height: 120px;
}

.support-ticket-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.support-ticket {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 300px;
  padding: 20px;
}

.support-ticket-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.support-ticket-head h2 {
  font-size: 22px;
  margin: 6px 0 0;
}

.support-ticket-badges {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  margin-top: 12px;
}

.support-notes {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
}

.support-notes li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px;
}

.support-notes p {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.support-ticket-actions {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 14px;
}

.support-ticket-actions textarea {
  min-height: 92px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  font: inherit;
  margin-top: 6px;
  padding: 10px 12px;
  width: 100%;
}

input:disabled,
input[readonly],
select:disabled,
textarea:disabled,
textarea[readonly] {
  background: #f3f6fa;
  color: var(--muted);
  cursor: not-allowed;
}

.email-template-preview {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.email-template-preview h3 {
  margin: 0 0 8px;
}

.email-preview-subject {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin: 14px 0;
  padding: 12px 14px;
}

.email-preview-subject span {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.email-preview-subject strong {
  word-break: break-word;
}

.email-preview-frame {
  background: #11131a;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
  min-height: 720px;
  width: 100%;
}

.email-preview-text {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.mfa-setup-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  margin: 20px 0;
}

.security-admin-selector {
  align-items: end;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) auto;
  margin-bottom: 18px;
  padding: 14px;
}

.security-admin-selector label {
  font-weight: 700;
  min-width: 0;
}

.security-admin-selector button {
  min-height: 44px;
  white-space: nowrap;
}

.compact-notice {
  margin: 0;
}

.mfa-secret-card {
  background: #0f241f;
  border: 1px solid rgba(18, 107, 88, .35);
  border-radius: 12px;
  color: #ecfdf5;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.mfa-qr-card {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid rgba(125, 211, 252, .35);
  border-radius: 12px;
  color: #10231f;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px;
  text-align: center;
}

.mfa-qr-card img {
  aspect-ratio: 1;
  background: #f8fafc;
  border: 1px solid rgba(15, 36, 31, .12);
  border-radius: 8px;
  display: block;
  max-width: 240px;
  padding: 10px;
  width: min(100%, 240px);
}

.mfa-qr-card p {
  color: #315047;
  line-height: 1.6;
  margin: 0;
}

.mfa-secret-card code {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: #7dd3fc;
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
  padding: 12px;
}

.mfa-secret-card textarea {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: #d1fae5;
  font-size: 13px;
}

.mfa-steps {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}

.mfa-steps h2 {
  margin-top: 0;
}

.mfa-steps ol {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
  padding-left: 22px;
}

.mfa-form {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.stack {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.coupon-create-panel {
  display: grid;
  gap: 18px;
}

.coupon-create-form {
  display: grid;
  gap: 18px;
}

.coupon-form-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.coupon-form-group {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
}

.coupon-form-group legend {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  padding: 0 6px;
}

.coupon-form-group .form-grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.coupon-form-primary,
.coupon-form-limits {
  grid-column: span 5;
}

.coupon-form-discount,
.coupon-form-period {
  grid-column: span 7;
}

.coupon-form-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-top: 16px;
}

.coupon-form-toggle {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
  margin: 0;
  padding: 12px 14px;
}

.coupon-form-footer button {
  min-width: 170px;
  width: auto;
}

.register-panel {
  max-width: 680px;
}

.register-form {
  gap: 18px;
}

.register-form label {
  display: block;
}

.register-form button {
  width: 100%;
}

.phone-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, .45fr) 1fr;
}

.coupon-row {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 6px;
}

.coupon-row input {
  margin-top: 0;
  text-transform: uppercase;
}

.coupon-row button {
  min-width: 88px;
  white-space: nowrap;
}

.phone-row input,
.phone-row select {
  margin-top: 6px;
}

.field-hint {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 6px;
}

.field-hint.error-text {
  color: var(--danger);
  font-weight: 700;
}

.field-hint.success-text {
  color: var(--brand);
  font-weight: 700;
}

.warning-text {
  color: #b45309;
}

.success-text {
  color: var(--brand);
}

.password-field {
  display: block;
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 52px;
}

.register-form .password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font: inherit;
  height: 36px;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 8px;
  top: calc(50% + 3px);
  transform: translateY(-50%);
  width: 36px;
}

.register-form .password-toggle:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.register-form .password-toggle::after {
  background: currentColor;
  content: "";
  height: 2px;
  left: 8px;
  position: absolute;
  top: 17px;
  transform: rotate(-35deg);
  width: 20px;
}

.register-form .password-toggle.is-visible::after {
  display: none;
}

.suggestion-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.suggestion-list button {
  background: white;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  display: block;
  justify-content: flex-start;
  padding: 9px 12px;
  text-align: left;
  width: 100%;
}

.suggestion-list button:hover {
  background: #e9f3ee;
  color: var(--ink);
}

.suggestion-list button:last-child {
  border-bottom: 0;
}

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

.section-heading > * {
  min-width: 0;
}

.section-heading h2 {
  margin: 0;
}

.section-heading h1,
.section-heading h2,
.section-heading p {
  overflow-wrap: anywhere;
}

.shop-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-controls label {
  color: var(--muted);
  font-size: 14px;
}

.shop-controls select {
  min-width: 150px;
}

.sort-input {
  max-width: 90px;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.check-row input {
  display: inline-block;
  margin: 0 6px 0 0;
  width: auto;
}

.maintenance-setting {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.switch-row {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr;
}

.switch-row input {
  height: 1px;
  margin: 0;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.switch-control {
  background: #cbd5e1;
  border-radius: 999px;
  display: inline-flex;
  height: 34px;
  position: relative;
  transition: background .18s ease;
  width: 62px;
}

.switch-control::after {
  background: #f8fafc;
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .22);
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  top: 4px;
  transition: transform .18s ease;
  width: 26px;
}

.switch-row input:checked + .switch-control {
  background: var(--danger);
}

.switch-row input:checked + .switch-control::after {
  transform: translateX(28px);
}

.switch-row input:focus-visible + .switch-control {
  outline: 3px solid rgba(18, 107, 88, .25);
  outline-offset: 3px;
}

.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row small {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}

.inline-check {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.inline-check input {
  display: inline-block;
  margin: 0;
  width: auto;
}

.captcha-row {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.captcha-row strong {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 24px;
  letter-spacing: 3px;
  min-width: 120px;
  padding: 8px 12px;
  text-align: center;
}

.product-form textarea {
  min-height: 110px;
}

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

.product-form {
  display: grid;
  gap: 18px;
}

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

.product-form-group {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
}

.product-form-group legend {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  padding: 0 6px;
}

.product-form-group .form-grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.product-form-basic,
.product-form-limits {
  grid-column: span 5;
}

.product-form-price,
.product-form-media {
  grid-column: span 7;
}

.product-form-copy {
  grid-column: 1 / -1;
}

.product-media-grid {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, .38fr) 1fr;
}

.product-form-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-top: 16px;
}

.product-form-toggle {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
  margin: 0;
  padding: 12px 14px;
}

.product-form-footer .actions {
  margin-top: 0;
}

.image-preview {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  gap: 14px;
  padding: 12px;
}

.image-preview img {
  background: #eef5f2;
  border-radius: 6px;
  height: 76px;
  object-fit: contain;
  width: 120px;
}

.row-index {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  width: 68px;
}

.product-table {
  min-width: 1280px;
  table-layout: fixed;
  width: 100%;
}

.product-col-index {
  width: 4%;
}

.product-col-sort {
  width: 8%;
}

.product-col-thumb {
  width: 9%;
}

.product-col-name {
  width: 20%;
}

.product-col-price {
  width: 8%;
}

.product-col-badge,
.product-col-status {
  width: 8%;
}

.product-col-stock {
  width: 6%;
}

.product-col-limit {
  width: 10%;
}

.product-col-actions {
  width: 11%;
}

.product-table .sort-input {
  width: 100px;
}

.product-table th,
.product-table td {
  text-align: center;
  vertical-align: middle;
}

.product-thumb-cell {
  width: 112px;
}

.product-thumb,
.product-thumb-placeholder {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  height: 64px;
  justify-content: center;
  margin: 0 auto;
  object-fit: contain;
  width: 96px;
}

.product-thumb-placeholder {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.checkout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 360px;
}

.checkout-page.checkout-pending main {
  visibility: hidden;
}

.checkout-steps {
  display: block;
  margin: 12px auto 36px;
  max-width: min(980px, 100%);
  padding: 4px 12px 0;
  width: 100%;
}

.checkout-steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.checkout-steps ol::before {
  background: linear-gradient(90deg, var(--brand) 0 16.666%, #cbd5df 16.666% 100%);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 16.666%;
  position: absolute;
  right: 16.666%;
  top: 21px;
  z-index: 0;
}

.checkout-steps li {
  align-items: center;
  color: var(--ink);
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
  position: relative;
  text-align: center;
}

.checkout-steps span {
  align-items: center;
  background: #cbd5df;
  border: 4px solid var(--bg);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
  color: #f8fafc;
  display: inline-flex;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  position: relative;
  width: 46px;
  z-index: 1;
}

.checkout-steps strong {
  color: #475569;
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  min-height: 24px;
  white-space: nowrap;
}

.checkout-steps li.active span {
  background: var(--brand);
  color: #f8fafc;
}

.checkout-steps li.active strong {
  color: var(--ink);
}

.checkout-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  font-size: 14px;
  line-height: 1.65;
  margin-top: 20px;
  padding: 14px 16px;
}

.checkout-warning h3 {
  color: #7c2d12;
  font-size: 18px;
  margin: 0 0 8px;
}

.checkout-warning ul {
  margin: 0;
  padding-left: 20px;
}

.checkout-warning li + li {
  margin-top: 6px;
}

.checkout-agreement {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  line-height: 1.5;
  padding: 12px 14px;
}

.checkout-agreement input {
  flex: 0 0 auto;
  margin-top: 3px;
  width: auto;
}

.checkout-agreement a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agreement-alert-text {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

.policy-highlight {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.app-modal-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.56);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1000;
}

.app-modal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  max-height: min(720px, calc(100vh - 48px));
  max-width: 760px;
  overflow: hidden;
  width: 100%;
}

.app-modal.order-detail-dialog {
  max-width: min(1560px, calc(100vw - 48px));
}

.app-modal-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 18px 20px;
}

.app-modal-header h2 {
  font-size: 22px;
  margin: 0;
}

.app-modal-close {
  align-items: center;
  background: #e2e8f0;
  color: var(--ink);
  display: inline-flex;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.app-modal-body {
  color: var(--muted);
  line-height: 1.7;
  max-height: 440px;
  overflow: auto;
  padding: 18px 20px;
}

.order-detail-dialog .app-modal-header {
  padding: 18px 32px;
}

.order-detail-dialog .app-modal-body {
  color: var(--ink);
  max-height: min(740px, calc(100vh - 180px));
  padding: 28px 32px;
}

.order-detail-dialog .app-modal-footer {
  padding: 16px 32px;
}

.app-modal-body ul,
.policy-list {
  margin: 0;
  padding-left: 20px;
}

.panel.auth h1 {
  overflow-wrap: anywhere;
  word-break: normal;
}

.app-modal-body li + li,
.policy-list li + li {
  margin-top: 10px;
}

.app-modal-footer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 20px;
}

.app-modal-footer button {
  width: auto;
}

.danger-confirm-dialog .app-modal-footer button:last-child {
  background: var(--danger);
}

.danger-confirm-dialog .app-modal-footer button:last-child:hover {
  background: #8f1d14;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll > table {
  max-width: none;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f8fafc;
}

.link-button {
  background: transparent;
  color: var(--brand);
  display: inline;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-align: left;
  width: auto;
}

.order-id-cell {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: max-content;
}

.copy-order-button {
  align-items: center;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f766e;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  position: relative;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  width: 30px;
}

.copy-order-button span,
.copy-order-button::after {
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
  height: 12px;
  position: absolute;
  width: 12px;
}

.copy-order-button span {
  transform: translate(2px, -2px);
}

.copy-order-button::after {
  opacity: .62;
  transform: translate(-3px, 3px);
}

.copy-order-button:hover {
  background: #ccfbf1;
  border-color: #14b8a6;
  transform: translateY(-1px);
}

.copy-order-button:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .28);
  outline-offset: 2px;
}

.copy-order-button.copied {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 14px;
}

.order-detail-modal {
  color: var(--ink);
  display: grid;
  gap: 18px;
}

.member-order-detail {
  gap: 22px;
}

#member-orders {
  min-height: calc(100vh - 96px);
  scroll-margin-top: 24px;
}

.member-order-detail .order-result-header,
.member-order-detail .order-summary-grid {
  margin-bottom: 0;
}

.member-order-detail .order-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-detail-section-title {
  margin-bottom: 12px;
}

.order-detail-section-title h3 {
  margin: 0;
}

.order-detail-modal h3 {
  font-size: 18px;
  margin: 0;
}

.detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.detail-grid div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

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

.detail-grid strong {
  overflow-wrap: anywhere;
}

.detail-table {
  min-width: 520px;
}

.product-detail {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr);
}

.product-detail-media {
  align-items: center;
  background: #eef6f3;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 320px;
  padding: 24px;
}

.product-detail-media img {
  max-height: 300px;
  object-fit: contain;
  width: min(100%, 420px);
}

.product-detail-content h1 {
  font-size: 36px;
  margin: 4px 0 12px;
}

.price-line.large .price {
  font-size: 34px;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.detail-list div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 120px 1fr;
  padding: 10px 0;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
}

.notice-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  line-height: 1.7;
  margin-top: 16px;
  padding: 12px 14px;
}

.security-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  min-width: 0;
}

.security-panel h2 {
  margin-bottom: 4px;
}

.compact-heading {
  align-items: flex-start;
  margin-bottom: 18px;
}

.compact-heading p {
  margin: 0;
}

.security-card {
  align-self: start;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.security-card h3 {
  font-size: 20px;
  margin: 0 0 4px;
}

.security-card p {
  margin: 0;
}

.security-form {
  align-content: start;
}

.security-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.security-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.security-actions button {
  min-height: 44px;
  width: auto;
}

.security-card .table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.security-message {
  border-radius: 8px;
  font-weight: 700;
  padding: 10px 12px;
}

.security-message:empty {
  display: none;
}

.security-message.error:not(:empty) {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.kyc-summary {
  display: grid;
  gap: 16px;
}

.kyc-status-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.kyc-status-grid > div,
.admin-kyc-grid > div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.kyc-status-grid span,
.admin-kyc-grid span {
  color: var(--muted);
  font-size: 13px;
}

.kyc-form {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}

.kyc-stepper {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.kyc-stepper div {
  align-items: center;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 8px;
  padding-bottom: 10px;
}

.kyc-stepper div.active {
  border-color: var(--brand);
  color: var(--ink);
}

.kyc-stepper span {
  align-items: center;
  background: #e2e8f0;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.kyc-stepper .active span {
  background: var(--brand);
  color: #fff;
}

.kyc-upload-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.kyc-upload-card {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  min-height: 160px;
  padding: 18px;
  place-items: center;
  text-align: center;
}

.kyc-upload-card.has-file {
  background: #ecfdf5;
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.kyc-upload-card input {
  max-width: 100%;
}

.kyc-upload-preview {
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  max-height: 170px;
  object-fit: contain;
  width: 100%;
}

.kyc-upload-card span {
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.app-modal.kyc-crop-dialog {
  max-width: min(920px, calc(100vw - 32px));
}

.kyc-crop-dialog .app-modal-body {
  color: var(--ink);
  max-height: min(720px, calc(100vh - 180px));
}

.kyc-cropper {
  display: grid;
  gap: 14px;
}

.kyc-crop-hint {
  color: var(--muted);
  margin: 0;
}

.kyc-crop-shell {
  background: #020617;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: grid;
  justify-items: center;
  overflow: auto;
  padding: 12px;
}

.kyc-crop-canvas {
  border-radius: 8px;
  display: block;
  max-width: 100%;
  touch-action: none;
}

.kyc-consent-content {
  display: grid;
  gap: 14px;
}

.kyc-consent-lead {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.75;
  margin: 0;
}

.kyc-consent-section {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.kyc-consent-section h3 {
  font-size: 16px;
  margin: 0;
}

.kyc-consent-content ul {
  margin: 0;
  padding-left: 20px;
}

.kyc-consent-content li {
  color: var(--muted);
  line-height: 1.7;
}

.kyc-consent-inline {
  margin-top: 4px;
}

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

.payment-methods legend {
  font-weight: 800;
  padding: 0 6px;
}

.payment-method-grid {
  display: grid;
  gap: 10px;
}

.payment-method-card {
  align-items: start;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 12px;
}

.payment-method-card:has(input:checked) {
  background: #ecfdf5;
  border-color: var(--brand);
}

.payment-method-card small {
  color: var(--muted);
  display: block;
  line-height: 1.5;
  margin-top: 4px;
}

.admin-kyc-page {
  display: grid;
  gap: 18px;
}

.admin-kyc-page > * {
  min-width: 0;
}

.admin-filter-bar {
  align-items: end;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(160px, .35fr) minmax(220px, 1fr) auto auto;
  padding: 14px;
}

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

.admin-kyc-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.admin-kyc-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.admin-kyc-card-head > * {
  min-width: 0;
}

.admin-kyc-card-head .muted {
  overflow-wrap: anywhere;
}

.admin-kyc-card h3 {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
}

.admin-kyc-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  min-width: 0;
}

.admin-kyc-files {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  min-width: 0;
}

.admin-kyc-file-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: 10px;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-kyc-file-card:hover {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.admin-kyc-file-card:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.35);
  outline-offset: 2px;
}

.admin-kyc-file-card img {
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  width: 100%;
}

.admin-kyc-file-card span {
  font-weight: 800;
}

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

.admin-kyc-file-card.is-empty {
  align-content: center;
  min-height: 190px;
  text-align: center;
}

.admin-kyc-actions {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-top: 14px;
}

.admin-kyc-review-form {
  display: grid;
  gap: 10px;
}

.admin-kyc-delete-form {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.admin-kyc-delete-form button {
  width: auto;
}

.cart-line {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 1fr) 150px 190px 120px 44px;
  padding: 16px 0;
}

.cart-product {
  display: grid;
  gap: 5px;
}

.cart-meta,
.cart-label {
  color: var(--muted);
  font-size: 13px;
}

.cart-unit,
.cart-qty,
.cart-subtotal {
  align-content: start;
  display: grid;
  gap: 6px;
}

.cart-unit .badge {
  justify-self: start;
  padding: 3px 8px;
}

.cart-unit .list-price {
  font-size: 13px;
}

.cart-qty input {
  appearance: textfield;
  border: 0;
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  border-radius: 0;
  height: 44px;
  margin-top: 0;
  max-width: none;
  padding: 0 10px;
  text-align: center;
  width: 82px;
}

.cart-qty input::-webkit-inner-spin-button,
.cart-qty input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.cart-quantity-control {
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  display: inline-grid;
  grid-template-columns: 44px 82px 44px;
  overflow: hidden;
  width: max-content;
}

.cart-qty-button,
.cart-remove {
  align-items: center;
  background: #fff;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.cart-qty-button {
  background: #f1f5f9;
  border-radius: 0;
  color: #0f172a;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.cart-quantity-control .cart-qty-button:not(:disabled):hover {
  background: #0f766e !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  color: #fff !important;
}

.cart-quantity-control:hover .cart-qty-button:not(:disabled):not(:hover):not(:focus-visible) {
  background: #f1f5f9 !important;
  box-shadow: none;
  color: #0f172a !important;
}

.cart-quantity-control .cart-qty-button:disabled {
  background: #e2e8f0;
  box-shadow: none;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 1;
}

.cart-quantity-control .cart-qty-button:focus-visible {
  background: #ccfbf1 !important;
  box-shadow: inset 0 0 0 2px #0f766e;
  color: #0f172a !important;
  outline: 3px solid rgba(20, 184, 166, .25);
  outline-offset: -3px;
}

.cart-remove:hover {
  background: #f8fafc;
}

.cart-remove {
  align-self: center;
  background: transparent;
  color: #7b8794;
}

.cart-remove:hover {
  color: var(--danger);
}

.cart-subtotal strong {
  font-size: 20px;
}

.cart-summary {
  display: grid;
  gap: 8px;
  justify-content: stretch;
  margin-top: 18px;
}

.cart-summary div {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  justify-self: end;
  min-width: 260px;
}

.cart-summary span,
.cart-summary p {
  color: var(--muted);
}

.cart-summary p {
  font-size: 13px;
  justify-self: end;
  margin: 0;
  max-width: 620px;
  text-align: left;
}

.cart-summary .price {
  margin: 0;
}

.cart-summary .coupon-discount {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #065f46;
  padding: 10px 12px;
}

.cart-summary .coupon-discount span,
.cart-summary .coupon-discount strong {
  color: #047857;
}

.cart-line:last-child {
  border-bottom: 0;
}

.panel {
  margin-bottom: 18px;
}

.panel-title-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-title-row h2 {
  margin: 0;
}

button.compact,
.button.compact {
  padding: 10px 14px;
  width: auto;
}

.panel.wide {
  max-width: none;
  overflow-x: auto;
}

.order-panel {
  min-height: 520px;
}

.auth {
  margin: 48px auto;
  max-width: 530px;
}

.metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.metric-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 16px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.metric.small {
  padding: 12px;
}

.metric.small strong {
  font-size: 24px;
}

.metric-link {
  color: var(--ink);
  display: block;
}

.metric-link:hover,
.metric-link.active {
  background: #e9f3ee;
  border-color: var(--brand);
  color: var(--ink);
}

.filter-bar {
  align-items: end;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) minmax(220px, 1.4fr) auto;
  margin-bottom: 16px;
  padding: 14px;
}

.code-bulk-toolbar {
  align-items: center;
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
  min-height: 58px;
  padding: 10px 14px;
}

.code-bulk-toolbar p {
  margin: 0;
}

.code-bulk-toolbar button {
  min-height: 44px;
  min-width: 132px;
}

.code-bulk-toolbar button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.code-bulk-toolbar button[aria-busy="true"] {
  cursor: wait;
  pointer-events: none;
}

.code-import-form[aria-busy="true"] {
  cursor: wait;
  pointer-events: none;
}

.code-import-source-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.code-import-source-grid > label {
  min-width: 0;
}

.code-import-or {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
  padding-top: 24px;
}

.code-import-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.code-import-actions button {
  min-height: 44px;
  min-width: 168px;
}

.code-import-preview:empty {
  display: none;
}

.code-import-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.code-import-preview-title {
  margin-bottom: 6px;
}

.code-import-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  margin-top: 14px;
}

.code-import-summary-item {
  appearance: none;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 3px;
  min-height: 70px;
  padding: 10px;
  text-align: left;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.code-import-summary-item:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.code-import-summary-item:focus-visible {
  outline: 3px solid rgb(15 118 110 / 25%);
  outline-offset: 2px;
}

.code-import-summary-item[data-state="active"] {
  background: #ecfdf5;
  border-color: #0f766e;
  box-shadow: inset 0 0 0 1px #0f766e;
}

.code-import-summary-item strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.code-import-summary-item span {
  color: var(--muted);
  font-size: 13px;
}

.code-import-summary-item[data-state="active"] span {
  color: #0f766e;
  font-weight: 700;
}

.code-import-preview-empty {
  color: var(--muted);
  padding: 24px 12px;
  text-align: center;
}

.code-import-mappings {
  margin-top: 16px;
}

.code-import-mappings h3 {
  margin: 0 0 4px;
}

.code-import-mappings > p {
  margin: 0 0 10px;
}

.code-import-mapping-table {
  min-width: 760px;
}

.code-import-mapping-table th,
.code-import-mapping-table td {
  vertical-align: middle;
}

.code-import-mapping-table select {
  min-width: 220px;
  width: 100%;
}

.code-import-source-name {
  max-width: 280px;
  overflow-wrap: anywhere;
}

.code-import-mapping-mode {
  background: #eef2f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.code-import-mapping-mode.auto,
.code-import-mapping-mode.default {
  background: #e8f7f1;
  border-color: #a6ddcb;
  color: #11634f;
}

.code-import-mapping-mode.manual {
  background: #eaf2ff;
  border-color: #b9cdf4;
  color: #244f91;
}

.code-import-mapping-mode.unresolved {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  color: var(--danger);
}

.code-import-errors {
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  border-radius: 8px;
  color: var(--danger);
  margin-top: 14px;
  padding: 12px 14px;
}

.code-import-errors h3,
.code-import-errors ul {
  margin: 0;
}

.code-import-errors ul {
  padding-left: 22px;
}

.code-import-message {
  margin: 0;
}

.code-import-message.ok {
  color: var(--brand);
}

.code-import-message.error {
  color: var(--danger);
}

.code-import-export-warning {
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  border-radius: 8px;
  color: var(--danger);
  font-weight: 700;
  margin: 14px 0 0;
  padding: 10px 12px;
}

.code-import-preview-table-wrap {
  margin-top: 14px;
}

.code-import-preview-table {
  min-width: 560px;
}

.code-import-preview-caption {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 0 0 10px;
  text-align: left;
}

.code-import-preview-table th,
.code-import-preview-table td {
  vertical-align: middle;
}

.code-import-preview-table tbody tr[data-denomination-tone="0"] td {
  background-color: var(--import-denomination-blue);
}

.code-import-preview-table tbody tr[data-denomination-tone="0"] td:first-child {
  box-shadow: inset 4px 0 var(--import-denomination-blue-accent);
}

.code-import-preview-table tbody tr[data-denomination-tone="1"] td {
  background-color: var(--import-denomination-orange);
}

.code-import-preview-table tbody tr[data-denomination-tone="1"] td:first-child {
  box-shadow: inset 4px 0 var(--import-denomination-orange-accent);
}

.code-import-preview-table tbody tr[data-denomination-tone="2"] td {
  background-color: var(--import-denomination-green);
}

.code-import-preview-table tbody tr[data-denomination-tone="2"] td:first-child {
  box-shadow: inset 4px 0 var(--import-denomination-green-accent);
}

.code-import-preview-table tbody tr[data-denomination-tone="3"] td {
  background-color: var(--import-denomination-violet);
}

.code-import-preview-table tbody tr[data-denomination-tone="3"] td:first-child {
  box-shadow: inset 4px 0 var(--import-denomination-violet-accent);
}

.code-import-preview-table tbody tr[data-denomination-tone="4"] td {
  background-color: var(--import-denomination-rose);
}

.code-import-preview-table tbody tr[data-denomination-tone="4"] td:first-child {
  box-shadow: inset 4px 0 var(--import-denomination-rose-accent);
}

.code-import-preview-table tbody tr[data-denomination-start="true"] td {
  border-top: 2px solid var(--import-denomination-divider);
}

.code-import-preview-table tbody tr[data-denomination-start="true"] td:first-child {
  font-weight: 700;
}

@media (max-width: 760px) {
  .code-import-source-grid {
    grid-template-columns: 1fr;
  }

  .code-import-or {
    padding-top: 0;
    text-align: center;
  }

  .code-import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .code-import-actions button {
    width: 100%;
  }
}

.codes-table {
  min-width: 1160px;
}

.code-select-cell {
  padding: 0;
  text-align: center;
  width: 44px;
}

.code-select-control {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.code-select-control:has(input:disabled) {
  cursor: not-allowed;
}

.code-select-control input {
  accent-color: var(--brand);
  cursor: pointer;
  height: 18px;
  margin: 0;
  vertical-align: middle;
  width: 18px;
}

.code-select-control input:disabled {
  cursor: not-allowed;
}

.code-select-control input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.account-filter-bar {
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 190px) minmax(150px, 190px) minmax(150px, 190px) auto;
}

.audit-filter-bar {
  grid-template-columns: minmax(180px, 320px) minmax(260px, 1fr) auto;
}

.audit-table {
  min-width: 1180px;
}

.audit-table th:nth-child(1),
.audit-table td:nth-child(1) {
  width: 150px;
}

.audit-table th:nth-child(2),
.audit-table td:nth-child(2) {
  width: 220px;
}

.audit-table th:nth-child(3),
.audit-table td:nth-child(3) {
  width: 210px;
}

.audit-table th:nth-child(4),
.audit-table td:nth-child(4) {
  width: 300px;
}

.audit-action-name,
.audit-target-name {
  color: var(--ink);
  font-weight: 700;
}

.audit-target-name {
  overflow-wrap: anywhere;
}

.audit-meta-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.audit-meta-list div {
  display: grid;
  gap: 6px;
  grid-template-columns: 120px minmax(0, 1fr);
}

.audit-meta-list dt {
  color: var(--muted);
  font-weight: 700;
}

.audit-meta-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.account-table-scroll {
  max-width: 100%;
  scrollbar-gutter: stable;
}

.admin-create-form {
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  margin-bottom: 18px;
  padding: 14px;
}

.admin-create-form > * {
  min-width: 0;
}

.admin-create-form > label {
  display: grid;
  gap: 6px;
  line-height: 22px;
}

.admin-create-form input,
.admin-create-form select {
  margin-top: 0;
}

.admin-create-form[aria-busy="true"] {
  cursor: wait;
  pointer-events: none;
}

.admin-create-actions {
  align-content: start;
  display: grid;
  gap: 6px;
}

.admin-create-actions-label {
  font-weight: 700;
  line-height: 22px;
}

.admin-create-actions button {
  min-height: 44px;
  white-space: nowrap;
  width: 100%;
}

.admin-create-message {
  color: var(--muted);
  font-size: 14px;
  min-height: 20px;
  overflow-wrap: anywhere;
}

.admin-create-message.ok {
  color: var(--brand);
}

.admin-create-message.error {
  color: var(--danger);
}

.admin-account-table {
  min-width: 1080px;
}

.admin-account-table th,
.admin-account-table td {
  vertical-align: middle;
}

.admin-account-table [data-admin-status] {
  display: block;
  margin-top: 0;
  min-width: 96px;
}

.admin-name-input {
  display: block;
  margin-top: 0;
  min-height: 44px;
  min-width: 160px;
  width: 100%;
}

.admin-name-input[aria-busy="true"] {
  pointer-events: none;
}

.account-table {
  min-width: 1450px;
  table-layout: fixed;
  width: 100%;
}

.account-table th,
.account-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.account-table th:nth-child(1),
.account-table td:nth-child(1) {
  width: 200px;
}

.account-table th:nth-child(2),
.account-table td:nth-child(2),
.account-table th:nth-child(3),
.account-table td:nth-child(3) {
  width: 80px;
}

.account-table th:nth-child(4),
.account-table td:nth-child(4) {
  width: 140px;
}

.account-table th:nth-child(5),
.account-table td:nth-child(5) {
  width: 120px;
}

.account-table th:nth-child(6),
.account-table td:nth-child(6) {
  width: 120px;
}

.account-table th:nth-child(7),
.account-table td:nth-child(7) {
  width: 115px;
}

.account-table th:nth-child(8),
.account-table td:nth-child(8) {
  width: 100px;
}

.account-table th:nth-child(9),
.account-table td:nth-child(9) {
  width: 140px;
}

.account-table th:nth-child(10),
.account-table td:nth-child(10) {
  width: 150px;
}

.account-table th:nth-child(11),
.account-table td:nth-child(11) {
  width: 150px;
}

.account-table th:nth-child(12),
.account-table td:nth-child(12) {
  width: 90px;
}

.account-table th:nth-child(13),
.account-table td:nth-child(13) {
  width: 80px;
}

.account-table select {
  min-width: 0;
  width: 100%;
}

.account-lock-state {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
}

.status-pill {
  background: #e2e8f0;
  border-radius: 999px;
  display: inline-flex;
  padding: 4px 10px;
}

.status-pill.warning {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.success {
  background: #dcfce7;
  color: #166534;
}

.status-pill.pending {
  background: #e0f2fe;
  color: #075985;
}

.status-pill.danger {
  background: #fee2e2;
  color: #991b1b;
}

.operations-monitor .monitor-heading {
  align-items: center;
}

.operations-monitor .monitor-heading > div {
  min-width: 0;
}

.operations-monitor .monitor-heading h1 {
  margin-bottom: 6px;
}

.operations-monitor .monitor-heading p {
  margin: 0;
}

.monitor-refresh {
  flex: 0 0 auto;
  min-width: 168px;
}

.monitor-refresh[aria-busy="true"] {
  cursor: wait;
  pointer-events: none;
}

.monitor-metrics .metric strong,
.monitor-table td,
.monitor-history td {
  font-variant-numeric: tabular-nums;
}

.monitor-metrics .metric strong {
  font-size: clamp(18px, 2vw, 24px);
  overflow-wrap: anywhere;
}

.monitor-table th[scope="row"] {
  min-width: 150px;
}

.monitor-detail {
  min-width: 240px;
  overflow-wrap: anywhere;
}

.monitor-history {
  margin-top: 28px;
}

.monitor-history h2 {
  text-wrap: balance;
}

@media (max-width: 760px) {
  .operations-monitor .monitor-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .monitor-refresh {
    width: 100%;
  }
}

.table-head-help {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.help-tooltip {
  display: inline-flex;
}

.help-icon {
  align-items: center;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: var(--ink);
  cursor: help;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  line-height: 1;
  min-height: 20px;
  min-width: 20px;
  padding: 0;
  position: relative;
  touch-action: manipulation;
  width: 20px;
}

.help-icon::after {
  content: "";
  inset: -6px;
  position: absolute;
}

@media (pointer: coarse) {
  .help-icon::after {
    inset: -12px;
  }
}

.help-icon:hover,
.help-icon:focus-visible {
  background: #cbd5e1;
  border-color: #94a3b8;
  color: #0f172a;
  transform: none;
}

.help-tooltip-panel {
  background: #0f172a;
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
  color: white;
  display: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  left: 0;
  max-height: 320px;
  max-width: min(360px, calc(100vw - 40px));
  min-width: 0;
  overflow: auto;
  padding: 12px 14px;
  position: fixed;
  right: auto;
  top: 0;
  transform: none;
  white-space: normal;
  width: 360px;
  z-index: 1000;
}

.help-tooltip-panel ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.help-tooltip-panel.is-open {
  display: block;
}

.async-status {
  color: var(--muted);
  display: inline-block;
  font-size: 14px;
  min-width: 58px;
  white-space: nowrap;
}

.async-status.ok {
  color: var(--brand);
}

.async-status.pending {
  color: var(--muted);
}

.async-status.error {
  color: var(--danger);
}

.settings-save-actions {
  align-items: center;
  flex-wrap: wrap;
}

.settings-save-status {
  min-width: 150px;
}

.settings-test-row {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-test-row label {
  min-width: min(320px, 100%);
}

.settings-test-row .async-status {
  min-width: 180px;
  white-space: normal;
}

[data-test-email-settings][aria-busy="true"],
[data-test-payment-settings][aria-busy="true"] {
  pointer-events: none;
}

.sort-link {
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  gap: 4px;
}

.sort-link:hover,
.sort-link.active {
  color: var(--brand);
}

.metric strong {
  display: block;
  font-size: 32px;
}

.metric strong,
.metric span {
  overflow-wrap: anywhere;
}

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

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

th {
  background: #f8fafc;
}

.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 14px;
}

.payment-panel {
  max-width: 1180px;
  padding: 28px;
}

.payment-shell {
  display: grid;
  gap: 22px;
}

.payment-loading h1,
.payment-hero h1 {
  font-size: 36px;
  margin: 0 0 10px;
}

.payment-loading p,
.payment-hero p {
  margin: 0;
}

.payment-hero {
  align-items: start;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px;
}

.payment-hero > div {
  max-width: 72ch;
}

.payment-state {
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  padding: 10px 16px;
}

.payment-state.success {
  background: #dcfce7;
  color: #166534;
}

.payment-state.pending {
  background: #e0f2fe;
  color: #075985;
}

.payment-state.danger {
  background: #fee2e2;
  color: var(--danger);
}

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

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

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

.payment-summary-card strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.payment-items {
  display: grid;
  gap: 12px;
}

.compact-heading {
  align-items: end;
  gap: 14px;
}

.compact-heading h2 {
  margin: 0;
}

.payment-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.payment-primary-action {
  min-width: 180px;
}

.payment-message {
  color: var(--muted);
  margin: 18px 0 0;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.order-lookup-page {
  max-width: 1500px;
}

.order-lookup-hero {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  padding: 28px;
}

.order-lookup-hero h1 {
  font-size: 40px;
  margin: 0 0 8px;
}

.order-lookup-hero p {
  margin-top: 0;
}

.order-lookup-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) 132px;
}

.order-lookup-form button {
  min-height: 45px;
}

.order-result-panel {
  padding: 28px;
}

.order-result-header {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.order-result-header h2 {
  font-size: 30px;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.order-result-header p {
  margin: 0;
}

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

.order-summary-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
}

.order-summary-card span {
  color: var(--muted);
  font-size: 13px;
}

.order-summary-card strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.order-action-strip {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  padding-bottom: 18px;
}

.invoice-backup-actions,
.invoice-backup-box {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.invoice-backup-actions {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 14px;
}

.invoice-backup-box {
  margin-top: -4px;
}

.invoice-backup-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

.order-detail-section {
  margin-top: 22px;
}

.order-detail-section h3 {
  font-size: 22px;
  margin: 0 0 12px;
}

.order-detail-table {
  min-width: 720px;
}

.order-detail-table th:first-child,
.order-detail-table td:first-child {
  width: 72px;
}

.order-detail-table code {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-block;
  font-family: "Segoe UI", "Noto Sans TC", Arial, sans-serif;
  padding: 4px 8px;
  white-space: nowrap;
}

.order-empty-state {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 18px;
}

.order-empty-state h2 {
  margin: 0 0 8px;
}

.maintenance-shell {
  align-items: center;
  display: grid;
  min-height: 100vh;
  max-width: none;
  overflow: hidden;
  padding: 48px 24px;
  position: relative;
}

.maintenance-shell::before {
  background:
    linear-gradient(90deg, rgba(45, 212, 191, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(45, 212, 191, .06) 1px, transparent 1px);
  background-size: 76px 76px;
  content: "";
  inset: 0;
  opacity: .55;
  position: absolute;
}

.maintenance-shell::after {
  background: #f59e0b;
  content: "";
  height: 3px;
  left: 8vw;
  opacity: .9;
  position: absolute;
  top: 18vh;
  width: 84px;
}

.maintenance-hero {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr);
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.maintenance-visual {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}

.maintenance-ring {
  animation: maintenancePulse 2.8s ease-out infinite;
  border: 1px solid rgba(45, 212, 191, .32);
  border-radius: 999px;
  height: min(74vw, 430px);
  position: absolute;
  width: min(74vw, 430px);
}

.maintenance-ring::before,
.maintenance-ring::after {
  border: 1px solid rgba(245, 158, 11, .38);
  border-radius: inherit;
  content: "";
  inset: 42px;
  position: absolute;
}

.maintenance-ring::after {
  animation: maintenanceRotate 9s linear infinite;
  border-color: rgba(45, 212, 191, .7);
  border-left-color: transparent;
  border-right-color: transparent;
  inset: 84px;
}

.maintenance-core {
  align-items: center;
  background: #0f2a25;
  border: 1px solid rgba(45, 212, 191, .45);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  display: grid;
  gap: 14px;
  justify-items: center;
  min-height: 170px;
  padding: 28px;
  width: min(64vw, 250px);
}

.maintenance-core span {
  animation: maintenanceBlink 1.6s ease-in-out infinite;
  background: #2dd4bf;
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(45, 212, 191, .9);
  height: 18px;
  width: 18px;
}

.maintenance-core strong {
  color: #edf8f4;
  font-size: 30px;
  letter-spacing: .08em;
}

.maintenance-scan {
  background: #2dd4bf;
  border-radius: 999px;
  height: 4px;
  opacity: .88;
  position: absolute;
}

.maintenance-scan::after {
  background: #f59e0b;
  border-radius: inherit;
  content: "";
  height: 4px;
  position: absolute;
  right: -54px;
  top: 0;
  width: 42px;
}

.scan-a {
  animation: maintenanceSlide 3.8s ease-in-out infinite;
  left: 7%;
  top: 26%;
  width: 120px;
}

.scan-b {
  animation: maintenanceSlide 4.6s ease-in-out .35s infinite;
  right: 8%;
  top: 58%;
  width: 156px;
}

.scan-c {
  animation: maintenanceSlide 5.2s ease-in-out .7s infinite;
  bottom: 18%;
  left: 18%;
  width: 96px;
}

.maintenance-copy {
  background: #0c221e;
  border: 1px solid rgba(203, 213, 225, .18);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  padding: 38px;
}

.maintenance-kicker {
  color: #2dd4bf;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.maintenance-copy h1 {
  color: #edf8f4;
  font-size: 46px;
  line-height: 1.12;
  margin: 0 0 18px;
}

.maintenance-brand-word {
  display: inline-block;
  font-weight: 900;
  text-shadow: 0 0 22px rgba(45, 212, 191, .22);
}

.maintenance-brand-fast {
  color: #03e8f2;
}

.maintenance-brand-digital {
  color: #ff9900;
  text-shadow: 0 0 22px rgba(255, 153, 0, .24);
}

.maintenance-copy p {
  color: #b8c9c2;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 14px;
  max-width: 68ch;
}

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

.maintenance-status div {
  background: #102d28;
  border: 1px solid rgba(45, 212, 191, .22);
  border-radius: 12px;
  padding: 16px;
}

.maintenance-status span {
  color: #8fb6ad;
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.maintenance-status strong {
  color: #edf8f4;
  font-size: 17px;
}

.maintenance-note {
  border-top: 1px solid rgba(203, 213, 225, .16);
  color: #f8d28a !important;
  margin-bottom: 0 !important;
  padding-top: 18px;
}

.maintenance-auto-check {
  color: #7dd3c7 !important;
  font-size: 14px !important;
  margin-top: 10px !important;
}

@keyframes maintenancePulse {
  0% {
    opacity: .5;
    transform: scale(.96);
  }
  70% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: .5;
    transform: scale(.96);
  }
}

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

@keyframes maintenanceBlink {
  0%,
  100% {
    opacity: .45;
    transform: scale(.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes maintenanceSlide {
  0%,
  100% {
    opacity: .35;
    transform: translateX(-12px);
  }
  50% {
    opacity: .9;
    transform: translateX(18px);
  }
}

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

@media (max-width: 1120px) {
  .home-hero-content {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    max-width: 760px;
  }

  .order-lookup-hero {
    align-items: start;
    grid-template-columns: 1fr;
  }

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

  .payment-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maintenance-hero {
    gap: 32px;
    grid-template-columns: 1fr;
  }

  .maintenance-visual {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .admin-page main {
    max-width: 100%;
    padding-inline: 16px;
  }

  .metric-grid,
  .metric-grid.compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel.auth h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  nav {
    flex-wrap: wrap;
  }

  .dashboard-page .topbar {
    align-items: stretch;
    gap: 12px;
    padding: 14px 18px;
  }

  .dashboard-page .brand-logo {
    align-self: flex-start;
  }

  .dashboard-page .brand-logo img {
    max-width: min(180px, 58vw);
  }

  .dashboard-page .topbar nav {
    gap: 6px;
    justify-content: flex-end;
    padding: 10px;
    width: 100%;
  }

  .admin-auth-page .topbar nav {
    align-self: flex-end;
    flex: 0 1 auto;
    width: auto;
  }

  .dashboard-page .topbar nav a,
  .dashboard-page .topbar nav button,
  .dashboard-page .member-nav-name {
    flex: 1 1 auto;
    min-width: max-content;
    text-align: center;
  }

  .dashboard-page.admin-page .topbar nav a,
  .dashboard-page.admin-page .topbar nav button {
    flex-basis: calc(33.333% - 6px);
    min-width: 88px;
  }

  .dashboard-page.admin-page .topbar nav button {
    width: auto;
  }

  .dashboard-page.admin-page .topbar {
    align-items: center;
    flex-direction: row;
    min-height: 72px;
    padding:
      max(12px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      12px
      max(16px, env(safe-area-inset-left));
  }

  .dashboard-page.admin-page .brand-logo {
    align-self: auto;
    min-width: 0;
  }

  .dashboard-page.admin-page .brand-logo img {
    max-width: min(166px, 56vw);
  }

  .dashboard-page.admin-page .admin-menu-ready .admin-menu-toggle {
    align-items: center;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    display: inline-flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    position: relative;
    touch-action: manipulation;
    width: 46px;
  }

  .dashboard-page.admin-page .admin-menu-toggle span {
    background: #f7fbff;
    border-radius: 999px;
    height: 2px;
    left: 11px;
    position: absolute;
    transform-origin: center;
    transition:
      opacity 180ms ease,
      transform 240ms cubic-bezier(.16, 1, .3, 1);
    width: 22px;
  }

  .dashboard-page.admin-page .admin-menu-toggle span:nth-child(1) {
    transform: translateY(-7px);
  }

  .dashboard-page.admin-page .admin-menu-toggle span:nth-child(3) {
    transform: translateY(7px);
  }

  .dashboard-page.admin-page .admin-menu-toggle:hover,
  .dashboard-page.admin-page .admin-menu-toggle:focus-visible {
    background: rgba(6, 182, 212, .14);
    border-color: rgba(103, 232, 249, .5);
  }

  .dashboard-page.admin-page .admin-menu-toggle:focus-visible {
    outline: 2px solid #67e8f9;
    outline-offset: 3px;
  }

  .dashboard-page.admin-page .is-admin-menu-open .admin-menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  .dashboard-page.admin-page .is-admin-menu-open .admin-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .dashboard-page.admin-page .is-admin-menu-open .admin-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .dashboard-page.admin-page .admin-menu-ready nav[data-admin-nav] {
    background: rgba(18, 16, 27, .98);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 22px 54px rgba(7, 4, 15, .38);
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: max(12px, env(safe-area-inset-left));
    margin: 0;
    max-height: min(70dvh, 620px);
    opacity: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    pointer-events: none;
    position: absolute;
    right: max(12px, env(safe-area-inset-right));
    top: calc(100% + 8px);
    transform: translateY(-8px);
    visibility: hidden;
    width: auto;
  }

  .dashboard-page.admin-page header.admin-menu-ready > nav[data-admin-nav][data-menu-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .dashboard-page.admin-page .admin-menu-ready nav[data-admin-nav] a,
  .dashboard-page.admin-page .admin-menu-ready nav[data-admin-nav] button {
    align-items: center;
    display: flex;
    flex-basis: auto;
    justify-content: center;
    min-height: 44px;
    min-width: 0;
    padding: 10px 8px;
    width: 100%;
  }

  .dashboard-page.admin-page .admin-menu-ready nav[data-admin-nav] form {
    display: block;
  }

  @media (prefers-reduced-motion: reduce) {
    .dashboard-page.admin-page .admin-menu-toggle span {
      transition-duration: .01ms;
    }
  }

  .cart-fly-item {
    border-radius: 14px;
    height: 64px;
    transition: transform .82s cubic-bezier(.16, 1, .3, 1), opacity .82s ease;
    width: 64px;
  }

  .cart-feedback {
    bottom: 14px;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .cart-feedback-action {
    grid-column: 1 / -1;
    text-align: center;
  }

  .checkout-steps {
    margin-bottom: 24px;
    max-width: 100%;
    padding-inline: 0;
  }

  .checkout-steps ol::before {
    top: 18px;
  }

  .checkout-steps span {
    border-width: 3px;
    height: 40px;
    width: 40px;
  }

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

  .member-nav-name {
    max-width: 100%;
  }

  .home-brand-hero {
    border-radius: 14px;
    min-height: 0;
  }

  .home-hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 13, 18, .42) 0%, rgba(5, 13, 18, .82) 60%, rgba(5, 13, 18, .95) 100%),
      url("/assets/hurryup-hero-banner.png") center / cover no-repeat;
  }

  .home-hero-content {
    gap: 16px;
    padding: 28px 18px;
  }

  .home-hero-copy {
    background: rgba(5, 17, 17, .82);
    padding: 20px;
  }

  .home-hero-copy h1 {
    font-size: 30px;
  }

  .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero,
  .checkout {
    grid-template-columns: 1fr;
  }

  .product-detail,
  .security-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-media {
    min-height: 220px;
  }

  .product-detail-content h1 {
    font-size: 30px;
  }

  .cart-line {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
    padding: 18px 16px 16px;
    position: relative;
  }

  .cart-line:last-child {
    border: 1px solid var(--line);
    margin-bottom: 0;
  }

  .cart-product {
    grid-column: 1 / -1;
    padding-right: 42px;
  }

  .cart-unit,
  .cart-subtotal {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 92px;
    padding: 12px 14px;
  }

  .cart-unit {
    order: 2;
  }

  .cart-unit strong {
    font-size: 20px;
  }

  .cart-subtotal {
    order: 3;
  }

  .kyc-stepper {
    grid-template-columns: 1fr;
  }

  .kyc-stepper div {
    border-bottom: 0;
    border-left: 3px solid var(--line);
    padding: 6px 0 6px 12px;
  }

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

  .cart-qty {
    grid-column: 1 / -1;
    order: 4;
  }

  .cart-qty label,
  .cart-unit label,
  .cart-subtotal label {
    color: var(--muted);
    font-size: 14px;
  }

  .cart-qty input {
    height: 52px;
    max-width: 100%;
    width: 100%;
  }

  .cart-quantity-control {
    border-radius: 6px;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    width: 100%;
  }

  .cart-qty-button {
    height: 52px;
    width: 56px;
  }

  .cart-subtotal strong {
    font-size: 26px;
  }

  .cart-remove {
    background: #f1f5f9;
    border-radius: 999px;
    color: #64748b;
    height: 36px;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
  }

  .cart-remove:hover {
    background: #fee2e2;
    color: var(--danger);
  }

  .cart-summary {
    justify-content: stretch;
  }

  .cart-summary div {
    min-width: 0;
  }

  .cart-summary p {
    max-width: none;
    text-align: left;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .code-bulk-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .code-bulk-toolbar button {
    width: 100%;
  }

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

  .coupon-form-layout {
    grid-template-columns: 1fr;
  }

  .coupon-form-primary,
  .coupon-form-discount,
  .coupon-form-limits,
  .coupon-form-period {
    grid-column: 1 / -1;
  }

  .coupon-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .coupon-form-footer button {
    width: 100%;
  }

  .product-form-layout,
  .product-media-grid {
    grid-template-columns: 1fr;
  }

  .product-form-basic,
  .product-form-price,
  .product-form-limits,
  .product-form-media,
  .product-form-copy {
    grid-column: 1 / -1;
  }

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

  .product-form-footer .actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .coupon-row button {
    width: 100%;
  }

  .hero h1 {
    font-size: 30px;
  }

  .order-lookup-hero,
  .order-lookup-form {
    grid-template-columns: 1fr;
  }

  .order-lookup-hero h1 {
    font-size: 32px;
  }

  .order-result-header {
    display: grid;
  }

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

  .payment-panel {
    padding: 18px;
  }

  .payment-hero {
    display: grid;
    padding: 18px;
  }

  .payment-loading h1,
  .payment-hero h1 {
    font-size: 30px;
  }

  .payment-summary-grid {
    grid-template-columns: 1fr;
  }

  .payment-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .app-modal.order-detail-dialog {
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 8px);
    max-width: none;
    width: 100%;
  }

  .app-modal-backdrop:has(.order-detail-dialog) {
    align-items: flex-end;
    padding: 8px 8px 0;
  }

  .order-detail-dialog .app-modal-header,
  .order-detail-dialog .app-modal-footer {
    flex: 0 0 auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .order-detail-dialog .app-modal-body {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
    overscroll-behavior: contain;
    padding: 18px 14px;
  }

  .order-detail-dialog .app-modal-header h2 {
    font-size: 20px;
  }

  .member-order-detail {
    gap: 16px;
  }

  .member-order-detail .order-result-header {
    gap: 12px;
  }

  .member-order-detail .order-result-header h2 {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .member-order-detail .order-summary-card {
    padding: 14px;
  }

  .member-order-detail .order-summary-card strong {
    font-size: 16px;
  }

  .member-order-detail .order-meta-grid {
    grid-template-columns: 1fr;
  }

  .order-detail-section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .order-detail-section-title .small-action {
    width: 100%;
  }

  .order-detail-dialog .app-modal-footer button {
    min-height: 46px;
    width: 100%;
  }

  .order-detail-section .table-scroll {
    overflow: visible;
  }

  .order-detail-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .order-detail-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .order-detail-table tbody {
    display: grid;
    gap: 12px;
  }

  .order-detail-table tr {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    overflow: hidden;
  }

  .order-detail-table td,
  .order-detail-table td:first-child {
    align-items: start;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(82px, .42fr) minmax(0, 1fr);
    overflow-wrap: anywhere;
    padding: 11px 12px;
    text-align: right;
    width: auto;
  }

  .order-detail-table td:last-child {
    border-bottom: 0;
  }

  .order-detail-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
  }

  .order-detail-table td > strong,
  .order-detail-table td > code,
  .order-detail-table td > .status-pill {
    justify-self: end;
    max-width: 100%;
  }

  .order-detail-table code {
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-all;
  }

  .order-detail-table .order-detail-empty-row td {
    display: block;
    padding: 18px 14px;
    text-align: center;
  }

  .order-detail-table .order-detail-empty-row td::before {
    content: none;
  }

  .support-ticket {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .support-ticket-head {
    flex-direction: column;
  }

  .support-ticket-badges {
    align-items: flex-start;
  }

  .order-action-strip {
    justify-content: stretch;
  }

  .invoice-backup-actions,
  .invoice-backup-box {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .order-action-strip .button {
    width: 100%;
  }

  .maintenance-shell {
    padding: 28px 16px;
  }

  .maintenance-copy {
    padding: 26px;
  }

  .maintenance-copy h1 {
    font-size: 34px;
  }

  .maintenance-copy p {
    font-size: 16px;
  }

  .maintenance-status {
    grid-template-columns: 1fr;
  }

  .maintenance-visual {
    min-height: 280px;
  }

  .mfa-setup-grid {
    grid-template-columns: 1fr;
  }

  .security-admin-selector {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .security-admin-selector button {
    width: 100%;
  }

  .mfa-secret-card code {
    font-size: 16px;
    letter-spacing: 1px;
  }
}

/* HurryUp Digital V5 storefront theme. Scoped to avoid changing admin pages. */
.storefront-page {
  --bg: #07040f;
  --bg-soft: #0e0a22;
  --panel: rgba(255, 255, 255, .055);
  --panel-strong: rgba(255, 255, 255, .085);
  --ink: #f7fbff;
  --muted: rgba(255, 255, 255, .68);
  --line: rgba(255, 255, 255, .1);
  --brand: #06b6d4;
  --brand-dark: #0891b2;
  --orange: #f97316;
  --danger: #fb7185;
  background:
    radial-gradient(circle at 20% 10%, rgba(6, 182, 212, .16), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, .14), transparent 32%),
    linear-gradient(180deg, #0e0a22 0%, #07040f 45%, #05030a 100%);
  color: var(--ink);
  color-scheme: dark;
  font-family: Inter, "Noto Sans TC", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.storefront-root {
  color-scheme: dark;
}

.storefront-page button,
.storefront-page a,
.storefront-page input,
.storefront-page select,
.storefront-page textarea {
  -webkit-tap-highlight-color: rgba(6, 182, 212, .18);
  touch-action: manipulation;
}

.logo-transition-overlay {
  background:
    radial-gradient(circle at 26% 22%, rgba(6, 182, 212, .14), transparent 34%),
    radial-gradient(circle at 76% 30%, rgba(249, 115, 22, .12), transparent 32%),
    linear-gradient(180deg, rgba(13, 8, 32, .96), rgba(5, 3, 10, .98));
  display: grid;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  place-items: center;
  transform: translateZ(0);
  transition: opacity 180ms ease;
  will-change: opacity;
  z-index: 9998;
}

.logo-transition-overlay::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 72%);
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  opacity: .34;
  pointer-events: none;
  position: absolute;
}

.logo-transition-panel {
  display: grid;
  gap: 10px;
  opacity: 0;
  place-items: center;
  position: relative;
  transform: translateY(8px) scale(.985);
  transition:
    opacity 160ms ease,
    transform 220ms cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}

.logo-transition-mark {
  height: auto;
  max-height: 34vh;
  object-fit: contain;
  width: min(64vw, 720px);
}

.logo-transition-copy {
  color: rgba(255, 255, 255, .68);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(.64rem, 1.4vw, .82rem);
  font-weight: 800;
  letter-spacing: .24em;
  text-align: center;
  white-space: nowrap;
}

.is-logo-transition-exiting .logo-transition-overlay {
  opacity: 1;
  pointer-events: auto;
}

.is-logo-transition-exiting .logo-transition-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.is-logo-transition-entering .logo-transition-overlay {
  animation: logoTransitionOverlayEnter 180ms ease both;
}

.is-logo-transition-entering .logo-transition-panel {
  animation: logoTransitionPanelEnter 180ms ease both;
}

@keyframes logoTransitionOverlayEnter {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes logoTransitionPanelEnter {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-4px) scale(.995);
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}

::view-transition-old(root) {
  animation-name: pageFadeOut;
}

::view-transition-new(root) {
  animation-name: pageFadeIn;
}

@keyframes pageFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(.992);
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: scale(1.006);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-transition-overlay,
  .logo-transition-overlay::before,
  .logo-transition-panel,
  .logo-transition-mark {
    transition-duration: .01ms;
  }

  .is-logo-transition-entering .logo-transition-overlay,
  .is-logo-transition-entering .logo-transition-panel,
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: .01ms;
  }
}

.skip-link {
  background: #06b6d4;
  border-radius: 999px;
  color: #05030a;
  font-weight: 900;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(-140%);
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
  z-index: 9999;
}

.skip-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: 3px;
  transform: translateY(0);
}

.storefront-page::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  opacity: .5;
  pointer-events: none;
  position: fixed;
  z-index: -3;
}

.storefront-page::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .08) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .08) 0 1px, transparent 1px 100%);
  background-size: 86px 86px, 132px 132px;
  content: "";
  inset: 0;
  opacity: .25;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

.dynamic-bg {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.energy-orb,
.laser-line {
  position: absolute;
  will-change: transform, opacity;
}

.energy-orb {
  border-radius: 999px;
  filter: blur(90px);
  height: 34vw;
  max-height: 520px;
  max-width: 520px;
  mix-blend-mode: screen;
  opacity: .45;
  width: 34vw;
}

.orb-cyan {
  animation: energyDrift 16s ease-in-out infinite alternate;
  background: rgba(6, 182, 212, .58);
  left: -8vw;
  top: 10vh;
}

.orb-orange {
  animation: energyDrift 19s ease-in-out .4s infinite alternate-reverse;
  background: rgba(249, 115, 22, .48);
  bottom: 2vh;
  right: -10vw;
}

.laser-line {
  animation: laserSweep 9s linear infinite;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, .8), rgba(249, 115, 22, .72), transparent);
  height: 1px;
  left: -35vw;
  opacity: .22;
  top: 22vh;
  transform: rotate(-12deg);
  width: 55vw;
}

.laser-b {
  animation-duration: 12s;
  animation-delay: 1.7s;
  top: 66vh;
}

.storefront-page .topbar {
  background: rgba(7, 4, 15, .62);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  min-height: 72px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.storefront-page .brand-logo img {
  filter: drop-shadow(0 0 18px rgba(6, 182, 212, .18));
  height: clamp(32px, 3vw, 42px);
}

.storefront-page nav {
  gap: 18px;
}

html {
  scroll-behavior: smooth;
}

.storefront-page nav a,
.storefront-page nav button {
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  font-weight: 800;
  transition: color 240ms cubic-bezier(.16, 1, .3, 1), transform 240ms cubic-bezier(.16, 1, .3, 1);
}

.storefront-page nav a:hover,
.storefront-page nav button:hover {
  color: #f7fbff;
  transform: translateY(-1px);
}

.storefront-page nav a[aria-current="page"],
.storefront-page nav a.is-current {
  color: #f7fbff;
  text-shadow: 0 0 12px rgba(6, 182, 212, .6);
}

.storefront-page nav a.is-active {
  color: #f7fbff;
  text-shadow: 0 0 12px rgba(6, 182, 212, .6);
}

.storefront-page .nav-cta {
  background: linear-gradient(135deg, #06b6d4, #2dd4bf 42%, #f97316 115%);
  border-radius: 999px;
  color: #05030a;
  padding: 10px 16px;
}

.storefront-page main {
  max-width: 1440px;
  padding: 0 24px 80px;
}

.glass-panel,
.storefront-page .card,
.storefront-page .panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
  position: relative;
}

.storefront-page .card,
.storefront-page .panel {
  backdrop-filter: blur(24px);
}

.glass-panel::before,
.storefront-page .card::before,
.storefront-page .panel::before {
  background: linear-gradient(90deg, rgba(6, 182, 212, .78), rgba(249, 115, 22, .58));
  content: "";
  height: 1px;
  left: 22px;
  position: absolute;
  right: 52%;
  top: 0;
}

.glass-panel::after,
.storefront-page .card::after,
.storefront-page .panel::after {
  background: radial-gradient(circle, rgba(249, 115, 22, .2), transparent 60%);
  bottom: -90px;
  content: "";
  height: 180px;
  pointer-events: none;
  position: absolute;
  right: -70px;
  width: 180px;
}

.glass-panel:hover,
.storefront-page .card:hover {
  border-color: rgba(6, 182, 212, .38);
  box-shadow: 0 28px 100px rgba(0, 0, 0, .52), 0 0 40px rgba(6, 182, 212, .12);
  transform: translateY(-4px) scale(1.01);
}

.storefront-page .hero {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.storefront-page .home-brand-hero {
  color: #f7fbff;
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  padding: 96px 0 80px;
}

.storefront-page .home-hero-content {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  min-height: auto;
  padding: 0;
}

.storefront-page .home-hero-copy {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.tech-badge,
.tech-label {
  color: rgba(255, 255, 255, .62);
  font-family: "JetBrains Mono", "Space Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.tech-badge {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  display: inline-flex;
  margin-bottom: 24px;
  padding: 9px 12px;
}

.storefront-page .home-hero-copy h1 {
  color: #f7fbff;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: .98;
  margin: 0 0 24px;
}

.text-gradient-hurry {
  color: #42e6ee;
  display: inline-block;
  text-shadow: 0 0 32px rgba(6, 182, 212, .28), 0 0 18px rgba(249, 115, 22, .18);
}

.skew-speed {
  transform: skewX(-8deg);
  transform-origin: left center;
}

.storefront-page .home-hero-copy p,
.storefront-page .section-header p,
.storefront-page .feature-card p,
.storefront-page .process-card p,
.storefront-page .final-cta p,
.storefront-page .auth-intro p {
  color: rgba(255, 255, 255, .72);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
  max-width: 62ch;
}

.storefront-page .home-hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.storefront-page button,
.storefront-page .button {
  align-items: center;
  border-radius: 999px;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  transition:
    background-color 240ms cubic-bezier(.16, 1, .3, 1),
    border-color 240ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 240ms cubic-bezier(.16, 1, .3, 1),
    color 240ms cubic-bezier(.16, 1, .3, 1),
    transform 240ms cubic-bezier(.16, 1, .3, 1);
}

.storefront-page button:focus-visible,
.storefront-page .button:focus-visible,
.storefront-page a:focus-visible,
.storefront-page input:focus-visible,
.storefront-page select:focus-visible {
  outline: 2px solid rgba(6, 182, 212, .72);
  outline-offset: 3px;
}

.storefront-page button:active,
.storefront-page .button:active {
  transform: scale(.985);
}

.storefront-page .home-primary-action,
.storefront-page button:not(.secondary):not(.danger),
.storefront-page .actions button {
  background: linear-gradient(135deg, #06b6d4, #2dd4bf 42%, #f97316 115%);
  box-shadow: 0 0 30px rgba(6, 182, 212, .28), 0 14px 44px rgba(249, 115, 22, .12);
  color: #05030a;
}

.storefront-page .home-primary-action:hover,
.storefront-page button:not(.secondary):not(.danger):hover,
.storefront-page .actions button:hover {
  box-shadow: 0 0 42px rgba(6, 182, 212, .42), 0 18px 60px rgba(249, 115, 22, .22);
  color: #05030a;
  transform: translateY(-2px) scale(1.015);
}

.storefront-page .button.secondary,
.storefront-page button.secondary,
.storefront-page .home-secondary-action.button.secondary {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #f7fbff;
}

.storefront-page .button.secondary:hover,
.storefront-page button.secondary:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(6, 182, 212, .52);
  color: #f7fbff;
  transform: translateY(-2px);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-strip span {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.hero-console {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.console-header,
.status-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.console-header span,
.status-row span,
.feature-index,
.process-card span {
  color: rgba(255, 255, 255, .52);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.console-header strong,
.status-row strong {
  color: #42e6ee;
}

.core-bars {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.core-bars span {
  animation: pulseGlow 2.6s ease-in-out infinite;
  background: linear-gradient(90deg, #06b6d4, #f97316);
  border-radius: 999px;
  height: 8px;
}

.core-bars span:nth-child(2) { width: 84%; }
.core-bars span:nth-child(3) { width: 64%; }
.core-bars span:nth-child(4) { width: 92%; }

.landing-section {
  padding: 112px 0;
  scroll-margin-top: 96px;
}

.section-header {
  margin-bottom: 34px;
}

.section-header.center {
  text-align: center;
}

.section-header h2,
.final-cta h2,
.auth-intro h1 {
  color: #f7fbff;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 12px 0 0;
}

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

.feature-card,
.process-card {
  padding: 28px;
  transition:
    border-color 240ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 240ms cubic-bezier(.16, 1, .3, 1),
    transform 240ms cubic-bezier(.16, 1, .3, 1);
}

.feature-card h3,
.process-card h3,
.storefront-page .card h3 {
  color: #f7fbff;
  font-size: 22px;
  letter-spacing: 0;
  margin: 16px 0 10px;
}

.product-heading {
  align-items: end;
}

.storefront-page .shop-controls label {
  color: rgba(255, 255, 255, .6);
  font-weight: 800;
}

.storefront-page input,
.storefront-page select,
.storefront-page textarea {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  color: #f7fbff;
}

.storefront-page select option {
  background: #0e0a22;
  color: #f7fbff;
}

.storefront-page .grid {
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.storefront-page .card {
  color: rgba(255, 255, 255, .72);
  padding: 22px;
  transition:
    border-color 240ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 240ms cubic-bezier(.16, 1, .3, 1),
    transform 240ms cubic-bezier(.16, 1, .3, 1);
}

.storefront-page .card.featured {
  background: linear-gradient(145deg, rgba(6, 182, 212, .12), rgba(255, 255, 255, .04));
  border-color: rgba(249, 115, 22, .34);
}

.storefront-page .card img {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  height: 160px;
}

.storefront-page .card a {
  color: #f7fbff;
}

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

.storefront-page .product-card-actions .button,
.storefront-page .product-card-actions button {
  min-width: 0;
  padding-inline: 14px;
  width: 100%;
  white-space: nowrap;
}

.storefront-page .product-card-actions [data-add],
.storefront-page .product-card-actions .checkout-card-action {
  font-size: clamp(15px, 1vw, 17px);
}

.storefront-page .product-card-actions button:disabled,
.storefront-page .product-card-actions button:disabled:hover,
.product-detail button:disabled,
.product-detail button:disabled:hover {
  background: rgba(148, 163, 184, .12);
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: none;
  color: rgba(226, 232, 240, .52);
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.storefront-page button[aria-busy="true"],
.product-detail button[aria-busy="true"] {
  cursor: wait;
  pointer-events: none;
}

.storefront-page .sold-out-badge {
  background: rgba(148, 163, 184, .12);
  border-color: rgba(148, 163, 184, .26);
  color: #cbd5e1;
}

.storefront-page .price {
  color: #42e6ee;
  font-size: 30px;
  font-weight: 950;
}

.storefront-page .promo {
  background: rgba(249, 115, 22, .12);
  border-color: rgba(249, 115, 22, .28);
  color: #fed7aa;
}

.storefront-page .badge {
  background: rgba(6, 182, 212, .18);
  border: 1px solid rgba(6, 182, 212, .34);
  color: #cffafe;
}

.storefront-page .badge.warning,
.storefront-page .badge.featured-badge {
  background: rgba(249, 115, 22, .16);
  border-color: rgba(249, 115, 22, .34);
  color: #fed7aa;
}

.process-card span {
  color: #42e6ee;
  font-size: 14px;
}

.storefront-page .security-panel {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  padding: clamp(28px, 5vw, 52px);
}

.storefront-page .security-panel ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.storefront-page .security-panel li {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
  padding: 14px 16px;
}

.final-cta {
  align-items: center;
  display: grid;
  justify-items: center;
  text-align: center;
}

.site-footer {
  align-items: center;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .035));
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .52);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 28px;
}

.site-footer strong,
.site-footer span {
  color: rgba(255, 255, 255, .76);
}

.site-footer nav a {
  color: rgba(255, 255, 255, .54);
}

.auth-page main.auth-shell {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 560px);
  max-width: 1180px;
  min-height: calc(100vh - 164px);
  padding: 92px 24px 72px;
}

.login-page main.login-shell {
  align-items: center;
  gap: clamp(32px, 4.4vw, 64px);
  grid-template-columns: minmax(420px, .92fr) minmax(600px, 720px);
  max-width: 1460px;
  min-height: calc(100vh - 150px);
  padding-bottom: 86px;
  padding-top: 86px;
}

.login-page .login-intro {
  min-height: 520px;
  padding: clamp(34px, 5vw, 58px);
}

.login-page .login-intro h1 {
  font-size: clamp(54px, 6.5vw, 86px);
  line-height: .98;
  margin-top: 18px;
  max-width: 760px;
}

.login-page .login-intro p {
  font-size: clamp(17px, 1.6vw, 21px);
  max-width: 680px;
}

.login-signal-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(34px, 5vw, 58px);
}

.login-signal-grid div {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  min-width: 0;
  padding: 16px;
}

.login-signal-grid span {
  color: rgba(255, 255, 255, .5);
  display: block;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  margin-bottom: 8px;
}

.login-signal-grid strong {
  color: rgba(255, 255, 255, .86);
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.login-status-line {
  display: grid;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 44px);
}

.login-status-line span {
  animation: pulseGlow 2.8s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(6, 182, 212, .9), rgba(249, 115, 22, .7));
  border-radius: 999px;
  display: block;
  height: 7px;
  transform-origin: left center;
}

.login-status-line span:nth-child(1) { width: 92%; }
.login-status-line span:nth-child(2) { animation-delay: .15s; width: 74%; }
.login-status-line span:nth-child(3) { animation-delay: .3s; width: 84%; }
.login-status-line span:nth-child(4) { animation-delay: .45s; width: 58%; }

.login-page .login-panel {
  border-radius: 32px;
  justify-self: stretch;
}

.login-panel-header {
  margin-bottom: 24px;
}

.login-panel-header h2 {
  font-size: clamp(42px, 4.6vw, 58px);
  line-height: 1;
  margin: 10px 0 12px;
}

.login-panel-header p {
  color: rgba(255, 255, 255, .62);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.login-page #login-form {
  gap: 18px;
}

.login-page #login-form input {
  min-height: 58px;
}

.login-page #login-form > button {
  margin-top: 6px;
  min-height: 62px;
}

.login-page .captcha-row {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(118px, auto);
}

.login-page .captcha-row strong {
  align-items: center;
  display: inline-flex;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 28px;
  justify-content: center;
  min-height: 58px;
}

.login-page .captcha-row button {
  min-height: 58px;
  white-space: nowrap;
}

.login-link-row {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .58);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 22px;
}

.login-link-row a {
  color: #22d3ee;
  font-weight: 900;
}

.auth-page .auth-intro,
.auth-page .auth {
  padding: clamp(24px, 4vw, 36px);
}

.auth-page .auth {
  max-width: none;
}

.auth-page .auth h1,
.auth-page .auth h2 {
  color: #f7fbff;
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 12px;
}

.auth-page .auth label {
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.auth-page .muted,
.auth-page .field-hint,
.auth-page .notice {
  color: rgba(255, 255, 255, .62);
}

.auth-page .notice {
  background: rgba(6, 182, 212, .1);
  border-color: rgba(6, 182, 212, .2);
}

.auth-page .captcha-row strong,
.auth-page .suggestion-list button {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
  color: #f7fbff;
}

.auth-page .suggestion-list {
  border-color: rgba(255, 255, 255, .12);
}

.auth-page .register-form .password-toggle:hover {
  background: rgba(255, 255, 255, .1);
  color: #f7fbff;
}

.auth-page .compact-footer {
  padding: 22px 28px;
}

.storefront-page .register-form .password-field {
  display: block;
  position: relative;
}

.storefront-page .register-form .password-field input {
  padding-right: 84px;
}

.storefront-page .register-form .password-field .password-toggle {
  align-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 0 14px 14px 0;
  box-shadow: none;
  color: rgba(255, 255, 255, .72);
  display: inline-flex;
  flex: 0 0 66px;
  font-size: 16px;
  height: auto;
  justify-content: center;
  line-height: 1;
  margin: 0;
  max-width: 66px;
  min-height: 0;
  padding: 0;
  position: absolute;
  bottom: 0;
  right: 0;
  top: 0;
  transform: none;
  width: 66px;
  z-index: 2;
}

.storefront-page .register-form .password-field .password-toggle:hover,
.storefront-page .register-form .password-field .password-toggle:focus-visible {
  background: rgba(6, 182, 212, .18);
  border-color: rgba(6, 182, 212, .44);
  box-shadow: 0 0 24px rgba(6, 182, 212, .16);
  color: #f7fbff;
  transform: none;
}

.storefront-page .register-form .password-field .password-toggle:active {
  transform: none;
}

.storefront-page .register-form .password-field .password-toggle::after {
  height: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  transform-origin: center;
  width: 26px;
}

.storefront-page.order-page main.order-lookup-page {
  display: grid;
  gap: 26px;
  max-width: 1280px;
  min-height: calc(100vh - 168px);
  padding-bottom: 88px;
  padding-top: 88px;
}

.storefront-page .order-lookup-hero {
  align-items: center;
  gap: clamp(26px, 4vw, 52px);
  grid-template-columns: minmax(340px, .9fr) minmax(420px, 1fr);
  padding: clamp(30px, 5vw, 58px);
}

.storefront-page .order-lookup-hero h1 {
  color: #f7fbff;
  font-size: clamp(54px, 7vw, 86px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: .98;
  margin: 0 0 18px;
  text-wrap: balance;
}

.storefront-page .order-lookup-hero .muted {
  color: rgba(255, 255, 255, .72);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.75;
  max-width: 58ch;
}

.order-lookup-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.order-lookup-signals span {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 13px;
}

.storefront-page .order-lookup-form {
  align-items: end;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 132px;
  padding: clamp(18px, 3vw, 24px);
}

.storefront-page .order-lookup-form label {
  color: rgba(255, 255, 255, .78);
  font-weight: 900;
  min-width: 0;
}

.storefront-page .order-lookup-form input {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 16px;
  margin-top: 8px;
  min-height: 58px;
}

.storefront-page .order-lookup-form button {
  min-height: 58px;
}

.storefront-page .order-result-panel {
  padding: clamp(24px, 4vw, 42px);
}

.storefront-page .order-result-header {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.storefront-page .order-result-header h2 {
  color: #f7fbff;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 8px;
}

.storefront-page .order-result-header .eyebrow {
  color: #42e6ee;
  font-family: "JetBrains Mono", Consolas, monospace;
  letter-spacing: .18em;
}

.storefront-page .order-summary-grid {
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.storefront-page .order-summary-card,
.storefront-page .invoice-backup-actions,
.storefront-page .invoice-backup-box,
.storefront-page .order-empty-state {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .11);
  border-radius: 18px;
  color: rgba(255, 255, 255, .78);
}

.storefront-page .order-summary-card {
  padding: 18px;
}

.storefront-page .order-summary-card span {
  color: rgba(255, 255, 255, .52);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.storefront-page .order-summary-card strong {
  color: #f7fbff;
  font-size: 20px;
}

.storefront-page .invoice-backup-note {
  color: rgba(255, 255, 255, .68);
}

.storefront-page .order-detail-section {
  margin-top: 28px;
}

.storefront-page .order-detail-section h3 {
  color: #f7fbff;
  font-size: 24px;
}

.storefront-page .order-detail-table {
  border-collapse: separate;
  border-spacing: 0;
  color: rgba(255, 255, 255, .78);
}

.storefront-page .order-detail-table thead {
  background: rgba(255, 255, 255, .075);
}

.storefront-page .order-detail-table th {
  background: rgba(255, 255, 255, .075);
  color: rgba(255, 255, 255, .78);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.storefront-page .order-detail-table th:first-child {
  border-radius: 14px 0 0 14px;
}

.storefront-page .order-detail-table th:last-child {
  border-radius: 0 14px 14px 0;
}

.storefront-page .order-detail-table td,
.storefront-page .order-detail-table th {
  border-bottom-color: rgba(255, 255, 255, .09);
}

.storefront-page .order-detail-table td {
  background: transparent;
  color: rgba(255, 255, 255, .78);
}

.storefront-page .order-detail-table code {
  background: rgba(6, 182, 212, .09);
  border-color: rgba(6, 182, 212, .2);
  color: #cffafe;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.storefront-page .order-empty-state {
  padding: 22px;
}

.storefront-page .order-empty-state h2 {
  color: #f7fbff;
}

.storefront-page .status-pill {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .82);
  font-weight: 900;
}

.storefront-page .status-pill.success {
  background: rgba(34, 197, 94, .18);
  border-color: rgba(34, 197, 94, .34);
  color: #bbf7d0;
}

.storefront-page .status-pill.pending {
  background: rgba(6, 182, 212, .14);
  border-color: rgba(6, 182, 212, .32);
  color: #cffafe;
}

.storefront-page .status-pill.danger {
  background: rgba(251, 113, 133, .16);
  border-color: rgba(251, 113, 133, .34);
  color: #fecdd3;
}

.login-page .auth.login-panel {
  min-height: 620px;
  padding: clamp(38px, 4.2vw, 56px);
}

.login-page .auth.login-panel .login-panel-header {
  margin-bottom: 28px;
}

.login-page .auth.login-panel .login-panel-header h2 {
  font-size: clamp(48px, 4.7vw, 68px);
  line-height: .96;
  margin: 10px 0 14px;
}

.login-page .auth.login-panel .login-panel-header p {
  font-size: 17px;
  max-width: 46ch;
}

.login-page .auth.login-panel label {
  font-size: 17px;
}

.login-page .auth.login-panel #login-form {
  gap: 20px;
}

.login-page .auth.login-panel #login-form input {
  font-size: 17px;
  min-height: 64px;
  padding-inline: 18px;
}

.login-page .auth.login-panel #login-form > button {
  font-size: 18px;
  min-height: 66px;
}

.login-page .auth.login-panel .captcha-row {
  gap: 12px;
  grid-template-columns: minmax(210px, 1fr) minmax(132px, auto);
}

.login-page .auth.login-panel .captcha-row strong,
.login-page .auth.login-panel .captcha-row button {
  min-height: 62px;
}

@keyframes energyDrift {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  100% { transform: translate3d(48px, -32px, 0) scale(1.08) rotate(8deg); }
}

@keyframes laserSweep {
  0% { opacity: 0; transform: translateX(-30%) rotate(-12deg); }
  42% { opacity: .24; }
  100% { opacity: 0; transform: translateX(160vw) rotate(-12deg); }
}

@keyframes scanY {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(220%); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: .45; transform: scaleX(.72); }
  50% { opacity: 1; transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-block {
    animation: revealUp .7s cubic-bezier(.16, 1, .3, 1) both;
  }

  .home-page.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition:
      opacity 1000ms cubic-bezier(.16, 1, .3, 1),
      transform 1000ms cubic-bezier(.16, 1, .3, 1);
    will-change: opacity, transform;
  }

  .home-page.reveal-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  .home-page [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .storefront-page *,
  .storefront-page *::before,
  .storefront-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .home-page.reveal-ready [data-reveal] {
    transform: translate3d(0, 12px, 0);
    transition-duration: 700ms;
  }

  .home-page.reveal-ready #products-section {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

@media (max-width: 980px) {
  .storefront-page .home-hero-content,
  .feature-grid,
  .process-grid,
  .security-panel,
  .storefront-page .security-panel,
  .login-page main.login-shell,
  .auth-page main.auth-shell {
    grid-template-columns: 1fr;
  }

  .storefront-page .security-panel > * {
    min-width: 0;
  }

  .storefront-page .security-panel h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-wrap: balance;
    word-break: normal;
  }

  .storefront-page .security-panel ul {
    min-width: 0;
    width: 100%;
  }

  .login-page main.login-shell,
  .auth-page main.auth-shell {
    padding-top: 54px;
  }

  .login-page .login-intro {
    min-height: 0;
  }

  .login-signal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .storefront-page .topbar {
    align-items: stretch;
    box-sizing: border-box;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
    transition:
      gap 380ms cubic-bezier(.22, 1, .36, 1),
      padding 380ms cubic-bezier(.22, 1, .36, 1),
      box-shadow 380ms cubic-bezier(.22, 1, .36, 1);
    width: 100%;
  }

  .storefront-page .brand-logo {
    align-self: flex-start;
  }

  .storefront-page .brand-logo img {
    max-width: min(180px, 58vw);
    transition: max-width 380ms cubic-bezier(.22, 1, .36, 1);
  }

  .storefront-page nav {
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    transition:
      gap 380ms cubic-bezier(.22, 1, .36, 1),
      padding 380ms cubic-bezier(.22, 1, .36, 1);
    width: 100%;
  }

  .storefront-page nav a {
    flex: 1 1 auto;
    min-width: max-content;
    text-align: center;
  }

  .storefront-page .nav-cta {
    flex-basis: 100%;
    max-height: 56px;
    width: 100%;
  }

  .storefront-page .cart-nav-link {
    flex-basis: 100%;
    height: 46px;
    max-height: 46px;
    min-height: 46px;
    width: 100%;
  }

  .storefront-page .nav-cta,
  .storefront-page .cart-nav-link {
    transition:
      border-color 300ms cubic-bezier(.22, 1, .36, 1),
      border-width 380ms cubic-bezier(.22, 1, .36, 1),
      height 380ms cubic-bezier(.22, 1, .36, 1),
      max-height 380ms cubic-bezier(.22, 1, .36, 1),
      min-height 380ms cubic-bezier(.22, 1, .36, 1),
      opacity 260ms ease,
      padding 380ms cubic-bezier(.22, 1, .36, 1),
      transform 380ms cubic-bezier(.22, 1, .36, 1);
    transform-origin: top center;
    will-change: max-height, opacity, transform;
  }

  .storefront-page .nav-cta {
    overflow: hidden;
  }

  .storefront-page .cart-nav-link {
    overflow: visible;
  }

  .storefront-page .cart-nav-link .cart-count {
    border-color: #171321;
    right: 14px;
    top: 6px;
    z-index: 2;
  }

  .storefront-page.is-topbar-compact .topbar {
    gap: 8px;
    padding-block: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
  }

  .storefront-page.is-topbar-compact .brand-logo img {
    max-width: min(142px, 46vw);
  }

  .storefront-page.is-topbar-compact nav {
    gap: 2px;
    padding: 8px 10px;
  }

  .storefront-page.is-topbar-compact .nav-cta,
  .storefront-page.is-topbar-compact .cart-nav-link {
    border-color: transparent;
    border-width: 0;
    max-height: 0;
    min-height: 0;
    opacity: 0;
    padding-block: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(.96);
  }

  .storefront-page.is-topbar-compact .cart-nav-link {
    height: 0;
  }

  .storefront-page main {
    padding-inline: 18px;
  }

  .storefront-page .home-brand-hero {
    min-height: auto;
    padding: 64px 0 54px;
  }

  .storefront-page .home-hero-copy h1 {
    font-size: clamp(42px, 14vw, 52px);
  }

  .storefront-page .home-hero-actions,
  .trust-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .storefront-page .button,
  .storefront-page button {
    width: 100%;
  }

  .storefront-page .product-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-page .product-card-actions .button,
  .storefront-page .product-card-actions button {
    padding-inline: 10px;
  }

  .landing-section {
    padding: 72px 0;
  }

  .storefront-page .security-panel {
    align-items: stretch;
    border-radius: 24px;
    gap: 22px;
    padding: 28px 22px;
  }

  .storefront-page .security-panel h2 {
    font-size: clamp(28px, 8.4vw, 34px);
    line-height: 1.12;
    text-wrap: pretty;
  }

  .storefront-page .security-panel li {
    border-radius: 14px;
    padding: 13px 14px;
  }

  .storefront-page .security-panel .tech-label {
    letter-spacing: .2em;
  }

  .section-header h2,
  .final-cta h2,
  .auth-intro h1 {
    font-size: clamp(34px, 11vw, 42px);
  }

  .auth-page .phone-row {
    grid-template-columns: 1fr;
  }

  .login-page main.login-shell {
    gap: 22px;
    padding-bottom: 42px;
    padding-top: 34px;
  }

  .login-page .login-intro,
  .login-page .auth.login-panel {
    border-radius: 24px;
    min-height: 0;
    padding: 24px;
  }

  .login-page .login-intro h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .login-page .auth.login-panel .captcha-row {
    grid-template-columns: 1fr;
  }

  .login-link-row {
    align-items: stretch;
    display: grid;
  }

  .storefront-page.order-page main.order-lookup-page {
    gap: 18px;
    padding-bottom: 42px;
    padding-top: 34px;
  }

  .storefront-page .order-lookup-hero,
  .storefront-page .order-lookup-form {
    grid-template-columns: 1fr;
  }

  .storefront-page .order-lookup-hero {
    border-radius: 24px;
    padding: 24px;
  }

  .storefront-page .order-lookup-hero h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .storefront-page .order-summary-grid {
    grid-template-columns: 1fr;
  }

  .storefront-page .invoice-backup-actions {
    align-items: stretch;
    display: grid;
  }

  .storefront-page .order-detail-table tr {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .11);
  }

  .storefront-page .order-detail-table td,
  .storefront-page .order-detail-table td:first-child {
    border-bottom-color: rgba(255, 255, 255, .09);
  }

  .storefront-page .order-detail-table td::before {
    color: rgba(255, 255, 255, .52);
    font-family: "JetBrains Mono", Consolas, monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
}
