:root {
  --ink: #1f2923;
  --ink-2: #3d4942;
  --forest: #1f3b31;
  --forest-2: #2f5548;
  --pine: #466b5b;
  --sage: #8da394;
  --sage-soft: #dfe7df;
  --cream: #f2eee4;
  --cream-2: #e8e1d2;
  --paper: #fbf9f4;
  --white: #ffffff;
  --clay: #b86645;
  --clay-soft: #f1ded5;
  --gold: #b7955e;
  --gold-soft: #eee5d2;
  --blue: #5f7485;
  --violet: #73677e;
  --muted: #7f857f;
  --muted-2: #a4a59e;
  --line: #e6e0d5;
  --line-dark: rgba(255, 255, 255, 0.13);
  --danger: #ad4e42;
  --success: #2f7158;
  --warning: #a77839;
  --shadow-sm: 0 8px 24px rgba(40, 50, 44, 0.06);
  --shadow-md: 0 22px 60px rgba(33, 44, 37, 0.12);
  --shadow-lg: 0 38px 90px rgba(30, 42, 35, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, serif;
}

/* Configurable health themes and site settings */
body[data-theme] {
  background:
    radial-gradient(circle at 12% 5%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--paper) 88%, white) 0%, var(--cream) 100%);
}

.logo-mark-character {
  display: grid;
  width: var(--logo-size, 34px);
  height: var(--logo-size, 34px);
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: calc(var(--logo-size, 34px) * 0.42);
  line-height: 1;
}

.store-announcement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 16px 0;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: 13px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--gold-soft) 58%, var(--white));
  font-size: 13px;
}

.store-announcement button {
  flex: 0 0 auto;
  color: var(--forest-2);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

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

.theme-choice {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--choice-bg) 82%, white), #fff);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.theme-choice:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--choice-primary) 45%, var(--line));
}

.theme-choice.is-selected {
  border-color: var(--choice-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--choice-primary) 20%, transparent);
}

.theme-choice-preview {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 52px;
  padding: 8px;
  border-radius: 10px;
  background: var(--choice-bg);
}

.theme-choice-preview i {
  display: block;
  width: 28%;
  border-radius: 4px 4px 2px 2px;
}

.theme-choice-preview i:nth-child(1) {
  height: 70%;
  background: var(--choice-deep);
}

.theme-choice-preview i:nth-child(2) {
  height: 100%;
  background: var(--choice-primary);
}

.theme-choice-preview i:nth-child(3) {
  height: 48%;
  background: var(--choice-accent);
}

.theme-choice-copy {
  display: grid;
  gap: 2px;
}

.theme-choice-copy strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
}

.theme-choice-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.theme-choice-check {
  position: absolute;
  top: 9px;
  right: 9px;
  display: none;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: var(--theme-on-primary);
  background: var(--choice-primary);
}

.theme-choice.is-selected .theme-choice-check {
  display: grid;
}

.switch-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--paper) 65%, white);
}

.switch-field > span {
  display: grid;
  gap: 2px;
}

.switch-field strong {
  color: var(--ink);
  font-size: 13px;
}

.switch-field small {
  color: var(--muted);
  font-size: 12px;
}

.switch-field input {
  width: 42px;
  height: 23px;
  accent-color: var(--forest-2);
}

@media (max-width: 960px) {
  .theme-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .theme-choice-grid {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(183, 149, 94, 0.08), transparent 28%),
    linear-gradient(145deg, #f7f4ed 0%, #efede6 100%);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

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

svg {
  display: block;
}

.icon {
  flex: 0 0 auto;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

::selection {
  color: var(--paper);
  background: var(--forest-2);
}

.eyebrow {
  display: inline-block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.block {
  display: block;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--clay);
}

.full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: var(--forest-2);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: var(--paper);
  background: var(--forest-2);
  box-shadow: 0 10px 24px rgba(47, 85, 72, 0.18);
}

.btn-primary:hover {
  background: var(--forest);
  box-shadow: 0 14px 30px rgba(47, 85, 72, 0.24);
}

.btn-dark {
  color: var(--paper);
  background: var(--forest);
}

.btn-secondary {
  color: var(--ink-2);
  border-color: var(--line);
  background: var(--white);
}

.btn-secondary:hover {
  border-color: var(--cream-2);
  background: var(--paper);
}

.btn-ghost {
  color: var(--forest-2);
  border-color: transparent;
  background: rgba(47, 85, 72, 0.07);
}

.btn-cream {
  color: var(--forest);
  background: var(--cream);
}

.btn-outline-light {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.32);
}

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

.btn-small {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 14px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transition:
    background 160ms ease,
    color 160ms ease;
}

.icon-btn:hover {
  color: var(--forest);
  background: var(--white);
}

.status-badge,
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.status-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.tone-green {
  color: var(--success);
  background: #e8f1ec;
}

.tone-amber {
  color: #9b6a27;
  background: #f6ecd9;
}

.tone-blue {
  color: #4b687d;
  background: #e8eff4;
}

.tone-violet {
  color: #6e5a7c;
  background: #eee9f2;
}

.tone-gray {
  color: #7c807b;
  background: #eeece7;
}

.level-member {
  color: #7e642d;
  background: var(--gold-soft);
}

.level-agent {
  color: #7c4b2f;
  background: var(--clay-soft);
}

.level-customer {
  color: var(--muted);
  background: #eeece7;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--avatar-size);
  height: var(--avatar-size);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 55%),
    var(--avatar-color);
  font-family: var(--serif);
  font-size: calc(var(--avatar-size) * 0.36);
  box-shadow: 0 4px 12px rgba(24, 35, 29, 0.12);
}

.logo-mark {
  display: inline-flex;
  width: var(--logo-size);
  height: var(--logo-size);
  color: currentColor;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

/* Loading and errors */
.app-preloader,
.app-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px;
  text-align: center;
}

.app-preloader {
  color: var(--forest);
  background: var(--paper);
}

.preloader-title {
  margin: 14px 0 34px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.24em;
}

.app-preloader p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.loading-ring {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--cream-2);
  border-top-color: var(--forest-2);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.app-error > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  color: var(--forest-2);
  border-radius: 50%;
  background: var(--cream);
}

.app-error h1 {
  margin: 22px 0 8px;
  font-size: clamp(26px, 4vw, 38px);
}

.app-error p {
  max-width: 440px;
  color: var(--muted);
}

.app-error > div {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

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

/* Toasts */
.toast-root {
  position: fixed;
  z-index: 300;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 240px;
  max-width: 380px;
  padding: 12px 15px;
  color: var(--paper);
  border-radius: 13px;
  background: var(--forest);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-error {
  background: #8b433b;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  z-index: 220;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 29, 24, 0.48);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 200ms ease;
}

.modal-backdrop.is-open {
  opacity: 1;
}

.modal-panel {
  position: relative;
  width: min(540px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-backdrop.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.wide-modal .modal-panel {
  width: min(900px, 100%);
}

.modal-close {
  position: sticky;
  z-index: 3;
  top: 0;
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -10px -8px 0 8px;
  color: var(--muted);
  border-radius: 50%;
  background: transparent;
}

.modal-close:hover {
  color: var(--ink);
  background: var(--cream);
}

.modal-form > .eyebrow {
  margin-bottom: 5px;
}

.modal-form h2,
.success-modal h2,
.account-modal h2,
.mobile-more-menu h2 {
  margin-bottom: 6px;
  font-size: 27px;
}

.modal-form > p,
.success-modal > p,
.account-modal > p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

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

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.field input,
.field textarea,
.field select,
.plain-input,
.search-box input,
.input-icon input,
.tier-editor-row input,
.sku-editor-row input,
.sku-editor-row select {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.plain-input:focus,
.search-box input:focus {
  border-color: rgba(47, 85, 72, 0.5);
  background: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 85, 72, 0.08);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.confirm-content {
  padding: 4px 4px 0;
  text-align: center;
}

.confirm-content .dialog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--forest-2);
  background: var(--cream);
}

.confirm-content .tone-danger {
  color: var(--danger);
  background: #f5e5e1;
}

.confirm-content h3 {
  margin: 16px 0 6px;
  font-size: 24px;
}

.confirm-content p {
  color: var(--muted);
}

.confirm-content .dialog-actions {
  justify-content: center;
}

.success-modal {
  padding: 10px 4px 0;
  text-align: center;
}

.success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  color: var(--paper);
  border-radius: 50%;
  background: var(--forest-2);
  box-shadow: 0 14px 34px rgba(47, 85, 72, 0.24);
}

.success-check.leaf {
  color: var(--forest-2);
  background: var(--cream);
  box-shadow: none;
}

.success-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
  padding: 16px;
  border-radius: 15px;
  background: var(--cream);
}

.success-summary div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.success-summary strong {
  font-size: 15px;
}

.account-modal {
  padding: 8px 4px 0;
}

.account-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 9px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.account-option:hover {
  border-color: rgba(47, 85, 72, 0.35);
  transform: translateY(-1px);
}

.account-option > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.account-option strong {
  font-size: 14px;
}

.account-option small {
  color: var(--muted);
  font-size: 14px;
}

.mobile-more-menu {
  padding: 6px 2px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.more-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font-size: 14px;
}

.more-grid button:hover {
  color: var(--forest);
  border-color: rgba(47, 85, 72, 0.3);
}

/* Store desktop stage */
.store-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: clamp(34px, 5vw, 86px);
  align-items: start;
  width: min(100%, 1360px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px clamp(28px, 4vw, 64px);
}

.store-intro {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
  max-height: 900px;
  padding: clamp(32px, 4vw, 58px);
  overflow: hidden;
  color: var(--cream);
  border-radius: 36px;
  background:
    radial-gradient(circle at 82% 16%, rgba(183, 149, 94, 0.2), transparent 26%),
    radial-gradient(circle at 18% 78%, rgba(87, 126, 107, 0.3), transparent 32%),
    linear-gradient(145deg, #1d392f 0%, #142b23 100%);
  box-shadow: 0 32px 90px rgba(30, 49, 40, 0.22);
}

.store-intro::after {
  position: absolute;
  right: -110px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
}

.intro-top {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.intro-copy {
  position: relative;
  z-index: 1;
  margin-top: clamp(34px, 6vh, 72px);
}

.intro-index {
  color: rgba(242, 238, 228, 0.5);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.intro-copy h1 {
  margin-top: 19px;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.intro-copy h1 span {
  color: #cbb183;
  font-style: italic;
}

.intro-copy p {
  max-width: 430px;
  margin-top: 22px;
  color: rgba(242, 238, 228, 0.68);
  font-size: 14px;
  line-height: 1.9;
}

.intro-art {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex: 1;
  min-height: 240px;
  margin: -48px -40px -70px;
  color: rgba(232, 223, 204, 0.58);
  pointer-events: none;
}

.intro-art .product-artwork {
  width: min(100%, 470px);
}

.intro-art .artwork-caption,
.intro-art .artwork-seal {
  display: none;
}

.intro-art .artwork-box {
  width: 32%;
}

.intro-meta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 24px;
  padding-top: 20px;
  color: rgba(242, 238, 228, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.intro-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  color: rgba(242, 238, 228, 0.35);
  font-size: 14px;
}

.intro-footer div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(242, 238, 228, 0.6);
}

/* Phone shell */
.phone-shell {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  width: 430px;
  height: calc(100vh - 80px);
  max-height: 900px;
  overflow: hidden;
  border: 7px solid #1c2420;
  border-radius: 46px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 35px 100px rgba(32, 44, 37, 0.2);
}

.phone-statusbar {
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 6px 24px 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
}

.status-icons {
  letter-spacing: 0.05em;
}

.phone-scroll {
  position: relative;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.phone-scroll::-webkit-scrollbar {
  display: none;
}

.phone-scroll > * {
  animation: fade-up 420ms ease both;
}

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

/* Store navigation */
.store-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 14px 20px 10px;
  background: linear-gradient(to bottom, var(--paper) 75%, transparent);
}

.store-topbar-side {
  display: flex;
  align-items: center;
  width: 90px;
}

.store-topbar-side.right {
  justify-content: flex-end;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--forest);
}

.store-brand > div {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.store-brand strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.store-brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.store-page-title {
  position: absolute;
  left: 50%;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  transform: translateX(-50%);
}

.store-back {
  width: 34px;
  height: 34px;
  border-color: transparent;
  background: var(--cream);
}

.account-chip {
  padding: 0;
  border-radius: 50%;
  background: transparent;
}

.store-tabbar {
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex: 0 0 67px;
  padding: 8px 34px 9px;
  border-top: 1px solid rgba(230, 224, 213, 0.8);
  background: rgba(251, 249, 244, 0.94);
  backdrop-filter: blur(16px);
}

.store-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #a2a49e;
  background: transparent;
  font-size: 14px;
  transition: color 160ms ease;
}

.store-tab.is-active {
  color: var(--forest);
}

.store-tab.is-active svg {
  stroke-width: 2.1;
}

.store-tab:hover {
  color: var(--forest-2);
}

/* Product artwork */
.product-artwork {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  color: var(--forest-2);
}

.artwork-halo {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.9), transparent 26%),
    radial-gradient(circle, rgba(198, 181, 143, 0.3), rgba(198, 181, 143, 0) 67%);
}

.artwork-botanical {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  color: var(--forest-2);
}

.artwork-orbit {
  position: absolute;
  top: 12%;
  left: 13%;
  width: 74%;
  height: 74%;
  border: 1px solid rgba(47, 85, 72, 0.17);
  border-radius: 50%;
}

.artwork-orbit::after {
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(47, 85, 72, 0.1);
  border-radius: 50%;
  content: "";
}

.artwork-box {
  position: absolute;
  top: 25%;
  left: 35%;
  width: 30%;
  height: 49%;
  padding: 6% 4% 4%;
  color: var(--cream);
  border-radius: 2px 2px 4px 4px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.11), transparent 24%),
    linear-gradient(
      150deg,
      var(--product-accent, #31594b) 0%,
      #1b3a2f 62%,
      #122a21 100%
    );
  box-shadow:
    16px 22px 34px rgba(36, 58, 47, 0.24),
    -4px 4px 10px rgba(36, 58, 47, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: center;
  transform: perspective(700px) rotateY(-8deg) rotateZ(1.5deg);
}

.box-edge {
  position: absolute;
  top: 0;
  right: 0;
  width: 8%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.07));
}

