:root {
  --green-900: #063E2E;
  --green-800: #075B45;
  --green-700: #0B7A5C;
  --green-600: #0E9F6E;
  --green-500: #12B886;
  --mint: #E7F7EF;
  --ink: #12201B;
  --ink-2: #374151;
  --muted: #6B7A74;
  --muted-2: #97A39E;
  --line: #EDF1EF;
  --bg: #F4F6F5;
  --card: #FFFFFF;
  --price: #F0522D;
  --amber: #B26A00;
  --blue: #2563EB;
  --radius: 16px;
  --shadow: 0 6px 22px rgba(18, 43, 34, .06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(760px 520px at 12% 8%, rgba(210, 238, 226, .75), transparent 62%),
    radial-gradient(820px 560px at 92% 92%, rgba(219, 236, 230, .85), transparent 58%),
    #EFF3F1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- presentation stage ---------- */
.stage { display: flex; align-items: center; gap: 72px; }
.side { width: 256px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 15px;
  background: linear-gradient(155deg, #139B72 0%, #075B45 100%);
  color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.5px;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(7, 91, 69, .24), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.brand-text h1 { font-size: 23px; font-weight: 700; letter-spacing: -.7px; color: #0B1F19; line-height: 1.1; }
.brand-text span { font-size: 11px; letter-spacing: .18em; color: var(--green-700); text-transform: uppercase; }
.side-sub { font-size: 12.5px; line-height: 1.85; color: var(--muted); margin: 18px 0 30px; }
.side-label { font-size: 10px; letter-spacing: .16em; color: var(--muted-2); text-transform: uppercase; display: block; margin-bottom: 8px; padding-left: 12px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: 0; padding: 9px 12px;
  border-radius: 9px; font-size: 13px; color: #51605A; text-align: left;
  transition: background .16s ease, color .16s ease;
}
.side nav button i { font-style: normal; font-size: 12px; opacity: 0; transform: translateX(-4px); transition: .16s; }
.side nav button:hover { background: rgba(11, 122, 92, .07); color: var(--green-700); }
.side nav button:hover i { opacity: .7; transform: none; }
.side nav button.active { background: #fff; color: var(--green-700); font-weight: 600; box-shadow: 0 3px 14px rgba(18, 43, 34, .07); }
.side nav button.active i { opacity: 1; transform: none; }
.side-note {
  margin-top: 26px; padding-left: 11px;
  font-size: 11px; line-height: 1.75; color: #83908B;
  border-left: 2px solid #CBE6DB;
}

/* ---------- phone frame ---------- */
.phone {
  position: relative; width: 410px; height: 864px; padding: 10px; flex-shrink: 0;
  background: linear-gradient(150deg, #232D29 0%, #0B100E 45%, #1B2521 100%);
  border-radius: 56px;
  box-shadow: 0 36px 90px rgba(10, 30, 22, .28), 0 4px 14px rgba(10, 30, 22, .18), inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.phone::before, .phone::after {
  content: ''; position: absolute; width: 3px; border-radius: 3px;
  background: #2A3531; top: 160px;
}
.phone::before { left: -2px; height: 62px; }
.phone::after { right: -2px; height: 96px; top: 190px; }
.phone-screen {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  background: var(--bg); border-radius: 46px;
  display: flex; flex-direction: column;
}
#app-root { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#overlay-root { position: absolute; inset: 0; pointer-events: none; z-index: 100; }
#toast-root { position: absolute; inset: 0; pointer-events: none; z-index: 200; }
.phone-screen::after {
  content: ''; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 116px; height: 4px; border-radius: 3px; background: rgba(15, 25, 20, .22);
  z-index: 300; pointer-events: none;
}

/* ---------- shared app chrome ---------- */
.viewport { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.viewport::-webkit-scrollbar { display: none; }
.viewport.no-scroll { overflow: hidden; }
.page { animation: pageFade .24s ease both; }
@keyframes pageFade { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.statusbar {
  height: 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; font-size: 13px; font-weight: 600; color: var(--ink);
  flex-shrink: 0; position: relative; z-index: 5;
}
.statusbar.light { color: #fff; }
.sb-icons { display: flex; align-items: center; gap: 5px; }
.sb-icons svg { display: block; }

.topbar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid rgba(237, 241, 239, .9); }
.navbar { height: 44px; display: flex; align-items: center; justify-content: center; position: relative; }
.nav-title { font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: .1px; }
.nav-back {
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; background: none; color: var(--ink);
  display: grid; place-items: center;
}
.nav-back .ic { width: 22px; height: 22px; }
.nav-back-spacer { width: 38px; }
.capsule {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 82px; height: 30px; border-radius: 16px;
  border: 1px solid #E6EAE8; background: rgba(255, 255, 255, .72);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.capsule .dots { display: flex; gap: 2.5px; }
.capsule .dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: #2C3531; }
.cap-line { width: 1px; height: 13px; background: #E3E7E5; }
.cap-ring { width: 11px; height: 11px; border: 1.6px solid #2C3531; border-radius: 50%; position: relative; }
.cap-ring::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #2C3531; }

.tabbar {
  flex-shrink: 0; display: flex; background: #fff;
  border-top: 1px solid var(--line); padding: 7px 6px 17px;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; padding: 4px 0 0;
  font-size: 10px; color: #9AA6A0; letter-spacing: .02em;
}
.tab .ic { width: 22px; height: 22px; stroke-width: 1.65; }
.tab.active { color: var(--green-700); font-weight: 600; }

/* ---------- home ---------- */
.home-top {
  position: relative; overflow: hidden;
  padding: 0 16px 46px; color: #fff;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(220px 200px at 98% -6%, rgba(255, 255, 255, .16), transparent 68%),
    linear-gradient(148deg, #084E3B 0%, #0A7357 48%, #0F9871 100%);
}
.home-top::before {
  content: ''; position: absolute; width: 235px; height: 235px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .13); right: -104px; top: 34px;
}
.home-top::after {
  content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .09); right: -28px; top: 76px;
}
.home-head { display: flex; align-items: center; justify-content: space-between; height: 44px; position: relative; z-index: 2; }
.store { display: flex; align-items: center; gap: 8px; }
.store-name { font-size: 17px; font-weight: 600; letter-spacing: .2px; }
.store-badge {
  font-size: 9.5px; padding: 2px 6px; border-radius: 5px; letter-spacing: .04em;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #E9FFF8;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff;
  display: grid; place-items: center; position: relative;
}
.icon-btn .ic { width: 19px; height: 19px; }
.bell-dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #FFC24B; border: 1.5px solid #0B7A5C; }
.greeting { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 8px; }
.greeting b { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.greeting span { font-size: 11.5px; color: rgba(255, 255, 255, .56); letter-spacing: .03em; }

.cutoff-card {
  position: relative; z-index: 2; margin-top: 14px; padding: 15px 16px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .07));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
}
.cutoff-top { display: flex; align-items: center; justify-content: space-between; }
.pill { font-size: 10.5px; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .15); color: #F0FFF9; font-weight: 500; }
.route { font-size: 10.5px; color: rgba(255, 255, 255, .6); letter-spacing: .04em; }
.cutoff-title { font-size: 23px; font-weight: 650; letter-spacing: -.3px; margin-top: 11px; }
.cutoff-sub { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: rgba(255, 255, 255, .68); margin-top: 5px; }
.cutoff-sub .ic { width: 15px; height: 15px; }
.cutoff-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.countdown { display: flex; align-items: flex-end; gap: 6px; }
.cd { text-align: center; }
.cd b {
  display: block; min-width: 34px; padding: 4px 7px; border-radius: 8px;
  background: rgba(4, 44, 33, .34); font-size: 16px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.cd span { display: block; font-size: 9px; color: rgba(255, 255, 255, .5); margin-top: 3px; letter-spacing: .08em; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 3px;
  background: #fff; color: #0A6F56; border: 0;
  padding: 9px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 6px 14px rgba(2, 35, 26, .18);
}
.btn-hero .ic { width: 14px; height: 14px; }

.stats {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: -30px 16px 0;
}
.stat {
  border: 0; background: #fff; border-radius: 13px; padding: 11px 12px 10px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  box-shadow: var(--shadow); text-align: left; position: relative; overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; left: 12px; top: 0; width: 20px; height: 2.5px;
  border-radius: 0 0 3px 3px; background: var(--dot, #0E9F6E);
}
.stat:nth-child(1) { --dot: #E9A23B; }
.stat:nth-child(2) { --dot: #4B8DF8; }
.stat:nth-child(3) { --dot: #0E9F6E; }
.stat-num { font-size: 19px; font-weight: 650; color: var(--ink); letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.stat-num.sm { font-size: 15.5px; letter-spacing: -.2px; }
.stat-label { font-size: 10.5px; color: #88938E; }

.notice {
  display: flex; align-items: center; gap: 9px; width: calc(100% - 32px);
  margin: 12px 16px 0; padding: 11px 12px;
  background: #fff; border: 0; border-radius: 12px; text-align: left;
  box-shadow: 0 2px 10px rgba(18, 43, 34, .035);
}
.notice-ic {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: #FFF4E2; color: #C47A12; display: grid; place-items: center;
}
.notice-ic .ic { width: 15px; height: 15px; }
.notice-text { flex: 1; font-size: 11.5px; line-height: 1.45; color: #5D6B65; }
.notice .ic:last-child { width: 15px; height: 15px; color: #B3BDB8; }

.section-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 16px 10px; }
.section-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -.1px; }
.subtle { font-size: 10.5px; color: #98A39E; }

.hscroll {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 0 16px 2px; scroll-snap-type: x proximity;
}
.hscroll::-webkit-scrollbar { display: none; }
.quick-card {
  flex: 0 0 196px; scroll-snap-align: start;
  background: #fff; border: 1px solid #F0F3F2; border-radius: 15px;
  padding: 13px 14px; text-align: left;
  box-shadow: 0 3px 12px rgba(18, 43, 34, .04);
}
.qc-head { display: flex; align-items: baseline; justify-content: space-between; }
.qc-head b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.qc-head span { font-size: 9.5px; color: #9AA5A0; }
.qc-body { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.qc-thumbs { display: flex; }
.mini-thumb {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 17px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(18, 43, 34, .08);
}
.mini-thumb + .mini-thumb { margin-left: -9px; }
.qc-add {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--green-700);
}
.qc-add .ic { width: 14px; height: 14px; }

.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.p-card { background: #fff; border-radius: 15px; padding: 8px 8px 11px; box-shadow: 0 3px 12px rgba(18, 43, 34, .04); }
.p-thumb {
  position: relative; height: 112px; border-radius: 11px; overflow: hidden;
  display: grid; place-items: center;
}
.p-thumb::after {
  content: ''; position: absolute; width: 86px; height: 86px; border-radius: 50%;
  background: rgba(255, 255, 255, .45); top: -30px; right: -30px;
}
.p-thumb .emoji { font-size: 43px; filter: drop-shadow(0 5px 8px rgba(50, 60, 40, .12)); }
.p-tag {
  position: absolute; left: 7px; top: 7px; font-size: 8.5px; padding: 2px 5px;
  border-radius: 4px; background: rgba(255, 255, 255, .72); color: #51605A; font-weight: 500;
}
.p-incart {
  position: absolute; right: 7px; bottom: 7px; font-size: 8.5px; padding: 2px 6px;
  border-radius: 8px; background: rgba(11, 122, 92, .9); color: #fff;
}
.p-name {
  font-size: 12px; font-weight: 500; line-height: 1.4; color: #24312C; margin: 8px 2px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 33px;
}
.p-spec { font-size: 9.5px; color: #9AA5A0; margin: 3px 2px 0; }
.p-bottom { display: flex; align-items: center; justify-content: space-between; margin: 7px 2px 0; }
.p-price { font-size: 15px; font-weight: 650; color: var(--price); letter-spacing: -.2px; }
.p-price small { font-size: 9px; font-weight: 400; color: #A7B0AC; margin-left: 1px; }
.add-round {
  width: 27px; height: 27px; border-radius: 50%; border: 0;
  background: var(--green-700); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(11, 122, 92, .22);
}
.add-round .ic { width: 14px; height: 14px; }
.add-round.sm { width: 25px; height: 25px; }
.home-foot { text-align: center; font-size: 9.5px; letter-spacing: .1em; color: #B6BEBA; padding: 26px 0 20px; }

/* tone palettes for product thumbnails */
.tone-aqua { background: linear-gradient(145deg, #E8F8F5 0%, #C8EAE3 100%); }
.tone-rose { background: linear-gradient(145deg, #FFEDEA 0%, #FFD5CC 100%); }
.tone-cream { background: linear-gradient(145deg, #FFFAE9 0%, #FBEDC7 100%); }
.tone-peach { background: linear-gradient(145deg, #FFF1E6 0%, #FBDCC6 100%); }
.tone-amber { background: linear-gradient(145deg, #FFF5DC 0%, #F7E3B2 100%); }
.tone-lavender { background: linear-gradient(145deg, #F1EFFF 0%, #DEDAFB 100%); }
.tone-ice { background: linear-gradient(145deg, #EAF5FF 0%, #D3E9FF 100%); }

/* ---------- catalog ---------- */
.page-catalog { height: 100%; display: flex; flex-direction: column; overflow: hidden; animation: none; }
.cat-tools { background: #fff; padding: 8px 14px 0; flex-shrink: 0; }
.search-wrap { position: relative; }
.search-wrap > .ic {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: #9BA6A1;
}
.search-input {
  width: 100%; height: 37px; border: 0; outline: none; border-radius: 10px;
  background: #F3F6F4; padding: 0 12px 0 34px;
  font-size: 12.5px; font-family: inherit; color: var(--ink);
}
.search-input::placeholder { color: #A6B0AB; }
.sort-row { display: flex; align-items: center; gap: 18px; padding: 10px 2px 11px; }
.sort-btn {
  background: none; border: 0; padding: 0; font-size: 12px; color: #7A8680;
  display: flex; align-items: center; gap: 2px;
}
.sort-btn.active { color: var(--green-700); font-weight: 600; }
.sort-btn.active::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--green-600); }
.stock-toggle {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; font-size: 10.5px; color: #7A8680;
}
.switch { width: 31px; height: 18px; border-radius: 9px; background: #E3E8E5; position: relative; transition: .18s; }
.switch::after {
  content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; top: 2px; left: 2px; transition: .18s; box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}
.switch.on { background: var(--green-600); }
.switch.on::after { left: 15px; }
.catalog-body { flex: 1; min-height: 0; display: flex; background: #fff; }
.cats { width: 84px; flex-shrink: 0; overflow-y: auto; background: #F7F9F8; padding-bottom: 24px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat-btn {
  width: 100%; border: 0; background: none; padding: 15px 6px;
  font-size: 12px; color: #75827C; line-height: 1.2; position: relative;
}
.cat-btn.active { background: #fff; color: var(--green-700); font-weight: 600; }
.cat-btn.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 17px; border-radius: 0 3px 3px 0; background: var(--green-600);
}
.prod-list { flex: 1; min-width: 0; overflow-y: auto; padding: 2px 12px 28px; scrollbar-width: none; }
.prod-list::-webkit-scrollbar { display: none; }
.prod-row { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #F3F5F4; }
.prod-row:last-child { border-bottom: 0; }
.thumb { display: grid; place-items: center; flex-shrink: 0; }
.thumb.sm { width: 76px; height: 76px; border-radius: 11px; font-size: 31px; }
.prod-info { flex: 1; min-width: 0; }
.prod-name { font-size: 12.5px; font-weight: 500; color: #22302A; line-height: 1.4; }
.prod-spec { font-size: 9.5px; color: #9CA6A1; margin-top: 3px; }
.prod-meta { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.stock { font-size: 9.5px; color: #118A66; }
.stock.low { color: #C47A12; }
.soldout { font-size: 9.5px; color: #A0AAA5; }
.sales { font-size: 9.5px; color: #A0AAA5; }
.prod-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 6px; }
.prod-price { font-size: 15px; font-weight: 650; color: var(--price); letter-spacing: -.2px; }
.prod-price small { font-size: 9px; font-weight: 400; color: #A7B0AC; margin-left: 1px; }
.stepper { display: flex; align-items: center; gap: 7px; }
.st-btn {
  width: 23px; height: 23px; border-radius: 50%; border: 1px solid #DDE5E1;
  background: #fff; color: #4B5B54; display: grid; place-items: center;
}
.st-btn .ic { width: 12px; height: 12px; }
.st-btn.solid { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.stepper b { min-width: 13px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.notify-btn { border: 1px solid #DCE4E0; background: #fff; color: #78857F; font-size: 10px; padding: 5px 9px; border-radius: 10px; }
.empty-mini { padding: 60px 12px; text-align: center; color: #A5AFA9; font-size: 12px; }
.empty-mini .ic { width: 28px; height: 28px; color: #C4CCC8; margin-bottom: 8px; }

/* cart bar above tab bar */
.cart-bar {
  flex-shrink: 0; display: flex; align-items: center; gap: 11px;
  padding: 9px 14px; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(18, 43, 34, .04);
}
.cart-orb {
  width: 42px; height: 42px; border-radius: 50%; background: var(--green-700);
  color: #fff; display: grid; place-items: center; position: relative; flex-shrink: 0;
  box-shadow: 0 5px 14px rgba(11, 122, 92, .2);
}
.cart-orb .ic { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 9px; background: var(--price); color: #fff;
  font-size: 9.5px; display: grid; place-items: center; border: 1.5px solid #fff;
}
.cart-info { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.cart-info > span { font-size: 9.5px; color: #98A39E; }
.cart-info b { font-size: 17px; font-weight: 650; color: var(--price); letter-spacing: -.3px; }
.cart-info small { display: none; }
.btn { border: 0; border-radius: 11px; font-size: 13px; font-weight: 600; padding: 11px 18px; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 4px 12px rgba(11, 122, 92, .16); }
.btn-primary:disabled { background: #D4E4DE; color: #8CA49A; box-shadow: none; }
.btn-ghost { background: #F2F5F4; color: #4C5A54; }
.btn-outline { background: #fff; border: 1px solid #DFE6E2; color: #43514B; }

/* ---------- cart page ---------- */
.page-cart { padding-bottom: 22px; }
.cart-page { padding: 13px 14px 0; }
.card { background: #fff; border-radius: 15px; }
.block { padding: 14px; margin-bottom: 11px; box-shadow: 0 2px 10px rgba(18, 43, 34, .03); }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.block-head h3 { font-size: 14px; font-weight: 600; color: var(--ink); }
.link { border: 0; background: none; padding: 0; font-size: 11px; color: var(--green-700); }
.store-line { display: flex; align-items: flex-start; gap: 10px; }
.mini-avatar {
  width: 34px; height: 34px; border-radius: 10px; background: var(--mint); color: var(--green-700);
  display: grid; place-items: center; font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.store-line b { font-size: 13px; font-weight: 600; }
.store-line p { font-size: 10.5px; color: #8D9993; margin-top: 3px; line-height: 1.5; }
.meta-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 11px; font-size: 10.5px; color: #6D7A74; }
.chip-route { margin-left: auto; padding: 3px 7px; border-radius: 5px; background: #F1F6F4; color: var(--green-700); font-size: 9.5px; }
.date-chips { display: flex; gap: 8px; }
.date-chip {
  flex: 1; border: 1px solid #E6EBE8; background: #fff; border-radius: 10px;
  padding: 10px 4px; font-size: 11.5px; color: #56645D;
}
.date-chip.active { border-color: var(--green-600); background: #F2FAF6; color: var(--green-700); font-weight: 600; box-shadow: inset 0 0 0 1px var(--green-600); }
.cutoff-note { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: #A0ABA5; margin-top: 10px; }
.cutoff-note .ic { width: 13px; height: 13px; }
.line-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F3F5F4; }
.line-item:first-of-type { padding-top: 0; }
.line-item:last-child { border-bottom: 0; padding-bottom: 0; }
.thumb.xs { width: 62px; height: 62px; border-radius: 10px; font-size: 27px; }
.li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.li-name { font-size: 12.5px; font-weight: 500; color: #22302A; line-height: 1.4; }
.li-spec { font-size: 9.5px; color: #9CA6A1; margin-top: 3px; }
.li-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 7px; }
.li-price { font-size: 14px; font-weight: 650; color: var(--price); }
.li-price small { font-size: 8.5px; font-weight: 400; color: #A7B0AC; margin-left: 1px; }
.note-input {
  width: 100%; border: 0; outline: none; resize: none; background: #F7F9F8;
  border-radius: 10px; min-height: 64px; padding: 10px 11px;
  font: inherit; font-size: 11.5px; color: var(--ink); line-height: 1.6;
}
.note-input::placeholder { color: #A9B3AE; }
.money-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: #6D7A74; padding: 5px 0; }
.money-row b { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.money-row b.free { color: var(--green-700); }
.money-row.total { border-top: 1px solid #F1F4F2; margin-top: 7px; padding-top: 11px; font-size: 12px; color: var(--ink); }
.money-row.total b { font-size: 18px; font-weight: 650; color: var(--price); letter-spacing: -.3px; }
.min-order { margin-top: 9px; font-size: 9.5px; color: var(--green-700); background: #F2FAF6; border-radius: 7px; padding: 7px 9px; }
.min-order.warn { color: #A3650B; background: #FFF8EB; }
.pay-bar {
  flex-shrink: 0; display: flex; align-items: center; gap: 12px;
  padding: 9px 14px 18px; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(18, 43, 34, .04);
}
.pay-sum { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.pay-sum span { font-size: 9.5px; color: #98A39E; }
.pay-sum b { font-size: 19px; font-weight: 650; color: var(--price); letter-spacing: -.3px; }
.pay-sum small { font-size: 9px; color: #A0ABA5; }
.pay-sum b.eta { font-size: 14px; font-weight: 600; color: var(--ink); }
.pay-sum b.warn { color: #C47A12; }
.pay-sum b.ok { color: var(--green-700); }
.pay-bar .btn { min-width: 132px; }
.st-btn:disabled { opacity: .35; }
.order-card { cursor: pointer; }
.msg-card { cursor: pointer; }
.empty-page { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 110px 30px; text-align: center; }
.empty-orb { width: 66px; height: 66px; border-radius: 50%; background: #fff; color: #B7C4BE; display: grid; place-items: center; box-shadow: var(--shadow); }
.empty-orb .ic { width: 28px; height: 28px; }
.empty-page h2 { font-size: 16px; font-weight: 600; margin-top: 18px; }
.empty-page p { font-size: 11.5px; color: #98A39E; margin-top: 6px; }
.empty-page .btn { margin-top: 20px; }

/* ---------- orders ---------- */
.page-orders { padding-bottom: 22px; }
.order-tabs {
  display: flex; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 88px; z-index: 30; padding: 0 6px;
}
.order-tab {
  flex: 1; background: none; border: 0; padding: 11px 2px 12px;
  font-size: 12.5px; color: #78857F; position: relative;
}
.order-tab.active { color: var(--ink); font-weight: 600; }
.order-tab.active::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 5px; width: 17px; height: 3px; border-radius: 2px; background: var(--green-600);
}
.order-card {
  background: #fff; border-radius: 15px; margin: 11px 14px 0; padding: 13px 14px;
  box-shadow: 0 2px 10px rgba(18, 43, 34, .035);
}
.order-head { display: flex; align-items: center; justify-content: space-between; }
.order-id { font-size: 10.5px; color: #96A19B; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.status { font-size: 9.5px; padding: 3px 7px; border-radius: 5px; font-weight: 500; }
.status.pending { background: #FFF6E6; color: #B26A00; }
.status.ready { background: #EDF4FF; color: #2563EB; }
.status.shipping { background: #E9F8F1; color: #0B7A5C; }
.status.done { background: #F2F4F3; color: #6B7771; }
.order-body { display: flex; align-items: center; gap: 9px; margin: 12px 0 10px; }
.order-thumbs { display: flex; gap: 6px; }
.order-thumb { width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center; font-size: 21px; }
.order-meta { flex: 1; min-width: 0; }
.order-meta b { display: block; font-size: 11.5px; font-weight: 500; color: #5C6963; }
.order-meta span { display: block; font-size: 9.5px; color: #A0AAA5; margin-top: 4px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #F3F5F4; padding-top: 10px; }
.order-total { font-size: 10px; color: #98A39E; }
.order-total b { font-size: 15px; font-weight: 650; color: var(--ink); margin-left: 4px; letter-spacing: -.2px; }
.order-actions { display: flex; align-items: center; gap: 8px; }
.btn-xs {
  font-size: 10px; padding: 6px 11px; border-radius: 9px;
  border: 1px solid #E2E8E5; background: #fff; color: #52605A;
}
.btn-xs.primary { border-color: var(--green-700); background: var(--green-700); color: #fff; }
.diff-note { font-size: 9.5px; color: #B26A00; background: #FFF8EB; padding: 6px 8px; border-radius: 7px; margin-top: 8px; }
.order-empty { padding: 90px 20px; text-align: center; color: #98A39E; font-size: 12px; }
.order-empty .ic { width: 34px; height: 34px; color: #C3CCC7; margin-bottom: 12px; }

/* ---------- order detail ---------- */
.page-detail { padding: 12px 14px 22px; }
.detail-hero { border-radius: 17px; padding: 18px 16px; color: #fff; position: relative; overflow: hidden; box-shadow: 0 8px 24px rgba(11, 122, 92, .16); }
.detail-hero.shipping { background: linear-gradient(145deg, #08624A 0%, #0D8B67 100%); }
.detail-hero.ready { background: linear-gradient(145deg, #214F97 0%, #3E77C9 100%); }
.detail-hero.pending { background: linear-gradient(145deg, #8A5A12 0%, #BC842A 100%); }
.detail-hero.done { background: linear-gradient(145deg, #3B4A44 0%, #617069 100%); }
.detail-hero::after {
  content: ''; position: absolute; width: 170px; height: 170px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14); right: -72px; top: -60px;
}
.dh-head { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.dh-icon { width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.dh-icon .ic { width: 19px; height: 19px; }
.dh-head h2 { font-size: 18px; font-weight: 600; letter-spacing: .1px; }
.dh-head p { font-size: 10.5px; color: rgba(255, 255, 255, .7); margin-top: 3px; }
.dh-driver {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 9px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .12);
}
.dh-driver b { font-size: 11.5px; font-weight: 500; }
.dh-driver span { font-size: 9.5px; color: rgba(255, 255, 255, .66); }
.dh-call {
  margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .18); color: #fff; display: grid; place-items: center;
}
.dh-call .ic { width: 14px; height: 14px; }
.section-card { margin-top: 11px; padding: 14px; box-shadow: 0 2px 10px rgba(18, 43, 34, .03); }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sec-head h3 { font-size: 13.5px; font-weight: 600; }
.sec-head span { font-size: 9.5px; color: #9AA5A0; }
.info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 5px 0; font-size: 11.5px; }
.info-row span { color: #8B9791; flex-shrink: 0; }
.info-row b { color: #34423C; font-weight: 500; text-align: right; line-height: 1.55; }
.timeline { padding: 2px 0 0 3px; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 17px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: #DCE3DF; margin-top: 4px; flex-shrink: 0; position: relative; z-index: 1; }
.tl-item.done .tl-dot { background: var(--green-600); }
.tl-item.current .tl-dot { background: var(--green-600); box-shadow: 0 0 0 4px #E4F7EE; }
.tl-line { position: absolute; left: 4px; top: 15px; bottom: 0; width: 1px; background: #EDF1EF; }
.tl-item:last-child .tl-line { display: none; }
.tl-label { font-size: 12px; color: #8C9792; }
.tl-item.done .tl-label { color: #38463F; }
.tl-item.current .tl-label { color: var(--green-700); font-weight: 600; }
.tl-time { font-size: 9.5px; color: #A5AFAA; margin-top: 3px; }
.detail-item { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #F4F6F5; }
.detail-item:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-item .thumb.xs { width: 44px; height: 44px; font-size: 20px; border-radius: 9px; }
.di-main { flex: 1; min-width: 0; }
.di-name { font-size: 11.5px; font-weight: 500; color: #2E3C35; }
.di-spec { font-size: 9px; color: #A0AAA5; margin-top: 3px; }
.di-amount { text-align: right; }
.di-amount b { display: block; font-size: 12px; font-weight: 600; color: #28352F; }
.di-amount span { display: block; font-size: 9px; color: #9AA5A0; margin-top: 3px; }
.detail-actions { display: flex; gap: 9px; }
.detail-actions .btn { flex: 1; }
.diff-alert {
  display: flex; align-items: center; gap: 7px; margin-top: 11px;
  background: #FFF8EB; color: #A86A0F; border-radius: 9px; padding: 9px 10px; font-size: 10.5px;
}
.diff-alert .ic { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- receive ---------- */
.page-receive { padding: 12px 14px 22px; }
.recv-tip {
  display: flex; align-items: center; gap: 7px; padding: 10px 11px; border-radius: 10px;
  background: #FFF8EB; color: #9C6514; font-size: 10.5px; margin-bottom: 11px;
}
.recv-tip .ic { width: 14px; height: 14px; flex-shrink: 0; }
.recv-item { padding: 12px 0; border-bottom: 1px solid #F3F5F4; }
.recv-item:first-of-type { padding-top: 2px; }
.recv-item:last-child { border-bottom: 0; padding-bottom: 0; }
.recv-head { display: flex; align-items: center; gap: 9px; }
.recv-head .thumb.xs { width: 44px; height: 44px; font-size: 20px; border-radius: 9px; }
.recv-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.recv-info b { font-size: 11.5px; font-weight: 500; color: #2E3C35; }
.recv-info span { font-size: 9px; color: #A0AAA5; }
.recv-expected { font-size: 9.5px; color: #8D9993; }
.recv-control { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-left: 53px; }
.recv-control > span:first-child { font-size: 10.5px; color: #8D9993; }
.recv-unit { font-size: 10px; color: #8D9993; }
.diff-badge { margin-left: auto; font-size: 9.5px; color: #C47A12; background: #FFF5E4; border-radius: 6px; padding: 3px 7px; }
.ok-badge { margin-left: auto; display: flex; align-items: center; gap: 3px; font-size: 9.5px; color: var(--green-700); }
.ok-badge .ic { width: 12px; height: 12px; }
.diff-box { margin-top: 10px; padding: 10px; background: #FFF9F0; border-radius: 10px; margin-left: 53px; }
.diff-title { font-size: 9.5px; color: #A36A15; margin-bottom: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid #ECDFC8; background: #fff; color: #8A6A3A;
  padding: 5px 9px; border-radius: 8px; font-size: 9.5px;
}
.chip.active { border-color: #D08A22; background: #FFF1DB; color: #A3650B; font-weight: 600; }
.upload-box {
  width: 100%; margin-top: 10px; border: 1px dashed #D9E2DD; background: #FAFCFB;
  border-radius: 10px; padding: 13px; color: #8A9690; font-size: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.upload-box .ic { width: 15px; height: 15px; }
.recv-summary { display: flex; align-items: center; gap: 12px; font-size: 10px; color: #8A9690; }
.recv-summary b { color: var(--ink); font-size: 12px; }

/* ---------- statement ---------- */
.page-statement { padding-bottom: 22px; }
.stmt-page { padding: 11px 14px 0; }
.month-tabs { display: flex; gap: 7px; padding: 2px 0 11px; }
.month-tab {
  border: 1px solid #E3E9E6; background: #fff; color: #6D7A74;
  border-radius: 9px; padding: 7px 13px; font-size: 10.5px;
}
.month-tab.active { border-color: var(--green-600); background: #F1FAF6; color: var(--green-700); font-weight: 600; }
.stmt-hero {
  border-radius: 18px; padding: 17px 16px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #075B45 0%, #0C8563 65%, #11A47A 100%);
  box-shadow: 0 10px 26px rgba(11, 122, 92, .18);
}
.stmt-hero::after {
  content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .13); right: -80px; top: -76px;
}
.stmt-hero .sh-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.stmt-hero .label { font-size: 10.5px; color: rgba(255, 255, 255, .68); }
.stmt-status { font-size: 9.5px; padding: 3px 7px; border-radius: 5px; background: rgba(255, 255, 255, .16); color: #fff; }
.stmt-amount { font-size: 33px; font-weight: 650; letter-spacing: -.6px; margin-top: 7px; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.stmt-meta { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; color: rgba(255, 255, 255, .62); margin-top: 12px; position: relative; z-index: 1; }
.credit-card { margin-top: 11px; padding: 14px; box-shadow: 0 2px 10px rgba(18, 43, 34, .03); }
.cc-head { display: flex; align-items: center; justify-content: space-between; }
.cc-head span:first-child { font-size: 13px; font-weight: 600; }
.cc-head span:last-child { font-size: 9.5px; color: #98A39E; }
.cc-amount { font-size: 22px; font-weight: 650; color: var(--ink); margin-top: 8px; letter-spacing: -.4px; }
.cc-amount span { font-size: 11px; font-weight: 400; color: #9AA5A0; letter-spacing: 0; margin-left: 3px; }
.progress { height: 6px; border-radius: 3px; background: #EDF1EF; overflow: hidden; margin-top: 9px; }
.progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #12B886, #0B7A5C); }
.cc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 9.5px; color: #98A39E; }
.cc-foot button { border: 0; background: none; color: var(--green-700); font-size: 10px; padding: 0; }
.stmt-card { margin-top: 11px; padding: 14px; box-shadow: 0 2px 10px rgba(18, 43, 34, .03); }
.stmt-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 11.5px; color: #6D7A74; }
.stmt-row b { font-size: 12px; font-weight: 500; color: #33413A; font-variant-numeric: tabular-nums; }
.stmt-row b.neg { color: var(--green-700); }
.stmt-row.total { border-top: 1px solid #F0F3F1; margin-top: 5px; padding-top: 11px; color: var(--ink); font-weight: 600; }
.stmt-row.total b { font-size: 17px; font-weight: 650; color: var(--price); }
.ship-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid #F4F6F5; }
.ship-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ship-ic { width: 30px; height: 30px; border-radius: 8px; background: #F2F7F4; color: #6C8A7D; display: grid; place-items: center; }
.ship-ic .ic { width: 15px; height: 15px; }
.ship-main { flex: 1; min-width: 0; }
.ship-main b { display: block; font-size: 10.5px; font-weight: 500; color: #3A4841; font-variant-numeric: tabular-nums; }
.ship-main span { display: block; font-size: 9px; color: #A0AAA5; margin-top: 3px; }
.ship-amount { font-size: 11px; font-weight: 500; color: #33413A; font-variant-numeric: tabular-nums; }
.ship-amount.neg { color: var(--green-700); }
.stmt-empty { text-align: center; font-size: 10.5px; color: #A0AAA5; padding: 16px 0 6px; }

/* ---------- profile ---------- */
.page-profile { padding-bottom: 22px; }
.profile-wrap { padding: 13px 14px 0; }
.profile-hero {
  position: relative; overflow: hidden; border-radius: 17px; padding: 17px 16px; color: #fff;
  background:
    radial-gradient(160px 160px at 100% 0%, rgba(255, 255, 255, .16), transparent 66%),
    linear-gradient(145deg, #075B45 0%, #0C8563 100%);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 22px rgba(11, 122, 92, .16);
}
.profile-avatar {
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .18);
  display: grid; place-items: center; font-size: 19px; font-weight: 600;
}
.ph-info { flex: 1; }
.ph-info h2 { font-size: 16.5px; font-weight: 600; }
.ph-info p { font-size: 9.5px; color: rgba(255, 255, 255, .64); margin-top: 4px; line-height: 1.5; }
.online {
  font-size: 9px; padding: 3px 7px; border-radius: 5px;
  background: rgba(255, 255, 255, .14); color: #DFFFF2;
  display: flex; align-items: center; gap: 4px;
}
.online::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #6FF0BC; }
.credit-card .cc-link { border: 0; background: none; font-size: 10px; color: var(--green-700); padding: 0; }
.todo-row { display: flex; margin-top: 11px; padding: 13px 8px; box-shadow: 0 2px 10px rgba(18, 43, 34, .03); }
.todo {
  flex: 1; border: 0; background: none; padding: 2px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border-right: 1px solid #F2F5F3;
}
.todo:last-child { border-right: 0; }
.todo b { font-size: 17px; font-weight: 650; color: var(--ink); }
.todo span { font-size: 9.5px; color: #8D9993; }
.menu { margin-top: 11px; border-radius: 15px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(18, 43, 34, .03); }
.menu-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 13px 14px; background: #fff; border: 0; border-bottom: 1px solid #F5F7F6;
  text-align: left;
}
.menu-item:last-child { border-bottom: 0; }
.menu-ic { width: 30px; height: 30px; border-radius: 9px; background: #F0F8F4; color: var(--green-700); display: grid; place-items: center; }
.menu-ic .ic { width: 16px; height: 16px; }
.menu-label { flex: 1; font-size: 12.5px; color: #37453E; }
.menu-item .chev { width: 15px; height: 15px; color: #BAC4BF; }
.menu-badge { font-size: 9px; color: #fff; background: var(--price); border-radius: 8px; padding: 1px 5px; }
.version { text-align: center; font-size: 9px; color: #B2BBB6; letter-spacing: .04em; padding: 22px 0 18px; }

/* ---------- messages ---------- */
.page-messages { padding: 12px 14px 24px; }
.msg-group { font-size: 10px; color: #9AA5A0; margin: 6px 4px 8px; letter-spacing: .05em; }
.msg-card { background: #fff; border-radius: 14px; padding: 13px 14px; margin-bottom: 9px; display: flex; gap: 11px; box-shadow: 0 2px 9px rgba(18, 43, 34, .03); }
.msg-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.msg-ic.green { background: #EAF8F1; color: var(--green-700); }
.msg-ic.blue { background: #EDF4FF; color: #2563EB; }
.msg-ic.amber { background: #FFF6E6; color: #B26A00; }
.msg-ic.gray { background: #F3F5F4; color: #7A8680; }
.msg-ic .ic { width: 17px; height: 17px; }
.msg-main { flex: 1; min-width: 0; }
.msg-top { display: flex; align-items: center; justify-content: space-between; }
.msg-top b { font-size: 12px; font-weight: 600; color: #2B3832; }
.msg-top span { font-size: 9px; color: #A5AFAA; }
.msg-main p { font-size: 10.5px; line-height: 1.55; color: #7D8983; margin-top: 4px; }
.msg-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--price); align-self: center; flex-shrink: 0; }
.msg-read { text-align: center; font-size: 9.5px; color: #B0B9B4; padding: 14px 0; }

/* ---------- success ---------- */
.page-success { min-height: 100%; background: #fff; display: flex; flex-direction: column; }
.success-wrap { flex: 1; padding: 58px 26px 26px; display: flex; flex-direction: column; align-items: center; }
.success-ic {
  width: 72px; height: 72px; border-radius: 50%; background: var(--mint); color: var(--green-700);
  display: grid; place-items: center; animation: pop .45s cubic-bezier(.2, .9, .3, 1.3) both;
}
.success-ic .ic { width: 34px; height: 34px; stroke-width: 2.2; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-wrap h1 { font-size: 20px; font-weight: 650; margin-top: 20px; letter-spacing: -.2px; }
.success-wrap > p { font-size: 11px; color: #98A39E; margin-top: 7px; text-align: center; line-height: 1.6; }
.success-card { width: 100%; background: #F7FAF8; border-radius: 14px; padding: 14px 15px; margin-top: 26px; }
.success-card .info-row b { font-variant-numeric: tabular-nums; }
.success-card .amount { color: var(--price); font-size: 15px; font-weight: 650; }
.success-actions { width: 100%; margin-top: 22px; display: flex; flex-direction: column; gap: 9px; }
.success-actions .btn { width: 100%; }
.success-note { margin-top: auto; padding-top: 26px; font-size: 9.5px; color: #B3BDB8; }

/* ---------- overlays ---------- */
.modal-mask {
  position: absolute; inset: 0; background: rgba(9, 22, 17, .44);
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: auto; animation: maskIn .2s ease both;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; background: #fff; border-radius: 22px 22px 0 0;
  padding: 20px 20px 16px; animation: sheetUp .26s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes sheetUp { from { transform: translateY(40px); } to { transform: none; } }
.modal h3 { font-size: 16.5px; font-weight: 650; color: var(--ink); }
.m-body { font-size: 11.5px; line-height: 1.75; color: #6D7A74; margin-top: 9px; }
.m-body b { color: var(--ink); font-weight: 600; }
.modal-actions { display: flex; gap: 9px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
#toast-root { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 118px; }
.toast {
  max-width: 82%; background: rgba(17, 28, 23, .9); color: #fff;
  font-size: 11.5px; line-height: 1.5; text-align: center;
  padding: 9px 14px; border-radius: 10px;
  animation: toastIn .2s ease both;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-height: 940px) and (min-width: 901px) {
  .phone { transform: scale(.9); margin: -43px 0; }
}
@media (max-width: 1080px) {
  .stage { gap: 44px; }
  .side { width: 226px; }
}
@media (max-width: 900px) {
  body { padding: 20px; }
  .side { display: none; }
  .stage { gap: 0; }
}
@media (max-width: 520px) {
  body { padding: 0; display: block; min-height: 100dvh; }
  .stage { height: 100dvh; }
  .phone { width: 100%; height: 100dvh; padding: 0; border-radius: 0; box-shadow: none; transform: none; margin: 0; background: var(--bg); }
  .phone::before, .phone::after { display: none; }
  .phone-screen { border-radius: 0; }
  .tabbar { padding-bottom: max(17px, env(safe-area-inset-bottom)); }
  .pay-bar { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .order-tabs { top: 88px; }
  .phone-screen::after { display: none; }
}
