:root {
  --paper: #f4f1ea;
  --paper-strong: #fbfaf6;
  --ink: #1e201d;
  --ink-soft: #5e625c;
  --ink-mute: #8a8e87;
  --line: rgba(30, 32, 29, 0.12);
  --line-strong: rgba(30, 32, 29, 0.2);
  --tomato: #e8543b;
  --tomato-dark: #bd3824;
  --tomato-soft: #fbe1d9;
  --sage: #8e9b7b;
  --sage-dark: #526047;
  --sage-soft: #e5e9dc;
  --blue: #8fa6b4;
  --gold: #bd9452;
  --white: #fff;
  --shadow-sm: 0 8px 30px rgba(44, 42, 35, 0.06);
  --shadow-md: 0 20px 60px rgba(44, 42, 35, 0.12);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: 38px;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 8%, rgba(232, 84, 59, 0.08), transparent 25rem),
    radial-gradient(circle at 96% 78%, rgba(142, 155, 123, 0.13), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

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

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(232, 84, 59, 0.28);
  outline-offset: 2px;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.3;
  pointer-events: none;
}

.ambient-a {
  top: -18rem;
  right: -10rem;
  background: #f0cbbd;
}

.ambient-b {
  bottom: -22rem;
  left: -10rem;
  background: #ccd4bd;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 78px;
  padding: 0 max(28px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(30, 32, 29, 0.08);
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--paper-strong);
  border-radius: 50% 50% 46% 54% / 52% 45% 55% 48%;
  background: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  transform: rotate(-7deg);
}

.brand-mark span {
  transform: rotate(7deg);
}

.brand-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.brand-name strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-name small {
  margin-top: 5px;
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.28em;
}

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

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  color: var(--sage-dark);
  border: 1px solid rgba(82, 96, 71, 0.15);
  border-radius: 999px;
  background: rgba(229, 233, 220, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.demo-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  content: "";
  box-shadow: 0 0 0 4px rgba(142, 155, 123, 0.12);
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.notification-dot {
  position: absolute;
  top: 2px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: white;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--tomato);
  font-size: 9px;
  font-weight: 700;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
}

.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--paper-strong);
  border-radius: 50%;
  background: var(--sage-dark);
  font-family: var(--serif);
  font-size: 13px;
}

.user-chip b {
  font-size: 12px;
  font-weight: 600;
}

.view-root {
  width: min(1240px, calc(100% - 56px));
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  padding: 34px 0 128px;
}