.box-brand {
  color: rgba(242, 238, 228, 0.45);
  font-size: clamp(4px, 1vw, 7px);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.box-name {
  margin-top: 8%;
  font-family: var(--serif);
  font-size: clamp(9px, 2vw, 14px);
  letter-spacing: 0.14em;
}

.box-character {
  margin: 1% 0 4%;
  color: #d2bc8e;
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 54px);
  line-height: 1.05;
}

.box-rule {
  width: 42%;
  height: 1px;
  margin: 0 auto 7%;
  background: rgba(226, 210, 177, 0.45);
}

.box-product {
  font-size: clamp(4px, 1vw, 7px);
  letter-spacing: 0.08em;
}

.box-count {
  position: absolute;
  right: 12%;
  bottom: 12%;
  color: rgba(242, 238, 228, 0.58);
  font-family: var(--serif);
  font-size: clamp(8px, 1.6vw, 12px);
}

.box-count small {
  margin-left: 1px;
  font-family: var(--sans);
  font-size: 60%;
}

.box-seal {
  position: absolute;
  bottom: 9%;
  left: 10%;
  padding: 3px 4px;
  color: #d9c49b;
  border: 1px solid rgba(217, 196, 155, 0.5);
  font-size: clamp(3px, 0.8vw, 5px);
  line-height: 1.2;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.artwork-leaf {
  position: absolute;
  display: block;
  width: 7%;
  height: 14%;
  border: 1px solid rgba(47, 85, 72, 0.36);
  border-radius: 100% 0 100% 0;
  transform: rotate(-30deg);
}

.leaf-a {
  right: 21%;
  bottom: 14%;
}

.leaf-b {
  top: 24%;
  left: 18%;
  width: 5%;
  height: 10%;
  transform: rotate(28deg);
}

.artwork-caption {
  position: absolute;
  right: 11%;
  bottom: 12%;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.product-artwork.is-compact {
  width: 70px;
  height: 76px;
  flex: 0 0 70px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 45%, #f5f0e4 0%, #ebe4d6 70%);
}

.product-artwork.is-compact .artwork-botanical,
.product-artwork.is-compact .artwork-halo,
.product-artwork.is-compact .artwork-orbit,
.product-artwork.is-compact .artwork-caption,
.product-artwork.is-compact .artwork-leaf,
.product-artwork.is-compact .box-brand,
.product-artwork.is-compact .box-name,
.product-artwork.is-compact .box-rule,
.product-artwork.is-compact .box-product,
.product-artwork.is-compact .box-seal,
.product-artwork.is-compact .box-edge {
  display: none;
}

.product-artwork.is-compact .artwork-box {
  top: 16%;
  left: 27%;
  width: 47%;
  height: 66%;
  padding-top: 10%;
}

.product-artwork.is-compact .box-character {
  margin-top: 0;
  font-size: 18px;
}

.product-artwork.is-compact .box-count {
  right: 9%;
  bottom: 8%;
  font-size: 6px;
}

/* Multi-product catalog */
.mall-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 18px 12px;
  padding: 5px 6px 5px 13px;
  color: var(--forest-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
}

.mall-search input {
  min-width: 0;
  flex: 1;
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.mall-search > button[type="submit"] {
  padding: 7px 12px;
  color: var(--paper);
  border-radius: 999px;
  background: var(--forest-2);
  font-size: 14px;
  font-weight: 600;
}

.mall-search-clear {
  display: inline-flex;
  padding: 2px;
  color: var(--muted);
  background: transparent;
}

.mall-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px;
  min-height: 205px;
  margin: 0 18px;
  overflow: hidden;
  border-radius: 23px;
  background:
    radial-gradient(circle at 82% 24%, rgba(183, 149, 94, 0.2), transparent 32%),
    linear-gradient(140deg, #f2eee4 0%, #f8f4eb 62%, #ece3d2 100%);
}

.mall-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 0 24px 22px;
}

.mall-hero-copy > span {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.mall-hero-copy h1 {
  margin-top: 9px;
  color: var(--forest);
  font-size: 32px;
  line-height: 1.2;
}

.mall-hero-copy p {
  max-width: 235px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.mall-hero-copy .btn {
  margin-top: auto;
  min-height: 37px;
  padding: 8px 15px;
  font-size: 14px;
}

.mall-hero-art {
  position: relative;
  align-self: stretch;
}

.mall-hero-art .product-artwork {
  position: absolute;
  top: -34px;
  right: -64px;
  width: 255px;
  height: 255px;
}

.mall-hero-price {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 14px;
  padding: 6px 9px;
  color: var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(251, 249, 244, 0.82);
  font-family: var(--serif);
  font-size: 16px;
  backdrop-filter: blur(8px);
}

.mall-hero-price small {
  margin-left: 2px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
}

.mall-category-scroll {
  display: flex;
  gap: 7px;
  margin-top: 15px;
  padding: 0 18px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mall-category-scroll::-webkit-scrollbar {
  display: none;
}

.mall-category-scroll button {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
}

.mall-category-scroll button.is-active {
  color: var(--paper);
  border-color: var(--forest-2);
  background: var(--forest-2);
  font-weight: 600;
}

.mall-products-section {
  padding: 22px 18px 0;
}

.mall-section-heading {
  align-items: center;
}

.mall-section-heading h2 {
  font-size: 25px;
}

.mall-section-heading .section-count {
  padding: 4px 8px;
  color: var(--muted);
  border-radius: 999px;
  background: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
}

.mall-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mall-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.mall-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.mall-product-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
}

.mall-product-visual .catalog-art {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.mall-product-visual .catalog-glyph {
  font-size: 48px;
}

.mall-product-visual .catalog-orbit {
  width: 95px;
  height: 95px;
}

.mall-product-visual .catalog-art small {
  right: 9px;
  bottom: 9px;
  font-size: 10px;
}

.mall-member-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 7px;
  color: #735b30;
  border-radius: 999px;
  background: var(--gold-soft);
  font-size: 14px;
  font-weight: 600;
}

.mall-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px;
}

.mall-product-category {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

.mall-product-copy > strong {
  margin-top: 3px;
  overflow: hidden;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mall-product-copy > p {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mall-product-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 8px;
}

.mall-product-price-row b {
  color: var(--clay);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.mall-product-price-row small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 14px;
}

.mall-product-price-row i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  color: var(--forest-2);
  border-radius: 50%;
  background: var(--cream);
  font-style: normal;
}

.mall-member-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 36px);
  margin: 22px 18px 0;
  padding: 13px;
  text-align: left;
  color: var(--cream);
  border-radius: 17px;
  background:
    radial-gradient(circle at 88% 10%, rgba(183, 149, 94, 0.27), transparent 34%),
    var(--forest);
}

.mall-member-bar.is-member {
  color: var(--forest);
  background:
    radial-gradient(circle at 90% 10%, rgba(183, 149, 94, 0.18), transparent 34%),
    var(--gold-soft);
}

.mall-member-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.mall-member-bar.is-member .mall-member-icon {
  background: rgba(255, 255, 255, 0.55);
}

.mall-member-bar > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.mall-member-bar strong {
  font-size: 14px;
}

.mall-member-bar small {
  opacity: 0.62;
  font-size: 14px;
}

.catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 16px;
}

.catalog-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--white);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.catalog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 85, 72, 0.28);
  box-shadow: var(--shadow-sm);
}

.catalog-index {
  position: absolute;
  top: 9px;
  right: 11px;
  color: var(--muted-2);
  font-family: var(--serif);
  font-size: 14px;
}

.catalog-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 92px;
  overflow: hidden;
  border-radius: 14px;
  color: var(--paper);
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(145deg, var(--catalog-accent), #18342a);
}

