:root {
  --ink: #2c2025;
  --muted: #756a6e;
  --cream: #fffaf6;
  --paper: #ffffff;
  --blush: #ffe7df;
  --coral: #f47f68;
  --coral-dark: #d85f4d;
  --plum: #8c2f50;
  --plum-dark: #63213a;
  --green: #256b53;
  --green-soft: #e8f4ee;
  --gold: #c89550;
  --line: #eadfd9;
  --shadow: 0 14px 38px rgba(76, 39, 48, .10);
  --radius: 24px;
  --safe-bottom: max(16px, env(safe-area-inset-bottom));
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--cream); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .display, .serif { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
h1 { font-size: clamp(2.4rem, 11vw, 5.5rem); line-height: .93; margin-bottom: 18px; }
h2 { font-size: clamp(2rem, 8vw, 3.6rem); line-height: 1; margin-bottom: 14px; }
h3 { font-size: 1.05rem; margin-bottom: 8px; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 10px; color: var(--plum); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.small { font-size: .78rem; }
.price { font-weight: 800; letter-spacing: -.01em; }
.price-lg { font-size: 2rem; font-weight: 800; letter-spacing: -.01em; }
.profit { color: var(--green); font-weight: 800; }
.profit-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .75rem; font-weight: 800; }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--plum); color: white; font: 700 2rem Georgia, serif; box-shadow: var(--shadow); }

.site-header { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; height: 70px; padding: max(10px, env(safe-area-inset-top)) 18px 8px; background: var(--cream); border-bottom: 1px solid rgba(140,47,80,.08); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 900; letter-spacing: -.04em; }
.brand .brand-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 1.18rem; box-shadow: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.icon-btn svg, .nav-item svg, .action-icon svg { width: 21px; height: 21px; stroke-width: 1.8; }
.cart-count { position: absolute; right: -2px; top: -4px; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid white; border-radius: 10px; background: var(--plum); color: white; font-size: .64rem; font-weight: 900; line-height: 15px; text-align: center; }

.page { min-height: calc(100vh - 70px); padding-bottom: 104px; }
.page.no-nav { padding-bottom: 40px; }
.shell { width: min(1180px, 100%); margin: 0 auto; padding: 0 18px; }
.narrow { width: min(560px, 100%); margin: 0 auto; padding: 0 18px; }
.section { padding-top: 42px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.text-link { border: 0; padding: 6px 0; background: transparent; color: var(--plum); font-size: .82rem; font-weight: 800; cursor: pointer; }

.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid transparent; border-radius: 16px; font-weight: 850; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--plum); color: white; box-shadow: 0 10px 24px rgba(140,47,80,.19); }
.btn-primary:hover { background: var(--plum-dark); }
.btn-coral { background: var(--coral); color: #401d18; }
.btn-secondary { border-color: var(--line); background: white; }
.btn-soft { background: var(--blush); color: var(--plum-dark); }
.btn-ghost { background: transparent; color: var(--plum); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 13px; font-size: .79rem; }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero { overflow: hidden; }
.hero-grid { display: grid; min-height: 650px; }
.hero-copy { z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 46px 18px 34px; }
.hero-copy p:not(.eyebrow) { max-width: 520px; color: #62565a; font-size: 1.03rem; }
.hero-image { position: relative; min-height: 460px; overflow: hidden; border-radius: 34px 34px 0 0; background: var(--blush); }
.hero-image img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; object-position: center 30%; }
.hero-float { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.6); border-radius: 18px; background: #fffaf6; box-shadow: var(--shadow); }
.hero-float strong { display: block; }
.avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 3px solid white; border-radius: 50%; background: var(--plum); color: white; font-weight: 900; }
.avatar.coral { background: var(--coral); color: var(--ink); }
.avatar.lg { width: 56px; height: 56px; font-size: 1.2rem; }

.seller-strip { display: flex; align-items: center; gap: 12px; margin: 18px auto 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 8px 28px rgba(63,34,43,.06); }
.seller-strip .seller-text { min-width: 0; flex: 1; }
.seller-strip .seller-text strong, .seller-strip .seller-text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-strip .seller-text span { margin-top: 3px; color: var(--muted); font-size: .74rem; }