.bottom-nav {
  position: fixed;
  z-index: 25;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(520px, calc(100vw - 32px));
  padding: 7px;
  border: 1px solid rgba(30, 32, 29, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(34, 34, 29, 0.18);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.bottom-nav.is-admin {
  grid-template-columns: repeat(4, 1fr);
}

.nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 49px;
  padding: 4px;
  color: var(--ink-mute);
  border: 0;
  border-radius: 17px;
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-button svg {
  width: 20px;
  height: 20px;
}

.nav-button span {
  font-size: 10px;
  font-weight: 600;
}

.nav-button.is-active {
  color: var(--paper-strong);
  background: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 11px;
  color: var(--tomato);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}

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

.page-heading h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.page-heading h1 em {
  color: var(--tomato);
  font-style: normal;
}

.page-heading p {
  max-width: 420px;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.heading-date {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  padding: 10px 13px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.heading-date strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
  min-height: 354px;
  margin-bottom: 34px;
  overflow: hidden;
  color: #f8f4ec;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 72% 12%, rgba(232, 207, 186, 0.28), transparent 20rem),
    linear-gradient(125deg, #1d211c 0%, #283028 55%, #4c5a48 100%);
  box-shadow: var(--shadow-md);
}

.hero-card::after {
  position: absolute;
  right: -6%;
  bottom: -56%;
  width: 55%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.035),
    0 0 0 86px rgba(255, 255, 255, 0.025);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 5vw, 60px);
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: #e5d9c4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 0 0 5px rgba(232, 84, 59, 0.18);
}

.hero-copy h2 {
  max-width: 570px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(35px, 5.2vw, 66px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-copy h2 em {
  color: #eac3b5;
  font-style: normal;
}

.hero-copy > p {
  max-width: 460px;
  margin: 19px 0 27px;
  color: rgba(248, 244, 236, 0.7);
  font-size: 13px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button svg {
  width: 17px;
  height: 17px;
}

.button-primary {
  color: white;
  background: var(--tomato);
  box-shadow: 0 10px 26px rgba(232, 84, 59, 0.28);
}

.button-primary:hover {
  background: var(--tomato-dark);
}

.button-light {
  color: var(--ink);
  background: var(--paper-strong);
}

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

.button-muted {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.button-ghost {
  color: inherit;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
}

.button-block {
  width: 100%;
}

.button-small {
  min-height: 34px;
  padding: 0 13px;
  font-size: 11px;
}

.button-danger {
  color: var(--tomato-dark);
  border-color: rgba(232, 84, 59, 0.22);
  background: var(--tomato-soft);
}

.button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 350px;
}

.hero-portrait {
  position: absolute;
  bottom: -8px;
  width: min(91%, 420px);
  height: 96%;
  overflow: hidden;
  border-radius: 47% 47% 0 0 / 28% 28% 0 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent),
    #b6bca9;
}

.hero-portrait::before {
  position: absolute;
  top: 11%;
  left: 50%;
  width: 34%;
  aspect-ratio: 0.82;
  border-radius: 48% 48% 44% 44%;
  background: #d8b49d;
  content: "";
  transform: translateX(-50%);
  box-shadow:
    -18px -10px 0 -3px #3d332e,
    22px -6px 0 -4px #3d332e;
}

.hero-portrait::after {
  position: absolute;
  bottom: -12%;
  left: 50%;
  width: 72%;
  height: 80%;
  border-radius: 45% 45% 15% 15%;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.26) 50%, transparent 50.5%),
    linear-gradient(135deg, #f0e9dc, #d9d2c4);
  content: "";
  transform: translateX(-50%);
  box-shadow: -30px 8px 40px rgba(20, 25, 18, 0.16);
}

.hero-coat {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 50%;
  width: 72%;
  height: 82%;
  transform: translateX(-50%);
}

.hero-coat path {
  fill: #343934;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
}

.hero-coat .belt {
  fill: #9a6d55;
}

.floating-note {
  position: absolute;
  z-index: 5;
  right: 20px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  min-width: 152px;
  padding: 14px 16px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 17px;
  background: rgba(251, 250, 246, 0.92);
  box-shadow: 0 14px 34px rgba(24, 28, 23, 0.18);
  backdrop-filter: blur(14px);
}

.floating-note span {
  color: var(--ink-mute);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.floating-note strong {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 20px;
}

.floating-note small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: rgba(251, 250, 246, 0.72);
}

.trust-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--sage-dark);
  border-radius: 12px;
  background: var(--sage-soft);
}

.trust-icon svg {
  width: 19px;
  height: 19px;
}

.trust-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.trust-item span {
  color: var(--ink-mute);
  font-size: 10px;
}

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

.section-head h2,
.section-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
}

.section-head h2 {
  font-size: 30px;
}

.section-head h3 {
  font-size: 23px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--ink-mute);
  font-size: 11px;
}

.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 15px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.chip.is-active {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 32, 29, 0.09);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 246, 0.8);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 46px rgba(43, 42, 35, 0.12);
}

.product-art {
  position: relative;
  height: 278px;
  overflow: hidden;
  background: var(--art-bg, #e8e5dd);
}

.product-art::before {
  position: absolute;
  top: -30%;
  right: -30%;
  width: 85%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 26px rgba(255, 255, 255, 0.08),
    0 0 0 52px rgba(255, 255, 255, 0.045);
}

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

.product-svg {
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 83%;
  height: 89%;
  filter: drop-shadow(0 18px 20px rgba(48, 46, 40, 0.13));
  transform: translateX(-50%);
}

.product-svg .garment-body {
  fill: var(--garment, #c4c8c0);
  stroke: rgba(30, 32, 29, 0.13);
  stroke-width: 1;
}

.product-svg .garment-detail {
  fill: none;
  stroke: rgba(30, 32, 29, 0.3);
  stroke-linecap: round;
  stroke-width: 1.2;
}

.product-svg .garment-accent {
  fill: var(--accent, #9c7d64);
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  color: var(--ink);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.9);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  backdrop-filter: blur(9px);
}

.favorite-button {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink);
  border: 1px solid rgba(30, 32, 29, 0.08);
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.88);
  cursor: pointer;
  backdrop-filter: blur(9px);
}