.catalog-orbit {
  position: absolute;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.catalog-glyph {
  position: relative;
  z-index: 1;
  color: #e2cfaa;
  font-family: var(--serif);
  font-size: 33px;
}

.catalog-art small {
  position: absolute;
  right: 6px;
  bottom: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.catalog-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.catalog-copy small {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

.catalog-copy strong {
  margin-top: 2px;
  overflow: hidden;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-copy > span {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-top: 18px;
}

.catalog-price b {
  color: var(--clay);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.catalog-price small {
  color: var(--muted-2);
  font-size: 14px;
  white-space: nowrap;
}

.sku-price small {
  display: block;
  margin-top: 1px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 14px;
  text-align: right;
}

/* Store home */
.store-hero {
  position: relative;
  padding: 30px 22px 0;
  overflow: hidden;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.hero-eyebrow span {
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.store-hero h1 {
  margin-top: 12px;
  color: var(--forest);
  font-size: 44px;
  line-height: 1.22;
  letter-spacing: -0.05em;
}

.store-hero h1 em {
  color: var(--clay);
  font-style: italic;
}

.store-hero > p {
  max-width: 340px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.hero-actions .btn {
  min-height: 40px;
  padding: 9px 17px;
  font-size: 14px;
}

.hero-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero-artwork {
  position: relative;
  margin: -16px -10px -30px;
}

.hero-artwork .product-artwork {
  width: 100%;
}

.floating-price {
  position: absolute;
  right: 20%;
  bottom: 18%;
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 9px 13px;
  color: var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(251, 249, 244, 0.75);
  box-shadow: 0 10px 24px rgba(41, 57, 47, 0.09);
  backdrop-filter: blur(10px);
  font-family: var(--serif);
  font-size: 24px;
}

.floating-price small {
  font-size: 14px;
}

.floating-price i {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
}

.floating-label {
  position: absolute;
  top: 42%;
  left: 12%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  color: var(--forest-2);
  border-radius: 999px;
  background: rgba(251, 249, 244, 0.78);
  backdrop-filter: blur(8px);
  font-size: 14px;
  letter-spacing: 0.07em;
}

.intro-strip {
  display: grid;
  grid-template-columns: 24px 1fr 40px;
  gap: 12px;
  align-items: start;
  margin: 0 22px 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-strip > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
}

.intro-strip p {
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.75;
}

.intro-strip > i {
  height: 1px;
  margin-top: 16px;
  background: var(--gold);
}

.member-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 36px);
  margin: 8px 18px 0;
  padding: 14px;
  text-align: left;
  color: var(--cream);
  border-radius: 17px;
  background:
    radial-gradient(circle at 85% 10%, rgba(183, 149, 94, 0.28), transparent 36%),
    var(--forest);
  box-shadow: 0 12px 30px rgba(31, 59, 49, 0.16);
}

.member-ribbon.guest {
  color: var(--forest);
  border: 1px solid var(--cream-2);
  background: linear-gradient(135deg, #f4ecdc, #faf7f0);
  box-shadow: none;
}

.member-ribbon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.member-ribbon.guest .member-ribbon-icon {
  background: rgba(183, 149, 94, 0.14);
}

.member-ribbon > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.member-ribbon small {
  opacity: 0.58;
  font-size: 14px;
}

.member-ribbon strong {
  font-size: 14px;
  font-weight: 500;
}

.ribbon-arrow {
  opacity: 0.65;
}

.store-section {
  padding: 30px 18px 0;
}

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

.section-heading h2 {
  margin-top: 5px;
  color: var(--forest);
  font-size: 25px;
}

.section-heading.compact h2 {
  font-size: 21px;
}

.section-count {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr 1.14fr;
  gap: 9px;
  margin-top: 15px;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 164px;
  padding: 15px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.package-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 85, 72, 0.28);
  box-shadow: var(--shadow-sm);
}

.package-grid .package-card:nth-child(3) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  min-height: 88px;
}

.package-card.is-featured {
  color: var(--cream);
  border-color: var(--forest);
  background:
    radial-gradient(circle at 90% 8%, rgba(201, 176, 126, 0.2), transparent 32%),
    var(--forest);
}

.package-index {
  color: var(--muted-2);
  font-family: var(--serif);
  font-size: 14px;
}

.is-featured .package-index {
  color: rgba(242, 238, 228, 0.44);
}

.package-max {
  position: absolute;
  top: 29px;
  right: 12px;
  color: rgba(47, 85, 72, 0.08);
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.08em;
}

.is-featured .package-max {
  color: rgba(242, 238, 228, 0.08);
}

.package-max small {
  font-size: 14px;
}

.package-card > strong {
  position: relative;
  margin-top: 34px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.package-card > p {
  position: relative;
  max-width: 130px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.is-featured > p {
  color: rgba(242, 238, 228, 0.5);
}

.package-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.package-foot > span {
  font-family: var(--serif);
  font-size: 18px;
}

.package-foot i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--forest);
  border-radius: 50%;
  background: var(--cream);
  font-style: normal;
}

.is-featured .package-foot i {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.12);
}

.package-badge {
  position: absolute;
  top: 13px;
  right: 12px;
  padding: 3px 7px;
  color: var(--forest-2);
  border-radius: 999px;
  background: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.is-featured .package-badge {
  color: #ddc999;
  background: rgba(255, 255, 255, 0.1);
}

.package-grid .package-card:nth-child(3) .package-index {
  grid-row: 1 / -1;
}

.package-grid .package-card:nth-child(3) .package-max {
  display: none;
}

.package-grid .package-card:nth-child(3) > strong {
  grid-column: 2;
  margin-top: 0;
}

.package-grid .package-card:nth-child(3) > p {
  grid-column: 2;
  max-width: none;
  margin-top: 2px;
}

.package-grid .package-card:nth-child(3) .package-foot {
  grid-column: 3;
  grid-row: 1 / -1;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 0;
}

.package-grid .package-card:nth-child(3) .package-badge {
  top: 13px;
  left: 58px;
  right: auto;
}

.feature-panel {
  margin: 28px 18px 0;
  padding: 24px 19px;
  border-radius: 22px;
  background: var(--cream);
}

.feature-panel-head h2 {
  margin-top: 6px;
  color: var(--forest);
  font-size: 24px;
  line-height: 1.35;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid rgba(47, 85, 72, 0.11);
}

.feature-item {
  display: grid;
  grid-template-columns: 21px 32px 1fr;
  gap: 9px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(47, 85, 72, 0.09);
}

.feature-num {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--forest-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.feature-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.feature-item p {
  margin-top: 1px;
  color: var(--muted);
  font-size: 14px;
}

.membership-invite {
  position: relative;
  margin: 28px 18px 0;
  padding: 27px 22px 24px;
  overflow: hidden;
  color: var(--cream);
  border-radius: 25px;
  background:
    radial-gradient(circle at 88% 18%, rgba(183, 149, 94, 0.27), transparent 32%),
    linear-gradient(145deg, #2b4f42, #17342a);
}

.membership-code {
  color: rgba(242, 238, 228, 0.43);
  font-size: 14px;
  letter-spacing: 0.2em;
}

.membership-invite-copy {
  position: relative;
  z-index: 1;
  margin-top: 17px;
}

.membership-invite-copy h2 {
  font-size: 27px;
  line-height: 1.35;
}

.membership-invite-copy p {
  max-width: 270px;
  margin-top: 9px;
  color: rgba(242, 238, 228, 0.56);
  font-size: 14px;
  line-height: 1.75;
}

.reward-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 21px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.reward-row div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reward-row div + div {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.reward-row strong {
  color: #ddc79a;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.reward-row span {
  color: rgba(242, 238, 228, 0.45);
  font-size: 14px;
}

.membership-invite > .btn {
  position: relative;
  z-index: 1;
  min-height: 37px;
  font-size: 14px;
}

.membership-watermark {
  position: absolute;
  right: -8px;
  bottom: -44px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--serif);
  font-size: 180px;
  line-height: 1;
}

.brand-story {
  margin: 34px 22px 0;
  padding: 24px 0 28px;
  text-align: center;
}

.brand-story h2 {
  margin-top: 9px;
  color: var(--forest);
  font-size: 27px;
  letter-spacing: 0.07em;
}

.brand-story > p {
  max-width: 310px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.story-sign {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.store-footer {
  display: flex;
  justify-content: space-between;
  margin: 0 18px;
  padding: 18px 4px 28px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* Product page */
.product-page-hero {
  position: relative;
  margin: 0 18px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 35%, #fbf8f0 0%, #eee6d5 75%);
}

.product-page-hero .product-artwork {
  margin: -20px 0 -35px;
}

.product-hero-meta {
  display: flex;
  justify-content: space-between;
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.product-info {
  padding: 22px 22px 18px;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
}

.product-title-row h1 {
  max-width: 270px;
  color: var(--forest);
  font-size: 28px;
  line-height: 1.35;
}

.product-price {
  flex: 0 0 auto;
  padding-top: 4px;
  color: var(--clay);
  font-family: var(--serif);
  font-size: 23px;
}

.product-price small {
  margin-left: 2px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
}

.product-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.product-assurance {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-assurance span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.product-assurance svg {
  color: var(--forest-2);
}

.option-section {
  padding: 18px 18px 0;
}

.sku-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 13px;
}

.sku-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.sku-option.is-selected {
  border-color: var(--forest-2);
  background: #f7faf7;
  box-shadow: inset 0 0 0 1px var(--forest-2);
}

.sku-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.is-selected .sku-check {
  border-color: var(--forest-2);
  background: var(--forest-2);
}

.sku-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.sku-copy strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.sku-copy em {
  margin-left: 4px;
  padding: 2px 5px;
  color: var(--clay);
  border-radius: 999px;
  background: var(--clay-soft);
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
  vertical-align: 1px;
}

.sku-copy small {
  color: var(--muted);
  font-size: 14px;
}

.sku-price {
  font-family: var(--serif);
  font-size: 15px;
}

.product-story-card {
  margin: 24px 18px 0;
  padding: 24px 20px;
  border-radius: 21px;
  background: var(--cream);
}

.product-story-card h2 {
  margin-top: 6px;
  color: var(--forest);
  font-size: 24px;
}

.product-story-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.ritual-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid rgba(47, 85, 72, 0.12);
}

.ritual-steps div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ritual-steps span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
}

.ritual-steps strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.ritual-steps small {
  color: var(--muted);
  font-size: 14px;
}

.detail-copy {
  padding: 27px 22px 0;
}

.detail-copy h2 {
  margin-top: 6px;
  color: var(--forest);
  font-size: 23px;
}

.detail-copy > p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.detail-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.detail-notes > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.detail-notes > div > svg {
  color: var(--forest-2);
}

.detail-notes span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.detail-notes strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.detail-notes small {
  color: var(--muted);
  font-size: 14px;
}

.member-explainer {
  margin: 24px 18px 22px;
  padding: 19px;
  border: 1px solid var(--cream-2);
  border-radius: 20px;
  background: linear-gradient(135deg, #faf6ed, #f6f1e7);
}

.member-explainer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}

.member-explainer-head div {
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.member-explainer-head span {
  color: var(--muted);
  font-size: 14px;
}

.member-explainer-head strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.member-explainer > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.member-explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 13px;
}

.member-explainer-grid span {
  display: flex;
  flex-direction: column;
  padding: 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-size: 14px;
}

.member-explainer-grid b {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.member-explainer .text-link {
  margin-top: 12px;
}

.buy-dock,
.checkout-dock {
  position: sticky;
  z-index: 20;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 17px calc(11px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(230, 224, 213, 0.8);
  background: rgba(251, 249, 244, 0.95);
  backdrop-filter: blur(16px);
}

.buy-dock > div,
.checkout-dock > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.buy-dock span,
.checkout-dock span {
  color: var(--muted);
  font-size: 14px;
}

.buy-dock strong,
.checkout-dock strong {
  color: var(--clay);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.buy-dock .btn,
.checkout-dock .btn {
  min-width: 145px;
  min-height: 44px;
  font-size: 14px;
}

/* Checkout */
.checkout-page {
  padding: 12px 16px 22px;
}

.checkout-card {
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-heading > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-weight: 600;
}

.card-heading svg {
  color: var(--forest-2);
}

.address-preview strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.address-preview p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.checkout-product {
  display: flex;
  align-items: center;
  gap: 11px;
}

.checkout-product > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.checkout-product strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-product p {
  color: var(--muted);
  font-size: 14px;
}

.checkout-product small {
  color: var(--gold);
  font-size: 14px;
}

.checkout-product > span {
  font-family: var(--serif);
  font-size: 16px;
}

.inline-benefit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  padding: 8px 10px;
  color: #7c5f2e;
  border-radius: 9px;
  background: var(--gold-soft);
  font-size: 14px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.payment-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 11px;
  background: #2caa67;
}

.payment-option > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.payment-option strong {
  font-size: 14px;
}

.payment-option small {
  color: var(--muted);
  font-size: 14px;
}

.payment-option input {
  position: absolute;
  opacity: 0;
}

.payment-option > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--paper);
  border-radius: 50%;
  background: var(--forest-2);
  font-style: normal;
}

.plain-input {
  min-height: 38px;
  border: 0;
  background: #f6f4ee;
}

.checkout-summary {
  margin-top: 2px;
  padding: 12px 5px;
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.checkout-summary strong {
  color: var(--ink-2);
  font-weight: 500;
}

.checkout-summary .total {
  margin-top: 5px;
  padding-top: 10px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.checkout-summary .total strong {
  color: var(--clay);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.checkout-tip {
  padding: 0 5px;
  color: var(--muted-2);
  font-size: 14px;
  text-align: center;
}

/* Orders */
.orders-page {
  padding: 4px 16px 22px;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tabs > button {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--muted);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
}

.filter-tabs > button.is-active {
  color: var(--forest);
  background: var(--cream);
  font-weight: 600;
}

.order-tabs {
  margin: 8px 0 13px;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-card {
  padding: 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.order-card:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 85, 72, 0.22);
}

.order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-no {
  overflow: hidden;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  text-overflow: ellipsis;
}

.order-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f6f3ec;
}

.mini-product-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 48px;
  flex: 0 0 42px;
  overflow: hidden;
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 30%, #fdfaf3, #e8e0d0);
}

.mini-product-art span,
.mini-product-art i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 35px;
  color: #d9c79e;
  border-radius: 2px;
  background: var(--forest);
  font-family: var(--serif);
  font-size: 14px;
  font-style: normal;
}

.order-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.order-product-copy strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-product-copy p {
  color: var(--muted);
  font-size: 14px;
}

.order-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.order-amount strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.order-amount small {
  color: var(--muted);
  font-size: 14px;
}

.order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
}

.order-card-foot > span {
  color: var(--muted-2);
  font-size: 14px;
}

.order-detail-page {
  padding: 9px 16px 26px;
}

.order-status-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  color: var(--cream);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 10%, rgba(183, 149, 94, 0.26), transparent 34%),
    var(--forest);
}

.status-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  color: #d9c185;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.order-status-hero div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-status-hero span:not(.status-orb) {
  color: rgba(242, 238, 228, 0.48);
  font-size: 14px;
}

.order-status-hero strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.status-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0 14px;
  padding: 12px 4px;
}

.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.timeline-step::before {
  position: absolute;
  top: 7px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--line);
  content: "";
}

.timeline-step:first-child::before {
  display: none;
}

.timeline-step.is-done::before {
  background: var(--forest-2);
}

.timeline-dot {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.is-done .timeline-dot {
  border-color: var(--forest-2);
  background: var(--forest-2);
}

.timeline-step > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.timeline-step strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.is-done strong {
  color: var(--ink-2);
}

.timeline-step small {
  color: var(--muted-2);
  font-size: 14px;
}

.order-cancelled {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0;
  padding: 12px;
  color: var(--muted);
  border-radius: 12px;
  background: var(--cream);
  font-size: 14px;
}

.tracking-box strong {
  font-size: 14px;
}

.tracking-box p {
  margin-top: 2px;
  color: var(--muted);
  font-family: monospace;
  font-size: 14px;
}

.commission-mini-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.member-trace-list {
  display: flex;
  flex-direction: column;
}

.register-page {
  padding: 10px 16px 26px;
}

.register-hero {
  padding: 26px 22px;
  color: var(--cream);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(183, 149, 94, 0.24), transparent 32%),
    linear-gradient(145deg, #294c3f, #173228);
}

.register-hero .eyebrow {
  color: rgba(242, 238, 228, 0.45);
}

.register-hero h1 {
  margin-top: 10px;
  font-size: 29px;
  line-height: 1.35;
}

.register-hero > p {
  margin-top: 9px;
  color: rgba(242, 238, 228, 0.58);
  font-size: 14px;
  line-height: 1.75;
}

.register-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  padding-top: 15px;
  color: rgba(242, 238, 228, 0.66);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.register-points span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.register-form {
  margin-top: 14px;
}

.register-form .checkout-card {
  margin-bottom: 12px;
}

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

.register-form .span-two {
  grid-column: auto;
}

.field-hint {
  color: var(--muted);
  font-size: 14px;
}

input.is-auto-filled {
  color: var(--success);
  border-color: rgba(47, 113, 88, 0.45);
  background: #f1f8f4;
}

.register-privacy {
  display: flex;
  gap: 7px;
  padding: 12px;
  color: var(--muted);
  border-radius: 12px;
  background: var(--cream);
  font-size: 14px;
  line-height: 1.6;
}

.register-submit {
  margin-top: 14px;
}

.register-complete-card {
  margin-top: 14px;
  text-align: center;
}

.register-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--paper);
  border-radius: 50%;
  background: var(--forest-2);
}

.register-complete-card h2 {
  margin: 12px 0 16px;
  font-size: 23px;
}

.register-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 16px;
  text-align: left;
}

.register-info-grid div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border-radius: 11px;
  background: var(--cream);
}

