/* ============================================================
   SaldoKu Mall — 印尼语用户端 · 暗黑 Fintech 风格
   极简暗黑 / 微渐变卡片 / 玻璃拟态 / 移动端自适应
   ============================================================ */
:root {
  --bg: #060A13;
  --bg-2: #0A1120;
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.085);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-2: rgba(255, 255, 255, 0.16);
  --text: #F2F6FF;
  --text-2: #97A0B5;
  --text-3: #626B82;
  --green: #12E6A4;
  --green-2: #0BAF7C;
  --gold: #FFC53D;
  --red: #FF5C7A;
  --blue: #4D8DFF;
  --grad-main: linear-gradient(135deg, #1EF0A9 0%, #0BAF7C 100%);
  --grad-gold: linear-gradient(135deg, #FFD77A 0%, #FF9E2C 100%);
  --grad-dark: linear-gradient(160deg, #101B33 0%, #0A1120 60%, #060A13 100%);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --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: "Inter", "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
}
.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); }
a { color: var(--green); text-decoration: none; }

/* ---- 背景光晕 ---- */
.app-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(560px 380px at 12% -6%, rgba(18, 230, 164, 0.16), transparent 62%),
    radial-gradient(520px 420px at 96% 8%, rgba(77, 141, 255, 0.13), transparent 60%),
    radial-gradient(700px 500px at 50% 115%, rgba(255, 197, 61, 0.07), transparent 65%),
    var(--grad-dark);
}
.app-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 500px at 50% 0%, #000 0%, transparent 75%);
}

/* ---- 通用 ---- */
.glass {
  background: var(--card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow);
}
.screen { min-height: 100dvh; }
.scroll-lock { overflow: hidden; }

/* ---- 图标 ---- */
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); color: var(--text-2);
}
.icon-btn svg { width: 18px; height: 18px; }