.favorite-button svg {
  width: 16px;
  height: 16px;
}

.favorite-button.is-favorite {
  color: var(--tomato);
  background: #fff4ef;
}

.favorite-button.is-favorite svg {
  fill: currentColor;
}

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

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

.product-info h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-price {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 750;
}

.product-price small {
  font-size: 10px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 10px;
}

.swatches {
  display: flex;
  align-items: center;
  gap: 5px;
}

.swatch {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(30, 32, 29, 0.12);
  border-radius: 50%;
  background: var(--swatch);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.stock-note {
  color: var(--tomato-dark);
  font-size: 9px;
  font-weight: 650;
}

.try-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  color: white;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.try-button svg {
  width: 14px;
  height: 14px;
}

.empty-card {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 30px;
  color: var(--ink-mute);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
}

/* Orders */
.order-summary-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  margin-bottom: 34px;
}

.active-tryon {
  position: relative;
  overflow: hidden;
  padding: 28px;
  color: #f8f4ec;
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, #252b24, #424c3c);
  box-shadow: var(--shadow-md);
}

.active-tryon::after {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.025);
}

.tryon-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill.delivered {
  color: #20301d;
  background: #dce6d1;
}

.status-pill.delivering {
  color: #123143;
  background: #d7e5eb;
}

.status-pill.return-requested {
  color: #4b361c;
  background: #f0dfbf;
}

.status-pill.returned,
.status-pill.purchased {
  color: var(--ink-soft);
  background: #e9e6df;
}

.status-pill.overdue {
  color: #651d12;
  background: #f4c8ba;
}

.mono-note {
  color: rgba(248, 244, 236, 0.5);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.active-order-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 22px;
}

.active-order-body h2 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
}

.active-order-body p {
  margin: 0;
  color: rgba(248, 244, 236, 0.63);
  font-size: 12px;
  line-height: 1.7;
}

.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.07);
}

.countdown span {
  color: rgba(248, 244, 236, 0.56);
  font-size: 9px;
}

.countdown strong {
  margin: 4px 0 1px;
  color: #f2c3b5;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.countdown small {
  color: rgba(248, 244, 236, 0.56);
  font-size: 9px;
}

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

.deposit-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 250, 246, 0.78);
  box-shadow: var(--shadow-sm);
}

.deposit-side h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 21px;
}

.deposit-side > div > p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 10px;
  line-height: 1.7;
}

.deposit-amount {
  margin: 20px 0 12px;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}

.deposit-amount small {
  font-family: var(--sans);
  font-size: 14px;
}

.rule-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.rule-list li::before {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--sage);
  content: "";
}

.history-list {
  display: grid;
  gap: 13px;
}

.order-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  min-height: 105px;
  padding: 11px 16px 11px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 246, 0.67);
}

.order-thumb {
  position: relative;
  height: 82px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--art-bg, #e5e2d9);
}

.order-thumb .product-svg {
  width: 84%;
  height: 95%;
  filter: none;
}

.order-thumb img,
.admin-order-thumb img,
.manage-thumb img,
.sheet-product-art img,
.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-main h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 17px;
}

.order-main p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 10px;
  line-height: 1.6;
}

.settlement-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 10px;
}

.settlement-line b {
  color: var(--ink);
}

.order-amount {
  text-align: right;
}

.order-amount strong {
  display: block;
  font-size: 14px;
}

.order-amount span {
  display: block;
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 9px;
}

/* Points */
.points-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  min-height: 306px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.46), transparent 15rem),
    linear-gradient(125deg, #d9dfcd, #aeb99e);
  box-shadow: var(--shadow-md);
}

.points-hero::after {
  position: absolute;
  right: -8%;
  bottom: -50%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(39, 50, 34, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 33px rgba(39, 50, 34, 0.04),
    0 0 0 68px rgba(39, 50, 34, 0.03);
}

.points-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
}

.points-copy .eyebrow {
  color: var(--sage-dark);
}

