/* ===== Chat CS (member) ===== */
.ic-chat{width:16px;height:14px;border:2.2px solid #fff;border-radius:7px 7px 7px 2px;display:inline-block;position:relative}
.ic-chat::after{content:"";position:absolute;left:3px;top:3px;width:6px;height:2px;background:#fff;border-radius:2px;box-shadow:0 3px 0 #fff}
.ic-wa{width:16px;height:16px;border:2.2px solid #fff;border-radius:50% 50% 50% 2px;display:inline-block}
.ic-send{width:0;height:0;border-left:14px solid #fff;border-top:8px solid transparent;border-bottom:8px solid transparent;margin-left:3px}
.ch-page{display:flex;flex-direction:column;background:var(--bg)}
.ch-bar .ch-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ch-bar .bar-title{font-size:17px;line-height:1.1}
.ch-st{font-size:11.5px;opacity:.85;display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-st::before{content:"";width:7px;height:7px;border-radius:50%;background:#ffd23f;flex:none}
.ch-st.on::before{background:var(--lime);box-shadow:0 0 0 3px rgba(200,242,107,.3)}
.ch-scroll{display:flex;flex-direction:column}
.ch-msgs{display:flex;flex-direction:column;gap:6px;padding:14px var(--gr) 8px var(--gl);flex:1;justify-content:flex-end;min-height:100%}
.ch-b{max-width:82%;padding:9px 13px;border-radius:16px;font-size:14.5px;line-height:1.45;white-space:pre-wrap;word-break:break-word;animation:chIn .18s var(--spring)}
@keyframes chIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.ch-b.m{align-self:flex-end;background:var(--red);color:#fff;border-bottom-right-radius:5px}
.ch-b.a{align-self:flex-start;background:var(--card);color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:5px;box-shadow:var(--sh)}
.ch-b.s{align-self:center;background:var(--red-soft);color:var(--red-ink);font-size:12.5px;text-align:center;max-width:92%;padding:7px 12px;border-radius:12px}
.ch-b time{display:block;font-size:10.5px;opacity:.6;margin-top:3px;text-align:right}
.ch-b.a time{text-align:left}
.ch-day{align-self:center;font-size:11px;font-weight:700;color:var(--muted);background:var(--card);border:1px solid var(--line);padding:3px 10px;border-radius:999px;margin:8px 0 4px}
.ch-hi{align-self:stretch;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:var(--sh);margin-bottom:6px}
.ch-hi b{display:block;font-size:15px;margin-bottom:4px}.ch-hi p{margin:0;font-size:13px;color:var(--muted);line-height:1.5}
.ch-chips{display:flex;flex-wrap:wrap;gap:8px;padding:4px var(--gr) 14px var(--gl)}
.ch-chips button{font:inherit;font-size:13px;font-weight:700;padding:8px 13px;border-radius:999px;border:1.5px solid var(--red);background:var(--card);color:var(--red-ink);}
.ch-chips button:active{transform:scale(.97)}
.ch-trxpick{align-self:stretch;display:flex;flex-direction:column;gap:6px}
.ch-trxpick button{display:flex;gap:8px;align-items:center;text-align:left;font:inherit;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--ink)}
.ch-trxpick button span{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;font-size:13px}.ch-trxpick button small{color:var(--muted);font-size:11.5px}
.ch-trxpick .pill{flex:none}
.ch-rate{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px var(--gr);background:var(--warn-soft);color:var(--warn);font-size:13px;font-weight:700;flex:none}
.ch-rate #chStars button{background:none;border:0;font-size:24px;color:#d9c48a;padding:0 2px;line-height:1}
.ch-rate #chStars button.on{color:#f5a623}
.ch-compose{display:flex;gap:8px;align-items:flex-end;padding:8px var(--gr) calc(8px + var(--sb)) var(--gl);background:var(--card);border-top:1px solid var(--line);flex:none}
.ch-compose textarea{flex:1;resize:none;font:inherit;font-size:15px;line-height:1.4;padding:11px 14px;min-height:44px;height:44px;max-height:120px;box-sizing:border-box;border:1.5px solid var(--line);border-radius:20px;background:var(--bg);color:var(--ink);outline:none}
.ch-compose textarea:focus{border-color:var(--red)}
.ch-send{width:44px;height:44px;border-radius:50%;border:0;background:var(--red);display:grid;place-items:center;flex:none;box-shadow:0 4px 12px rgba(14,122,85,.3)}
.ch-send:disabled{opacity:.5}
.ch-b.m.pending{opacity:.6}
.ch-b.m.gagal{background:var(--bad)}

.ch-bot{display:block;font-size:11px;font-weight:600;color:var(--mute,#6b7280);margin-bottom:3px;letter-spacing:.1px}

.ch-typing{padding:9px 13px 10px}.ch-typing .dots{display:inline-flex;gap:4px;padding:3px 1px}
.ch-typing .dots i{width:7px;height:7px;border-radius:50%;background:var(--muted);opacity:.35;animation:chDot 1.1s infinite ease-in-out}
.ch-typing .dots i:nth-child(2){animation-delay:.15s}.ch-typing .dots i:nth-child(3){animation-delay:.3s}
@keyframes chDot{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.ch-prods{align-self:flex-start;display:flex;flex-direction:column;gap:6px;width:min(86%,360px);margin:-2px 0 4px;animation:chIn .18s var(--spring)}
.ch-prod{display:flex;align-items:center;gap:10px;width:100%;text-align:left;font:inherit;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:14px;padding:9px 10px 9px 9px;box-shadow:var(--sh);cursor:pointer}
.ch-prod:active{transform:scale(.98)}
.ch-prod i{width:34px;height:34px;flex:none;border-radius:10px;background:var(--red-soft);display:grid;place-items:center;font-style:normal;font-size:17px}
.ch-prod span{flex:1;min-width:0;display:flex;flex-direction:column}.ch-prod b{font-size:13.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-prod small{color:var(--muted);font-size:11.5px}.ch-prod em{font-style:normal;font-weight:800;font-size:13px;white-space:nowrap}
.ch-prod u{text-decoration:none;font-size:12px;font-weight:800;color:#fff;background:var(--red);border-radius:999px;padding:6px 11px;flex:none}

.ch-rows{align-self:flex-start;width:min(90%,380px);background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh);margin:-2px 0 4px;overflow:hidden;animation:chIn .18s var(--spring)}
.ch-row{display:flex;align-items:center;gap:8px;padding:9px 10px 9px 12px;border-top:1px solid var(--line2)}.ch-row:first-child{border-top:0}
.ch-row span{flex:1;min-width:0;display:flex;flex-direction:column}.ch-row b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-row small{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-mini{flex:none;font:inherit;font-size:12px;font-weight:800;border-radius:999px;padding:6px 12px;border:0;background:var(--red);color:#fff;text-decoration:none;cursor:pointer}
.ch-mini.wa{background:#e7f8ee;color:#128c4a;border:1px solid #bfe8cf}
.ch-acts{align-self:flex-start;display:flex;flex-wrap:wrap;gap:6px;max-width:90%;margin:-2px 0 4px}
.ch-acts button{font:inherit;font-size:12.5px;font-weight:700;padding:7px 12px;border-radius:999px;border:1.5px solid var(--red);background:var(--card);color:var(--red-ink);cursor:pointer}
.ch-acts button.off,.ch-acts button[data-on]{border-color:var(--line);color:var(--muted);font-weight:600}