.register-info-grid span {
  color: var(--muted);
  font-size: 14px;
}

.register-info-grid strong {
  font-size: 14px;
}

.identity-required {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 32px 28px;
  text-align: center;
}

.identity-required > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  color: var(--forest-2);
  border-radius: 50%;
  background: var(--cream);
}

.identity-required h1 {
  margin: 18px 0 8px;
  font-size: 27px;
}

.identity-required p {
  max-width: 340px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.identity-required .btn {
  width: min(100%, 300px);
  margin-top: 12px;
}

.member-trace-list > div {
  display: grid;
  grid-template-columns: 1fr auto 34px;
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.member-trace-list > div:first-child {
  border-top: 0;
}

.member-trace-list span {
  font-size: 14px;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.member-trace-list small {
  color: var(--muted);
  font-size: 14px;
}

.member-trace-list img {
  width: 34px;
  height: 34px;
  border-radius: 4px;
}

.trace-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.commission-mini-row + .commission-mini-row {
  border-top: 1px solid var(--line);
}

.commission-mini-row strong {
  color: var(--clay);
}

.order-detail-page > .btn.full {
  margin-top: 14px;
}

/* Member center */
.me-page {
  padding-bottom: 18px;
}

.profile-hero {
  position: relative;
  margin: 2px 16px 0;
  padding: 22px 18px 18px;
  overflow: hidden;
  color: var(--cream);
  border-radius: 23px;
  background:
    radial-gradient(circle at 88% 10%, rgba(183, 149, 94, 0.22), transparent 32%),
    linear-gradient(145deg, #294c3f, #173228);
}

.profile-orbit {
  position: absolute;
  top: -55px;
  right: -50px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.profile-orbit::after {
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.profile-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-main > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.profile-main h1 {
  margin-top: 5px;
  font-size: 21px;
  line-height: 1.2;
}

.profile-main p {
  color: rgba(242, 238, 228, 0.52);
  font-size: 14px;
}

.profile-main .level-badge {
  width: fit-content;
}

.icon-btn.subtle {
  color: rgba(242, 238, 228, 0.58);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.profile-motto {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 13px;
  color: rgba(242, 238, 228, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 5px 8px;
  color: #dcc598;
  border: 1px solid rgba(220, 197, 152, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.member-stats {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 9px;
  margin: 10px 16px 0;
}

.member-stats > div {
  display: flex;
  flex-direction: column;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}

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

.member-stats strong {
  margin-top: 4px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.member-stats strong i {
  color: var(--cream-2);
  font-size: 14px;
  font-style: normal;
}

.member-stats small {
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 14px;
}

.performance-card {
  margin: 9px 16px 0;
  padding: 15px;
  border-radius: 16px;
  background: var(--cream);
}

.performance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.performance-head span {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.15em;
}

.performance-head strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.tier-progress-top,
.tier-progress-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.tier-progress-top strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.tier-progress-top strong small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
}

.progress-track {
  height: 5px;
  margin: 7px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(47, 85, 72, 0.1);
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--forest-2));
}

.upgrade-card {
  position: relative;
  margin: 10px 16px 0;
  padding: 21px 17px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 12%, rgba(183, 149, 94, 0.18), transparent 34%),
    var(--cream);
}

.upgrade-icon {
  position: absolute;
  right: 17px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  color: var(--gold);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.upgrade-card div > span {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.16em;
}

.upgrade-card h2 {
  margin: 7px 0 5px;
  color: var(--forest);
  font-size: 21px;
}

.upgrade-card p {
  max-width: 260px;
  color: var(--muted);
  font-size: 14px;
}

.upgrade-card .btn {
  margin-top: 14px;
  min-height: 35px;
  font-size: 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 15px 16px 0;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 13px 4px 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}

.quick-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  color: var(--forest-2);
  border-radius: 50%;
  background: var(--cream);
}

.quick-item strong {
  font-size: 14px;
  font-weight: 500;
}

.quick-item:hover {
  border-color: rgba(47, 85, 72, 0.25);
}

.recent-section,
.team-section,
.performance-section,
.commission-ledger,
.withdrawal-history {
  margin: 25px 16px 0;
}

.mini-order-list {
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}

.mini-order-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  text-align: left;
  background: transparent;
}

.mini-order-list button + button {
  border-top: 1px solid var(--line);
}

.mini-order-list .mini-product-art {
  width: 33px;
  height: 38px;
  flex-basis: 33px;
}

.mini-order-list .mini-product-art i {
  width: 19px;
  height: 28px;
  font-size: 14px;
}

.mini-order-list button > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.mini-order-list strong {
  font-size: 14px;
  font-weight: 500;
}

.mini-order-list small {
  color: var(--muted);
  font-size: 14px;
}

.profile-menu {
  margin: 18px 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}

.identity-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 10px 16px 0;
  padding: 12px;
  text-align: left;
  color: #7a5a2c;
  border: 1px solid rgba(183, 149, 94, 0.32);
  border-radius: 14px;
  background: var(--gold-soft);
}

.identity-banner > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.identity-banner div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.identity-banner strong {
  font-size: 14px;
}

.identity-banner small {
  color: #927447;
  font-size: 14px;
}

.profile-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px;
  background: transparent;
}

.profile-menu button + button {
  border-top: 1px solid var(--line);
}

.profile-menu button > span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.profile-menu button > span svg {
  color: var(--forest-2);
}

.profile-menu button > i {
  color: var(--muted-2);
  font-style: normal;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 15px 20px 0;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.5;
}

.privacy-note svg {
  flex: 0 0 auto;
}

.locked-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 30px;
  text-align: center;
}

.locked-page > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  color: var(--gold);
  border-radius: 50%;
  background: var(--cream);
}

.locked-page h1 {
  margin: 19px 0 7px;
  font-size: 29px;
}

.locked-page p {
  max-width: 280px;
  color: var(--muted);
  font-size: 14px;
}

.locked-page .btn {
  margin-top: 19px;
}

/* Team */
.team-page {
  padding-bottom: 24px;
}

.team-overview {
  margin: 2px 16px 0;
  padding: 20px;
  color: var(--cream);
  border-radius: 21px;
  background:
    radial-gradient(circle at 85% 15%, rgba(183, 149, 94, 0.23), transparent 32%),
    var(--forest);
}

.team-overview .eyebrow {
  color: rgba(242, 238, 228, 0.42);
}

.team-overview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 17px;
}

.team-overview-row div {
  display: flex;
  flex-direction: column;
}

.team-overview-row div + div {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.team-overview-row strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.team-overview-row span {
  color: rgba(242, 238, 228, 0.48);
  font-size: 14px;
}

.tier-card {
  margin-top: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.tier-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.tier-card strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.tier-card small {
  color: var(--muted-2);
  font-size: 14px;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 11px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.team-member > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.team-member > div > strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
}

.team-member p {
  color: var(--muted);
  font-size: 14px;
}

.team-member small {
  color: var(--muted-2);
  font-size: 14px;
}

.member-last {
  color: var(--muted-2);
  font-size: 14px;
}

.indirect-groups {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 11px;
}

.indirect-groups > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.indirect-groups span {
  font-size: 14px;
}

.indirect-groups strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.indirect-groups small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
}

/* Commissions */
.commissions-page {
  padding-bottom: 24px;
}

.wallet-hero {
  position: relative;
  margin: 2px 16px 0;
  padding: 22px 19px 20px;
  overflow: hidden;
  color: var(--cream);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 12%, rgba(183, 149, 94, 0.25), transparent 32%),
    linear-gradient(145deg, #294d3f, #173229);
}

.wallet-hero .eyebrow {
  color: rgba(242, 238, 228, 0.4);
}

.wallet-hero > p {
  margin-top: 13px;
  color: rgba(242, 238, 228, 0.55);
  font-size: 14px;
}

.wallet-hero h1 {
  margin-top: 1px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.wallet-meta {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  color: rgba(242, 238, 228, 0.45);
  font-size: 14px;
}

.wallet-meta b {
  margin-left: 4px;
  color: rgba(242, 238, 228, 0.78);
  font-weight: 500;
}

.wallet-actions {
  display: flex;
  gap: 8px;
  margin-top: 17px;
}

.wallet-actions .btn {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 14px;
}

.wallet-watermark {
  position: absolute;
  right: 5px;
  bottom: -70px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--serif);
  font-size: 200px;
  line-height: 1;
}

.commission-breakdown {
  margin: 24px 16px 0;
}

.type-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
}

.type-bars > div {
  display: grid;
  grid-template-columns: 80px 1fr 58px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.type-bars strong {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.bar-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cream);
}

.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--forest-2));
}