.points-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 4px;
  font-family: var(--serif);
  font-size: clamp(62px, 9vw, 105px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.points-number small {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.points-copy > p {
  margin: 14px 0 0;
  color: rgba(32, 43, 28, 0.65);
  font-size: 11px;
}

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

.points-art {
  position: relative;
  display: grid;
  place-items: center;
}

.point-orb {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(150px, 21vw, 235px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 0 50px rgba(255, 255, 255, 0.23),
    0 24px 50px rgba(51, 63, 44, 0.08);
  backdrop-filter: blur(7px);
}

.point-orb::before,
.point-orb::after {
  position: absolute;
  border: 1px solid rgba(52, 65, 45, 0.1);
  border-radius: 50%;
  content: "";
}

.point-orb::before {
  inset: -20px;
}

.point-orb::after {
  inset: 25px;
}

.point-orb span {
  font-family: var(--serif);
  font-size: 62px;
}

.points-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-top: 34px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 246, 0.72);
  box-shadow: var(--shadow-sm);
}

.panel + .panel {
  margin-top: 20px;
}

.progress-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.progress-ring {
  --progress: 0deg;
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(var(--tomato) var(--progress), var(--tomato-soft) 0);
}

.progress-ring::before {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--paper-strong);
  content: "";
}

.progress-ring span {
  position: absolute;
  font-family: var(--serif);
  font-size: 17px;
}

.progress-card h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 20px;
}

.progress-card p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 10px;
  line-height: 1.65;
}

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

.coupon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 15px 16px;
  border: 1px dashed rgba(232, 84, 59, 0.32);
  border-radius: 16px;
  background: #fff9f5;
}

.coupon::before,
.coupon::after {
  position: absolute;
  left: 74px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper-strong);
  content: "";
}

.coupon::before {
  top: -7px;
}

.coupon::after {
  bottom: -7px;
}

.coupon-value {
  min-width: 51px;
  padding-right: 13px;
  color: var(--tomato);
  border-right: 1px dashed rgba(232, 84, 59, 0.22);
  font-family: var(--serif);
  font-size: 26px;
  text-align: center;
}

.coupon-value small {
  font-family: var(--sans);
  font-size: 9px;
}

.coupon-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.coupon-info span {
  color: var(--ink-mute);
  font-size: 9px;
}

.ledger {
  display: grid;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
}

.ledger-row span {
  color: var(--ink-mute);
  font-size: 9px;
}

.ledger-value {
  align-self: center;
  color: var(--tomato);
  font-size: 14px;
  font-weight: 700;
}

.ledger-value.minus {
  color: var(--ink-mute);
}

.rule-note {
  display: flex;
  gap: 9px;
  margin-top: 15px;
  padding: 13px;
  color: var(--ink-soft);
  border-radius: 13px;
  background: var(--sage-soft);
  font-size: 10px;
  line-height: 1.65;
}

.rule-note svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--sage-dark);
}

/* Profile */
.profile-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  color: var(--paper-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(238, 216, 199, 0.18), transparent 13rem),
    linear-gradient(140deg, #222720, #43503e);
  box-shadow: var(--shadow-md);
}

.profile-card::after {
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 21px;
  color: var(--ink);
  border-radius: 50% 48% 46% 54%;
  background: #e7dcd0;
  font-family: var(--serif);
  font-size: 25px;
}

.profile-card h2 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
}

.profile-card > p {
  margin: 0;
  color: rgba(251, 250, 246, 0.56);
  font-size: 11px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.profile-stat {
  padding: 13px 9px;
  text-align: center;
  background: rgba(20, 24, 19, 0.22);
}

.profile-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.profile-stat span {
  color: rgba(251, 250, 246, 0.45);
  font-size: 9px;
}

.address-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 250, 246, 0.76);
  box-shadow: var(--shadow-sm);
}

.address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 21px;
}

.address-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  color: var(--sage-dark);
  border-radius: 999px;
  background: var(--sage-soft);
  font-size: 9px;
  font-weight: 650;
}

.privacy-badge svg {
  width: 13px;
  height: 13px;
}

.address-main {
  padding: 18px;
  border-radius: 17px;
  background: #f0ede6;
}

.address-main strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.address-main p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.address-main small {
  display: block;
  margin-top: 10px;
  color: var(--ink-mute);
  font-size: 9px;
}

.profile-card + .address-card {
  margin-top: 20px;
}

.referral-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 83% 15%, rgba(255, 255, 255, 0.44), transparent 12rem),
    #e6d4c6;
}

