/* ============================================================
   SaldoKu Mall — 印尼用户端 · 明亮商城风（对齐 Shopee/Tokopedia 观感）
   白底 / 大圆角 / 绿色主色 / 橙色强调 / 移动端优先
   ============================================================ */
:root {
  --bg: #F4F6FA;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --card-strong: #FFFFFF;
  --soft: #F3F6FA;
  --soft-2: #EDF2F8;
  --stroke: #E6EBF2;
  --stroke-2: #D7E0EA;
  --text: #0F172A;
  --text-2: #52606D;
  --text-3: #8A98A8;
  --green: #0FA958;
  --green-2: #12C46A;
  --green-soft: #E9F9F0;
  --green-line: #C9EED9;
  --gold: #F59E0B;
  --gold-soft: #FFF6E6;
  --red: #EF4444;
  --red-soft: #FEECEC;
  --blue: #2563EB;
  --blue-soft: #EAF1FE;
  --grad-main: linear-gradient(135deg, #16C978 0%, #0B8F4A 100%);
  --grad-gold: linear-gradient(135deg, #FFC53D 0%, #F59E0B 100%);
  --grad-dark: linear-gradient(160deg, #123B2A 0%, #0B2E21 60%, #08241A 100%);
  --radius: 18px;
  --radius-sm: 13px;
  --shadow: 0 2px 10px rgba(15, 23, 42, .05);
  --shadow-2: 0 10px 26px rgba(15, 23, 42, .09);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
  font-size: 15px;
  line-height: 1.55;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: var(--text); font-size: 14.5px; }
a { color: var(--green); text-decoration: none; font-weight: 600; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.scroll-lock { overflow: hidden; }

/* 背景：淡淡一层绿色光晕，白底不脏 */
.app-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 280px at 50% -90px, #DCF5E7 0%, rgba(220, 245, 231, 0) 70%),
    var(--bg);
}
.screen { min-height: 100%; }
.glass { /* 亮色主题下不做玻璃，保留类名兼容 */
  background: var(--card);
  border: 1px solid var(--stroke);
}

/* ============================================================
   登录 / 注册
   ============================================================ */
.auth-screen { display: flex; align-items: center; justify-content: center; padding: 22px; min-height: 100vh; }
.auth-wrap { width: 100%; max-width: 400px; }
.auth-logo { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 14px; }
.auth-logo h1 { font-size: 25px; font-weight: 800; letter-spacing: -.7px; line-height: 1.1; }
.auth-logo p { font-size: 11px; color: var(--green); font-weight: 800; letter-spacing: 2.6px; text-transform: uppercase; }
.auth-tag { text-align: center; font-size: 13.5px; color: var(--text-2); margin-bottom: 18px; line-height: 1.6; }
.auth-card { border-radius: 22px; padding: 18px; box-shadow: var(--shadow-2); }
.seg { display: flex; background: var(--soft); border-radius: 13px; padding: 4px; margin-bottom: 18px; }
.seg-btn { flex: 1; padding: 10px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--text-2); transition: .15s; }
.seg-btn.active { background: #fff; color: var(--green); box-shadow: var(--shadow); }
.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-note { font-size: 12.5px; color: var(--text-2); text-align: center; }
.auth-legal { margin-top: 16px; font-size: 10.5px; color: var(--text-3); text-align: center; line-height: 1.7; }

/* 表单 */
.field { display: flex; flex-direction: column; 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; border-radius: 12px;
  border: 1.5px solid var(--stroke); background: var(--soft);
  outline: none; transition: .15s; font-size: 15px;
}
.field textarea { min-height: 78px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }

.btn-primary {
  width: 100%; padding: 15px; border-radius: 13px;
  background: var(--grad-main); color: #fff; font-size: 15.5px; font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 169, 88, .25); transition: transform .14s;
}
.btn-primary:active { transform: scale(.98); }
.btn-ghost {
  padding: 12px 16px; border-radius: 12px; background: var(--green-soft);
  border: 1px solid var(--green-line); color: var(--green); font-size: 13.5px; font-weight: 800;
}
.btn-sub {
  width: 100%; padding: 14px; border-radius: 13px;
  background: var(--grad-main); color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 169, 88, .22);
}
.btn-sub:disabled { background: var(--soft-2); color: var(--text-3); box-shadow: none; }

/* ============================================================
   顶栏 / 底栏
   ============================================================ */
.app-screen { padding-bottom: calc(76px + var(--safe-b)); }
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--stroke);
}
.topbar-brand { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 800; letter-spacing: -.3px; }
.topbar-user {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--green-soft); color: var(--green); border: 1px solid var(--green-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 800;
}
.view { padding: 14px 16px 6px; max-width: 520px; margin: 0 auto; }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(16px); border-top: 1px solid var(--stroke);
  padding: 7px 4px calc(7px + var(--safe-b));
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 2px; font-size: 10px; font-weight: 700; color: var(--text-3);
  position: relative; transition: .15s;
}
.nav-item svg { width: 21px; height: 21px; stroke-width: 1.8; }
.nav-item.active { color: var(--green); }
.nav-item.active svg { stroke-width: 2.2; }
.nav-badge {
  position: absolute; top: 1px; right: 50%; transform: translateX(16px);
  background: var(--red); color: #fff; font-size: 9px; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ============================================================
   余额卡（绿卡，最像本地钱包的观感）
   ============================================================ */
.balance-card {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 20px;
  background: var(--grad-dark);
  color: #fff; box-shadow: 0 14px 30px rgba(11, 46, 33, .25);
}
.balance-card::after {
  content: ''; position: absolute; right: -46px; top: -56px;
  width: 168px; height: 168px; border-radius: 50%;
  background: rgba(34, 197, 122, .22);
}
.balance-card::before {
  content: ''; position: absolute; right: 22px; bottom: -60px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(34, 197, 122, .13);
}
.balance-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: rgba(255, 255, 255, .72); font-weight: 600; position: relative; z-index: 1;
}
.balance-label svg { width: 16px; height: 16px; stroke-width: 1.8; }
.balance-amount {
  font-size: 33px; font-weight: 800; letter-spacing: -1.2px; margin: 7px 0 4px;
  position: relative; z-index: 1; line-height: 1.15;
}
.balance-amount small { font-size: 14px; font-weight: 700; opacity: .65; margin-left: 3px; letter-spacing: 0; }
.balance-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 11px; color: rgba(255, 255, 255, .66); position: relative; z-index: 1;
}
.balance-meta b { color: #fff; font-weight: 700; }
.balance-actions { display: flex; gap: 9px; margin-top: 16px; position: relative; z-index: 1; }
.balance-actions .btn-primary {
  flex: 1; padding: 12px; font-size: 13.5px; background: #fff; color: #0B7F43; box-shadow: none;
}
.balance-actions .btn-ghost {
  flex: 1; padding: 12px; font-size: 13.5px; background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .26); color: #fff;
}