/* ---- 登录/注册 ---- */
.auth-screen { display: flex; align-items: center; justify-content: center; padding: 28px 20px; }
.auth-wrap { width: 100%; max-width: 400px; }
.auth-logo { display: flex; align-items: center; gap: 14px; }
.auth-logo h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }
.auth-logo p { color: var(--green); font-weight: 700; letter-spacing: 3px; font-size: 12px; text-transform: uppercase; margin-top: 3px; }
.auth-tag { color: var(--text-2); margin: 14px 0 26px; font-size: 14.5px; line-height: 1.55; }
.auth-card { border-radius: var(--radius); padding: 20px; }
.seg { display: flex; background: rgba(0, 0, 0, 0.30); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.seg-btn {
  flex: 1; padding: 10px 0; border-radius: 9px; font-weight: 600; font-size: 14px;
  color: var(--text-2); transition: all 0.2s;
}
.seg-btn.active { background: var(--grad-main); color: #06121B; box-shadow: 0 6px 18px rgba(18, 230, 164, 0.35); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12.5px; color: var(--text-2); font-weight: 600; letter-spacing: 0.2px; }
.field input, .field select, .field textarea {
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid var(--stroke);
  border-radius: 12px; padding: 13px 14px; font-size: 15px;
  outline: none; transition: border 0.2s, box-shadow 0.2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(18, 230, 164, 0.55);
  box-shadow: 0 0 0 4px rgba(18, 230, 164, 0.12);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2397A0B5' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { resize: vertical; min-height: 74px; }
.btn-primary {
  width: 100%; padding: 14px 0; border-radius: 14px;
  background: var(--grad-main); color: #06121B;
  font-size: 15.5px; font-weight: 700; letter-spacing: 0.2px;
  box-shadow: 0 10px 30px rgba(18, 230, 164, 0.30);
  transition: transform 0.15s, filter 0.2s;
}
.btn-primary:active { transform: scale(0.98); filter: brightness(1.08); }
.btn-primary:disabled { filter: grayscale(0.7) brightness(0.7); box-shadow: none; cursor: not-allowed; }
.auth-note { text-align: center; font-size: 13px; color: var(--text-2); }
.auth-legal { text-align: center; color: var(--text-3); font-size: 11.5px; margin-top: 20px; line-height: 1.6; }

/* ---- 主框架 ---- */
.app-screen { padding-bottom: calc(86px + var(--safe-b)); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(9, 14, 26, 0.72);
  backdrop-filter: blur(18px); border-bottom: 1px solid var(--stroke);
  box-shadow: none;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.topbar-user {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-main); color: #06121B;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.view { padding: 16px 16px 8px; max-width: 480px; margin: 0 auto; }

/* ---- 底部导航 ---- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  padding: 10px 8px calc(10px + var(--safe-b));
  background: rgba(9, 14, 26, 0.80);
  border-top: 1px solid var(--stroke);
  backdrop-filter: blur(20px);
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-3); font-size: 10.5px; font-weight: 600; min-width: 64px; padding: 4px 8px; border-radius: 12px; transition: color 0.2s; }
.nav-item svg { width: 23px; height: 23px; }
.nav-item.active { color: var(--green); }
.nav-item.active svg { filter: drop-shadow(0 0 8px rgba(18, 230, 164, 0.5)); }

/* ---- 卡片 ---- */
.card { border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 14px; }
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card-title svg { width: 17px; height: 17px; color: var(--green); }

/* 余额卡 */
.balance-card {
  position: relative; overflow: hidden; border-radius: 22px; padding: 22px 20px;
  background:
    radial-gradient(240px 160px at 90% -20%, rgba(255, 197, 61, 0.18), transparent 60%),
    radial-gradient(280px 200px at -10% 120%, rgba(18, 230, 164, 0.18), transparent 60%),
    linear-gradient(150deg, #12233F 0%, #0C1730 55%, #0A1322 100%);
  border: 1px solid var(--stroke-2);
  box-shadow: var(--shadow);
}
.balance-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.06) 45%, transparent 60%);
}
.balance-label { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.balance-label svg { width: 15px; height: 15px; }
.balance-amount {
  font-size: clamp(30px, 9vw, 40px); font-weight: 800; letter-spacing: -1px;
  margin: 10px 0 6px;
  background: linear-gradient(120deg, #FFFFFF 20%, #BFFFE9 60%, #7FF2C9 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.balance-meta { display: flex; gap: 18px; font-size: 12px; color: var(--text-2); }
.balance-meta b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.balance-actions { display: flex; gap: 10px; margin-top: 16px; }
.balance-actions .btn-primary { padding: 11px 0; font-size: 14px; border-radius: 12px; }
.btn-ghost {
  flex: 1; padding: 11px 0; border-radius: 12px; font-size: 14px; font-weight: 700;
  background: rgba(255, 255, 255, 0.07); color: var(--text);
  border: 1px solid var(--stroke-2);
}
.balance-actions .btn-primary { flex: 1; }

/* ---- 签到模块 ---- */
.checkin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.checkin-streak { text-align: right; }
.checkin-streak .big {
  font-size: 26px; font-weight: 800; color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 197, 61, 0.35);
  font-variant-numeric: tabular-nums;
}
.checkin-streak .sub { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.checkin-progress { height: 7px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 4px 0 18px; }
.checkin-progress i { display: block; height: 100%; border-radius: 99px; background: var(--grad-gold); box-shadow: 0 0 12px rgba(255,197,61,0.5); transition: width 0.6s ease; }

.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day {
  position: relative; border-radius: 13px; padding: 8px 2px 7px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  min-height: 74px; justify-content: center;
}
.cal-day .d { font-size: 10px; color: var(--text-3); font-weight: 700; letter-spacing: 0.3px; }
.cal-day .r { font-size: 10.5px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cal-day .r small { font-size: 8.5px; font-weight: 600; color: var(--text-3); }
.cal-day .box { width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); }
.cal-day .box svg { width: 12px; height: 12px; }
.cal-day.claimed { background: linear-gradient(150deg, rgba(18,230,164,0.16), rgba(18,230,164,0.05)); border-color: rgba(18,230,164,0.4); }
.cal-day.claimed .box { background: var(--grad-main); color: #06121B; }
.cal-day.claimed .r { color: var(--green); }
.cal-day.today { border-color: var(--gold); background: linear-gradient(150deg, rgba(255,197,61,0.14), rgba(255,197,61,0.04)); box-shadow: 0 0 0 1px rgba(255,197,61,0.35), 0 0 22px rgba(255,197,61,0.18); animation: pulseGold 2s infinite; }
.cal-day.today .r { color: var(--gold); }
.cal-day.next { border-style: dashed; }
.cal-day.locked { opacity: 0.55; }
@keyframes pulseGold { 0%,100% { box-shadow: 0 0 0 1px rgba(255,197,61,0.35), 0 0 18px rgba(255,197,61,0.16); } 50% { box-shadow: 0 0 0 2px rgba(255,197,61,0.55), 0 0 30px rgba(255,197,61,0.3); } }

.btn-checkin {
  width: 100%; margin-top: 18px; padding: 15px 0; border-radius: 15px;
  font-size: 15.5px; font-weight: 800; letter-spacing: 0.3px;
  background: var(--grad-gold); color: #1A1203;
  box-shadow: 0 12px 34px rgba(255, 197, 61, 0.28);
  transition: transform 0.15s, filter 0.2s;
}
.btn-checkin:active { transform: scale(0.97); }
.btn-checkin:disabled { background: rgba(255,255,255,0.08); color: var(--text-3); box-shadow: none; border: 1px solid var(--stroke); }
.btn-checkin.loading { pointer-events: none; opacity: 0.7; }
.checkin-note { margin-top: 12px; text-align: center; font-size: 11.5px; color: var(--text-3); }

/* ---- 列表行 ---- */
.row-list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.row:last-child { border-bottom: none; }
.row-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.row-icon svg { width: 18px; height: 18px; }
.row-icon.green { background: rgba(18,230,164,0.12); color: var(--green); }
.row-icon.gold { background: rgba(255,197,61,0.12); color: var(--gold); }
.row-icon.blue { background: rgba(77,141,255,0.12); color: var(--blue); }
.row-icon.red { background: rgba(255,92,122,0.12); color: var(--red); }
.row-main { flex: 1; min-width: 0; }
.row-main .t { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main .s { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.row-right { text-align: right; flex: none; }
.row-right .amt { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.row-right .amt.plus { color: var(--green); }
.row-right .amt.minus { color: var(--red); }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 99px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.3px;
}
.badge.menunggu { background: rgba(255,197,61,0.14); color: var(--gold); }
.badge.selesai { background: rgba(18,230,164,0.14); color: var(--green); }
.badge.ditolak { background: rgba(255,92,122,0.14); color: var(--red); }
.badge.pending { background: rgba(77,141,255,0.14); color: var(--blue); }
.badge.shipped { background: rgba(18,230,164,0.14); color: var(--green); }
.badge.delivered { background: rgba(255,255,255,0.10); color: var(--text-2); }
.badge.cancelled { background: rgba(255,92,122,0.14); color: var(--red); }
.badge.active { background: rgba(18,230,164,0.14); color: var(--green); }
.badge.frozen { background: rgba(255,92,122,0.14); color: var(--red); }

/* ---- 商品网格 ---- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product {
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
}
.product-img { aspect-ratio: 1; width: 100%; object-fit: cover; background: #0D1626; display: block; }
.product-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-name { font-size: 13px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.product-price { font-size: 14.5px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-stock { font-size: 10.5px; color: var(--text-3); }
.btn-tukar {
  padding: 8px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 800;
  background: var(--grad-main); color: #06121B;
}
.btn-tukar:disabled { background: rgba(255,255,255,0.07); color: var(--text-3); }
.section-title { font-size: 16px; font-weight: 800; margin: 18px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--stroke-2), transparent); }
.empty {
  text-align: center; color: var(--text-3); font-size: 13px;
  padding: 34px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty svg { width: 40px; height: 40px; opacity: 0.5; }

/* ---- 弹窗 ---- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.7); backdrop-filter: blur(6px); }
.modal-sheet {
  position: relative; width: 100%; max-width: 460px;
  border-radius: 22px 22px 0 0; padding: 18px 18px calc(20px + var(--safe-b));
  background: rgba(13, 20, 36, 0.92);
  animation: slideUp 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 88dvh; overflow-y: auto;
}
.modal-small { border-radius: 22px; margin-bottom: 18vh; align-self: center; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { font-size: 17px; font-weight: 800; }
.modal-body { display: flex; flex-direction: column; gap: 14px; }
.mo-product { display: flex; gap: 12px; align-items: center; }
.mo-product img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.mo-product .n { font-weight: 700; font-size: 14px; }
.mo-product .p { color: var(--green); font-weight: 800; font-size: 13.5px; margin-top: 3px; }
.spec-group { display: flex; flex-direction: column; gap: 8px; }
.spec-group > span { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.06); border: 1px solid var(--stroke); color: var(--text-2);
}
.chip.selected { background: rgba(18,230,164,0.14); border-color: var(--green); color: var(--green); }
.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; font-size: 17px; font-weight: 700;
  background: rgba(255,255,255,0.07); color: var(--text);
}
.qty b { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.total-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px dashed var(--stroke-2); }
.total-row .l { font-size: 13px; color: var(--text-2); font-weight: 600; }
.total-row .v { font-size: 19px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---- Toast ---- */
.toast-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 99; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  padding: 11px 18px; border-radius: 13px; font-size: 13.5px; font-weight: 600;
  background: rgba(16, 26, 46, 0.92); border: 1px solid var(--stroke-2);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
  max-width: 88vw; text-align: center;
  animation: toastIn 0.25s ease;
}
.toast.ok { border-color: rgba(18,230,164,0.5); }
.toast.err { border-color: rgba(255,92,122,0.5); }
.toast.warn { border-color: rgba(255,197,61,0.5); }
@keyframes toastIn { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- 加载骨架 ---- */
.skeleton { border-radius: 14px; background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.05) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; height: 90px; margin-bottom: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- 表单内嵌按钮 ---- */
.btn-sub { width: 100%; padding: 13px 0; border-radius: 13px; font-size: 14.5px; font-weight: 800; background: var(--grad-main); color: #06121B; box-shadow: 0 8px 24px rgba(18,230,164,0.25); }
.btn-sub:disabled { filter: grayscale(0.7) brightness(0.7); box-shadow: none; }
.form-stack { display: flex; flex-direction: column; gap: 13px; }

/* 信息条 */
.info-banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 13px; font-size: 12.5px; line-height: 1.55;
  background: rgba(77,141,255,0.09); border: 1px solid rgba(77,141,255,0.25); color: #B9D4FF;
}
.info-banner svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.info-banner.gold { background: rgba(255,197,61,0.09); border-color: rgba(255,197,61,0.28); color: #FFE3A3; }

/* 渠道选择 */
.channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.channel {
  display: flex; align-items: center; gap: 8px; padding: 11px 12px;
  border-radius: 12px; border: 1px solid var(--stroke); background: rgba(255,255,255,0.05);
  font-size: 13px; font-weight: 700; color: var(--text-2); transition: all 0.15s;
}
.channel.selected { background: rgba(18,230,164,0.12); border-color: var(--green); color: var(--green); }
.channel .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

@media (min-width: 600px) {
  .view { max-width: 520px; }
  .modal-sheet { border-radius: 22px; margin-bottom: 0; }
}

/* ============================================================
   在线客服模块（Bantuan）
   ============================================================ */
.nav-item { position: relative; }
.nav-badge {
  position: absolute; top: -2px; right: 4px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 8px;
  background: var(--grad-main); color: #06121B;
  font-size: 9.5px; font-weight: 800; line-height: 16px; text-align: center;
  box-shadow: 0 0 10px rgba(18, 230, 164, 0.55);
}

/* 客服渠道卡 */
.cs-channels { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.cs-channel {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--stroke); background: rgba(255,255,255,0.05);
  color: var(--text); transition: all 0.15s;
}
.cs-channel:active { background: rgba(18,230,164,0.10); border-color: var(--green); }
.cs-channel b { display: block; font-size: 13.5px; }
.cs-channel small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.cs-ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.cs-ico svg { width: 20px; height: 20px; }
.cs-ico.wa { background: rgba(37, 211, 102, 0.14); color: #25D366; }
.cs-ico.tg { background: rgba(0, 172, 238, 0.14); color: #00ACEE; }
.cs-ico.mail { background: rgba(77, 141, 255, 0.14); color: var(--blue); }

/* 对话气泡 */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.admin { align-self: flex-start; align-items: flex-start; }
.msg-bubble {
  padding: 11px 14px; border-radius: 15px;
  font-size: 13.5px; line-height: 1.5; word-break: break-word;
}
.msg.user .msg-bubble {
  background: var(--grad-main); color: #06121B; font-weight: 600;
  border-bottom-right-radius: 5px;
}
.msg.admin .msg-bubble {
  background: rgba(255,255,255,0.09); color: var(--text);
  border: 1px solid var(--stroke); border-bottom-left-radius: 5px;
}
.msg-time { font-size: 10px; color: var(--text-3); margin-top: 4px; padding: 0 3px; }