.referral-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 25px;
}

.referral-card p {
  max-width: 460px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.referral-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-top: 24px;
  padding: 13px 15px;
  border: 1px dashed rgba(30, 32, 29, 0.22);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.33);
}

.referral-code strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px;
  letter-spacing: 0.15em;
}

.referral-code span {
  color: var(--ink-mute);
  font-size: 9px;
}

.menu-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 246, 0.72);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.55);
}

.menu-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink-soft);
  border-radius: 10px;
  background: #efede7;
}

.menu-icon svg {
  width: 16px;
  height: 16px;
}

.menu-item span {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
}

.menu-item small {
  color: var(--ink-mute);
  font-size: 9px;
}

.menu-item > svg {
  width: 15px;
  height: 15px;
  color: var(--ink-mute);
}

/* Merchant */
.admin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 12px 16px;
  color: #31402b;
  border: 1px solid rgba(82, 96, 71, 0.15);
  border-radius: 15px;
  background: rgba(229, 233, 220, 0.72);
  font-size: 10px;
}

.admin-banner span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-banner svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.admin-banner b {
  font-weight: 700;
}

.admin-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.admin-tab.is-active {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

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

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 144px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 246, 0.75);
}

.metric-card.accent {
  color: var(--paper-strong);
  border-color: transparent;
  background: linear-gradient(140deg, #283026, #495642);
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  border-radius: 10px;
  background: #ece9e2;
}

.metric-card.accent .metric-icon {
  color: #ebddd0;
  background: rgba(255, 255, 255, 0.1);
}

.metric-icon svg {
  width: 16px;
  height: 16px;
}

.metric-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 500;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 7px;
  color: var(--ink-mute);
  font-size: 9px;
}

.metric-card.accent span {
  color: rgba(255, 255, 255, 0.55);
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  align-items: start;
}

.admin-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 246, 0.76);
  box-shadow: var(--shadow-sm);
}

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

.admin-panel-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.admin-panel-head p {
  margin: 5px 0 0;
  color: var(--ink-mute);
  font-size: 10px;
}

.quick-stack {
  display: grid;
  gap: 10px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 61px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-align: left;
}

.quick-action:hover {
  background: rgba(255, 255, 255, 0.7);
}

.quick-action-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 37px;
  height: 37px;
  color: var(--sage-dark);
  border-radius: 11px;
  background: var(--sage-soft);
}

.quick-action-icon svg {
  width: 17px;
  height: 17px;
}

.quick-action strong {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
}

.quick-action span {
  color: var(--ink-mute);
  font-size: 9px;
}

.quick-action > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.admin-order-list {
  display: grid;
  gap: 11px;
}

.admin-order {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.38);
}

.admin-order-thumb {
  position: relative;
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--art-bg, #e5e2d9);
}

.admin-order-thumb .product-svg {
  width: 84%;
  height: 96%;
  filter: none;
}

.admin-order h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 15px;
}

.admin-order p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 9px;
  line-height: 1.6;
}

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

.masked-address {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--sage-dark);
  font-size: 9px;
  font-weight: 600;
}

.masked-address svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

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

.manage-product {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.36);
}

.manage-thumb {
  position: relative;
  width: 60px;
  height: 74px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 11px;
  background: var(--art-bg, #e5e2d9);
}

.manage-thumb .product-svg {
  width: 90%;
  height: 97%;
  filter: none;
}

.manage-info {
  min-width: 0;
  flex: 1;
}

.manage-info strong {
  display: block;
  overflow: hidden;
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-info span {
  color: var(--ink-mute);
  font-size: 9px;
}

.toggle {
  position: relative;
  width: 35px;
  height: 21px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d6d2c9;
  cursor: pointer;
}

.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  content: "";
  transition: transform 0.18s ease;
}

.toggle.is-on {
  background: var(--sage-dark);
}

.toggle.is-on::after {
  transform: translateX(14px);
}

.settings-list {
  display: grid;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row span {
  color: var(--ink-soft);
  font-size: 10px;
}

.setting-row strong {
  font-size: 11px;
}

.audit-list {
  display: grid;
  gap: 9px;
}

.audit-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.6;
}

.audit-row time {
  color: var(--ink-mute);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Sheets and forms */
.sheet-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s, opacity 0.25s;
}

.sheet-layer.is-open {
  visibility: visible;
  opacity: 1;
}

.sheet-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(23, 25, 22, 0.46);
  backdrop-filter: blur(5px);
}