.commission-ledger {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.commission-list {
  display: flex;
  flex-direction: column;
  margin-top: 11px;
}

.commission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.commission-item + .commission-item {
  border-top: 1px solid var(--line);
}

.commission-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: var(--forest-2);
  border-radius: 50%;
  background: var(--cream);
}

.commission-item > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.commission-item strong {
  font-size: 14px;
  font-weight: 500;
}

.commission-item p {
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commission-item small {
  color: var(--muted-2);
  font-size: 14px;
}

.commission-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.commission-value > strong {
  color: var(--clay);
  font-family: var(--serif);
  font-size: 14px;
}

.withdrawal-history {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.withdrawal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
}

.withdrawal-row + .withdrawal-row {
  border-top: 1px solid var(--line);
}

.withdrawal-row div {
  display: flex;
  flex-direction: column;
}

.withdrawal-row strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

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

.withdrawal-status {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 14px;
}

.status-pending {
  color: #96682c;
  background: #f7edd9;
}

.status-approved {
  color: #4e697b;
  background: #e7eff4;
}

.status-paid {
  color: var(--success);
  background: #e6f1eb;
}

.status-rejected {
  color: var(--danger);
  background: #f5e7e3;
}

/* Invite */
.invite-page {
  padding-bottom: 24px;
}

.invite-hero {
  position: relative;
  margin: 2px 16px 0;
  padding: 25px 21px 0;
  overflow: hidden;
  color: var(--cream);
  border-radius: 23px;
  background:
    radial-gradient(circle at 85% 20%, rgba(183, 149, 94, 0.25), transparent 35%),
    linear-gradient(145deg, #2b5042, #173229);
}

.invite-hero .eyebrow {
  color: rgba(242, 238, 228, 0.42);
}

.invite-hero h1 {
  margin-top: 11px;
  font-size: 32px;
  line-height: 1.3;
}

.invite-hero > p {
  max-width: 280px;
  margin-top: 9px;
  color: rgba(242, 238, 228, 0.54);
  font-size: 14px;
  line-height: 1.75;
}

.invite-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 175px;
  margin: 4px -10px 0;
  color: #d6c08f;
}

.invite-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.orbit-one {
  width: 190px;
  height: 190px;
}

.orbit-two {
  width: 130px;
  height: 130px;
  border-style: dashed;
}

.invite-seal {
  position: absolute;
  right: 42px;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ddc89a;
  border: 1px solid rgba(221, 200, 154, 0.5);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}

.invite-code-card {
  margin: -10px 26px 0;
  padding: 18px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.invite-code-card > strong {
  display: block;
  margin: 5px 0 12px;
  color: var(--forest);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 24px;
  letter-spacing: 0.18em;
}

.invite-code-actions {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.invite-code-actions .btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 14px;
}

.invite-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 16px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.invite-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invite-stats div + div {
  border-left: 1px solid var(--line);
}

.invite-stats strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

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

.invite-rules {
  margin: 24px 16px 0;
}

.invite-rules h2 {
  margin-top: 5px;
  font-size: 22px;
}

.rule-step {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rule-step > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
}

.rule-step strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.rule-step p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.invite-tip {
  display: flex;
  gap: 6px;
  margin: 16px 16px 0;
  padding: 10px;
  color: var(--muted);
  border-radius: 10px;
  background: var(--cream);
  font-size: 14px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 24px;
  text-align: center;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 11px;
  color: var(--forest-2);
  border-radius: 50%;
  background: var(--cream);
}

.empty-state strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.empty-state p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state .btn {
  margin-top: 13px;
  min-height: 34px;
  font-size: 14px;
}

.loading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* Public product trace page */
.trace-page {
  width: min(100%, 960px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px 24px 48px;
}

.trace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.trace-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--forest);
}

.trace-brand > span {
  display: flex;
  flex-direction: column;
}

.trace-brand strong {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.trace-brand small {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.16em;
}

.trace-verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: var(--success);
  border-radius: 999px;
  background: #e8f1ec;
  font-size: 14px;
  font-weight: 600;
}

.trace-hero {
  position: relative;
  padding: 38px;
  overflow: hidden;
  color: var(--cream);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 12%, rgba(183, 149, 94, 0.25), transparent 30%),
    linear-gradient(145deg, #294c3f, #173228);
}

.trace-hero.is-invalid {
  background: linear-gradient(145deg, #75463f, #402b28);
}

.trace-hero.pending {
  background:
    radial-gradient(circle at 85% 12%, rgba(183, 149, 94, 0.2), transparent 30%),
    linear-gradient(145deg, #4e5145, #2b342c);
}

.trace-verified-chip.pending {
  color: #8d6a2c;
  background: var(--gold-soft);
}

.trace-eyebrow {
  color: rgba(242, 238, 228, 0.45);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.trace-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 22px 0 16px;
  color: #d9c185;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.trace-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.trace-hero > p {
  margin-top: 8px;
  color: rgba(242, 238, 228, 0.55);
  font-size: 14px;
}

.trace-code-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.trace-code-box span {
  color: rgba(242, 238, 228, 0.42);
  font-size: 14px;
}

.trace-code-box strong {
  overflow-wrap: anywhere;
  color: #e1cda2;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(18px, 3vw, 27px);
  letter-spacing: 0.08em;
}

.trace-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 13px;
  margin-top: 13px;
}

.trace-grid.two {
  grid-template-columns: 1.15fr 0.85fr;
}

.trace-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.trace-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.trace-member-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
}

.trace-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--cream);
  border-radius: 50%;
  background: var(--forest-2);
  font-family: var(--serif);
  font-size: 18px;
}

.trace-member-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trace-member-row strong {
  font-family: var(--serif);
  font-size: 18px;
}

.trace-member-row small {
  color: var(--muted);
  font-size: 14px;
}

.trace-member-no {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--cream);
}

.trace-member-no span {
  color: var(--muted);
  font-size: 14px;
}

.trace-member-no strong {
  color: var(--forest);
  font-family: monospace;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.trace-card > p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.trace-product {
  display: block;
  margin-top: 14px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.trace-sku {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.trace-box-index {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 18px;
}

.trace-box-index b {
  color: var(--clay);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.trace-box-index span {
  color: var(--muted);
  font-size: 14px;
}

.trace-card dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 12px 0 0;
}

.trace-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.trace-card dt {
  color: var(--muted);
}

.trace-card dd {
  margin: 0;
  color: var(--ink-2);
  text-align: right;
}

.trace-note {
  display: flex;
  gap: 12px;
  margin-top: 13px;
  padding: 18px 20px;
  color: var(--muted);
  border: 1px solid var(--cream-2);
  border-radius: 17px;
  background: var(--cream);
}

.trace-note > span {
  color: var(--forest-2);
}

.trace-note strong {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
}

.trace-note p {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.7;
}

.trace-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.trace-footer a {
  color: var(--forest-2);
}

.trace-invalid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
}

.trace-invalid > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  color: var(--clay);
  border-radius: 50%;
  background: var(--clay-soft);
}

.trace-invalid h1 {
  margin: 20px 0 8px;
  font-size: 30px;
}

.trace-invalid p {
  max-width: 430px;
  color: var(--muted);
}

.trace-invalid .btn {
  margin-top: 22px;
}

/* ==============================
   Admin login
   ============================== */
.admin-login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
  background: var(--paper);
}

.login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(36px, 5vw, 76px);
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 75% 18%, rgba(183, 149, 94, 0.18), transparent 26%),
    radial-gradient(circle at 20% 82%, rgba(79, 119, 101, 0.2), transparent 32%),
    linear-gradient(145deg, #1c382e, #122a21);
}

