/* ============================================================
   サクポイ — ユーザーアプリ CSS（和風・桜／ライトテーマ）
   朱 #E4576A–#C0283C ／ 桜 #F7A8B8 ／ 墨 #241E22 ／ 金 #C9A227
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #FFF7F5;
  --paper: #FFFFFF;
  --ink: #241E22;
  --text: #2A2024;
  --text-2: #5A4C50;
  --text-3: #9A8A8E;
  --soft: #FFF6F4;
  --line: #F0DCDD;
  --sakura: #F7A8B8;
  --sakura-soft: #FDEDF0;
  --shu: #E4576A;
  --shu-deep: #C0283C;
  --shu-soft: #FDECEF;
  --gold: #C9A227;
  --gold-soft: #FBF3DC;
  --green: #2F9E7A;
  --red: #C0392B;
  --blue: #2F6FB0;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --sh-1: 0 1px 2px rgba(52, 20, 26, .04), 0 6px 18px -8px rgba(52, 20, 26, .10);
  --sh-2: 0 2px 8px rgba(52, 20, 26, .06), 0 18px 40px -20px rgba(52, 20, 26, .22);
  --nav-h: 62px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', 'Yu Gothic', 'Meiryo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.72;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.scroll-lock { overflow: hidden; }
a { color: var(--shu-deep); text-decoration: none; }
button { font-family: inherit; }
svg { vertical-align: middle; }
.hidden { display: none !important; }

/* ---------------- 背景（桜吹雪の気配） ---------------- */
.app-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 380px at 50% -6%, #FFE9EE 0%, rgba(255, 233, 238, 0) 62%),
    linear-gradient(180deg, #FFF9F7 0%, #FFF7F5 45%, #FFF5F3 100%);
}
.bg-petal {
  position: absolute; width: 12px; height: 12px; border-radius: 100% 0 100% 0;
  background: linear-gradient(140deg, #FFD6E0, #F7A8B8); opacity: .55;
  animation: petalFall 16s linear infinite;
}
.bg-petal.p1 { left: 12%; animation-delay: -2s; }
.bg-petal.p2 { left: 58%; width: 16px; height: 16px; opacity: .4; animation-duration: 22s; animation-delay: -9s; }
.bg-petal.p3 { left: 84%; width: 10px; height: 10px; opacity: .5; animation-duration: 19s; animation-delay: -5s; }
@keyframes petalFall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0); opacity: 0; }
  10% { opacity: .6; }
  100% { transform: translate3d(40px, 108vh, 0) rotate(400deg); opacity: 0; }
}