.sheet {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  max-height: min(90vh, 880px);
  overflow-y: auto;
  padding: 8px 30px 34px;
  border-radius: 31px 31px 0 0;
  background: var(--paper-strong);
  box-shadow: 0 -24px 70px rgba(20, 22, 19, 0.22);
  transform: translateY(38px);
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.sheet-layer.is-open .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #d6d2c9;
}

.sheet-close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.sheet-close svg {
  width: 16px;
  height: 16px;
}

.sheet h2 {
  margin: 0 42px 7px 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.sheet-intro {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.sheet-product {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 11px;
  border-radius: 17px;
  background: #efede6;
}

.sheet-product-art {
  position: relative;
  width: 78px;
  height: 92px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: var(--art-bg, #e5e2d9);
}

.sheet-product-art .product-svg {
  width: 88%;
  height: 96%;
  filter: none;
}

.sheet-product h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 19px;
}

.sheet-product p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 10px;
}

.sheet-product strong {
  display: block;
  margin-top: 10px;
  font-size: 16px;
}

.form-section {
  margin-top: 23px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 650;
}

.form-label small {
  color: var(--ink-mute);
  font-size: 9px;
  font-weight: 400;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-button {
  min-width: 45px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  cursor: pointer;
  font-size: 10px;
}

.option-button.is-selected {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.color-option {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.color-option::before {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--swatch);
  content: "";
}

.color-option.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--paper-strong), 0 0 0 3px var(--ink);
}

.form-field {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 11px;
}

textarea.form-field {
  min-height: 78px;
  resize: vertical;
  line-height: 1.6;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.privacy-inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 12px;
  color: var(--sage-dark);
  border-radius: 11px;
  background: var(--sage-soft);
  font-size: 9px;
  line-height: 1.65;
}

.privacy-inline svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f6f3ed;
  cursor: pointer;
  font-size: 10px;
  line-height: 1.7;
}

.agreement input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--tomato);
}

.agreement strong {
  color: var(--tomato-dark);
}

.agreement button {
  padding: 0;
  color: var(--tomato-dark);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
}

.cost-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 15px;
  background: #efede6;
}

.cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 27px;
  color: var(--ink-soft);
  font-size: 10px;
}

.cost-row.total {
  margin-top: 9px;
  padding-top: 11px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-weight: 650;
}

.cost-row.total strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.demo-pay-note {
  margin: 11px 0 17px;
  color: var(--ink-mute);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 6px auto 19px;
  color: white;
  border-radius: 50%;
  background: var(--sage-dark);
  box-shadow: 0 0 0 12px var(--sage-soft);
}

.success-mark svg {
  width: 31px;
  height: 31px;
}

.success-sheet {
  text-align: center;
}

.success-sheet h2 {
  margin: 0 0 8px;
}

.success-sheet > p {
  margin: 0 auto;
  max-width: 430px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.success-receipt {
  margin: 24px 0 18px;
  padding: 18px;
  border-radius: 16px;
  background: #efede6;
  text-align: left;
}

.success-receipt div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.success-receipt b {
  color: var(--ink);
  font-weight: 600;
}

.terms-sheet h3 {
  margin: 23px 0 8px;
  font-family: var(--serif);
  font-size: 18px;
}

.terms-sheet p,
.terms-sheet li {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.8;
}

.terms-sheet ol {
  padding-left: 19px;
}

.terms-sheet .legal-note {
  margin-top: 22px;
  padding: 13px;
  border-radius: 12px;
  background: var(--tomato-soft);
  color: var(--tomato-dark);
  font-size: 9px;
  line-height: 1.7;
}

.notification-list {
  display: grid;
  gap: 9px;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.notification-item.is-unread {
  border-color: rgba(232, 84, 59, 0.16);
  background: #fff9f5;
}

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 33px;
  height: 33px;
  color: var(--tomato-dark);
  border-radius: 10px;
  background: var(--tomato-soft);
}

.notice-icon svg {
  width: 15px;
  height: 15px;
}

.notification-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.notification-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.65;
}