/* ============================================================
   卡片 / 行列表
   ============================================================ */
.card { border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); background: var(--card); }
.card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; margin-bottom: 13px;
}
.card-title svg { width: 17px; height: 17px; color: var(--green); stroke-width: 2; }
.card-title .line { flex: 1; height: 1px; background: var(--stroke); }

.row-list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px dashed var(--soft-2); }
.row:last-child { border-bottom: none; padding-bottom: 0; }
.row:first-child { padding-top: 0; }
.row-icon {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--text-2);
}
.row-icon.green { background: var(--green-soft); color: var(--green); }
.row-icon.gold { background: var(--gold-soft); color: var(--gold); }
.row-icon.red { background: var(--red-soft); color: var(--red); }
.row-icon.blue { background: var(--blue-soft); color: var(--blue); }
.row-icon svg { width: 17px; height: 17px; }
.row-main { flex: 1; min-width: 0; }
.row-main .t { font-size: 13px; font-weight: 700; letter-spacing: -.1px; }
.row-main .s { font-size: 11.5px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-right { text-align: right; flex: none; }
.amt { font-size: 13.5px; font-weight: 800; letter-spacing: -.2px; }
.amt.plus { color: var(--green); }
.amt.minus { color: var(--text); }

/* ============================================================
   签到
   ============================================================ */
.checkin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.checkin-streak { text-align: right; }
.checkin-streak .big { font-size: 15px; font-weight: 800; color: var(--green); letter-spacing: -.3px; }
.checkin-streak .sub { font-size: 10px; color: var(--text-3); }
.checkin-progress {
  height: 7px; border-radius: 5px; background: var(--soft-2); overflow: hidden; margin-bottom: 14px;
}
.checkin-progress i { display: block; height: 100%; border-radius: 5px; background: var(--grad-main); transition: width .4s; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 14px; }
.cal-day {
  background: var(--soft); border: 1.5px solid var(--stroke); border-radius: 11px;
  padding: 8px 1px 7px; text-align: center; position: relative;
}
.cal-day .d { display: block; font-size: 9px; color: var(--text-3); font-weight: 600; margin-bottom: 3px; }
.cal-day .box { display: block; }
.cal-day .box svg { width: 15px; height: 15px; color: var(--text-3); stroke-width: 2; margin: 0 auto; }
.cal-day .r { display: block; font-size: 9.5px; font-weight: 800; color: var(--text-2); margin-top: 3px; letter-spacing: -.2px; }
.cal-day .r small { font-size: 8px; }
.cal-day.claimed { background: var(--green-soft); border-color: var(--green-line); }
.cal-day.claimed .d { color: #0B7F43; }
.cal-day.claimed .box svg { color: var(--green); stroke-width: 2.6; }
.cal-day.claimed .r { color: #0B7F43; }
.cal-day.today {
  background: var(--grad-main); border-color: transparent;
  box-shadow: 0 6px 14px rgba(15, 169, 88, .28); animation: breathe 2.2s ease-in-out infinite;
}
.cal-day.today .d, .cal-day.today .r { color: #fff; }
.cal-day.today .box svg { color: #fff; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.cal-day.next { border-style: dashed; border-color: var(--green-line); }

.btn-checkin {
  width: 100%; padding: 15px; border-radius: 14px;
  background: var(--grad-main); color: #fff; font-size: 15.5px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 169, 88, .26); transition: .15s;
}
.btn-checkin:active { transform: scale(.985); }
.btn-checkin:disabled { background: var(--soft-2); color: var(--text-3); box-shadow: none; }
.btn-checkin.loading { opacity: .8; }
.checkin-note { font-size: 11px; color: var(--text-3); text-align: center; margin-top: 10px; line-height: 1.6; }

/* 快捷入口网格（印尼用户熟悉的四个大图标） */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 0; }
.quick-item {
  background: var(--card); border: 1px solid var(--stroke); border-radius: 14px;
  padding: 11px 4px 9px; text-align: center; box-shadow: var(--shadow);
}
.quick-item .qi { font-size: 21px; display: block; line-height: 1.2; }
.quick-item .qt { font-size: 10.5px; font-weight: 700; color: var(--text-2); margin-top: 4px; display: block; }

/* 横向商品条 */
.hscroll { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.mini {
  flex: 0 0 112px; background: var(--card); border: 1px solid var(--stroke); border-radius: 15px;
  padding: 9px; box-shadow: var(--shadow); position: relative; cursor: pointer; transition: .14s;
}
.mini:active { transform: scale(.975); }
.mini .mi {
  width: 100%; height: 54px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden;
}
.mini .mi b { font-size: 15px; font-weight: 900; letter-spacing: -.4px; }
.mini .mtag {
  position: absolute; top: 5px; right: 5px; background: #fff; color: var(--green);
  font-size: 8.5px; font-weight: 900; padding: 2px 6px; border-radius: 20px; letter-spacing: .1px;
  box-shadow: 0 2px 6px rgba(0,0,0,.14);
}
.mini .mn {
  font-size: 11px; font-weight: 700; line-height: 1.3; margin-top: 7px; min-height: 29px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;
}
.mini .mp { font-size: 13px; font-weight: 900; color: var(--green); margin-top: 3px; letter-spacing: -.3px; }
.mini .mp span { font-size: 9.5px; color: var(--text-3); font-weight: 700; }
.hscroll-note { font-size: 10.5px; color: var(--text-3); margin-top: 9px; }
.hscroll-note b { color: var(--green); }

/* ============================================================
   商品目录
   ============================================================ */
.section-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 16.5px; font-weight: 800; letter-spacing: -.3px; margin: 4px 0 12px;
}
.section-title .line { flex: 1; height: 1px; background: var(--stroke); }

.searchbar { display: flex; gap: 8px; align-items: center; margin-bottom: 11px; }
.searchbar input {
  flex: 1; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--stroke);
  background: var(--card); outline: none; font-size: 14px;
}
.searchbar input:focus { border-color: var(--green); }
.cat-chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700;
  background: var(--card); border: 1px solid var(--stroke); color: var(--text-2); transition: .14s;
}
.cat-chip.on { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 5px 12px rgba(15, 169, 88, .22); }

.sort-bar { display: flex; align-items: center; gap: 6px; margin: -2px 0 11px; }
.sort-btn {
  padding: 6px 11px; border-radius: 9px; font-size: 11.5px; font-weight: 700;
  background: var(--soft); color: var(--text-2); border: 1px solid transparent;
}
.sort-btn.on { background: #fff; border-color: var(--green); color: var(--green); font-weight: 800; }
.cat-count { margin-left: auto; font-size: 10.5px; color: var(--text-3); font-weight: 600; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.product {
  background: var(--card); border: 1px solid var(--stroke); border-radius: 16px;
  box-shadow: var(--shadow); position: relative; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; transition: .14s;
}
.product:active { transform: scale(.98); }
.product.sold { opacity: .55; }
.ptile {
  position: relative; height: 72px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; border-bottom: 1px solid rgba(0,0,0,.05);
}
.ptile b { font-size: 19px; font-weight: 900; letter-spacing: -.6px; }
.ptile .pemoji { font-size: 30px; }
.ptile .pbadge {
  position: absolute; top: 7px; left: 7px; background: #fff; color: #0FA958;
  font-size: 8.5px; font-weight: 900; padding: 2px 7px; border-radius: 20px; letter-spacing: .1px;
  box-shadow: 0 2px 6px rgba(0,0,0,.16);
}
.product-body { padding: 9px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.product-name {
  font-size: 12px; font-weight: 800; line-height: 1.3; letter-spacing: -.1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 31px; word-break: break-word;
}
.product-hint { font-size: 9.5px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price { font-size: 15px; font-weight: 900; color: var(--green); margin-top: 5px; letter-spacing: -.4px; }
.product-price small { font-size: 9.5px; color: var(--text-3); font-weight: 700; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 6px; margin-top: auto; padding-top: 7px; }
.product-stock { font-size: 10px; color: var(--text-3); white-space: nowrap; }
.btn-tukar {
  padding: 6px 13px; border-radius: 9px; background: var(--green); color: #fff;
  font-size: 11.5px; font-weight: 800; flex: none; box-shadow: 0 4px 10px rgba(15,169,88,.22);
}
.btn-tukar:disabled { background: var(--soft-2); color: var(--text-3); box-shadow: none; }
.katalog-note { font-size: 10.5px; line-height: 1.6; color: var(--text-3); margin-top: 14px; text-align: center; }

/* ============================================================
   弹窗
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .48); backdrop-filter: blur(2px); }
.modal-sheet {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 22px 22px 0 0; padding: 16px 16px calc(18px + var(--safe-b));
  animation: sheet-up .24s ease;
}
.modal-small { max-width: 400px; border-radius: 20px; margin-bottom: 18vh; }
@keyframes sheet-up { from { transform: translateY(22px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -.3px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%; background: var(--soft);
  display: flex; align-items: center; justify-content: center; color: var(--text-2);
}
.icon-btn svg { width: 15px; height: 15px; stroke-width: 2.2; }
.modal-body { display: flex; flex-direction: column; gap: 13px; }

.mo-product { display: flex; gap: 12px; align-items: center; padding: 11px; background: var(--soft); border-radius: 13px; }
.mo-product img, .mo-ph { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex: none; background: #fff; }
.mo-ph { display: flex; align-items: center; justify-content: center; font-size: 26px; }
.mo-product .n { font-size: 13px; font-weight: 700; line-height: 1.4; }
.mo-product .p { font-size: 12.5px; font-weight: 800; color: var(--green); margin-top: 3px; }

.spec-group { display: flex; flex-direction: column; gap: 8px; }
.spec-group > span { font-size: 12px; font-weight: 700; color: var(--text-2); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 8px 13px; border-radius: 10px; border: 1.5px solid var(--stroke);
  background: var(--card); font-size: 12.5px; font-weight: 700; color: var(--text-2);
}
.chip.selected { border-color: var(--green); background: var(--green-soft); color: var(--green); }

.qty-row { display: flex; align-items: center; justify-content: space-between; }
.qty-row .spec-group { flex-direction: row; align-items: center; gap: 0; }
.qty-row .spec-group > span { font-size: 13px; font-weight: 700; color: var(--text); }
.qty { display: flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 11px; padding: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 8px; background: #fff; font-size: 17px; font-weight: 700; color: var(--text-2); box-shadow: var(--shadow); }
.qty b { min-width: 30px; text-align: center; font-size: 14.5px; font-weight: 800; }
.total-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--green-soft); border: 1px solid var(--green-line); border-radius: 12px;
}
.total-row .l { font-size: 12.5px; font-weight: 700; color: #0B7F43; }
.total-row .v { font-size: 17px; font-weight: 800; color: var(--green); letter-spacing: -.4px; }
.form-stack { display: flex; flex-direction: column; gap: 11px; }

/* ============================================================
   钱包 / 提现（改叫「兑换到 e-wallet」）
   ============================================================ */
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.channel {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 11px 4px; border-radius: 11px; border: 1.5px solid var(--stroke);
  background: var(--card); font-size: 12px; font-weight: 800; color: var(--text-2);
}
.channel .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.channel.selected { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.channel.selected .dot { background: var(--green); }

.info-banner {
  display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px;
  border-radius: 12px; font-size: 11.5px; line-height: 1.55;
  background: var(--blue-soft); color: #1D4ED8; border: 1px solid #CFE0FD;
}
.info-banner svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.info-banner.gold { background: var(--gold-soft); color: #94570C; border-color: #FFE2BF; }
.info-banner b { font-weight: 800; }

/* 徽章 */
.badge {
  display: inline-block; padding: 3px 8px; border-radius: 7px;
  font-size: 10px; font-weight: 800; letter-spacing: .1px; white-space: nowrap;
}
.badge.menunggu, .badge.pending { background: var(--gold-soft); color: #94570C; }
.badge.selesai, .badge.delivered, .badge.active { background: var(--green-soft); color: var(--green); }
.badge.ditolak, .badge.cancelled, .badge.frozen { background: var(--red-soft); color: var(--red); }
.badge.shipped { background: var(--blue-soft); color: var(--blue); }

/* 客服 */
.cs-channels { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cs-channel {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border-radius: 13px; background: var(--soft); color: var(--text);
}
.cs-channel b { font-size: 13px; font-weight: 700; display: block; }
.cs-channel small { font-size: 11.5px; color: var(--text-3); }
.cs-ico {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center; background: #fff;
}
.cs-ico.wa { color: #25D366; }
.cs-ico.tg { color: #229ED9; }
.cs-ico.mail { color: var(--orange, #FF7A00); }

.chat { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; padding-top: 2px; }
.msg { display: flex; flex-direction: column; max-width: 84%; }
.msg.admin { align-self: flex-start; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg-bubble {
  padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.55;
  background: var(--soft); color: var(--text);
}
.msg.user .msg-bubble { background: var(--green); color: #fff; }
.msg-time { font-size: 9.5px; color: var(--text-3); margin-top: 4px; }

/* Toast / 骨架 / 空状态 */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(86px + var(--safe-b)); z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  max-width: 88%; padding: 11px 16px; border-radius: 12px; color: #fff;
  font-size: 13px; font-weight: 700; box-shadow: var(--shadow-2);
  animation: toast-in .2s ease;
}
.toast.ok { background: #0B7F43; }
.toast.err { background: #D92D20; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.skeleton {
  height: 92px; border-radius: var(--radius); margin-bottom: 12px;
  background: linear-gradient(100deg, #EEF2F7 20%, #F7FAFC 40%, #EEF2F7 60%);
  background-size: 220% 100%; animation: sh 1.2s infinite;
}
@keyframes sh { to { background-position: -220% 0; } }

.empty { text-align: center; padding: 30px 16px; color: var(--text-3); font-size: 13px; }
.empty svg { width: 34px; height: 34px; color: var(--stroke-2); margin-bottom: 8px; }