.promo-banner { position: relative; overflow: hidden; margin-top: 18px; padding: 26px 22px; border-radius: 28px; background: var(--plum); color: white; }
.promo-banner::after { content: ''; position: absolute; width: 180px; height: 180px; right: -55px; top: -55px; border: 35px solid rgba(244,163,139,.35); border-radius: 50%; }
.promo-banner p { max-width: 260px; margin-bottom: 18px; color: #f8dfe8; }
.promo-banner .btn { position: relative; z-index: 1; }

.category-row { display: flex; gap: 9px; overflow-x: auto; padding: 2px 18px 12px; margin: 0 -18px; scrollbar-width: none; }
.category-row::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: .8rem; font-weight: 750; cursor: pointer; }
.chip.active { border-color: var(--plum); background: var(--plum); color: white; }
.search { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 0 15px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.search svg { width: 20px; color: var(--muted); }
.search input { width: 100%; height: 50px; border: 0; outline: 0; background: transparent; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: white; cursor: pointer; }
.product-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--blush); }
.product-media img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.025); }
.badge { position: absolute; left: 9px; top: 9px; padding: 6px 9px; border-radius: 999px; background: #fff; font-size: .62rem; font-weight: 900; }
.quick-add { position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--plum); color: white; box-shadow: 0 6px 16px rgba(86,29,50,.25); cursor: pointer; }
.quick-add svg { width: 18px; }
.product-info { padding: 12px; }
.product-info h3 { min-height: 38px; margin: 0 0 8px; font-size: .87rem; line-height: 1.25; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-meta .price { font-size: .94rem; }
.product-meta .small { font-size: .64rem; }

.recruit-card { overflow: hidden; margin: 44px 0 0; padding: 28px 22px; border-radius: 28px; background: linear-gradient(140deg, #ffded4, #fff7f1); border: 1px solid #f6cfc4; }
.recruit-card .difference { display: inline-block; margin: 4px 0 18px; color: var(--plum); font-size: 2.4rem; font-weight: 900; letter-spacing: -.01em; }

.product-detail { display: grid; gap: 24px; padding-top: 18px; }
.detail-media { overflow: hidden; aspect-ratio: 4/5; border-radius: 30px; background: var(--blush); }
.detail-media img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.detail-copy h1 { font-size: clamp(2.4rem, 11vw, 4rem); }
.detail-copy .size { margin: -8px 0 22px; color: var(--muted); }
.price-line { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notes { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.note { padding: 8px 11px; border-radius: 999px; background: #f8f0ec; font-size: .72rem; }
.sticky-buy { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; padding: 12px 18px var(--safe-bottom); border-top: 1px solid var(--line); background: var(--cream); }
.quantity { display: flex; align-items: center; justify-content: space-between; min-width: 112px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.quantity button { width: 36px; height: 46px; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; }
.quantity span { min-width: 28px; text-align: center; font-weight: 900; }

.back-row { display: flex; align-items: center; gap: 12px; padding: 14px 0 6px; }
.back-row h1, .back-row h2 { margin: 0; flex: 1; font: 900 1.05rem Inter, sans-serif; letter-spacing: -.02em; }
.cart-list { display: grid; gap: 12px; margin-top: 18px; }
.cart-item { display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.cart-item img { width: 82px; height: 102px; border-radius: 14px; object-fit: cover; }
.cart-item h3 { margin: 4px 0 3px; font-size: .88rem; }
.cart-item .row { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: 12px; }
.cart-item .quantity { min-width: 96px; border-radius: 12px; }
.cart-item .quantity button { height: 34px; }
.summary-card { margin-top: 20px; padding: 20px; border-radius: 22px; background: #f5eee9; }
.summary-row { display: flex; justify-content: space-between; gap: 20px; margin: 10px 0; }
.summary-row.total { margin-top: 16px; padding-top: 16px; border-top: 1px solid #ddcec5; font-size: 1.08rem; font-weight: 900; }
.trust-line { display: flex; gap: 10px; margin: 16px 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.trust-line svg { flex: none; width: 20px; color: var(--green); }
.empty { padding: 70px 24px; text-align: center; }
.empty .empty-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; background: var(--blush); color: var(--plum); }
.empty svg { width: 30px; }

.form-card { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { color: #54484d; font-size: .76rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #dfd2cd; border-radius: 14px; outline: none; background: #fffdfb; color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(140,47,80,.08); }
.form-grid { display: grid; gap: 0 12px; }
.form-note { padding: 14px; border-radius: 15px; background: var(--green-soft); color: var(--green); font-size: .76rem; line-height: 1.4; }
.error { display: none; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: #ffe7e4; color: #8c2f3e; font-size: .78rem; }
.error.show { display: block; }

.success-hero { padding: 42px 0 18px; text-align: center; }
.success-check { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.success-check svg { width: 40px; height: 40px; stroke-width: 2.5; }
.success-hero h1 { font-size: 3rem; }
.success-hero p { max-width: 410px; margin: 0 auto; color: var(--muted); }
.math-card { margin-top: 24px; padding: 24px 20px; border: 1px solid #f3cfc4; border-radius: 26px; background: linear-gradient(140deg, #fff0ea, #fffaf7); text-align: center; }
.math-card .math-profit { margin: 4px 0 16px; color: var(--plum); font-size: 2.6rem; font-weight: 900; letter-spacing: -.01em; }

.stepper { display: flex; align-items: center; gap: 8px; margin: 20px 0 28px; }
.step { height: 4px; flex: 1; border-radius: 4px; background: #eaded8; }
.step.active { background: var(--plum); }
.join-hero { padding: 38px 0 8px; }
.join-hero h1 { max-width: 520px; }
.benefits { display: grid; gap: 12px; margin: 24px 0; }
.benefit { display: flex; gap: 13px; align-items: flex-start; }
.benefit-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--blush); color: var(--plum); }
.benefit-icon svg { width: 19px; }
.benefit p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }

.qr-card { position: relative; overflow: hidden; margin: 20px auto; padding: 30px 24px; border-radius: 30px; background: var(--plum); color: white; text-align: center; box-shadow: 0 20px 50px rgba(86, 29, 50, .25); }
.qr-card::before, .qr-card::after { content: ''; position: absolute; width: 150px; height: 150px; border: 30px solid rgba(244,163,139,.2); border-radius: 50%; }
.qr-card::before { left: -90px; top: -80px; }
.qr-card::after { right: -80px; bottom: -100px; }
.qr-card > * { position: relative; z-index: 1; }
.qr-card .qr { width: min(270px, 82%); margin: 20px auto; padding: 12px; border-radius: 18px; background: white; }
.qr-card .qr svg { width: 100%; height: auto; }
.qr-card .brand { justify-content: center; }
.qr-card .brand-mark { background: white; color: var(--plum); }
.qr-card .scan { margin: 12px 0 4px; font-size: 1rem; font-weight: 900; letter-spacing: .14em; }
.qr-card .url { color: #f3cad7; font-size: .78rem; }

.dash-head { padding: 28px 0 6px; }
.dash-head h1 { margin-bottom: 8px; font-size: 2.65rem; }
.stat-hero { margin-top: 18px; padding: 24px; border-radius: 28px; background: var(--plum); color: white; }
.stat-hero .label { color: #ebc8d4; font-size: .75rem; }
.stat-hero .value { margin: 4px 0 20px; font-size: 3rem; font-weight: 900; letter-spacing: -.01em; }
.stat-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-split > div { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.stat-split strong, .stat-split span { display: block; }
.stat-split span { margin-top: 4px; color: #ebc8d4; font-size: .68rem; }
.actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.action-card { min-height: 128px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: white; cursor: pointer; }
.action-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 15px; border-radius: 13px; background: var(--blush); color: var(--plum); }
.action-card strong, .action-card span { display: block; }
.action-card strong { font-size: .86rem; }
.action-card span { margin-top: 5px; color: var(--muted); font-size: .68rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mini-stat { padding: 16px 10px; border-radius: 18px; background: #f5eee9; text-align: center; }
.mini-stat strong, .mini-stat span { display: block; }
.mini-stat strong { font-size: 1.25rem; letter-spacing: -.01em; }
.mini-stat span { margin-top: 4px; color: var(--muted); font-size: .6rem; }

/* Seller dashboard: a focused mobile workspace rather than a wall of equal cards. */
.dashboard-brand-header {
  width: min(560px, 100%);
  min-height: 170px;
  margin: 0 auto;
  padding: max(14px, var(--safe-top)) 18px 14px;
  border-radius: 0 0 28px 28px;
  background: var(--plum);
  color: white;
}
.dashboard-brand-top,
.dashboard-brand-actions,
.dashboard-brand-foot,
.dashboard-live,
.dashboard-earnings-head,
.dashboard-profit,
.dashboard-quick-action {
  display: flex;
  align-items: center;
}
.dashboard-brand-top,
.dashboard-brand-foot,
.dashboard-earnings-head,
.dashboard-profit { justify-content: space-between; }
.dashboard-brand-top > span { color: #ebc8d4; font-size: .68rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.dashboard-brand-actions { gap: 8px; }
.dashboard-header-icon,
.dashboard-header-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: white;
}
.dashboard-header-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.dashboard-header-avatar { border-color: white; background: white; color: var(--plum); font-size: .72rem; font-weight: 900; }
.dashboard-wordmark {
  display: inline-block;
  margin: 2px 0 5px;
  font-size: clamp(3.25rem, 15vw, 4.35rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.085em;
}
.dashboard-wordmark span { color: var(--coral); }
.dashboard-brand-foot { padding-top: 11px; border-top: 1px solid rgba(255,255,255,.22); color: #f2dce4; font-size: .68rem; }
.dashboard-live { gap: 6px; color: white; font-weight: 800; }
.dashboard-live i { width: 6px; height: 6px; border-radius: 50%; background: #a6e1c5; box-shadow: 0 0 0 4px rgba(166,225,197,.13); }

.seller-dashboard { background: #f7f1ed; }
.seller-dashboard-body { padding-top: 0; }
.dashboard-greeting { padding: 22px 0 8px; }
.dashboard-greeting .eyebrow { margin-bottom: 5px; }
.dashboard-greeting h1 { margin: 0; font-size: 2.45rem; }
.seller-dashboard .install-banner { margin-top: 10px; box-shadow: 0 8px 25px rgba(76,39,48,.05); }
.seller-dashboard .form-note { margin: 0 0 14px; border-radius: 16px; }
.seller-dashboard .next-step {
  position: relative;
  overflow: hidden;
  margin: 10px 0 14px;
  padding: 20px;
  border-color: #efcfc6;
  border-radius: 22px;
  background: #fff2ec;
}
.seller-dashboard .next-step::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--coral); content: ''; }
.seller-dashboard .next-step h2 { font: 900 1.28rem Inter, sans-serif; letter-spacing: -.02em; }
.seller-dashboard .next-step .btn { min-height: 48px; border-radius: 14px; }

.dashboard-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.dashboard-quick-action {
  min-width: 0;
  min-height: 76px;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  text-align: left;
  cursor: pointer;
}
.dashboard-quick-action > svg { width: 21px; height: 21px; flex: none; color: var(--plum); stroke-width: 1.9; }
.dashboard-quick-action span { min-width: 0; }
.dashboard-quick-action strong,
.dashboard-quick-action small { display: block; }
.dashboard-quick-action strong { font-size: .78rem; }
.dashboard-quick-action small { margin-top: 4px; color: var(--muted); font-size: .64rem; }

.dashboard-earnings { padding: 21px; border-radius: 24px; background: var(--ink); color: white; box-shadow: 0 16px 36px rgba(44,32,37,.13); }
.dashboard-earnings-head > div span,
.dashboard-earnings-head > div strong { display: block; }
.dashboard-earnings-head span { color: #cdbfc4; font-size: .65rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.dashboard-earnings-head strong { margin-top: 3px; font-size: .78rem; }
.dashboard-earnings-head > svg { width: 22px; height: 22px; color: var(--coral); }
.dashboard-profit { align-items: end; margin: 20px 0; }
.dashboard-profit span { color: #d9ccd0; font-size: .72rem; }
.dashboard-profit strong { font-size: 2.45rem; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.dashboard-money-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dashboard-money-split > div { padding-top: 13px; border-top: 1px solid rgba(255,255,255,.16); }
.dashboard-money-split span,
.dashboard-money-split strong { display: block; }
.dashboard-money-split span { color: #bfaeb4; font-size: .63rem; }
.dashboard-money-split strong { margin-top: 4px; font-size: .88rem; font-variant-numeric: tabular-nums; }
.dashboard-earning-note { margin: 9px 2px 0; color: var(--muted); font-size: .69rem; line-height: 1.45; }
.dashboard-stats { margin-top: 14px; }
.dashboard-stats .mini-stat { border: 1px solid var(--line); background: white; }
.dashboard-orders-preview { padding-top: 30px; }
.dashboard-orders-preview .section-head { margin-bottom: 12px; }
.dashboard-orders-preview .section-head h2 { font-size: 1.8rem; }
.seller-dashboard .order-list { margin-top: 0; }
.seller-dashboard .order-card { border-color: transparent; box-shadow: 0 7px 20px rgba(76,39,48,.05); }
.dashboard-board-link { margin: 14px 0 20px; box-shadow: 0 7px 20px rgba(76,39,48,.04); }
.dashboard-board-link .action-icon { margin: 0; }

.order-list { display: grid; gap: 11px; margin-top: 18px; }
.order-card { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: white; cursor: pointer; }
.order-card .main { min-width: 0; flex: 1; }
.order-card .main strong, .order-card .main span { display: block; }
.order-card .main span { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.order-card .amount { text-align: right; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .61rem; font-weight: 900; text-transform: uppercase; }
.status.new { background: #fff0d9; color: #8b5b16; }
.status.draft { background: #eee8f5; color: #654a7a; }
.customer-head { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.customer-head .main { flex: 1; }
.customer-head h2 { margin: 0 0 4px; font: 900 1.2rem Inter, sans-serif; }
.customer-head p { margin: 0; color: var(--muted); font-size: .75rem; }
.financial-card { padding: 20px; border-radius: 24px; background: #f5eee9; }
.financial-card .big-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.financial-card .big-row strong { font-size: 1.7rem; }
.timeline { display: grid; gap: 0; margin: 24px 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 10px; min-height: 48px; }
.timeline-item::after { content: ''; position: absolute; left: 7px; top: 17px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item:last-child::after { display: none; }
.timeline-dot { width: 15px; height: 15px; border: 4px solid #e1d4ce; border-radius: 50%; background: white; }
.timeline-item.done .timeline-dot { border-color: var(--green); background: var(--green); }
.timeline-item strong { display: block; font-size: .8rem; }
.timeline-item span { color: var(--muted); font-size: .68rem; }

.admin-page { background: #f6f4f3; }
.admin-nav { display: flex; gap: 7px; overflow-x: auto; margin: 0 -18px; padding: 14px 18px 8px; scrollbar-width: none; }
.admin-nav a { flex: none; padding: 9px 13px; border-radius: 11px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.admin-nav a.active { background: var(--ink); color: white; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { min-height: 120px; padding: 17px; border: 1px solid #e8e3e1; border-radius: 18px; background: white; }
.kpi span { display: block; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kpi strong { display: block; margin-top: 12px; font-size: 1.75rem; letter-spacing: -.01em; }
.kpi em { display: block; margin-top: 4px; color: var(--green); font-size: .65rem; font-style: normal; font-weight: 800; }
.chart-card, .table-card { margin-top: 12px; padding: 18px; border: 1px solid #e8e3e1; border-radius: 20px; background: white; overflow: hidden; }
.chart-card h3, .table-card h3 { margin-bottom: 18px; }
.bar-chart { display: flex; align-items: end; height: 160px; gap: 9px; padding-top: 20px; }
.bar-wrap { display: grid; grid-template-rows: 1fr auto; align-items: end; height: 100%; flex: 1; gap: 6px; }
.bar { min-height: 5px; border-radius: 6px 6px 2px 2px; background: var(--coral); }
.bar-wrap:nth-child(even) .bar { background: var(--plum); }
.bar-wrap span { color: var(--muted); font-size: .55rem; text-align: center; }
.table-scroll { overflow-x: auto; margin: 0 -18px -18px; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .72rem; }
th, td { padding: 13px 18px; border-top: 1px solid #eee8e5; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.catalog-admin-item { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.catalog-admin-item img { width: 62px; height: 70px; border-radius: 12px; object-fit: cover; }

.bottom-nav { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 8px var(--safe-bottom); border-top: 1px solid var(--line); background: var(--cream); }
.nav-item { display: grid; justify-items: center; gap: 4px; padding: 5px; border-radius: 13px; color: #8a7d81; font-size: .58rem; font-weight: 750; cursor: pointer; }
.nav-item.active { color: var(--plum); }
.toast { position: fixed; z-index: 100; left: 50%; top: calc(12px + var(--safe-top, 0px)); max-width: calc(100vw - 36px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: .76rem; font-weight: 700; opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast { transform: translate(-50%, -18px); }

@media (min-width: 620px) {
  .shell, .narrow { padding-left: 28px; padding-right: 28px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .actions-grid { grid-template-columns: repeat(4, 1fr); }
  .bottom-nav { left: 50%; right: auto; width: 520px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; }
}

@media (min-width: 860px) {
  .site-header { height: 78px; padding-left: max(28px, calc((100vw - 1180px)/2)); padding-right: max(28px, calc((100vw - 1180px)/2)); }
  .hero { padding: 28px; }
  .hero-grid { grid-template-columns: 1fr 1fr; width: min(1180px, 100%); min-height: 680px; margin: auto; border-radius: 38px; background: #fff0e9; overflow: hidden; }
  .hero-copy { padding: 70px; }
  .hero-image { min-height: 680px; border-radius: 0; }
  .hero-image img { min-height: 680px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .product-detail { grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: start; gap: 60px; padding-top: 42px; }
  .detail-copy { position: sticky; top: 110px; padding-top: 30px; }
  .sticky-buy { position: static; margin-top: 24px; padding: 0; border: 0; background: transparent; backdrop-filter: none; }
  .page { padding-bottom: 60px; }
  .bottom-nav { display: none; }
  .admin-page .shell { width: min(1280px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Pilot additions: consent, sign-in, company-order builder, legal pages */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--plum); }
.consent a { color: var(--plum); font-weight: 700; }
.prefix-field { display: flex; align-items: center; padding-left: 13px; border: 1px solid #dfd2cd; border-radius: 14px; background: #fffdfb; }
.prefix-field input { padding-left: 4px; border: 0; }
.stock-list { display: grid; gap: 12px; }
.stock-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.stock-row img { width: 44px; height: 52px; border-radius: 10px; object-fit: cover; }
.legal h3 { margin: 20px 0 6px; font-size: .95rem; }
.legal p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.admin-nav button { border: 0; background: none; font: inherit; cursor: pointer; }
.order-card input[type=checkbox] { flex: none; width: 20px; height: 20px; }


/* App-like feel: touch response, safe areas, install prompt, skeletons */
:root { --safe-top: env(safe-area-inset-top, 0px); }
html {
  -webkit-tap-highlight-color: transparent;
  /* Keep the scrollbar's space reserved: without it every short screen drops the scrollbar and the
     whole layout jumps sideways by its width, which reads as the page doubling during the repaint. */
  scrollbar-gutter: stable;
  overflow-y: scroll;
}
button, a, .product-card, .action-card, .order-card, .nav-item { touch-action: manipulation; }
.btn, .action-card, .product-card, .order-card, .chip, .icon-btn, .nav-item {
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, opacity .15s ease;
}
.btn:active, .icon-btn:active, .chip:active { transform: scale(.96); }
.action-card:active, .product-card:active, .order-card:active { transform: scale(.985); }
.btn:disabled { opacity: .6; transform: none; }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }

.next-step { margin: 0 0 18px; padding: 20px; border-radius: 22px; border: 1px solid #f0dfd8; background: linear-gradient(160deg, #fff6f1, #ffeee6); }
.next-step h2 { margin: 4px 0 6px; font-size: 1.18rem; }
.next-step p { margin: 0 0 16px; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.install-banner { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: white; }
.install-banner .main { flex: 1; }
.install-banner strong { display: block; font-size: .86rem; }
.install-banner span { color: var(--muted); font-size: .72rem; }
.install-banner button { flex: none; }

.skeleton { position: relative; overflow: hidden; border-radius: 18px; background: #f2ebe7; }
.skeleton::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: sweep 1.2s infinite; content: ''; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skeleton-stack { display: grid; gap: 14px; padding: 18px 0; }
.skeleton-line { height: 16px; border-radius: 8px; }
.skeleton-card { height: 120px; }
.skeleton-tile { height: 96px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .action-card, .product-card, .order-card, .chip, .icon-btn, .nav-item { transition: none; }
  .btn:active, .icon-btn:active, .chip:active, .action-card:active, .product-card:active, .order-card:active { transform: none; }
  .skeleton::after { animation: none; }
}

/* Fade only: a transform on this container — even one that ends at "none" with fill-mode both — makes
   #app the containing block for every position:fixed child, which unpins the bottom bars from the
   screen and drops them at the end of the document. */
#app.screen-in { animation: screen-in .18s ease both; }
@keyframes screen-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #app.screen-in { animation: none; } }

/* ========================================================================== 
   SANAOL POP SYSTEM · unified public, seller and admin redesign
   ========================================================================== */

:root {
  --ink: #18151b;
  --cream: #f5efff;
  --paper: #fffdf8;
  --plum: #9e3158;
  --coral: #f27662;
  --coral-dark: #ce5f50;
  --peach: #ffd2c7;
  --lime: #dfff69;
  --violet: #b78af1;
  --violet-soft: #eadcff;
  --green: #318b55;
  --muted: #6d6574;
  --line: #18151b;
  --shadow: 4px 4px 0 #18151b;
  --radius: 14px;
}

body { background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { position: fixed; z-index: -1; inset: 0; background: radial-gradient(circle at 8% 3%, rgba(242,118,98,.16), transparent 28%), radial-gradient(circle at 92% 18%, rgba(223,255,105,.14), transparent 24%); content: ''; pointer-events: none; }
h1, h2, h3 { font-family: inherit; line-height: .98; letter-spacing: -.055em; }
h1 { font-size: clamp(2.35rem, 9vw, 4.5rem); }
h2 { font-size: clamp(1.65rem, 6vw, 2.75rem); }
h3 { line-height: 1.12; letter-spacing: -.025em; }
.page { min-height: calc(100vh - 72px); padding-top: 22px; }
.shell { width: min(100%, 1180px); }
.narrow { width: min(100%, 680px); }
.small { font-size: .73rem; }
.muted { color: var(--muted); }
.eyebrow { color: var(--plum); font-family: inherit; font-size: .66rem; font-weight: 900; letter-spacing: .17em; }

/* Brand and navigation */
.site-header { min-height: 72px; height: auto; padding: max(12px,var(--safe-top)) 16px 10px; border-bottom: 2px solid var(--ink); background: var(--coral); }
.brand { gap: 0; color: var(--ink); font-family: inherit; font-size: 1.35rem; font-weight: 950; letter-spacing: -.075em; }
.brand b { display: inline-block; margin-left: 3px; transform: rotate(-8deg); }
.brand-mark { display: none; }
.header-actions { gap: 7px; }
.icon-btn, .avatar-btn { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: var(--cream); color: var(--ink); box-shadow: none; }
.avatar-btn { background: var(--lime); font-size: .7rem; }
.dashboard-seller-id { display: none; align-items: center; gap: 7px; margin-left: auto; margin-right: 6px; font-size: .63rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-seller-id i { width: 7px; height: 7px; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); }
.cart-count, .nav-badge { border: 2px solid var(--ink); background: var(--lime); color: var(--ink); }
.bottom-nav { min-height: 72px; padding: 7px 8px var(--safe-bottom); border-top: 2px solid var(--ink); background: rgba(245,239,255,.96); backdrop-filter: blur(14px); }
.nav-item { border-radius: 0; color: #7d7484; font-size: .58rem; }
.nav-item.active { background: var(--lime); color: var(--ink); }
.nav-badge { background: var(--coral); }

/* Buttons and fields */
.btn { min-height: 48px; padding: 0 17px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font-family: inherit; font-weight: 850; box-shadow: none; }
.btn-primary { background: var(--coral); box-shadow: var(--shadow); }
.btn-secondary { background: var(--cream); }
.btn-soft { background: var(--lime); }
.btn-coral { background: var(--coral); }
.btn-ghost { border-color: rgba(24,21,27,.18); background: transparent; color: var(--muted); }
.btn-sm { min-height: 38px; padding: 0 12px; }
.text-link { color: var(--plum); }
.btn:active, .icon-btn:active, .chip:active { transform: translate(2px,2px); box-shadow: none; }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible { outline-color: var(--lime); }
.field input, .field select, .field textarea { min-height: 49px; padding: 12px; border: 2px solid var(--ink); border-radius: 8px; background: #fff9f3; color: var(--ink); }
.field label { font-size: .72rem; font-weight: 900; }
.prefix-field { border: 2px solid var(--ink); border-radius: 8px; background: #fff9f3; }
.prefix-field input { border: 0; }
.consent input { accent-color: var(--coral); }
.error { border: 2px solid var(--ink); border-radius: 8px; background: #ffc0b9; color: #6b1c24; }

/* Public storefront */
.hero { padding: 0 16px; }
.hero-grid { overflow: hidden; border: 2px solid var(--ink); border-radius: 22px; background: #fff8f1; box-shadow: var(--shadow); }
.hero-copy { padding: 28px 20px 24px; }
.hero-copy h1 { margin: 10px 0 16px; font-size: clamp(2.9rem,13vw,6.8rem); line-height: .84; }
.hero-copy > p:not(.eyebrow) { max-width: 570px; color: var(--muted); }
.hero-image { min-height: 430px; border-top: 2px solid var(--ink); border-radius: 0; background: var(--peach); }
.hero-image img { min-height: 430px; }
.hero-float { left: 14px; right: 14px; bottom: 14px; padding: 12px; border: 2px solid var(--ink); border-radius: 12px; background: rgba(245,239,255,.94); box-shadow: 3px 3px 0 var(--ink); }
.avatar { border: 2px solid var(--ink); background: var(--lime); color: var(--ink); }
.avatar.coral { background: var(--coral); }
.seller-strip { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; padding: 11px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: none; }
.promo-banner { padding: 24px 20px; border: 2px solid var(--ink); border-radius: 18px; background: var(--violet); box-shadow: var(--shadow); }
.promo-banner::after { position: absolute; right: -25px; bottom: -45px; width: 130px; height: 130px; border: 24px solid var(--lime); border-radius: 50%; content: ''; opacity: .8; }
.promo-banner > * { position: relative; z-index: 1; max-width: 70%; }
.benefits { gap: 0; }
.benefit { border-bottom: 2px solid var(--ink); }
.benefit:first-child { border-top: 2px solid var(--ink); }
.benefit-icon, .action-icon, .empty-icon, .success-check { border: 2px solid var(--ink); background: var(--lime); color: var(--ink); }
.recruit-card, .math-card { border: 2px solid var(--ink); border-radius: 18px; background: var(--lime); box-shadow: var(--shadow); }
.math-card { background: var(--violet); }

/* Catalog */
.back-row h1 { font-family: inherit; font-size: clamp(1.7rem,7vw,2.8rem); }
.search { border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.chip { min-height: 39px; border: 2px solid var(--ink); background: var(--paper); color: var(--muted); }
.chip.active { background: var(--lime); color: var(--ink); }
.product-grid { gap: 13px; }
.product-card { overflow: hidden; border: 2px solid var(--ink); border-radius: 15px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.product-media { border-bottom: 2px solid var(--ink); background: var(--peach); }
.badge { border: 1.5px solid var(--ink); background: var(--lime); color: var(--ink); }
.quick-add { border: 2px solid var(--ink); background: var(--coral); color: var(--ink); }
.product-info h3 { font-family: inherit; }
.detail-media { border: 2px solid var(--ink); border-radius: 20px; background: var(--peach); box-shadow: var(--shadow); }
.detail-copy h1 { font-family: inherit; }
.profit-pill, .note, .status { border: 1.5px solid var(--ink); background: var(--lime); color: var(--ink); }
.note { background: var(--violet-soft); }
.sticky-buy { border-top: 2px solid var(--ink); background: rgba(245,239,255,.96); }
.quantity { border: 2px solid var(--ink); border-radius: 9px; background: var(--paper); }

/* Shared surfaces */
.form-card, .summary-card, .financial-card, .table-card, .chart-card, .group-card, .rank-card, .invite-sheet { border: 2px solid var(--ink); border-radius: 15px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.summary-card, .financial-card { box-shadow: 3px 3px 0 var(--ink); }
.form-note, .trust-line { border: 2px solid var(--ink); border-radius: 9px; background: var(--lime); color: #383528; }
.summary-row { border-bottom-color: rgba(24,21,27,.16); }
.summary-row.total { border-top: 2px solid var(--ink); }
.cart-list { border-top: 2px solid var(--ink); }
.cart-item { border-bottom: 2px solid var(--ink); }
.cart-item img { border: 2px solid var(--ink); border-radius: 10px; }
.empty-icon { background: var(--lime); }
.success-check { background: var(--lime); }

/* Seller dashboard */
.seller-dashboard-body { width: min(100%,760px); }
.dashboard-greeting h1 { font-family: inherit; }
.dashboard-quick-actions { gap: 10px; }
.dashboard-quick-action, .action-card { border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.dashboard-quick-action > svg { padding: 9px; width: 38px; height: 38px; border-radius: 50%; background: var(--lime); }
.dashboard-earnings { display: grid; grid-template-columns: minmax(0,1fr) 116px; overflow: hidden; border: 2px solid var(--ink); border-radius: 16px; background: var(--violet); box-shadow: var(--shadow); }
.dashboard-earnings-head { grid-column: 1/-1; padding: 14px 16px 0; }
.dashboard-profit { padding: 20px 16px; }
.dashboard-profit strong { font-size: 2.5rem; color: var(--ink); }
.dashboard-money-split { display: grid; border-left: 2px solid var(--ink); }
.dashboard-money-split div { display: grid; align-content: center; padding: 12px; }
.dashboard-money-split div + div { border-top: 2px solid var(--ink); }
.dashboard-earning-note { color: var(--muted); }
.mini-stats, .kpi-grid { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.mini-stat { border: 0; border-radius: 0; background: transparent; }
.mini-stat + .mini-stat, .kpi + .kpi { border-left: 2px solid var(--ink); }
.next-step { border: 2px solid var(--ink); border-radius: 14px; background: var(--coral); box-shadow: var(--shadow); }
.next-step p:not(.eyebrow) { color: #4d3033; }
.order-list { gap: 0; }
.order-card { min-height: 72px; padding: 12px 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; box-shadow: none; }
.order-list > .order-card:first-child { border-top: 2px solid var(--ink); }
.status { background: var(--lime); }
.status.new { background: var(--coral); }
.status.draft { background: #ddd5de; color: #5f5862; }
.financial-card { background: var(--violet-soft); }
.timeline-item::before { background: rgba(24,21,27,.18); }
.timeline-dot { border: 2px solid var(--ink); background: var(--cream); }
.timeline-item.done .timeline-dot { background: var(--lime); }
.rank-card, .team-banner { border: 2px solid var(--ink); background: var(--violet-soft); box-shadow: 3px 3px 0 var(--ink); }
.team-banner { background: var(--violet); }
.prize-banner, .prize-strip { border: 2px solid var(--ink); background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.progress { border-radius: 0; background: rgba(24,21,27,.14); }
.progress span { border-radius: 0; background: var(--plum); }
.segmented { gap: 5px; padding: 0; border-radius: 0; background: transparent; }
.segmented .seg { border: 2px solid var(--ink); border-radius: 999px; }
.segmented .seg.active { background: var(--lime); color: var(--ink); box-shadow: none; }
.board-row { border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; }
.board-row.you { padding: 12px; border: 2px solid var(--ink); background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.board-link { border: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; }

/* QR and stock */
.qr-card { border: 2px solid var(--ink); border-radius: 20px; background: var(--violet); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.qr-card .brand { justify-content: center; color: var(--ink); }
.qr-owner { margin: 18px 0 3px; color: #3f3348; }
.qr-categories { margin: 16px 0 0; color: #3f3348; }
.qr { border: 2px solid var(--ink); border-radius: 13px; background: white; }
.invite-sheet { background: var(--violet-soft); }
.invite-qr { border: 2px solid var(--ink); border-radius: 8px; }
.stock-list { gap: 0; }
.stock-row { padding: 11px 0; border-bottom: 2px solid var(--ink); }
.stock-row:first-child { border-top: 2px solid var(--ink); }
.stock-row img { width: 54px; height: 62px; border: 2px solid var(--ink); border-radius: 8px; }

/* Admin */
.admin-nav { gap: 7px; }
.admin-nav a, .admin-nav button { min-height: 40px; padding: 0 13px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--muted); }
.admin-nav a.active { background: var(--lime); color: var(--ink); }
.kpi { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.table-card, .chart-card { box-shadow: 3px 3px 0 var(--ink); }
table { font-family: inherit; }
th { color: var(--muted); }
th, td { border-bottom-color: rgba(24,21,27,.15); }
.catalog-admin-item { border-top: 2px solid var(--ink); }
.catalog-admin-item img { border: 2px solid var(--ink); border-radius: 8px; }
.funnel-chart { display: grid; gap: 9px; }
.funnel-bar { min-width: 24%; padding: 13px; border: 2px solid var(--ink); color: var(--ink); }
.funnel-0 { background: var(--coral); }
.funnel-1 { background: var(--violet); }
.funnel-2 { background: var(--lime); }

/* Feedback and loading */
.install-banner { border: 2px solid var(--ink); border-radius: 10px; background: var(--lime); }
.toast { border: 2px solid var(--ink); border-radius: 9px; background: var(--lime); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.skeleton { border-radius: 2px; background: #ded4ed; }

@media (min-width: 620px) {
  .dashboard-seller-id { display: flex; }
  .product-grid { gap: 17px; }
  .benefits { grid-template-columns: repeat(3,1fr); gap: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
  .benefit { border: 0; padding: 17px 13px; }
  .benefit:first-child { border-top: 0; }
  .benefit + .benefit { border-left: 2px solid var(--ink); }
  .bottom-nav { border: 2px solid var(--ink); border-bottom: 0; border-radius: 0; }
}

@media (min-width: 860px) {
  .site-header { min-height: 78px; height: auto; padding-inline: max(28px,calc((100vw - 1320px)/2)); }
  .brand { font-size: 1.6rem; }
  .hero { padding: 28px; }
  .hero-grid { min-height: 650px; border-radius: 24px; background: #fff8f1; }
  .hero-copy { display: grid; align-content: center; padding: 62px; }
  .hero-image { min-height: 650px; border-top: 0; border-left: 2px solid var(--ink); }
  .hero-image img { min-height: 650px; }
  .product-detail { gap: 54px; }
  .public-nav { display: none; }
  .seller-nav { display: grid; top: 110px; right: auto; bottom: auto; left: 22px; grid-template-columns: 1fr; width: 82px; padding: 7px; border: 2px solid var(--ink); transform: none; }
  .seller-nav .nav-item { min-height: 66px; }
  #app:has(.seller-nav) .page { padding-left: 110px; }
  .admin-page .shell { display: grid; grid-template-columns: 210px minmax(0,1fr); column-gap: 24px; width: min(1320px,100%); align-items: start; }
  .admin-page .shell > *:not(.admin-nav) { grid-column: 2; }
  .admin-nav { position: sticky; top: 102px; grid-column: 1; grid-row: 1/span 50; display: grid; overflow: visible; }
  .admin-nav a, .admin-nav button { width: 100%; justify-content: flex-start; border-radius: 8px; text-align: left; }
  .kpi-grid { grid-template-columns: repeat(4,1fr); }
}


/* Money never gets tight tracking: the peso sign would ride into the first digit. Tabular figures
   also stop totals from jittering as they change. */
.price, .price-lg, .stat-hero .value, .stat-split strong, .mini-stat strong, .kpi strong,
.math-card .math-profit, .recruit-card .difference, .summary-row strong, .summary-row span,
.financial-card strong, .order-card .amount strong, .table-card td, .stock-row strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.group-card { margin: 0 0 18px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.group-card .section-head { margin-bottom: 4px; }
.group-card h2 { font-size: 1.4rem; margin-bottom: 0; }

.rank-card { margin: 0 0 18px; padding: 20px; border-radius: 22px; border: 1px solid #e7d9f0; background: linear-gradient(160deg, #faf5ff, #fdf1f6); }
.rank-card h2 { margin: 4px 0 8px; font-size: 1.35rem; }
.rank-card p { margin: 0 0 14px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.rank-card .summary-row { padding: 6px 0; }
.progress { height: 8px; margin: 2px 0 14px; border-radius: 999px; background: #efe4f2; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: var(--plum); }

.invite-sheet { margin: 0 0 18px; padding: 22px 20px; border-radius: 22px; border: 1px solid var(--line); background: white; text-align: center; }
.invite-qr { width: 190px; margin: 6px auto 12px; padding: 12px; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.invite-qr svg { display: block; width: 100%; height: auto; }
.invite-code { margin: 14px 0 2px; font-size: 1.6rem; font-weight: 900; letter-spacing: .18em; color: var(--plum); }
.invite-sheet .button-row { margin-top: 16px; }

.avatar-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--plum); color: white; font-size: .78rem; font-weight: 900; letter-spacing: .02em; }
.nav-item { position: relative; }
.nav-badge { position: absolute; top: 2px; right: 50%; transform: translateX(18px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: white; font-size: .6rem; font-weight: 900; line-height: 18px; text-align: center; }

.board-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.board-row.you { border-color: var(--plum); background: linear-gradient(160deg, #fdf5f8, #fff); }
.board-rank { font-size: 1.1rem; font-weight: 900; text-align: center; }
.board-row .main strong { display: block; font-size: .9rem; }
.board-row .main span { color: var(--muted); font-size: .72rem; }
.board-value { font-size: .95rem; }
.board-link { display: grid; grid-template-columns: 44px 1fr 20px; gap: 12px; align-items: center; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.board-link strong { display: block; font-size: .9rem; }
.board-link span { color: var(--muted); font-size: .74rem; }
.board-link svg { width: 18px; color: var(--muted); }

.team-banner { margin: 0 0 18px; padding: 20px; border-radius: 22px; border: 1px solid #e6dbef; background: linear-gradient(160deg, #f7f2fb, #fff6f2); }
.team-banner h2 { margin: 4px 0 6px; font-size: 1.5rem; }
.team-banner .motto { margin: 0 0 14px; color: var(--muted); font-size: .82rem; font-style: italic; }
.team-banner .mini-stats { margin: 0; }

.prize-banner { margin: 0 0 18px; padding: 20px; border-radius: 22px; border: 1px solid #f0dcc4; background: linear-gradient(160deg, #fff8ec, #fff1f3); }
.prize-banner h2 { margin: 4px 0 6px; font-size: 1.35rem; }
.prize-banner .mini-stats { margin: 14px 0 0; }

.segmented { display: grid; grid-auto-flow: column; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 999px; background: #f1eae7; }
.segmented .seg { padding: 9px 6px; border-radius: 999px; color: var(--muted); font-size: .78rem; font-weight: 800; text-align: center; }
.segmented .seg.active { background: white; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.board-filters { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; color: var(--muted); font-size: .76rem; }
.board-filters a { color: var(--plum); font-weight: 800; }
.prize-strip { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 12px 14px; margin: 0 0 14px; border: 1px solid #f0dcc4; border-radius: 16px; background: linear-gradient(160deg, #fff8ec, #fff1f3); }
.prize-strip .prize-mark { font-size: 1.2rem; text-align: center; }
.prize-strip strong { display: block; font-size: .86rem; }
.prize-strip span { color: var(--muted); font-size: .72rem; }

/* Final component normalization. These components are declared late because they were
   added after the original stylesheet and must still belong to the same visual system. */
.dashboard-brand-header {
  width: 100%;
  min-height: 72px;
  margin: 0;
  border-radius: 0;
  background: var(--coral);
  color: var(--ink);
}
.dashboard-money-split span { color: rgba(24,21,27,.68); }
.dashboard-money-split strong { color: var(--ink); }
.dashboard-earnings { color: var(--ink); }
.dashboard-earnings-head span,
.dashboard-profit span { color: #4d3c59; }
.dashboard-earnings-head strong { color: var(--ink); }
.group-card,
.rank-card,
.invite-sheet,
.team-banner,
.prize-banner,
.prize-strip {
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}
.rank-card,
.invite-sheet { background: var(--violet-soft); }
.team-banner { background: var(--violet); }
.prize-banner,
.prize-strip { background: var(--lime); }
.invite-qr { border: 2px solid var(--ink); border-radius: 8px; }
.avatar-btn { border: 2px solid var(--ink); background: var(--lime); color: var(--ink); }
.progress { border-radius: 0; background: rgba(24,21,27,.14); }
.progress span { border-radius: 0; background: var(--plum); }
.segmented { gap: 5px; padding: 0; border-radius: 0; background: transparent; }
.segmented .seg { border: 2px solid var(--ink); border-radius: 999px; }
.segmented .seg.active { background: var(--lime); color: var(--ink); box-shadow: none; }
.board-row { border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; }
.board-row.you { padding: 12px; border: 2px solid var(--ink); background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.board-link { border: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; }

/* Owner's way into their console from the partner cabinet */
.owner-console-link { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--panel-edge, var(--line)); border-radius: 16px; background: var(--panel, white); color: inherit; }
.owner-console-link svg { width: 22px; color: var(--plum); }
.owner-console-link strong { display: block; font-size: .9rem; }
.owner-console-link div span { color: var(--muted); font-size: .74rem; }

/* The product page carries both the bottom navigation and the buy bar, so the buy bar sits above the
   navigation and the page reserves room for both. */
:root { --nav-height: 72px; }
.sticky-buy { bottom: calc(var(--nav-height) + var(--safe-bottom, 0px)); border-bottom: 1px solid var(--line); }
main.page { padding-bottom: calc(var(--nav-height) + 96px + var(--safe-bottom, 0px)); }
@media (min-width: 768px) {
  .sticky-buy { bottom: auto; }
  main.page { padding-bottom: 48px; }
}

/* The console's action queue: one row per decision waiting for the owner */
.task-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.task-row { display: grid; grid-template-columns: 48px 1fr 20px; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: white; color: inherit; }
.task-row.warn { border-color: #e7b7ae; }
.task-count { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blush); color: var(--plum); font-size: 1rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.task-row strong { display: block; font-size: .95rem; }
.task-row span { color: var(--muted); font-size: .78rem; }
.task-go svg { width: 18px; color: var(--muted); }


/* A product Sanaol cannot supply right now: shown, priced, but not orderable. */
.product-card.sold-out .product-media img { opacity: .55; }
.badge.sold-out-badge { background: var(--ink); color: var(--paper); }
.sticky-buy.out { display: flex; align-items: center; gap: 12px; }
.sticky-buy.out .main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; }

/* Choosing a size, and the pictures of it. */
.size-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.size-option {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 10px 16px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--paper); font: inherit; cursor: pointer; color: inherit;
}
.size-option strong { font-size: .95rem; }
.size-option span { font-size: .78rem; color: var(--muted); }
.size-option.active { background: var(--ink); color: var(--paper); }
.size-option.active span { color: inherit; opacity: .75; }
.size-option.gone { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.gallery { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex: none; width: 64px; height: 64px; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); border-radius: 10px; background: var(--paper);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--coral); }