.notification-item time {
  display: block;
  margin-top: 6px;
  color: var(--ink-mute);
  font-size: 8px;
}

.qr-poster {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 30px;
  border-radius: 25px;
  background: linear-gradient(145deg, #f1e9dc, #d8cdbf);
}

.qr-poster::after {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(30, 32, 29, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 28px rgba(30, 32, 29, 0.035);
}

.qr-poster-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.qr-poster-brand .brand-mark {
  width: 31px;
  height: 31px;
  font-size: 14px;
}

.qr-poster h3 {
  max-width: 310px;
  margin: 27px 0 7px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  line-height: 1.2;
}

.qr-poster > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.qr-box {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding: 14px;
  width: 196px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 14px 35px rgba(48, 45, 38, 0.12);
}

.qr-box svg {
  width: 100%;
  height: auto;
}

.qr-caption {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 8px;
  text-align: center;
}

.lottery-display {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  margin: 21px 0;
  padding: 25px;
  color: var(--paper-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 70% 30%, rgba(235, 195, 172, 0.2), transparent 13rem),
    linear-gradient(135deg, #282f26, #52604a);
  text-align: center;
}

.lottery-display::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.025),
    0 0 0 58px rgba(255, 255, 255, 0.018);
}

.lottery-display small {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.lottery-display h3 {
  position: relative;
  z-index: 2;
  margin: 18px 0 5px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
}

.lottery-display p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.prize-list {
  display: grid;
  gap: 8px;
  margin: 17px 0;
}

.prize-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 10px;
}

.prize-option span {
  color: var(--ink-mute);
}

.alert-box {
  margin: 16px 0;
  padding: 14px;
  color: #70301f;
  border: 1px solid rgba(232, 84, 59, 0.18);
  border-radius: 13px;
  background: var(--tomato-soft);
  font-size: 10px;
  line-height: 1.7;
}

.settlement-preview {
  display: grid;
  gap: 8px;
  margin: 17px 0;
  padding: 15px;
  border-radius: 14px;
  background: #efede6;
}

.settlement-preview div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 10px;
}

.settlement-preview strong {
  color: var(--ink);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--tomato);
}