/* ---------------- 共通レイアウト ---------------- */
.screen { position: relative; z-index: 1; min-height: 100vh; }
.view { padding: 14px 16px calc(var(--nav-h) + 26px); max-width: 560px; margin: 0 auto; }
.glass {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.skeleton {
  height: 96px; border-radius: var(--r-md); margin-bottom: 12px;
  background: linear-gradient(100deg, #FBEEF0 20%, #FFF6F7 40%, #FBEEF0 60%);
  background-size: 220% 100%; animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.empty { text-align: center; color: var(--text-3); padding: 34px 10px; font-size: 13px; }
.empty svg { width: 34px; height: 34px; stroke: var(--sakura); fill: none; stroke-width: 1.6; display: block; margin: 0 auto 10px; }
.empty p { margin: 0; }

/* ---------------- ログイン / 登録 ---------------- */
.auth-screen {
  display: flex; align-items: center; justify-content: center;
  padding: 34px 18px 40px;
}
.auth-wrap { width: 100%; max-width: 420px; }
.auth-logo { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.auth-logo h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: .06em; }
.auth-logo p { margin: 2px 0 0; font-size: 11.5px; color: var(--text-3); letter-spacing: .04em; }
.auth-tag { font-size: 13.5px; color: var(--text-2); line-height: 1.9; margin: 0 0 18px; }
.auth-card { border-radius: var(--r-lg); padding: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--soft); border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.seg-btn {
  border: 0; background: transparent; color: var(--text-2); font-size: 13.5px; font-weight: 700;
  padding: 10px 4px; border-radius: 11px; cursor: pointer; transition: .18s;
}
.seg-btn.active { background: #fff; color: var(--shu-deep); box-shadow: var(--sh-1); }
.auth-form { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 700; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font-size: 14.5px; color: var(--text);
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px;
  outline: none; transition: .16s; font-family: inherit;
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--shu); background: #fff; box-shadow: 0 0 0 3px rgba(228, 87, 106, .12);
}
.btn-primary {
  border: 0; cursor: pointer; color: #fff; font-size: 15.5px; font-weight: 800; letter-spacing: .04em;
  padding: 14px 18px; border-radius: 13px;
  background: linear-gradient(135deg, #E9636F, #C0283C);
  box-shadow: 0 12px 26px -12px rgba(192, 40, 60, .6); transition: transform .14s, box-shadow .2s;
}
.btn-primary:active { transform: scale(.975); }
.btn-primary:disabled { opacity: .55; box-shadow: none; }
.auth-note { margin: 0; font-size: 12px; color: var(--text-3); text-align: center; }
.auth-note a { font-weight: 700; }
.auth-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; }
.auth-points li {
  font-size: 12px; color: var(--text-2); background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 12px; display: flex; align-items: center; gap: 8px;
}
.auth-points li::before { content: '🌸'; font-size: 13px; }
.auth-points b { color: var(--shu-deep); }
.auth-legal { margin: 14px 0 0; font-size: 10.5px; color: var(--text-3); text-align: center; line-height: 1.9; }

/* ---------------- トップバー / ナビ ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; border-left: 0; border-right: 0; border-top: 0;
  border-radius: 0 0 16px 16px;
}
.topbar-brand { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.topbar-user {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #F7A8B8, #C0283C);
}
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0; border-bottom: 0; border-left: 0; border-right: 0;
}
.nav-item {
  border: 0; background: transparent; color: var(--text-3); cursor: pointer;
  display: grid; justify-items: center; gap: 3px; padding: 4px 0;
  font-size: 10.5px; font-weight: 700; position: relative;
}
.nav-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: var(--shu-deep); }
.nav-item.active::after {
  content: ''; position: absolute; bottom: -2px; width: 18px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--shu), var(--sakura));
}
.nav-badge {
  position: absolute; top: -2px; right: 50%; transform: translateX(18px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--shu-deep); color: #fff; font-size: 9.5px; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------------- 残高カード（墨＋金＋桜） ---------------- */
.balance-card {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--r-lg);
  padding: 18px; border: 1px solid rgba(201, 162, 39, .32);
  background: linear-gradient(158deg, #2A2024, #3B2A2F 58%, #2C2126);
  box-shadow: 0 22px 46px -22px rgba(192, 40, 60, .55);
}
.balance-card::after {
  content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  right: -70px; top: -90px; background: radial-gradient(circle, rgba(247, 168, 184, .34), transparent 70%);
}
.balance-label {
  display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700;
  color: #D9B7BE; letter-spacing: .06em; position: relative; z-index: 1;
}
.balance-label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.balance-amount {
  font-size: 34px; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 4px;
  font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.balance-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: #C9A9B0;
  position: relative; z-index: 1;
}
.balance-meta b { color: #fff; font-weight: 700; }
.balance-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.balance-actions .btn-primary { font-size: 13.5px; padding: 11px 8px; box-shadow: none; }
.btn-ghost {
  border: 1px solid rgba(247, 168, 184, .5); background: rgba(255, 255, 255, .08); color: #FFE3E9;
  font-size: 13.5px; font-weight: 700; padding: 11px 8px; border-radius: 12px; cursor: pointer;
}

/* ---------------- クイックメニュー ---------------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.quick-item {
  border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 11px 4px 9px;
  display: grid; justify-items: center; gap: 4px; cursor: pointer; box-shadow: var(--sh-1);
}
.quick-item .qi { font-size: 19px; line-height: 1; }
.quick-item .qt { font-size: 10px; font-weight: 700; color: var(--text-2); text-align: center; line-height: 1.35; }

/* ---------------- カード ---------------- */
.card { border-radius: var(--r-md); padding: 15px; margin-bottom: 0; }
.card-title {
  display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800;
  color: var(--text); margin-bottom: 12px;
}
.card-title svg { width: 16px; height: 16px; fill: none; stroke: var(--shu-deep); stroke-width: 1.9; stroke-linecap: round; }
.card-title .line { flex: 1; height: 1px; background: var(--line); }
.card-title a { font-weight: 700; color: var(--shu-deep); }
.section-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; margin: 4px 0 12px; }
.section-title::before {
  content: ''; width: 3.5px; height: 17px; border-radius: 2px;
  background: linear-gradient(180deg, var(--shu), var(--sakura));
}
.section-title .line { flex: 1; height: 1px; background: var(--line); }

/* ---------------- 横スクロール商品 ---------------- */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.mini {
  flex: 0 0 118px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; cursor: pointer; position: relative;
}
.mini .mi {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; margin-bottom: 8px; overflow: hidden;
}
.mini .mtag {
  position: absolute; top: 9px; right: 8px; font-size: 8.5px; font-weight: 800;
  color: var(--shu-deep); background: var(--shu-soft); border-radius: 6px; padding: 2px 5px;
}
.mini .mn { font-size: 11.5px; font-weight: 700; line-height: 1.45; min-height: 33px; color: var(--text); }
.mini .mp { font-size: 11.5px; font-weight: 800; color: var(--shu-deep); margin-top: 5px; font-variant-numeric: tabular-nums; }
.mini .mp span { font-size: 9px; font-weight: 700; color: var(--text-3); }
.hscroll-note { margin-top: 10px; font-size: 10.5px; color: var(--text-3); text-align: center; }
.hscroll-note b { color: var(--shu-deep); }

/* ---------------- チェックイン ---------------- */
.checkin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.checkin-streak { text-align: right; }
.checkin-streak .big { font-size: 19px; font-weight: 800; color: var(--shu-deep); line-height: 1.2; }
.checkin-streak .sub { font-size: 9.5px; color: var(--text-3); }
.checkin-progress { height: 7px; border-radius: 999px; background: var(--sakura-soft); overflow: hidden; margin: 10px 0 12px; }
.checkin-progress i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--sakura), var(--shu));
  transition: width .5s cubic-bezier(.2, .9, .3, 1);
}
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-day {
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 2px 6px;
  text-align: center; background: var(--soft); position: relative;
}
.cal-day .d { display: block; font-size: 8.5px; color: var(--text-3); margin-bottom: 3px; }
.cal-day .r { display: block; font-size: 9.5px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.cal-day .r small { display: none; }
.cal-day .box { display: block; margin: 0 auto 2px; width: 15px; height: 15px; }
.cal-day .box svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.cal-day.claimed { background: var(--sakura-soft); border-color: #F4D6DD; color: var(--shu-deep); }
.cal-day.claimed .r { color: var(--shu-deep); }
.cal-day.today { background: linear-gradient(160deg, #F38A99, #C0283C); border-color: var(--shu-deep); color: #fff; box-shadow: 0 8px 18px -8px rgba(192, 40, 60, .6); }
.cal-day.today .d, .cal-day.today .r { color: #fff; }
.cal-day.next { border-color: var(--shu); border-style: dashed; color: var(--shu-deep); }
.btn-checkin {
  width: 100%; margin-top: 13px; border: 0; cursor: pointer; color: #fff;
  font-size: 15px; font-weight: 800; letter-spacing: .03em; padding: 14px; border-radius: 13px;
  background: linear-gradient(135deg, #E9636F, #C0283C);
  box-shadow: 0 14px 28px -14px rgba(192, 40, 60, .68); transition: transform .14s;
}
.btn-checkin:active { transform: scale(.98); }
.btn-checkin:disabled { background: #EFE2E4; color: #B9A6AA; box-shadow: none; }
.btn-checkin.loading { opacity: .8; }
.checkin-note { font-size: 10.5px; color: var(--text-3); text-align: center; margin: 10px 0 0; line-height: 1.8; }

/* ---------------- 行リスト ---------------- */
.row-list { display: grid; }
.row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px dashed #F5E6E7; }
.row:last-child { border-bottom: 0; }
.row-icon {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--sakura-soft); color: var(--shu-deep);
}
.row-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.row-icon.gold { background: var(--gold-soft); color: #8A6A12; }
.row-icon.green { background: #E8F6F0; color: var(--green); }
.row-icon.red { background: #FBECEA; color: var(--red); }
.row-icon.blue { background: #EAF1FA; color: var(--blue); }
.row-main { flex: 1; min-width: 0; }
.row-main .t { font-size: 12.5px; font-weight: 700; color: var(--text); }
.row-main .s { font-size: 10.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-right { text-align: right; }
.amt { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.amt.plus { color: var(--green); }
.amt.minus { color: var(--shu-deep); }

/* ---------------- カタログ ---------------- */
.searchbar { margin-bottom: 10px; }
.searchbar input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: var(--text); outline: none; font-family: inherit;
}
.searchbar input:focus { border-color: var(--shu); box-shadow: 0 0 0 3px rgba(228, 87, 106, .1); }
.cat-chips, .sort-bar { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar, .sort-bar::-webkit-scrollbar { display: none; }
.cat-chips { margin-bottom: 9px; }
.cat-chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-size: 11.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.cat-chip.on { background: var(--shu-deep); border-color: var(--shu-deep); color: #fff; box-shadow: 0 8px 16px -9px rgba(192, 40, 60, .7); }
.sort-bar { align-items: center; margin-bottom: 12px; }
.sort-btn {
  flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-size: 11px; font-weight: 700; padding: 6px 11px; border-radius: 9px; cursor: pointer;
}
.sort-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-count { margin-left: auto; font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--sh-1); cursor: pointer; transition: transform .16s;
}
.product:active { transform: scale(.985); }
.product.sold { opacity: .55; }
.ptile {
  position: relative; height: 76px; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  text-align: center; line-height: 1.1; padding: 0 6px;
}
.ptile .pemoji { font-size: 25px; line-height: 1; }
.pbadge {
  position: absolute; top: 7px; right: 7px; font-size: 8px; font-weight: 800;
  background: rgba(255, 255, 255, .92); color: var(--shu-deep); border-radius: 6px; padding: 2px 5px;
}
.product-body { padding: 10px; }
.product-name { font-size: 12px; font-weight: 700; line-height: 1.5; min-height: 36px; color: var(--text); }
.product-hint {
  font-size: 9.5px; color: var(--text-3); margin-top: 4px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-price { font-size: 13px; font-weight: 800; color: var(--shu-deep); margin-top: 6px; font-variant-numeric: tabular-nums; }
.product-price small { font-size: 9px; font-weight: 700; color: var(--text-3); margin-left: 2px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; }
.product-stock { font-size: 9px; color: var(--text-3); font-weight: 700; }
.btn-tukar {
  border: 0; cursor: pointer; font-size: 11px; font-weight: 800; color: #fff;
  padding: 6px 11px; border-radius: 9px; background: linear-gradient(135deg, #E9636F, #C0283C);
}
.btn-tukar:disabled { background: #EFE2E4; color: #B9A6AA; }
.katalog-note { font-size: 10.5px; color: var(--text-3); line-height: 1.9; margin: 14px 0 0; text-align: center; }

/* ---------------- モーダル ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(42, 32, 36, .52); backdrop-filter: blur(3px); }
.modal-sheet {
  position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  animation: sheetUp .26s cubic-bezier(.2, .9, .3, 1);
}
.modal-small { padding-bottom: 22px; }
@keyframes sheetUp { from { transform: translateY(24px); opacity: .7; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--soft);
  color: var(--text-2); cursor: pointer; display: grid; place-items: center;
}
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.modal-body { display: grid; gap: 12px; }
.mo-product { display: flex; align-items: center; gap: 11px; background: var(--soft); border-radius: 13px; padding: 11px; }
.mo-product img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.mo-ph { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: #fff; border: 1px solid var(--line); }
.mo-product .n { font-size: 13px; font-weight: 800; }
.mo-product .p { font-size: 11px; color: var(--shu-deep); font-weight: 700; margin-top: 2px; }
.spec-group { display: grid; gap: 6px; }
.spec-group > span { font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--text-2); font-size: 11.5px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.chip.selected { border-color: var(--shu-deep); background: var(--shu-soft); color: var(--shu-deep); }
.qty-row { display: flex; align-items: center; justify-content: space-between; }
.qty { display: flex; align-items: center; gap: 12px; }
.qty button {
  width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-size: 17px; font-weight: 700; color: var(--text-2); cursor: pointer;
}
.qty b { font-size: 15px; font-weight: 800; min-width: 20px; text-align: center; }
.total-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--shu-soft); border-radius: 12px; padding: 11px 13px;
}
.total-row .l { font-size: 12px; font-weight: 700; color: var(--text-2); }
.total-row .v { font-size: 15px; font-weight: 800; color: var(--shu-deep); font-variant-numeric: tabular-nums; }
.info-banner {
  display: flex; gap: 8px; font-size: 10.5px; line-height: 1.8; color: #8A6A12;
  background: var(--gold-soft); border: 1px solid #EFDFAE; border-radius: 11px; padding: 9px 11px;
}
.info-banner.gold { color: #8A6A12; }
.form-stack { display: grid; gap: 11px; }
.btn-sub {
  border: 0; cursor: pointer; color: #fff; font-size: 15px; font-weight: 800; padding: 14px;
  border-radius: 13px; background: linear-gradient(135deg, #E9636F, #C0283C);
  box-shadow: 0 14px 28px -14px rgba(192, 40, 60, .68);
}
.btn-sub:disabled { opacity: .55; box-shadow: none; }
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.channel {
  border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 10px 4px;
  font-size: 11px; font-weight: 700; color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.channel .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.channel.selected { border-color: var(--shu-deep); background: var(--shu-soft); color: var(--shu-deep); }
.channel.selected .dot { background: var(--shu-deep); }

/* ---------------- バッジ ---------------- */
.badge { display: inline-block; font-size: 9.5px; font-weight: 800; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.badge.menunggu, .badge.pending { background: var(--gold-soft); color: #8A6A12; }
.badge.selesai, .badge.delivered, .badge.active { background: #E8F6F0; color: var(--green); }
.badge.ditolak, .badge.cancelled, .badge.frozen { background: #FBECEA; color: var(--red); }
.badge.shipped { background: #EAF1FA; color: var(--blue); }

/* ---------------- チャット ---------------- */
.chat { display: grid; gap: 9px; max-height: 320px; overflow-y: auto; padding-right: 2px; }
.msg { display: flex; flex-direction: column; }
.msg.user { align-items: flex-end; }
.msg-bubble {
  max-width: 84%; font-size: 12.5px; line-height: 1.75; padding: 9px 12px; border-radius: 13px;
  background: var(--soft); color: var(--text); border: 1px solid var(--line);
}
.msg.user .msg-bubble { background: var(--shu-soft); border-color: #F4D6DD; color: #7A2B36; }
.msg-time { font-size: 9px; color: var(--text-3); margin-top: 3px; }

/* ---------------- Toast ---------------- */
.toast-wrap {
  position: fixed; left: 50%; top: 18px; transform: translateX(-50%);
  z-index: 200; display: grid; gap: 8px; width: calc(100% - 40px); max-width: 420px;
  pointer-events: none;
}
.toast {
  font-size: 12.5px; font-weight: 700; padding: 11px 14px; border-radius: 12px;
  background: rgba(36, 30, 34, .94); color: #fff; box-shadow: var(--sh-2);
  animation: toastIn .22s cubic-bezier(.2, .9, .3, 1);
}
.toast.err { background: linear-gradient(135deg, #C0283C, #8E1F2E); }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------- 小屏微調 ---------------- */
@media (max-width: 360px) {
  .balance-amount { font-size: 30px; }
  .product-name { font-size: 11.5px; }
  .quick-item .qt { font-size: 9.5px; }
  .nav-item { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .bg-petal { display: none; }
}