.login-brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.login-brand-copy {
  position: relative;
  z-index: 2;
  margin-top: clamp(65px, 12vh, 140px);
}

.login-brand-copy .eyebrow {
  color: rgba(242, 238, 228, 0.43);
}

.login-brand-copy h1 {
  margin-top: 18px;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 1.19;
}

.login-brand-copy h1 em {
  color: #d0b782;
  font-style: italic;
}

.login-brand-copy p {
  max-width: 440px;
  margin-top: 23px;
  color: rgba(242, 238, 228, 0.54);
  font-size: 14px;
  line-height: 1.9;
}

.login-art {
  position: relative;
  flex: 1;
  min-height: 270px;
  margin-top: 28px;
}

.login-circle {
  position: absolute;
  top: 7%;
  left: 8%;
  width: min(29vw, 380px);
  height: min(29vw, 380px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.login-circle::after {
  position: absolute;
  inset: 11%;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.login-stat-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.login-stat-card.one {
  top: 12%;
  right: 8%;
}

.login-stat-card.two {
  top: 44%;
  left: 22%;
}

.login-stat-card span {
  color: rgba(242, 238, 228, 0.43);
  font-size: 14px;
}

.login-stat-card strong {
  margin: 3px 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.login-stat-card small {
  color: #c9b17f;
  font-size: 14px;
}

.login-leaf {
  position: absolute;
  right: 22%;
  bottom: 3%;
  color: rgba(201, 181, 137, 0.15);
}

.login-brand-foot {
  display: flex;
  justify-content: space-between;
  color: rgba(242, 238, 228, 0.26);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  background:
    radial-gradient(circle at 100% 0%, rgba(183, 149, 94, 0.08), transparent 24%),
    var(--paper);
}

.login-form {
  width: min(100%, 390px);
}

.login-form h2 {
  margin-top: 7px;
  color: var(--forest);
  font-size: 36px;
}

.login-form > p {
  margin: 4px 0 30px;
  color: var(--muted);
  font-size: 14px;
}

.login-form .field {
  margin-bottom: 15px;
}

.input-icon {
  position: relative;
}

.input-icon > svg {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--muted-2);
  transform: translateY(-50%);
}

.input-icon input {
  padding-left: 40px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-options button {
  padding: 0;
  color: var(--forest-2);
  background: transparent;
  font-size: 14px;
}

.login-submit {
  width: 100%;
  min-height: 48px;
}

.login-demo-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding: 10px;
  color: var(--muted);
  border-radius: 10px;
  background: var(--cream);
  font-size: 14px;
}

.login-mobile-brand {
  display: none;
}

/* ==============================
   Admin shell
   ============================== */
.admin-layout {
  min-height: 100vh;
  background: #f3f1eb;
}

.admin-sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 248px;
  padding: 24px 15px 18px;
  color: var(--cream);
  background:
    radial-gradient(circle at 90% 0%, rgba(183, 149, 94, 0.13), transparent 28%),
    linear-gradient(180deg, #1d382e, #152e25);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 2px 9px 24px;
  color: var(--cream);
  text-align: left;
  background: transparent;
}

.admin-brand span {
  display: flex;
  flex-direction: column;
}

.admin-brand strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.admin-brand small {
  margin-top: 1px;
  color: rgba(242, 238, 228, 0.35);
  font-size: 14px;
  letter-spacing: 0.16em;
}

.admin-workspace {
  padding: 13px 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-workspace > span {
  color: rgba(242, 238, 228, 0.3);
  font-size: 14px;
  letter-spacing: 0.14em;
}

.workspace-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 6px;
  padding: 7px 8px;
  color: rgba(242, 238, 228, 0.75);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.workspace-switch svg:last-child {
  margin-left: auto;
  opacity: 0.45;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 15px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  color: rgba(242, 238, 228, 0.55);
  border-radius: 9px;
  background: transparent;
  font-size: 14px;
  text-align: left;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.admin-nav-item:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
}

.admin-nav-item.is-active {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 2px 0 0 #c5a974;
}

.admin-nav-item em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 4px;
  color: #1f3b31;
  border-radius: 999px;
  background: #d9c18c;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: auto 5px 15px;
  padding: 12px;
  color: rgba(242, 238, 228, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-note svg {
  color: #c5a974;
}

.sidebar-note div {
  display: flex;
  flex-direction: column;
}

.sidebar-note strong {
  color: rgba(242, 238, 228, 0.73);
  font-size: 14px;
  font-weight: 500;
}

.sidebar-note small {
  margin-top: 2px;
  font-size: 14px;
}

.admin-account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-account div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.admin-account strong {
  font-size: 14px;
  font-weight: 500;
}

.admin-account small {
  color: rgba(242, 238, 228, 0.33);
  font-size: 14px;
}

.admin-account button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: rgba(242, 238, 228, 0.4);
  border-radius: 50%;
  background: transparent;
}

.admin-account button:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
}

.admin-main {
  min-height: 100vh;
  margin-left: 248px;
}

.admin-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(230, 224, 213, 0.8);
  background: rgba(243, 241, 235, 0.88);
  backdrop-filter: blur(18px);
}

.admin-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink-2);
  border-radius: 9px;
  background: var(--white);
}

.admin-topbar-title {
  display: flex;
  flex-direction: column;
}

.admin-topbar-title span {
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.admin-topbar-title strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.admin-topbar-right .icon-btn {
  width: 34px;
  height: 34px;
}

.topbar-avatar {
  padding-left: 3px;
}

.admin-content {
  width: min(100%, 1580px);
  margin: 0 auto;
  padding: 28px clamp(20px, 2.8vw, 42px) 48px;
}

.admin-mobile-nav {
  display: none;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin-top: 5px;
  color: var(--forest);
  font-size: clamp(28px, 2.6vw, 39px);
  line-height: 1.2;
}

.page-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.page-header-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-card {
  border: 1px solid rgba(230, 224, 213, 0.9);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 7px 22px rgba(44, 55, 48, 0.035);
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 21px 0;
}

.admin-card-head h2 {
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.mini-chip {
  padding: 4px 8px;
  color: var(--muted);
  border-radius: 999px;
  background: var(--cream);
  font-size: 14px;
  white-space: nowrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.kpi-card {
  position: relative;
  min-height: 129px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(230, 224, 213, 0.9);
  border-radius: 17px;
  background: var(--white);
}

.kpi-card::after {
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 120px;
  height: 120px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.05;
  content: "";
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.kpi-top i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  color: var(--forest-2);
  border-radius: 10px;
  background: #eef3ef;
  font-style: normal;
}

.kpi-card.tone-clay .kpi-top i {
  color: var(--clay);
  background: var(--clay-soft);
}

.kpi-card.tone-gold .kpi-top i {
  color: #92743e;
  background: var(--gold-soft);
}

.kpi-card.tone-blue .kpi-top i {
  color: var(--blue);
  background: #e8eef2;
}

.kpi-card > strong {
  display: block;
  margin-top: 8px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(27px, 2.4vw, 37px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.kpi-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.trend-up {
  color: var(--success);
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  gap: 13px;
  margin-top: 13px;
}

.main-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
}

.lower-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
}

.chart-card {
  padding-bottom: 10px;
}

.chart-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

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

.chart-total strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.sales-chart {
  width: 100%;
  height: auto;
  margin-top: 2px;
  padding: 0 12px 4px;
}

.donut-card {
  min-height: 300px;
  padding-bottom: 20px;
}

.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 0;
}

.commission-donut {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  transform: rotate(-35deg);
}

.commission-donut::after {
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background: var(--white);
  content: "";
}

.commission-donut > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(35deg);
}

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

.commission-donut strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.donut-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 18px;
  width: 100%;
}

.donut-legend div {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.donut-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.donut-legend strong {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.recent-orders-card {
  overflow: hidden;
}

.recent-orders-card .admin-card-head {
  padding-bottom: 14px;
}

.recent-orders-card .text-link {
  font-size: 14px;
}

.dashboard-side-stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.todo-card,
.member-funnel-card {
  padding-bottom: 17px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 10px 16px 0;
  padding: 11px;
  text-align: left;
  border-radius: 11px;
  background: #f8f6f0;
}

.todo-item > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  color: var(--warning);
  border-radius: 50%;
  background: var(--gold-soft);
}

.todo-item.tone-info > span:first-child {
  color: var(--blue);
  background: #e8eef2;
}

.todo-item > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.todo-item strong {
  font-size: 14px;
  font-weight: 600;
}

.todo-item small {
  color: var(--muted);
  font-size: 14px;
}

.todo-item > svg {
  color: var(--muted-2);
}

.all-clear {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px;
  padding: 12px;
  color: var(--success);
  border-radius: 10px;
  background: #edf5f0;
  font-size: 14px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 66px 1fr 25px;
  gap: 8px;
  align-items: center;
  margin: 12px 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.funnel-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0ede6;
}

.funnel-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #b9c7be;
}

.funnel-bar.green i {
  background: var(--forest-2);
}

.funnel-bar.gold i {
  background: var(--gold);
}

.funnel-row strong {
  color: var(--ink-2);
  font-size: 14px;
  text-align: right;
}

.funnel-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 18px 0;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.funnel-note svg {
  color: var(--gold);
}

/* Admin tables */
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  padding: 11px 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #faf9f5;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #efebe3;
  vertical-align: middle;
}

.admin-table tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

.admin-table tbody tr:hover {
  background: #fbfaf7;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table strong {
  font-weight: 600;
}

.admin-table small {
  font-size: 14px;
}