.toast {
  position: fixed;
  z-index: 120;
  bottom: 106px;
  left: 50%;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 18px;
  color: white;
  border-radius: 999px;
  background: rgba(30, 32, 29, 0.95);
  box-shadow: 0 12px 30px rgba(20, 22, 19, 0.22);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.22s, transform 0.22s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.confetti-layer {
  position: fixed;
  z-index: 130;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: 22%;
  left: 50%;
  width: 7px;
  height: 12px;
  border-radius: 3px;
  background: var(--confetti-color);
  animation: confetti-fall 1.5s cubic-bezier(0.18, 0.7, 0.35, 1) forwards;
}

@keyframes confetti-fall {
  from {
    opacity: 1;
    transform: translate(-50%, -40px) rotate(0);
  }
  to {
    opacity: 0;
    transform: translate(var(--confetti-x), 70vh) rotate(var(--confetti-rotate));
  }
}

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

.page-enter > * {
  animation: fade-up 0.4s ease both;
}

.page-enter > *:nth-child(2) {
  animation-delay: 0.04s;
}

.page-enter > *:nth-child(3) {
  animation-delay: 0.08s;
}

.page-enter > *:nth-child(4) {
  animation-delay: 0.12s;
}

@media (max-width: 1060px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .topbar {
    height: 68px;
    padding: 0 18px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .brand-name strong {
    font-size: 18px;
  }

  .brand-name small,
  .demo-pill,
  .user-chip b {
    display: none;
  }

  .user-chip {
    padding: 4px;
    border: 0;
    background: transparent;
  }

  .view-root {
    width: calc(100% - 32px);
    padding-top: 24px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .page-heading h1 {
    font-size: 38px;
  }

  .page-heading p {
    font-size: 12px;
  }

  .heading-date {
    align-self: stretch;
    justify-content: center;
  }

  .hero-card {
    grid-template-columns: 1fr;
    min-height: 520px;
  }

  .hero-copy {
    padding: 33px 27px 12px;
  }

  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-copy > p {
    margin: 14px 0 20px;
  }

  .hero-art {
    min-height: 250px;
  }

  .hero-portrait {
    width: min(65%, 300px);
    height: 100%;
  }

  .hero-coat {
    width: 59%;
    height: 96%;
  }

  .floating-note {
    right: 17px;
    bottom: 18px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

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

  .product-art {
    height: 232px;
  }

  .product-info {
    padding: 14px;
  }

  .product-info h3 {
    font-size: 16px;
  }

  .product-price {
    font-size: 13px;
  }

  .product-meta {
    font-size: 9px;
  }

  .try-button {
    width: 100%;
    justify-content: center;
    margin-top: 3px;
  }

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

  .stock-note {
    display: none;
  }

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

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

  .countdown {
    align-items: flex-start;
    width: fit-content;
    min-width: 120px;
  }

  .points-hero {
    grid-template-columns: 1fr;
    min-height: 520px;
  }

  .points-copy {
    padding: 31px 27px 5px;
  }

  .points-art {
    min-height: 205px;
  }

  .point-orb {
    width: 160px;
  }

  .profile-grid {
    gap: 15px;
  }

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

  .admin-order {
    grid-template-columns: 55px minmax(0, 1fr);
  }

  .admin-order-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 0 14px;
  }

  .top-actions {
    gap: 7px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .view-root {
    width: calc(100% - 24px);
    padding: 20px 0 118px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .page-heading h1 {
    font-size: 34px;
  }

  .hero-card {
    min-height: 492px;
    border-radius: 28px;
  }

  .hero-copy {
    padding: 28px 21px 8px;
  }

  .hero-copy h2 {
    font-size: 37px;
  }

  .hero-copy > p {
    font-size: 11px;
  }

  .hero-actions .button {
    min-height: 40px;
    padding: 0 15px;
    font-size: 11px;
  }

  .hero-art {
    min-height: 223px;
  }

  .floating-note {
    min-width: 134px;
    padding: 11px 13px;
  }

  .floating-note strong {
    font-size: 17px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-art {
    height: 196px;
  }

  .product-badge {
    top: 9px;
    left: 9px;
    padding: 6px 8px;
    font-size: 8px;
  }

  .favorite-button {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 14px;
  }

  .product-price {
    font-size: 12px;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .try-button {
    min-height: 33px;
    padding: 0 10px;
    font-size: 9px;
  }

  .active-tryon {
    padding: 22px;
  }

  .active-order-body h2 {
    font-size: 28px;
  }

  .deposit-side {
    padding: 21px;
  }

  .order-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .order-thumb {
    height: 76px;
  }

  .order-amount {
    grid-column: 2;
    text-align: left;
  }

  .points-hero {
    min-height: 475px;
    border-radius: 28px;
  }

  .points-copy {
    padding: 27px 21px 3px;
  }

  .points-number {
    font-size: 70px;
  }

  .points-actions .button {
    min-height: 40px;
    padding: 0 15px;
    font-size: 11px;
  }

  .point-orb {
    width: 135px;
  }

  .point-orb span {
    font-size: 50px;
  }

  .panel {
    padding: 19px;
  }

  .progress-card {
    align-items: flex-start;
  }

  .progress-ring {
    width: 76px;
    height: 76px;
  }

  .progress-ring::before {
    width: 60px;
    height: 60px;
  }

  .profile-card,
  .address-card,
  .referral-card {
    padding: 23px;
  }

  .metric-grid {
    gap: 9px;
  }

  .metric-card {
    min-height: 130px;
    padding: 16px;
  }

  .metric-card strong {
    font-size: 29px;
  }

  .admin-panel {
    padding: 18px;
  }

  .admin-panel-head {
    align-items: flex-start;
  }

  .admin-panel-head h2 {
    font-size: 21px;
  }

  .admin-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .sheet {
    max-height: 92vh;
    padding: 8px 18px calc(25px + env(safe-area-inset-bottom));
    border-radius: 25px 25px 0 0;
  }

  .sheet-close {
    top: 16px;
    right: 16px;
  }

  .sheet h2 {
    font-size: 26px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .qr-poster {
    padding: 21px;
  }

  .qr-poster h3 {
    font-size: 26px;
  }

  .qr-box {
    width: 170px;
  }

  .bottom-nav {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    border-radius: 21px;
  }

  .nav-button {
    border-radius: 15px;
  }
}

@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;
  }
}