.table-person {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-person > span,
.table-person > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.table-person small {
  color: var(--muted);
  font-size: 14px;
}

.table-action {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  color: var(--forest-2);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.table-action:hover {
  color: var(--clay);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-filter-tabs {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-filter-tabs::-webkit-scrollbar {
  display: none;
}

.admin-filter-tabs button {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--muted);
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
}

.admin-filter-tabs button.is-active {
  color: var(--forest);
  background: var(--cream);
  font-weight: 600;
}

.admin-filter-tabs em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  color: var(--muted);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-style: normal;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(280px, 100%);
  padding: 0 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #faf9f5;
}

.search-box input {
  min-height: 34px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.search-box button {
  display: inline-flex;
  padding: 2px;
  color: var(--muted);
  background: transparent;
}

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.table-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-pagination button {
  padding: 4px 8px;
  color: var(--forest-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  font-size: 14px;
}

.table-pagination button:disabled {
  color: var(--muted-2);
  background: var(--paper);
}

.mobile-order-admin-list,
.mobile-admin-member-list,
.mobile-commission-list {
  display: none;
}

.mini-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 13px;
}

.mini-kpi-grid > div {
  display: flex;
  flex-direction: column;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.mini-kpi-grid span {
  color: var(--muted);
  font-size: 14px;
}

.mini-kpi-grid strong {
  margin: 3px 0 1px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.mini-kpi-grid small {
  color: var(--muted-2);
  font-size: 14px;
}

/* Withdrawal cards */
.withdrawal-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.withdrawal-admin-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.withdrawal-admin-card.status-pending {
  border-color: rgba(183, 149, 94, 0.38);
  box-shadow: inset 0 3px 0 #c5a973;
}

.withdrawal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.withdrawal-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.withdrawal-head > div > span {
  display: flex;
  flex-direction: column;
}

.withdrawal-head strong {
  font-size: 14px;
  font-weight: 600;
}

.withdrawal-head small {
  color: var(--muted);
  font-size: 14px;
}

.withdrawal-state {
  padding: 3px 7px;
  color: var(--muted);
  border-radius: 999px;
  background: var(--cream);
  font-size: 14px;
}

.withdrawal-amount {
  display: block;
  margin: 16px 0 12px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.withdrawal-detail {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid #f1ede5;
  font-size: 14px;
}

.withdrawal-detail span {
  color: var(--muted);
}

.withdrawal-detail strong {
  font-weight: 500;
  text-align: right;
}

.admin-note {
  margin-top: 8px;
  padding: 7px;
  color: var(--danger);
  border-radius: 7px;
  background: #f8ece9;
  font-size: 14px;
}

.withdrawal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 13px;
}

.processed-note {
  color: var(--muted);
  font-size: 14px;
}

/* Product admin */
.product-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.66fr);
  gap: 13px;
}

.product-admin-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.product-picker {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.product-picker .admin-card-head {
  padding-bottom: 14px;
}

.product-picker-list {
  display: flex;
  flex-direction: column;
  padding: 0 8px 10px;
}

.product-picker-list button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 9px;
  text-align: left;
  border-radius: 11px;
  background: transparent;
}

.product-picker-list button:hover,
.product-picker-list button.is-active {
  background: var(--cream);
}

.product-picker-list button.is-active {
  color: var(--forest);
}

.product-picker-list button > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.product-picker-list strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-picker-list small {
  color: var(--muted);
  font-size: 14px;
}

.product-picker-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 48px;
  flex: 0 0 42px;
  color: #e2cfaa;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent), #18342a);
  font-family: var(--serif);
  font-size: 18px;
}

.product-editor-column {
  min-width: 0;
}

.admin-form-grid {
  display: grid;
  gap: 14px;
  padding: 17px 20px 22px;
}

.product-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.product-preview-card > .eyebrow {
  align-self: flex-start;
}

.admin-product-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 200px;
  margin: 14px 0 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #f6f1e7, transparent 70%);
}

.admin-product-preview::before,
.admin-product-preview::after {
  position: absolute;
  border: 1px solid rgba(47, 85, 72, 0.09);
  border-radius: 50%;
  content: "";
}

.admin-product-preview::before {
  inset: 19px;
}

.admin-product-preview::after {
  inset: 35px;
  border-style: dashed;
}

.admin-product-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 74px;
  height: 124px;
  padding: 12px 7px;
  color: var(--cream);
  border-radius: 2px;
  background: linear-gradient(
    150deg,
    var(--preview-accent, #356052),
    #173329
  );
  box-shadow: 12px 18px 30px rgba(35, 57, 46, 0.22);
  transform: rotateY(-7deg) rotateZ(1deg);
}

.admin-product-box span {
  font-size: 14px;
  letter-spacing: 0.16em;
}

.admin-product-box strong {
  margin-top: 12px;
  color: #d8c18f;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}

.admin-product-box small {
  margin-top: auto;
  color: rgba(242, 238, 228, 0.55);
  font-size: 14px;
}

.product-preview-card h3 {
  font-size: 16px;
}

.product-preview-card > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.preview-price {
  margin-top: 9px;
  color: var(--clay);
  font-family: var(--serif);
  font-size: 22px;
}

.preview-note {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 14px;
}

.sku-management {
  margin-top: 13px;
  padding-bottom: 8px;
}

.sku-management .admin-card-head {
  padding-bottom: 15px;
}

.sku-editor-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 10px;
}

.sku-editor-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fcfbf8;
}

.sku-editor-card > .sku-order {
  grid-row: 1 / 3;
  padding-top: 20px;
}

.sku-editor-top {
  display: grid;
  grid-template-columns: 1fr 1.4fr 110px;
  gap: 10px;
}

.sku-price-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr)) 90px 90px;
  gap: 9px;
}

.sku-hint {
  grid-column: 2;
  color: var(--muted-2);
  font-size: 14px;
}

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

.trace-qr-preview {
  width: 210px;
  height: 210px;
  margin: 18px auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.trace-ship-modal h2 {
  margin: 5px 0;
  font-size: 26px;
}

.trace-ship-modal > p {
  color: var(--muted);
  font-size: 14px;
}

.trace-progress-box {
  margin-top: 18px;
  padding: 15px;
  border-radius: 13px;
  background: var(--cream);
}

.trace-progress-box > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.trace-progress-box strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 17px;
}

.scan-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
  padding: 9px 10px 9px 13px;
  color: var(--forest-2);
  border: 1px solid rgba(47, 85, 72, 0.32);
  border-radius: 12px;
  background: #f7faf7;
}

.scan-form input {
  min-height: 36px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  font-family: monospace;
  font-size: 15px;
  outline: none;
}

.scan-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.scan-complete {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 12px;
  color: var(--success);
  border-radius: 11px;
  background: #e8f1ec;
  font-size: 14px;
}

.bound-trace-list {
  display: flex;
  flex-direction: column;
  max-height: 220px;
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.bound-trace-list > div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}

.bound-trace-list > div:first-child {
  border-top: 0;
}

.bound-trace-list span {
  font-size: 14px;
}

.bound-trace-list small {
  color: var(--muted);
  font-size: 14px;
}

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

.order-trace-list {
  display: flex;
  flex-direction: column;
  max-height: 180px;
  overflow: auto;
}

.order-trace-list > div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid #f0ece4;
}

.order-trace-list span {
  font-family: monospace;
  font-size: 14px;
}

.order-trace-list small {
  color: var(--muted);
  font-size: 14px;
}

.order-trace-list button {
  padding: 0;
  color: var(--forest-2);
  background: transparent;
  font-size: 14px;
}

.product-management-form .sku-management .admin-card-head {
  align-items: center;
}

.product-management-form .sku-management .btn-small {
  white-space: nowrap;
}

.sku-editor-row {
  display: grid;
  grid-template-columns: 30px minmax(170px, 1.4fr) repeat(3, minmax(110px, 0.7fr));
  gap: 13px;
  align-items: end;
  padding: 13px 5px;
  border-top: 1px solid var(--line);
}

.sku-order {
  align-self: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
}

.sku-editor-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sku-editor-name input {
  font-family: var(--serif);
}

.sku-editor-name small {
  color: var(--muted);
  font-size: 14px;
}

.sku-editor-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sku-editor-row label span {
  color: var(--muted);
  font-size: 14px;
}

.sku-editor-row input,
.sku-editor-row select {
  min-height: 36px;
  padding: 7px 9px;
  font-size: 14px;
}

.form-submit-bar {
  position: sticky;
  z-index: 10;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(37, 49, 42, 0.08);
  backdrop-filter: blur(14px);
}

.form-submit-bar > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.settings-grid + .settings-grid {
  margin-top: 13px;
}

.rule-note {
  display: flex;
  gap: 7px;
  margin: 0 20px 20px;
  padding: 11px;
  color: #7b622f;
  border-radius: 9px;
  background: var(--gold-soft);
  font-size: 14px;
}

.tier-settings-grid {
  grid-template-columns: 1fr 1fr;
}

.tier-editor-head {
  display: grid;
  grid-template-columns: 25px 1fr 1fr 1fr;
  gap: 9px;
  padding: 12px 20px 5px;
  color: var(--muted);
  font-size: 14px;
}

.tier-editor-row {
  display: grid;
  grid-template-columns: 25px 1fr 1fr 1fr;
  gap: 9px;
  align-items: center;
  padding: 6px 20px;
}

.tier-editor-row > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
}

.tier-editor-row label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tier-editor-row small {
  display: none;
}

.tier-editor-row input {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 14px;
}

.tier-settings-grid .admin-card {
  padding-bottom: 14px;
}

.agent-threshold-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 13px;
  padding: 20px;
}

.agent-threshold-row h2 {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.agent-threshold-row p {
  max-width: 590px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.agent-threshold-row .field {
  width: 210px;
  flex: 0 0 210px;
}

/* Agents */
.agent-map-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  min-height: 166px;
  margin-bottom: 13px;
  padding: 24px 27px;
  overflow: hidden;
  color: var(--cream);
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 30%, rgba(183, 149, 94, 0.23), transparent 28%),
    linear-gradient(145deg, #26493c, #173129);
}

.agent-map-copy h2 {
  margin-top: 6px;
  font-size: 37px;
  font-weight: 400;
}

.agent-map-copy h2 small {
  margin-left: 4px;
  color: rgba(242, 238, 228, 0.5);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
}

.agent-map-copy p {
  max-width: 390px;
  margin-top: 5px;
  color: rgba(242, 238, 228, 0.48);
  font-size: 14px;
}

.agent-map-copy .eyebrow {
  color: rgba(242, 238, 228, 0.37);
}

.map-rings {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
}

.map-rings i {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.map-rings i:nth-child(1) {
  width: 170px;
  height: 170px;
}

.map-rings i:nth-child(2) {
  width: 118px;
  height: 118px;
  border-style: dashed;
}

.map-rings i:nth-child(3) {
  width: 68px;
  height: 68px;
}

.map-rings span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #d3b774;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.agent-map-stats {
  position: absolute;
  bottom: 22px;
  left: 27px;
  display: flex;
  gap: 27px;
}

.agent-map-stats span {
  display: flex;
  flex-direction: column;
  color: rgba(242, 238, 228, 0.38);
  font-size: 14px;
}

.agent-map-stats b {
  color: rgba(242, 238, 228, 0.86);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.agent-list {
  padding: 0 16px 14px;
}

.agent-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(210px, 1fr) minmax(180px, 0.9fr) auto;
  gap: 17px;
  align-items: center;
  padding: 14px 5px;
  border-top: 1px solid var(--line);
}

.agent-row:first-child {
  margin-top: 13px;
}

.agent-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-identity > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.agent-identity strong {
  font-size: 14px;
}

.agent-identity small {
  color: var(--muted);
  font-size: 14px;
}

.agent-identity .status-badge {
  margin-left: 3px;
}

.agent-region {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
}

.agent-region svg {
  color: var(--forest-2);
}

.agent-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.agent-progress strong {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.agent-source {
  padding: 3px 7px;
  color: var(--muted);
  border-radius: 999px;
  background: var(--cream);
  font-size: 14px;
  white-space: nowrap;
}

/* Admin detail modal */
.admin-detail-modal {
  padding: 3px;
}

.detail-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-modal-head h2 {
  margin-top: 3px;
  font-size: 25px;
}

.detail-modal-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.detail-stat-grid > div,
.member-detail-stats > div {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 12px;
  background: var(--cream);
}

.detail-stat-grid span,
.member-detail-stats span {
  color: var(--muted);
  font-size: 14px;
}

.detail-stat-grid strong,
.member-detail-stats strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.detail-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.detail-section-grid section,
.detail-commission-section,
.detail-list-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.detail-label svg {
  color: var(--forest-2);
}

.detail-section-grid strong {
  font-size: 14px;
}

.detail-section-grid p,
.detail-commission-section p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.detail-tracking {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 11px;
  color: var(--forest-2);
  border-radius: 10px;
  background: #edf3ef;
}

.detail-tracking span {
  display: flex;
  flex-direction: column;
}

.detail-tracking strong {
  font-size: 14px;
}

.detail-tracking small {
  color: var(--muted);
  font-family: monospace;
  font-size: 14px;
}

.detail-commission-section {
  margin-top: 10px;
}

.detail-commission-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #f0ece4;
  font-size: 14px;
}

.detail-commission-row > span:first-child {
  flex: 1;
}

.detail-commission-row > strong {
  color: var(--clay);
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.member-modal-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-modal-identity h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.member-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 10px;
}

.detail-list-section {
  margin-top: 10px;
}

.compact-member-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compact-member-list > div {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border-radius: 8px;
  background: #faf8f3;
}

.compact-member-list > div > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.compact-member-list strong {
  font-size: 14px;
}

.compact-member-list small {
  color: var(--muted);
  font-size: 14px;
}

.compact-order-list {
  display: flex;
  flex-direction: column;
}

.compact-order-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #f0ece4;
}

.compact-order-list > div > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.compact-order-list > div > span:first-child {
  flex-direction: column;
  align-items: flex-start;
}

.compact-order-list strong {
  font-size: 14px;
}

.compact-order-list small {
  color: var(--muted);
  font-size: 14px;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 1240px) {
  .store-stage {
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 32px;
    padding-inline: 28px;
  }

  .phone-shell {
    width: 410px;
  }

  .store-intro {
    padding: 40px;
  }

  .main-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.8fr);
  }

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

  .agent-row {
    grid-template-columns: minmax(160px, 0.9fr) 1fr 1fr;
  }

  .agent-source {
    display: none;
  }
}

@media (min-width: 1061px) {
  .store-stage {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 24px;
  }

  .store-intro {
    display: none;
  }

  .phone-shell,
  .store-stage.mall-mode .phone-shell {
    position: relative;
    top: 0;
    width: min(100%, 430px);
    height: calc(100vh - 48px);
    max-height: 900px;
    border: 7px solid #1c2420;
    border-radius: 46px;
    background: var(--paper);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.35) inset,
      0 35px 100px rgba(32, 44, 37, 0.2);
  }

  .phone-statusbar {
    display: flex;
  }

  .phone-scroll {
    overflow-x: hidden;
    overflow-y: auto;
  }
}

@media (max-width: 1060px) {
  .store-intro {
    display: none;
  }

  .store-stage {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
  }

  .phone-shell {
    width: min(430px, 100%);
  }

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

  .main-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .donut-wrap {
    flex-direction: row;
    justify-content: center;
    padding-top: 20px;
  }

  .donut-legend {
    max-width: 300px;
  }

  .dashboard-side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .settings-grid,
  .tier-settings-grid,
  .product-edit-grid {
    grid-template-columns: 1fr;
  }

  .product-preview-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    grid-template-rows: auto auto auto auto;
    text-align: left;
  }

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

  .product-picker {
    position: static;
  }

  .product-picker-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .product-preview-card > .eyebrow {
    grid-column: 1 / -1;
  }

  .admin-product-preview {
    grid-row: 2 / 5;
  }

  .sku-editor-row {
    grid-template-columns: 25px minmax(140px, 1.2fr) repeat(3, minmax(90px, 0.7fr));
    gap: 8px;
  }

  .login-brand-panel {
    padding: 44px;
  }

  .login-stat-card {
    min-width: 140px;
  }
}

@media (max-width: 860px) {
  body {
    background: var(--paper);
  }

  .store-stage {
    display: block;
    width: 100%;
    min-height: 100dvh;
    padding: 0;
  }

  .phone-shell {
    position: relative;
    top: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-statusbar {
    display: none;
  }

  .phone-scroll {
    padding-bottom: 0;
  }

  .store-tabbar {
    padding-bottom: calc(9px + env(safe-area-inset-bottom));
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
    padding-bottom: 76px;
  }

  .admin-menu-btn {
    display: inline-flex;
  }

  .admin-topbar {
    height: 64px;
    padding: 0 18px;
  }

  .admin-topbar-title span {
    display: none;
  }

  .admin-topbar-title strong {
    font-size: 16px;
  }

  .admin-date {
    display: none;
  }

  .admin-content {
    padding: 21px 15px 30px;
  }

  .admin-mobile-nav {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(251, 249, 244, 0.95);
    backdrop-filter: blur(18px);
  }

  .admin-mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px;
    color: var(--muted);
    background: transparent;
    font-size: 14px;
  }

  .admin-mobile-nav button.is-active {
    color: var(--forest);
  }

  .page-header {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-header p {
    font-size: 14px;
  }

  .page-header-action .btn {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 14px;
  }

  .responsive-table {
    display: none;
  }

  .mobile-order-admin-list,
  .mobile-admin-member-list,
  .mobile-commission-list {
    display: flex;
    flex-direction: column;
  }

  .mobile-order-admin-list article,
  .mobile-admin-member-list article {
    display: block;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-order-admin-list article > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .mobile-order-admin-list article .mono {
    font-size: 14px;
  }

  .mobile-order-main {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 14px;
  }

  .mobile-order-admin-list article > small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
  }

  .mobile-admin-member-list article {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .mobile-admin-member-list article > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
  }

  .mobile-admin-member-list strong {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
  }

  .mobile-admin-member-list small {
    color: var(--muted);
    font-size: 14px;
  }

  .mobile-admin-member-list article > span:last-child {
    color: var(--forest);
    font-family: var(--serif);
    font-size: 14px;
  }

  .mobile-commission-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-commission-list article > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mobile-commission-list article > div:last-child {
    align-items: flex-end;
  }

  .mobile-commission-list strong {
    font-size: 14px;
  }

  .mobile-commission-list span {
    color: var(--muted);
    font-size: 14px;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .admin-filter-tabs {
    padding-bottom: 2px;
  }

  .search-box {
    width: 100%;
  }

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

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

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

  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: auto;
  }

  .sku-editor-row {
    grid-template-columns: 24px 1fr 1fr;
  }

  .sku-editor-top {
    grid-template-columns: 1fr 1fr;
  }

  .sku-editor-top .field:last-child {
    grid-column: 1 / -1;
  }

  .sku-price-editor {
    grid-template-columns: repeat(3, 1fr);
  }

  .sku-price-editor .field:nth-child(4),
  .sku-price-editor .field:nth-child(5) {
    grid-column: span 1;
  }

  .trace-grid {
    grid-template-columns: 1fr;
  }

  .sku-editor-name {
    grid-column: 2 / -1;
  }

  .sku-editor-row label {
    grid-column: span 1;
  }

  .tier-editor-head,
  .tier-editor-row {
    grid-template-columns: 20px 1fr 1fr 1fr;
    padding-inline: 12px;
  }

  .agent-threshold-row {
    flex-direction: column;
    align-items: stretch;
  }

  .agent-threshold-row .field {
    width: 100%;
    flex-basis: auto;
  }

  .form-submit-bar {
    bottom: 72px;
  }

  .agent-map-card {
    grid-template-columns: 1fr;
  }

  .map-rings {
    display: none;
  }

  .agent-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .agent-source {
    display: inline;
    width: fit-content;
  }

  .dashboard-side-stack {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    display: none;
  }

  .admin-login-page {
    display: block;
    min-height: 100dvh;
    background:
      radial-gradient(circle at 90% 6%, rgba(183, 149, 94, 0.12), transparent 25%),
      var(--paper);
  }

  .login-form-panel {
    min-height: 100dvh;
    padding: 35px 22px;
  }

  .login-mobile-brand {
    position: absolute;
    top: 28px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--forest);
    font-family: var(--serif);
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .login-form {
    margin-top: 70px;
  }

  .login-form h2 {
    font-size: 31px;
  }

  .modal-panel {
    max-height: 90vh;
    padding: 24px 20px;
  }

  .detail-section-grid {
    grid-template-columns: 1fr;
  }

  .member-detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-sheet {
    align-items: flex-end;
    padding: 0;
  }

  .bottom-sheet .modal-panel {
    width: 100%;
    max-height: 80vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }

  .bottom-sheet.is-open .modal-panel {
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .toast-root {
    top: 14px;
    right: 14px;
    left: 14px;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }

  .kpi-grid {
    gap: 9px;
  }

  .kpi-card {
    min-height: 113px;
    padding: 14px;
  }

  .kpi-card > strong {
    font-size: 26px;
  }

  .kpi-sub {
    line-height: 1.45;
  }

  .chart-card .admin-card-head,
  .donut-card .admin-card-head {
    padding: 16px 16px 0;
  }

  .chart-total {
    display: none;
  }

  .donut-wrap {
    flex-direction: column;
    gap: 12px;
  }

  .donut-legend {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .recent-orders-card .admin-card-head {
    padding-bottom: 9px;
  }

  .recent-orders-card .admin-table-wrap {
    overflow-x: auto;
  }

  .recent-orders-card .admin-table {
    min-width: 620px;
  }

  .progress-track {
    margin: 6px 0;
  }

  .detail-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-stat-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .detail-modal-head {
    padding-right: 26px;
  }

  .detail-actions {
    flex-wrap: wrap;
  }

  .detail-actions .btn {
    flex: 1;
  }

  .member-modal-identity {
    align-items: flex-start;
  }

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

  .agent-map-card {
    padding: 21px;
  }

  .agent-map-stats {
    position: static;
    margin-top: 13px;
  }

  .product-preview-card {
    display: flex;
    text-align: center;
  }

  .product-preview-card .eyebrow {
    align-self: center;
  }

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

  .sku-editor-card {
    grid-template-columns: 1fr;
  }

  .sku-editor-card > .sku-order {
    grid-row: auto;
    padding-top: 0;
  }

  .sku-editor-top,
  .sku-price-editor {
    grid-template-columns: 1fr 1fr;
  }

  .sku-editor-top .field:last-child {
    grid-column: 1 / -1;
  }

  .sku-hint {
    grid-column: 1;
  }

  .trace-page {
    padding: 18px 14px 36px;
  }

  .trace-header {
    align-items: flex-start;
  }

  .trace-verified-chip {
    font-size: 14px;
  }

  .trace-hero {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .trace-code-box {
    padding: 14px;
  }

  .trace-footer {
    flex-direction: column;
    gap: 6px;
  }

  .sku-editor-row {
    grid-template-columns: 20px 1fr;
  }

  .sku-editor-name {
    grid-column: 2;
  }

  .sku-editor-row label {
    grid-column: 2;
  }

  .tier-editor-head {
    display: none;
  }

  .tier-editor-row {
    grid-template-columns: 20px 1fr;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
  }

  .tier-editor-row label {
    grid-column: 2;
  }

  .tier-editor-row small {
    display: block;
    color: var(--muted);
    font-size: 14px;
  }

  .form-submit-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: 65px;
  }

  .form-submit-bar > span {
    text-align: center;
    justify-content: center;
  }

  .form-submit-bar .btn {
    width: 100%;
  }

  .desktop-only {
    display: none;
  }
}

@media (max-width: 390px) {
  .store-hero h1 {
    font-size: 39px;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .package-grid .package-card:nth-child(3) {
    grid-column: auto;
  }

  .package-card {
    min-height: 135px;
  }

  .member-ribbon {
    margin-inline: 14px;
    width: calc(100% - 28px);
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .mini-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.store-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}

.store-footer > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.store-footer > p {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.55;
}
