/* Tampilan aplikasi chat — mobile-first, tema hijau. */
:root {
  --brand: #0f7b5f;
  --brand-2: #14a37d;
  --brand-ink: #ffffff;
  --bg: #f4f7f5;
  --panel: #ffffff;
  --line: #e3ebe7;
  --ink: #15211c;
  --muted: #66766f;
  --hover: #f0f5f2;
  --active: #e3f1eb;
  --chat-bg: #e7efe9;
  --dot: rgba(15, 123, 95, 0.08);
  --bubble-in: #ffffff;
  --bubble-out: #d4f3e3;
  --tick-read: #1d8fe1;
  --danger: #c53030;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 40, 30, 0.12);
  color-scheme: light;
}
:root[data-theme="dark"] {
    --brand: #19a37f;
    --brand-2: #22c493;
    --bg: #0e1513;
    --panel: #141d1a;
    --line: #23302b;
    --ink: #e5eee9;
    --muted: #8fa199;
    --hover: #1a2521;
    --active: #1f2e29;
    --chat-bg: #0b1210;
    --dot: rgba(34, 196, 147, 0.06);
    --bubble-in: #1b2622;
    --bubble-out: #0f5a45;
    --tick-read: #4fb6ff;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex; flex-direction: column; height: 100dvh;
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
svg { width: 22px; height: 22px; fill: currentColor; display: block; }

/* ---------- boot ---------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); }
.boot-logo { width: 72px; height: 72px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

/* ---------- auth ---------- */
.auth {
  flex: 1; min-height: 0; overflow-y: auto;
  display: grid; place-items: center; padding: 24px 16px;
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--brand) 0, var(--brand) 38%, transparent 38.2%),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--panel);
  border-radius: 22px; box-shadow: var(--shadow); padding: 28px 24px;
}
.brand { text-align: center; margin-bottom: 18px; }
.brand-logo { width: 64px; height: 64px; }
.brand h1 { margin: 8px 0 2px; font-size: 26px; letter-spacing: -.5px; }
.brand p { margin: 0; color: var(--muted); }
.tabs { display: flex; background: var(--hover); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.tab { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.tab.active { background: var(--panel); color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.form { display: flex; flex-direction: column; gap: 12px; }
.form label, .label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form input, .form textarea, .picker input {
  width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: 11px;
  padding: 11px 12px; outline: none; font-weight: 400; font-size: 15px; color: var(--ink); resize: vertical;
}
.form input:focus, .form textarea:focus, .picker input:focus { border-color: var(--brand); }
.form-error { color: var(--danger); margin: 0; min-height: 0; font-size: 13px; }
.form-error:empty { display: none; }
.btn { border: 0; border-radius: 11px; padding: 11px 16px; font-weight: 600; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-2); }
.btn.primary:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: var(--hover); }
.btn.danger { background: none; color: var(--danger); border: 1.5px solid var(--line); }
.row-btns { display: flex; gap: 8px; justify-content: center; }

/* ---------- layout ---------- */
.main { flex: 1; min-height: 0; display: flex; }
.sidebar, .chat-pane { height: 100%; min-width: 0; }
.sidebar { width: 100%; display: flex; flex-direction: column; background: var(--panel); }
.chat-pane { display: none; flex: 1; }
.main.in-chat .sidebar { display: none; }
.main.in-chat .chat-pane { display: flex; }

@media (min-width: 860px) {
  body { background: linear-gradient(var(--brand) 0 120px, var(--bg) 120px); }
  .main { width: 100%; max-width: 1400px; margin: 0 auto; padding: 18px; }
  .main > * { box-shadow: var(--shadow); }
  .sidebar { width: 380px; flex: none; border-right: 1px solid var(--line); border-radius: 16px 0 0 16px; overflow: hidden; }
  .chat-pane { display: flex; border-radius: 0 16px 16px 0; overflow: hidden; background: var(--panel); }
  .main.in-chat .sidebar { display: flex; }
  .back { display: none !important; }
}

/* ---------- bar ---------- */
.bar {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--brand); color: var(--brand-ink); min-height: 60px; flex: none;
}
.bar-title { font-weight: 700; font-size: 20px; letter-spacing: -.3px; flex: 1; }
.bar-actions { display: flex; gap: 2px; }
.icon-btn { border: 0; background: none; padding: 8px; border-radius: 50%; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(255,255,255,.15); }
.avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; }
.menu {
  position: absolute; right: 10px; top: 54px; z-index: 30; background: var(--panel); color: var(--ink);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 170px; display: flex; flex-direction: column;
}
.menu button { border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 8px; }
.menu button:hover { background: var(--hover); }

.search { position: relative; padding: 10px 12px; border-bottom: 1px solid var(--line); flex: none; }
.search svg { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input {
  width: 100%; border: 0; background: var(--hover); border-radius: 22px; padding: 10px 14px 10px 38px; outline: none;
}
.lists { flex: 1; overflow-y: auto; }
.section-label { padding: 12px 16px 4px; font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .6px; }

/* ---------- avatar ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; color: #fff; font-weight: 700; background: var(--line); }
.avatar.sm { width: 40px; height: 40px; font-size: 15px; }
.avatar.md { width: 50px; height: 50px; font-size: 18px; }
.avatar.xl { width: 120px; height: 120px; font-size: 42px; }
.bar .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }

/* ---------- daftar chat ---------- */
.chat-item {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 0; background: none; text-align: left;
}
.chat-item:hover { background: var(--hover); }
.chat-item.active { background: var(--active); }
.chat-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: -10px; }
.chat-item .row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chat-item .name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .time { font-size: 12px; color: var(--muted); flex: none; }
.chat-item .time.unread { color: var(--brand-2); font-weight: 700; }
.chat-item .preview { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 3px; overflow: hidden; white-space: nowrap; }
.chat-item .preview > span:last-child, .chat-item .preview { text-overflow: ellipsis; overflow: hidden; }
.badge { background: var(--brand-2); color: #fff; border-radius: 12px; min-width: 21px; height: 21px; padding: 0 6px; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.tag { font-size: 11px; color: var(--brand); border: 1px solid var(--brand); border-radius: 6px; padding: 1px 6px; }
.empty { text-align: center; color: var(--muted); padding: 40px 24px; }
.empty p { margin: 4px 0; }
.empty.small { padding: 16px; font-size: 14px; }

/* ---------- placeholder ---------- */
.placeholder { flex: 1; display: grid; place-content: center; text-align: center; color: var(--muted); padding: 24px; background: var(--panel); border-bottom: 6px solid var(--brand); }
.placeholder-logo { width: 96px; height: 96px; margin: 0 auto 8px; opacity: .9; }
.placeholder h2 { color: var(--ink); margin: 6px 0; }

/* ---------- tampilan chat ---------- */
.chat-view { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-bar { gap: 4px; padding-left: 6px; }
.chat-head { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 2px 4px; border-radius: 10px; }
.chat-head-text { display: flex; flex-direction: column; min-width: 0; }
.chat-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-sub { font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.messages {
  flex: 1; overflow-y: auto; padding: 10px 4% 12px;
  background-color: var(--chat-bg);
  background-image: radial-gradient(var(--dot) 1.5px, transparent 1.6px), radial-gradient(var(--dot) 1.5px, transparent 1.6px);
  background-size: 26px 26px; background-position: 0 0, 13px 13px;
  overscroll-behavior: contain;
}
.load-more { text-align: center; font-size: 13px; color: var(--muted); padding: 6px; }
.msg-list { display: flex; flex-direction: column; }
.day-sep, .sys-msg { text-align: center; margin: 10px 0 6px; }
.day-sep span, .sys-msg span {
  display: inline-block; background: var(--panel); color: var(--muted); font-size: 12px;
  padding: 5px 12px; border-radius: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.06); max-width: 85%;
}
.sys-msg span { background: #fff8d6; color: #5e5121; }
[data-theme="dark"] .sys-msg span { background: #2a2717; color: #e6d99b; }

.msg { display: flex; margin-top: 2px; }
.msg.out { justify-content: flex-end; }
.bubble {
  position: relative; max-width: min(78%, 560px); padding: 6px 9px 7px; border-radius: 12px;
  background: var(--bubble-in); box-shadow: 0 1px 1px rgba(0,0,0,.08); word-wrap: break-word; overflow-wrap: anywhere;
}
.msg.out .bubble { background: var(--bubble-out); }
.bubble.first { margin-top: 6px; }
.msg.in .bubble.first { border-top-left-radius: 3px; }
.msg.out .bubble.first { border-top-right-radius: 3px; }
.sender { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.msg-text { white-space: pre-wrap; display: inline; }
.meta { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; line-height: 1; }
.msg-img { display: block; max-width: 100%; width: 300px; max-height: 360px; object-fit: cover; border-radius: 9px; margin-bottom: 4px; cursor: zoom-in; background: var(--line); }
.ticks { display: inline-flex; color: var(--muted); }
.ticks svg { width: 16px; height: 16px; stroke-width: 2.25; }
.ticks.read { color: var(--tick-read); }
.preview .ticks svg { width: 17px; height: 17px; }

.composer {
  display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px; padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: var(--chat-bg); flex: none;
}
.composer .icon-btn { color: var(--muted); width: 44px; height: 44px; }
.composer .icon-btn:hover { background: var(--hover); }
.composer textarea {
  flex: 1; resize: none; border: 0; outline: none; border-radius: 22px; padding: 11px 16px; max-height: 140px;
  background: var(--panel); box-shadow: 0 1px 1px rgba(0,0,0,.06); line-height: 1.35;
}
.send-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.send-btn:disabled { opacity: .6; }
.send-btn svg { width: 21px; height: 21px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5, 20, 15, .5); display: grid; place-items: end center; }
.modal-card {
  width: 100%; max-width: 460px; max-height: 92dvh; background: var(--panel); border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column; box-shadow: var(--shadow); animation: up .18s ease-out;
}
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 560px) { .modal { place-items: center; } .modal-card { border-radius: 20px; } }
.modal-head { display: flex; align-items: center; padding: 14px 10px 6px 20px; }
.modal-head h2 { flex: 1; margin: 0; font-size: 18px; }
.modal-head .icon-btn:hover { background: var(--hover); }
.modal-body { padding: 8px 20px 22px; overflow-y: auto; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.avatar-edit { display: flex; justify-content: center; }
.preview-img { width: 100%; max-height: 50dvh; object-fit: contain; border-radius: 12px; background: var(--hover); }
.profile-view { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.profile-view h3 { margin: 10px 0 0; font-size: 20px; }
.profile-view p { margin: 2px 0; }
.profile-view .bio { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip { border: 0; background: var(--active); color: var(--brand); border-radius: 16px; padding: 5px 11px; font-size: 13px; font-weight: 600; }
.picker { display: flex; flex-direction: column; gap: 6px; }
.picker-results { max-height: 240px; overflow-y: auto; }
.member-list { margin: 0 -20px; }
.member-list .chat-item { cursor: default; }

/* ---------- viewer & toast ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.9); display: grid; place-items: center; cursor: zoom-out; }
.viewer img { max-width: 96vw; max-height: 92dvh; border-radius: 6px; }
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 90;
  background: #1b2a24; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); max-width: 90vw;
}

/* ---------- lencana verifikasi ---------- */
.verified { display: inline-flex; vertical-align: -3px; margin-left: 4px; flex: none; }
.verified svg { width: 16px; height: 16px; }
.verified-seal { fill: #1d9bf0; }
.verified-tick { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bar .verified-seal { stroke: #fff; stroke-width: 1.2; }
/* v2.7.8: tingkat centang. Biru = default (di atas). Emas = statis. Merah = animasi halus. */
.verified { position: relative; }
.verified.tier-gold .verified-seal { fill: #f4b400; }
.verified.tier-gold .verified-ring { fill: none; stroke: #b37f00; stroke-width: .9; opacity: .55; }
.verified.tier-gold .verified-tick { stroke: #4a3200; }
[data-theme="dark"] .verified.tier-gold .verified-seal { fill: #f7c21f; }
.verified.tier-red .verified-seal { fill: #e0245e; }
[data-theme="dark"] .verified.tier-red .verified-seal { fill: #f0283c; }
.verified.tier-red svg { position: relative; z-index: 1; }
.verified.tier-red .vb-glow {
  position: absolute; inset: -28%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(240, 40, 60, .55), rgba(240, 40, 60, 0));
  opacity: .25; transform: scale(.8); will-change: transform, opacity;
  animation: vb-glow 2.8s ease-in-out infinite;
}
[data-theme="dark"] .verified.tier-red .vb-glow { background: radial-gradient(closest-side, rgba(255, 70, 90, .7), rgba(255, 70, 90, 0)); }
.verified.tier-red .vb-sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.verified.tier-red .vb-sheen::after {
  content: ''; position: absolute; top: -10%; bottom: -10%; left: 0; width: 45%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-130%) skewX(-12deg); opacity: 0; will-change: transform, opacity;
  animation: vb-sheen 2.8s ease-in-out infinite;
}
@keyframes vb-glow {
  0%, 100% { opacity: .2; transform: scale(.8); }
  50% { opacity: .6; transform: scale(1.05); }
}
@keyframes vb-sheen {
  0%, 18% { transform: translateX(-130%) skewX(-12deg); opacity: 0; }
  22% { opacity: 1; }
  52% { transform: translateX(260%) skewX(-12deg); opacity: 1; }
  56%, 100% { transform: translateX(260%) skewX(-12deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .verified.tier-red .vb-glow { animation: none; opacity: .3; transform: none; }
  .verified.tier-red .vb-sheen::after { animation: none; opacity: 0; }
}
.name { display: inline-flex; align-items: center; min-width: 0; }
.name .name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chat-title, .name-wrap { display: flex; align-items: center; min-width: 0; }
.chat-title .name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sender { display: flex; align-items: center; }
.profile-view h3 .verified svg, .profile-name .verified svg { width: 20px; height: 20px; }
.profile-name { text-align: center; margin: 4px 0 0; font-size: 19px; }

/* ---------- banner situs ---------- */
.site-banner {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: #fff4c2; color: #4d3f05; font-size: 14px; border-bottom: 1px solid #ecdb8f; z-index: 20;
}
.site-banner-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.site-banner .icon-btn { padding: 4px; }
.site-banner .icon-btn svg { width: 18px; height: 18px; }
.site-banner .icon-btn:hover { background: rgba(0,0,0,.06); }
[data-theme="dark"] .site-banner { background: #3a3210; color: #f3e6a6; border-color: #4f4416; }

/* ---------- pesan: lapor & pengumuman ---------- */
.msg.in .bubble { padding-right: 26px; }
.msg-more {
  position: absolute; top: 2px; right: 3px; border: 0; background: none; color: var(--muted);
  font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 6px; opacity: 0; transition: opacity .15s;
}
.bubble:hover .msg-more, .msg-more:focus-visible { opacity: 1; }
@media (hover: none), (max-width: 859px) { .msg-more { opacity: .5; } }
.msg-more:hover { background: var(--hover); }
.bubble.announce { border-left: 4px solid var(--brand); max-width: min(88%, 620px); padding-right: 10px; }
.bubble.announce .sender { color: var(--brand); }
.read-only-note { flex: none; text-align: center; font-size: 13px; color: var(--muted); padding: 14px; background: var(--chat-bg); border-top: 1px solid var(--line); }
.report-quote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--hover); border-radius: 8px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.small { font-size: 13px; }
.form select, .admin-tools select, .admin-actions select {
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 9px 10px; font: inherit;
}
.btn.owner-btn { background: var(--active); color: var(--brand); }

/* ---------- panel owner ---------- */
.admin { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; }
.admin .bar-title { font-size: 18px; }
.admin-tabs { flex: none; display: flex; gap: 4px; overflow-x: auto; padding: 8px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
.admin-tab { flex: none; border: 0; background: none; padding: 8px 14px; border-radius: 18px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.admin-tab.active { background: var(--active); color: var(--brand); }
.admin-body { flex: 1; overflow-y: auto; padding: 14px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.admin-stack { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--panel); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.stat-val { font-size: 24px; font-weight: 700; color: var(--brand); }
.stat-label { font-size: 13px; color: var(--muted); }
.card { background: var(--panel); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05); display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 16px; }
.card p { margin: 0; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); }
.check-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.check-icon svg { width: 14px; height: 14px; stroke-width: 3; }
.check-icon.ok { background: #16a34a; }
.check-icon.warn { background: #d97706; }
.check-text { display: flex; flex-direction: column; font-size: 14px; }
.admin-tools { display: flex; gap: 8px; }
.admin-tools input { flex: 1; min-width: 0; border: 1.5px solid var(--line); background: var(--panel); border-radius: 22px; padding: 10px 14px; outline: none; }
.admin-tools input:focus { border-color: var(--brand); }
.admin-list { background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.admin-row { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; }
.admin-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.admin-row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-row-title .name { font-weight: 600; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.warn { background: #fdecc8; color: #8a4b00; }
[data-theme="dark"] .btn.warn { background: #3d2c0b; color: #f4c46b; }
.btn:disabled { opacity: .5; cursor: default; }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--hover); color: var(--muted); }
.pill.accent { background: var(--active); color: var(--brand); }
.pill.blue { background: #dbeafe; color: #1d4ed8; }
.pill.red { background: #fde2e2; color: #b42318; }
.pill.green { background: #dcfce7; color: #15803d; }
[data-theme="dark"] .pill.blue { background: #172554; color: #93c5fd; }
[data-theme="dark"] .pill.red { background: #3b1414; color: #fca5a5; }
[data-theme="dark"] .pill.green { background: #0f2e1b; color: #86efac; }
.chip.on { background: var(--brand); color: #fff; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.row-btns.start { justify-content: flex-start; }
.banner-preview { background: #fff4c2; color: #4d3f05; padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.log-row { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.log-row:last-child { border-bottom: 0; }
.log-detail { white-space: pre-wrap; overflow-wrap: anywhere; }
.card.report { gap: 6px; }

/* =====================================================================
   v2: tab bawah, kontak/ID, status, saluran, panggilan, composer kaya
   ===================================================================== */
:root { --accent-soft: rgba(15, 123, 95, .12); --overlay: rgba(5, 20, 15, .55); }
[data-theme="dark"] { --accent-soft: rgba(34, 196, 147, .14); }
.center { text-align: center; }
.pad { padding: 8px 16px; margin: 0; }
.row-inline { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- panel & tab bawah ---------- */
.panes { flex: 1; min-height: 0; position: relative; }
.pane { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pane .lists { flex: 1; overflow-y: auto; padding-bottom: 88px; }
.tabbar {
  flex: none; display: flex; justify-content: space-around; background: var(--panel);
  border-top: 1px solid var(--line); padding: 6px 4px; padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.tabbtn { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.tabicon { position: relative; display: grid; place-items: center; width: 56px; height: 30px; border-radius: 16px; transition: background .15s; }
.tabbtn.active { color: var(--ink); }
.tabbtn.active .tabicon { background: var(--accent-soft); color: var(--brand); }
.tabicon .avatar.xs { width: 24px; height: 24px; }
.tabbadge { position: absolute; top: -2px; right: 6px; background: var(--brand-2); color: #fff; border-radius: 10px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; display: grid; place-items: center; }
.tabbadge.dot { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 2px; right: 14px; }
.fab {
  position: absolute; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 18px; border: 0;
  background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 5;
}
.fab:hover { background: var(--brand-2); }
.fab.mini { width: 44px; height: 44px; border-radius: 14px; bottom: 86px; right: 24px; background: var(--panel); color: var(--brand); border: 1px solid var(--line); }
.fab.mini svg { width: 20px; height: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; }
.section-head h3 { margin: 0; font-size: 18px; }
.search.inner { border-bottom: 0; padding-top: 6px; }
.chat-item[role=button] { cursor: pointer; }

/* ---------- avatar dengan cincin status & centang ---------- */
.av-wrap { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; }
.av-wrap.ring { padding: 3px; }
.av-wrap.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2.5px; background: var(--muted);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; }
.av-wrap.ring.unseen::before { background: conic-gradient(var(--brand-2), #7dd3a8, var(--brand), var(--brand-2)); opacity: 1; }
.av-wrap.ring > .avatar { box-shadow: 0 0 0 2px var(--panel); }
.av-wrap.ring.md > .avatar { width: 44px; height: 44px; }
.av-wrap.ring.sm > .avatar { width: 34px; height: 34px; }
.av-check { position: absolute; right: 2px; bottom: 2px; background: var(--panel); border-radius: 50%; padding: 2px; display: grid; line-height: 0; }
.av-check .verified { margin: 0; }
.av-wrap.xl .av-check .verified svg { width: 28px; height: 28px; }
.av-wrap.xl .av-check { right: 4px; bottom: 4px; }
.av-wrap.add .av-plus { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-2); color: #fff; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--panel); }

/* ---------- profil & sampul ---------- */
.profile-card { background: var(--panel); }
.profile-card.in-modal { margin: -8px -20px 0; }
.cover { position: relative; height: 150px; overflow: hidden; background: var(--line); }
.cover img, .cover video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-edit { position: absolute; right: 10px; bottom: 10px; border: 0; background: rgba(0,0,0,.5); color: #fff; padding: 6px 12px; border-radius: 16px; font-size: 13px; font-weight: 600; }
.profile-top { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 18px 18px; text-align: center; margin-top: -60px; position: relative; }
.profile-top > .av-wrap > .avatar.xl { box-shadow: 0 0 0 4px var(--panel); }
.profile-top .profile-name { margin: 8px 0 0; font-size: 21px; display: inline-flex; align-items: center; gap: 2px; justify-content: center; }
.profile-top p { margin: 0; }
.profile-top .bio { margin-top: 6px; max-width: 420px; white-space: pre-wrap; }
.profile-top .btn { margin-top: 10px; min-width: 200px; }
.id-card { margin-top: 12px; display: flex; align-items: center; gap: 4px; background: var(--hover); border-radius: 14px; padding: 8px 8px 8px 16px; }
.id-card-text { display: flex; flex-direction: column; text-align: left; margin-right: 8px; }
.id-num { font-size: 18px; word-break: break-all; }
.id-card .icon-btn { color: var(--brand); }
.id-card .icon-btn:hover, .action-tile:hover { background: var(--active); }
.social-row { display: flex; gap: 10px; margin-top: 10px; justify-content: center; }
.social-link { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); color: var(--ink); text-decoration: none; }
.social-link svg { width: 20px; height: 20px; }
.social-link.sm { width: 26px; height: 26px; }
.social-link.sm svg { width: 15px; height: 15px; }
.social-link.s-youtube { color: #e02424; }
.social-link.s-instagram { color: #c13584; }
.social-link.s-facebook { color: #1877f2; }
a.social-link:hover { background: var(--active); transform: translateY(-1px); }
.social-input { gap: 4px !important; }
.action-tiles { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.action-tile { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 10px 6px; min-width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--brand); font-size: 13px; font-weight: 600; }
.profile-top .btn.ghost, .profile-top .btn.danger { min-width: 220px; }
.settings { padding: 4px 0 24px; border-top: 8px solid var(--bg); }
.setting-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 15px; }
button.setting-row:hover { background: var(--hover); }
.setting-row.danger { color: var(--danger); }
.setting-row.accent { color: var(--brand); font-weight: 600; }
.segmented { display: inline-flex; background: var(--hover); border-radius: 10px; padding: 3px; }
.segmented button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.segmented button.on { background: var(--panel); color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ---------- header chat ---------- */
.chat-sub.typing { color: #c7f9e4; font-style: italic; }
[data-theme="dark"] .chat-sub.typing { color: var(--brand-2); }
#callBtns .icon-btn { width: 42px; height: 42px; }

/* ---------- gelembung pesan v2 ---------- */
.msg { position: relative; }
.msg.has-react { margin-bottom: 14px; }
.msg.out .bubble { padding-right: 26px; }
.msg.out .msg-more { right: 3px; }
.bubble.deleted .deleted-text { font-style: italic; color: var(--muted); }
.edited { font-style: italic; margin-right: 3px; }
.quote { display: flex; gap: 8px; align-items: stretch; background: rgba(0,0,0,.05); border-left: 4px solid var(--brand-2); border-radius: 8px; padding: 5px 8px; margin-bottom: 4px; cursor: pointer; min-width: 160px; }
[data-theme="dark"] .quote { background: rgba(255,255,255,.06); }
.quote-body { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13px; }
.quote-body strong { color: var(--brand); font-size: 12.5px; }
.quote-body span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.quote-thumb { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; }
.msg.flash .bubble { animation: flash 1.2s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px var(--brand-2); } }
.reacts { position: absolute; bottom: -14px; display: inline-flex; align-items: center; gap: 1px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1px 6px; font-size: 13px; box-shadow: 0 1px 2px rgba(0,0,0,.1); z-index: 1; }
.msg.in .reacts { left: 10px; }
.msg.out .reacts { right: 10px; }
.reacts .mine { filter: drop-shadow(0 0 1px var(--brand-2)); }
.reacts .rcount { font-size: 11px; color: var(--muted); margin-left: 3px; }
.msg-video { display: block; width: 300px; max-width: 100%; max-height: 380px; border-radius: 9px; margin-bottom: 4px; background: #000; }
.bubble.sticker { background: none !important; box-shadow: none; padding: 0 0 4px; }
.bubble.sticker .meta { background: rgba(0,0,0,.45); color: #fff; border-radius: 8px; padding: 3px 6px; margin-top: -24px; position: relative; }
.bubble.sticker .meta .ticks { color: #fff; }
.bubble.sticker .msg-more { background: var(--panel); }
.sticker-img { width: 150px; height: 150px; object-fit: contain; display: block; }
.voice-player { display: flex; align-items: center; gap: 8px; min-width: 220px; padding: 4px 0 2px; }
.vp-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.vp-btn svg { width: 20px; height: 20px; }
.vp-bar { flex: 1; accent-color: var(--brand); min-width: 0; }
.vp-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; }
.msg.channel { justify-content: center; }
.bubble.channel-post { max-width: min(92%, 620px); width: 100%; padding-right: 30px; }
.msg.channel .bubble.first { border-top-left-radius: 12px; }

/* ---------- composer v2 ---------- */
.composer-box { flex: 1; min-width: 0; display: flex; align-items: flex-end; background: var(--panel); border-radius: 24px; box-shadow: 0 1px 1px rgba(0,0,0,.06); padding: 0 4px; }
.composer-box textarea { box-shadow: none; padding: 11px 6px; background: none; border-radius: 0; }
.composer-box .icon-btn { width: 42px; height: 44px; flex: none; }
.composer-box .icon-btn.on { color: var(--brand); }
.send-btn .i-mic { display: none; }
.send-btn.mic .i-mic { display: block; margin-left: 0; }
.send-btn.mic .i-send { display: none; }
.reply-bar { flex: none; display: flex; align-items: center; gap: 6px; background: var(--chat-bg); padding: 6px 8px 0 12px; }
.reply-bar-body { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--panel); border-left: 4px solid var(--brand-2); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.reply-bar-body strong { color: var(--brand); }
.reply-bar-body span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar .icon-btn { color: var(--muted); }
.rec-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); background: var(--chat-bg); }
.rec-bar .icon-btn { color: var(--danger); }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #e02424; animation: pulse 1s infinite; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.rec-hint { flex: 1; }
.picker-panel { flex: none; height: 300px; max-height: 42dvh; background: var(--panel); border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.picker-tabs { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.picker-tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 16px; font-weight: 600; color: var(--muted); }
.picker-tabs button.on { background: var(--active); color: var(--brand); }
.picker-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.emoji-wrap { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.emoji-tabs { display: flex; gap: 2px; padding: 4px 6px; overflow-x: auto; flex: none; }
.emoji-tabs button { border: 0; background: none; padding: 6px 7px; border-radius: 8px; color: var(--muted); display: grid; place-items: center; }
.emoji-tabs button svg { width: 19px; height: 19px; }
.emoji-tabs button.on { color: var(--brand); background: var(--hover); }
.emoji-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); padding: 4px 6px 10px; align-content: start; }
.emoji { border: 0; background: none; font-size: 26px; line-height: 1; padding: 6px 0; border-radius: 8px; }
.emoji:hover { background: var(--hover); }
.sticker-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; padding: 8px; align-content: start; }
.sticker-btn, .sticker-add { border: 0; background: none; border-radius: 12px; aspect-ratio: 1; padding: 4px; }
.sticker-btn:hover { background: var(--hover); }
.sticker-btn img { width: 100%; height: 100%; object-fit: contain; }
.sticker-add { border: 2px dashed var(--line); color: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; }
.sticker-add svg { width: 26px; height: 26px; }
.crop-stage { position: relative; width: 260px; height: 260px; margin: 0 auto; overflow: hidden; border-radius: 16px; background: repeating-conic-gradient(var(--hover) 0 25%, var(--panel) 0 50%) 0 0 / 20px 20px; touch-action: none; cursor: grab; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; pointer-events: none; }
.crop-frame { position: absolute; inset: 0; border: 2px solid var(--brand-2); border-radius: 16px; pointer-events: none; }

/* ---------- sheet (menu pesan) ---------- */
.sheet { position: fixed; inset: 0; z-index: 72; background: var(--overlay); display: grid; place-items: end center; }
.sheet-card { width: 100%; max-width: 440px; max-height: 80dvh; overflow-y: auto; background: var(--panel); border-radius: 20px 20px 0 0; padding: 10px 0 max(14px, env(safe-area-inset-bottom)); animation: up .16s ease-out; display: flex; flex-direction: column; }
.sheet-card .emoji-wrap { height: 340px; }
@media (min-width: 560px) { .sheet { place-items: center; } .sheet-card { border-radius: 20px; } }
.sheet-title { margin: 6px 18px 8px; font-size: 17px; }
.sheet-note { margin: 0 18px 6px; }
.sheet-item { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: none; padding: 13px 20px; text-align: left; font-size: 15px; }
.sheet-item:hover { background: var(--hover); }
.sheet-item.danger { color: var(--danger); }
.si-icon { width: 24px; text-align: center; }
.quick-react { display: flex; justify-content: space-between; gap: 2px; padding: 4px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.quick-react button { border: 0; background: var(--hover); font-size: 24px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.quick-react button.on { background: var(--active); box-shadow: 0 0 0 2px var(--brand-2); }
.quick-react button.more { font-size: 20px; color: var(--muted); }

/* ---------- penampil status ---------- */
.story-viewer { position: fixed; inset: 0; z-index: 65; background: #000; color: #fff; display: flex; flex-direction: column; }
.story-bars { position: absolute; top: max(8px, env(safe-area-inset-top)); left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
.sbar { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.sbar i { display: block; height: 100%; width: 0; background: #fff; }
.sbar i.full { width: 100%; }
.story-head { position: absolute; top: calc(max(8px, env(safe-area-inset-top)) + 10px); left: 4px; right: 4px; display: flex; align-items: center; gap: 6px; z-index: 3; }
.story-head .icon-btn { color: #fff; }
.story-who { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.story-who-text { display: flex; flex-direction: column; min-width: 0; }
.story-who-text small { opacity: .8; }
.story-stage { flex: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.story-stage img, .story-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.story-text { width: 100%; height: 100%; display: grid; place-items: center; padding: 40px 28px; font-size: clamp(22px, 5vw, 34px); font-weight: 600; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; }
.story-caption { position: absolute; left: 0; right: 0; bottom: 70px; text-align: center; padding: 10px 16px; background: linear-gradient(transparent, rgba(0,0,0,.6)); white-space: pre-wrap; }
.story-nav { position: absolute; top: 70px; bottom: 80px; width: 35%; border: 0; background: none; z-index: 2; }
.story-nav.prev { left: 0; }
.story-nav.next { right: 0; width: 65%; }
.story-foot { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); z-index: 3; display: flex; justify-content: center; }
.story-views-btn { border: 0; background: rgba(255,255,255,.15); color: #fff; padding: 8px 18px; border-radius: 18px; font-weight: 600; }
.story-reply-form { display: flex; gap: 8px; width: 100%; max-width: 560px; }
.story-reply { flex: 1; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.3); color: #fff; border-radius: 22px; padding: 10px 16px; outline: none; }
.story-compose { border-radius: 16px; min-height: 260px; display: grid; place-items: center; padding: 16px; }
.story-text-in { width: 100%; background: transparent !important; border: 0 !important; color: #fff !important; font-size: 24px !important; font-weight: 600; text-align: center; resize: none !important; }
.story-text-in::placeholder { color: rgba(255,255,255,.7); }
@media (min-width: 860px) { .story-viewer .story-stage { max-width: 520px; margin: 0 auto; width: 100%; } }

/* ---------- panggilan ---------- */
.call-screen { position: fixed; inset: 0; z-index: 80; background: radial-gradient(circle at 50% 30%, #1b5b48, #07120e 70%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: max(40px, env(safe-area-inset-top)) 16px max(34px, env(safe-area-inset-bottom)); }
.remote-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.local-video { position: absolute; right: 14px; top: max(14px, env(safe-area-inset-top)); width: 110px; height: 150px; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.6); z-index: 3; background: #222; transform: scaleX(-1); }
.call-info { position: relative; z-index: 2; text-align: center; margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.call-info h2 { margin: 10px 0 0; font-size: 24px; }
.call-status { margin: 0; opacity: .85; font-variant-numeric: tabular-nums; }
.call-screen.video:has(.remote-video:not(.hidden)) .call-info .avatar { display: none; }
.call-screen.video:has(.remote-video:not(.hidden)) .call-info { text-shadow: 0 1px 4px rgba(0,0,0,.7); margin-top: 0; }
.call-actions { position: relative; z-index: 2; display: flex; gap: 22px; justify-content: center; }
.call-btn { width: 62px; height: 62px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.call-btn svg { width: 28px; height: 28px; }
.call-btn.off { background: #fff; color: #111; }
.call-btn.red { background: #e02424; }
.call-btn.green { background: #16a34a; animation: ringpulse 1.4s ease-out infinite; }
@keyframes ringpulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.7); } 100% { box-shadow: 0 0 0 18px rgba(22,163,74,0); } }
.call-arrow { display: inline-flex; margin-right: 2px; color: var(--brand-2); }
.call-arrow svg { width: 16px; height: 16px; stroke-width: 2.25; }
.call-arrow.missed { color: var(--danger); }
.call-row.missed .name { color: var(--danger); }
.call-again { color: var(--brand); }
.call-again:hover { background: var(--hover) !important; }

/* ---------- penampil foto/video ---------- */
.viewer video { max-width: 96vw; max-height: 92dvh; }

/* ---------- tab bawah tersembunyi saat chat dibuka di HP ---------- */
@media (min-width: 860px) {
  .pane .lists { padding-bottom: 80px; }
  .fab { right: 22px; bottom: 22px; }
}
.action-tiles { flex-wrap: nowrap; width: 100%; max-width: 380px; }
.action-tile { flex: 1; min-width: 0; padding: 10px 2px; font-size: 12px; white-space: nowrap; }
.action-tile span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* mode gelap: bilah atas gelap seperti panel, hijau tetap sebagai aksen */
[data-theme="dark"] .bar { background: #17241f; color: var(--ink); }
[data-theme="dark"] .bar .icon-btn:hover { background: rgba(255,255,255,.08); }
[data-theme="dark"] .bar-title { color: var(--brand-2); }
[data-theme="dark"] .chat-bar .chat-title { color: var(--ink); }
@media (min-width: 860px) { [data-theme="dark"] body { background: linear-gradient(#10251d 0 120px, var(--bg) 120px); } }

/* ---------- ikon (v2.0.1): set ikon garis seragam, lihat static/icons.js ---------- */
svg.ic { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
svg.ic-brand { fill: currentColor; stroke: none; }
.tabicon svg.ic { width: 23px; height: 23px; }
.tabbtn.active .tabicon svg.ic { stroke-width: 2.1; }
.fab svg.ic { width: 24px; height: 24px; stroke-width: 2; }
.call-btn svg.ic { width: 26px; height: 26px; stroke-width: 1.8; }
.call-btn .off-icon, .call-btn.off .on-icon { display: none; }
.call-btn.off .off-icon { display: block; }
.btn svg.ic, .cover-edit svg.ic, .chip svg.ic, .story-views-btn svg.ic { width: 17px; height: 17px; flex: none; }
.btn:has(> svg), .cover-edit, .story-views-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 4px; }
.chip svg.ic { width: 14px; height: 14px; stroke-width: 2.4; }
.pager .btn svg.ic.flip { transform: scaleX(-1); }
.si-icon { display: grid; place-items: center; color: var(--muted); }
.sheet-item.danger .si-icon { color: inherit; }
.si-icon svg.ic { width: 21px; height: 21px; }
.set-label { display: inline-flex; align-items: center; gap: 14px; }
.set-label svg.ic { width: 21px; height: 21px; color: var(--muted); flex: none; }
.setting-row.danger .set-label svg.ic { color: inherit; }
svg.ic.chev { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pv-icon { width: 16px !important; height: 16px !important; flex: none; color: var(--muted); }
.msg-more { display: grid; place-items: center; }
.msg-more svg.ic { width: 16px; height: 16px; stroke-width: 2.2; }
.deleted-text { display: inline-flex !important; align-items: center; gap: 6px; }
.deleted-text svg.ic { width: 15px; height: 15px; }
.sender.with-icon { gap: 6px; }
.sender.with-icon svg.ic { width: 15px; height: 15px; stroke-width: 2.1; }
.site-banner-icon { width: 20px; height: 20px; flex: none; }
.banner-preview { display: flex; align-items: center; gap: 8px; }
.banner-preview svg.ic { width: 17px; height: 17px; flex: none; }
.quick-react button.more svg.ic { width: 20px; height: 20px; }
.avatar.initials svg.ic { width: 55%; height: 55%; color: #fff; stroke-width: 1.8; }
.action-tile svg.ic { width: 22px; height: 22px; }
.vp-btn svg { width: 18px; height: 18px; }
.social-link svg.ic-brand { width: 19px; height: 19px; }
.social-link.sm svg.ic-brand { width: 14px; height: 14px; }
.social-link.s-x { color: var(--ink); }
[data-theme="dark"] .social-link.s-youtube { color: #ff4e45; }
[data-theme="dark"] .social-link.s-instagram { color: #e1306c; }
[data-theme="dark"] .social-link.s-facebook { color: #4b9bff; }
#newChannelBtn svg.ic { width: 15px; height: 15px; stroke-width: 2.3; }
.row-btns .btn { white-space: nowrap; }
.row-btns { flex-wrap: wrap; }

/* ---------- v2.1.0: menu atas, tab bawah, bot disematkan, pesan terkirim ---------- */
.bar { gap: 8px; }
.bar-actions { gap: 4px; align-items: center; }
.bar .icon-btn { width: 40px; height: 40px; padding: 0; color: inherit; }
.bar .icon-btn svg { width: 22px; height: 22px; }
.menu {
  top: calc(100% - 6px); right: 8px; min-width: 232px; max-width: calc(100vw - 16px);
  padding: 6px; gap: 2px; border-radius: 14px; border: 1px solid var(--line);
  transform-origin: top right; animation: menu-in .14s ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.menu button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 46px;
  padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink);
  white-space: nowrap; cursor: pointer;
}
.menu button svg { width: 20px; height: 20px; flex: none; color: var(--muted); pointer-events: none; }
.menu button span { pointer-events: none; overflow: hidden; text-overflow: ellipsis; }
.menu button:hover, .menu button:focus-visible { background: var(--hover); outline: none; }
.menu button:active { background: var(--active); }
.menu button.danger, .menu button.danger svg { color: var(--danger); }
.menu button.menu-bot { font-weight: 700; color: var(--brand); }
.menu button.menu-bot svg { color: var(--brand); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 8px; }

/* tab bawah: tinggi seragam, ikon & label rata tengah */
.tabbar { padding: 4px 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); gap: 2px; min-height: 64px; align-items: stretch; }
.tabbtn { justify-content: center; gap: 3px; padding: 4px 0 2px; min-width: 0; font-size: 11.5px; letter-spacing: .1px; -webkit-tap-highlight-color: transparent; }
.tablabel { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
.tabicon { width: 60px; height: 32px; }
.tabicon svg { width: 22px; height: 22px; }
.tabbtn.active { color: var(--brand); }
.tabbtn.active .tablabel { font-weight: 700; }
.tabicon .avatar.xs { width: 26px; height: 26px; border-radius: 50%; }
.tabbadge { top: -3px; right: 8px; }

/* bot disematkan di atas daftar chat */
.chat-item.pinned { background: var(--accent-soft); }
.chat-item.pinned:hover { background: var(--active); }
.chat-item.pinned .chat-item-body { border-bottom-color: transparent; }
.bot-avatar { background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important; }
.bot-avatar svg.ic { width: 26px; height: 26px; stroke-width: 2; color: #fff; }
.bot-tag { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 1px 5px; }
svg.ic.pin-ic { width: 15px; height: 15px; color: var(--muted); transform: rotate(35deg); flex: none; }

/* pesan yang sedang dikirim */
.msg.pending .bubble { opacity: .78; }
.ticks.pending svg { width: 13px; height: 13px; stroke-width: 2.2; opacity: .8; }

@media (max-width: 859px) {
  .search { padding: 8px 12px; }
  .chat-item { padding: 10px 14px; }
}
/* Hapus akun */
.setting-row.delete-acct { margin-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }
.btn.danger-solid { background: var(--danger); color: #fff; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.danger-solid:disabled { opacity: .45; cursor: not-allowed; }
.danger-note { border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--text, inherit); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.danger-note strong { color: var(--danger); }
.danger-note ul { margin: 6px 0 0; padding-left: 18px; }
.danger-note li { margin: 2px 0; }

/* ---------- Tombol bot (inline keyboard gaya Telegram) ---------- */
.bubble.has-ikb { min-width: min(260px, 72vw); }
.ikb { display: flex; flex-direction: column; gap: 4px; margin: 8px -4px -2px; }
.ikb-row { display: flex; gap: 4px; }
.ikb-btn {
  flex: 1 1 0; min-width: 0; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 7px 10px; border: 0; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.2;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, transparent); cursor: pointer;
  transition: background .15s, transform .05s;
}
.ikb-btn:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.ikb-btn:active { transform: scale(.98); }
.ikb-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ikb-ext { width: 13px; height: 13px; flex: none; opacity: .75; }
.ikb-btn.busy { opacity: .6; pointer-events: none; }
.ikb-btn.busy::after { content: ''; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ikbspin .7s linear infinite; flex: none; }
@keyframes ikbspin { to { transform: rotate(360deg); } }

/* keyboard balasan bot (chip di atas kolom ketik) */
.bot-kb { flex: none; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px 44px 4px 10px; background: var(--chat-bg); border-top: 1px solid var(--line); max-height: 34vh; overflow-y: auto; }
.bot-kb-row { display: flex; gap: 6px; }
.bot-kb-btn { flex: 1 1 0; min-width: 0; min-height: 38px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 7px 10px; font-size: 14px; font-weight: 600; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bot-kb-btn:active { background: var(--hover); }
.bot-kb-close { position: absolute; top: 6px; right: 4px; }

/* ---------- Wallpaper ---------- */
.messages.has-wp .day-sep span, .messages.has-wp .sys-msg span { box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.messages.has-wp .bubble { box-shadow: 0 1px 2px rgba(0,0,0,.16); }
.messages.has-wp .load-more, .messages.has-wp .empty { background: var(--panel); border-radius: 10px; padding: 6px 12px; align-self: center; margin: 6px auto; width: fit-content; }
.wp-form { gap: 10px; }
.wp-scope { align-self: flex-start; }
.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 520px) { .wp-grid { grid-template-columns: repeat(4, 1fr); } }
.wp-tile {
  position: relative; aspect-ratio: 9 / 16; border-radius: 12px; border: 2px solid transparent; overflow: hidden; padding: 0;
  background-color: var(--chat-bg); background-size: cover; background-position: center; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.wp-tile.on { border-color: var(--brand); }
.wp-tile.wp-default { background-image: radial-gradient(var(--dot) 1.5px, transparent 1.6px), radial-gradient(var(--dot) 1.5px, transparent 1.6px); background-size: 14px 14px; background-position: 0 0, 7px 7px; }
.wp-tile.wp-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--brand); background: var(--panel); border: 2px dashed var(--line); }
.wp-tile.wp-upload svg { width: 26px; height: 26px; }
.wp-tile.wp-upload .wp-label { position: static; background: none; color: inherit; text-shadow: none; }
.wp-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 6px; font-size: 11.5px; font-weight: 600; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.55)); text-shadow: 0 1px 2px rgba(0,0,0,.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-tile.wp-default .wp-label { color: var(--brand); background: none; text-shadow: none; }
.wp-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; }
.wp-check svg { width: 14px; height: 14px; }
.wp-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wp-swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); padding: 0; cursor: pointer; }
.wp-swatch.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--panel) inset; }
.wp-picker { width: 38px; height: 38px; border: 0; padding: 0; background: none; cursor: pointer; }

/* ---------- Halaman info ---------- */
.info-page { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.55; }
.info-page h3 { font-size: 15px; margin: 4px 0 2px; color: var(--brand); }
.info-page p { margin: 0; }
.info-page ul { margin: 2px 0 0; padding-left: 20px; }
.info-page li { margin: 3px 0; }
.info-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 0 4px; }
.info-hero h2 { margin: 4px 0 0; }
.info-logo { width: 64px; height: 64px; }
.info-links { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.linkish { border: 0; background: none; color: var(--brand); font-weight: 600; padding: 4px 0; cursor: pointer; font-size: 13.5px; }
.auth-legal { font-size: 12.5px; color: var(--muted); text-align: center; margin: 2px 0 0; line-height: 1.5; }
.auth-legal a, .auth-foot a { color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-foot { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.auth-legal a { white-space: nowrap; }
.auth-legal { color: var(--ink); opacity: .8; }
.link-preview { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.link-preview svg { flex: none; color: var(--brand); margin-top: 2px; }
.link-url { word-break: break-all; }
a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }

/* ---- pesan audio (musik) ala Telegram ---- */
.audio-player { display: flex; align-items: center; gap: 10px; width: min(300px, 68vw); padding: 4px 2px 2px; }
.au-btn { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; flex: none; padding: 0;
  background: var(--brand) center / cover no-repeat; color: #fff; display: grid; place-items: center; cursor: pointer; }
.au-btn.has-cover::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,.35); }
.au-ico { position: relative; display: grid; place-items: center; }
.au-ico svg.ic { width: 22px; height: 22px; }
.au-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.au-top { display: flex; align-items: flex-start; gap: 6px; }
.au-text { flex: 1; min-width: 0; }
.au-title { font-weight: 600; font-size: 14.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-artist { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-player.active .au-title { color: var(--brand); }
.au-dl { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); }
.au-dl:hover { background: var(--hover); }
.au-dl svg.ic { width: 18px; height: 18px; }
.au-bar { --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 0; background: transparent; cursor: pointer; touch-action: none; }
.au-bar::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--brand) var(--p), color-mix(in srgb, var(--muted) 35%, transparent) var(--p)); }
.au-bar::-moz-range-track { height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 35%, transparent); }
.au-bar::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--brand); }
.au-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); margin-top: -4.5px; border: 0; }
.au-bar::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 0; }
.au-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -2px; }
.bubble.k-audio .msg-text { margin-top: 4px; }

/* mini player di bawah header chat */
.audio-mini { position: relative; display: flex; align-items: center; gap: 2px; padding: 2px 6px; background: var(--panel); border-bottom: 1px solid var(--line); overflow: hidden; }
.audio-mini.hidden { display: none; }
.audio-mini .icon-btn { width: 36px; height: 36px; }
.audio-mini .icon-btn svg.ic { width: 18px; height: 18px; }
.audio-mini .am-play { color: var(--brand); }
.am-text { flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: 2px 6px; cursor: pointer; color: var(--ink); }
.am-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-artist { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-prog { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--brand); width: 0; transition: width .25s linear; }

/* dialog kirim audio */
.au-send-head { display: flex; gap: 12px; align-items: center; }
.au-send-cover { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.au-send-cover.none { display: grid; place-items: center; background: var(--active); color: var(--brand); }
.au-send-cover.none svg.ic { width: 30px; height: 30px; }
.au-send-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

/* ================================================================ Game dalam chat (v2.5) */
.msg.game-row { justify-content: center; }
.bubble.game-card { width: min(94%, 400px); max-width: 400px; padding: 10px 12px 8px; border-radius: 16px !important;
  background: var(--bubble-in); border: 1.5px solid var(--line); box-shadow: 0 2px 10px rgba(10, 40, 30, .08); }
.bubble.game-card .meta { margin-top: 4px; }
.g-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; flex-wrap: wrap; }
.g-emoji { font-size: 20px; line-height: 1; }
.g-title { font-weight: 800; font-size: 15px; color: var(--brand); flex: 1; min-width: 0; }
.g-pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: var(--brand); color: #fff; }
.g-pill.soft { background: var(--active); color: var(--brand); }
.g-cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: var(--muted); background: var(--hover); padding: 2px 8px; border-radius: 8px; margin-bottom: 6px; }
.g-clue { font-size: 14.5px; line-height: 1.4; margin: 2px 0 8px; }
.g-puzzle { font-size: 44px; line-height: 1.2; text-align: center; letter-spacing: 4px; margin: 4px 0 8px; word-break: break-word; }
.g-mask { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center; margin: 4px 0 8px; }
.g-word { display: inline-flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.g-tile { width: 24px; height: 30px; display: inline-grid; place-items: center; font-weight: 800; font-size: 15px;
  border-radius: 6px; background: var(--active); color: var(--brand); border-bottom: 3px solid var(--brand); }
.g-tile.blank { background: var(--hover); border-bottom-color: var(--line); }
.g-mask.solved .g-tile { background: #d9f7e6; color: #0b6b4f; border-bottom-color: #14a37d; }
[data-theme="dark"] .g-mask.solved .g-tile { background: #0f3b2d; color: #7ee2b8; }
.g-dash { font-weight: 800; align-self: center; color: var(--muted); }
.g-question { font-size: 30px; font-weight: 800; text-align: center; margin: 6px 0 10px; letter-spacing: .5px; }
.g-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 8px; }
.g-btn { border: 0; border-radius: 10px; padding: 9px 12px; font-weight: 700; font-size: 13.5px; background: var(--active); color: var(--brand); min-height: 38px; }
.g-btn:hover:not(:disabled) { filter: brightness(.96); }
.g-btn:disabled { opacity: .5; cursor: default; }
.g-btn.primary { background: var(--brand); color: #fff; }
.g-btn.ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.g-btn.busy { opacity: .6; pointer-events: none; }
.g-opt { font-size: 18px; min-height: 46px; }
.g-opt.correct, .g-opt.correct:disabled { background: #14a37d; color: #fff; opacity: 1; }
.g-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.g-actions .g-btn { flex: 1 1 auto; }
.g-timer { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 4px 0 2px; }
.g-timer-bar { flex: 1; height: 6px; border-radius: 4px; background: var(--hover); overflow: hidden; }
.g-timer-bar i { display: block; height: 100%; width: 100%; background: var(--brand-2); transition: width .5s linear; }
.g-timer.low { color: var(--danger); }
.g-timer.low .g-timer-bar i { background: var(--danger); }
.g-timer-txt { min-width: 44px; }
.g-worth { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.g-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.g-result { font-size: 14px; padding: 7px 10px; border-radius: 10px; background: var(--hover); margin-top: 4px; }
.g-result.ok { background: #e3f8ee; color: #0b5a43; }
[data-theme="dark"] .g-result.ok { background: #0f3b2d; color: #9ff0cb; }
.g-mini { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.g-mini-item.me b, .g-rank li.me .g-rank-name { color: var(--brand); }
.g-sum-title { font-size: 17px; font-weight: 800; text-align: center; margin: 2px 0 4px; }
.g-rank, .g-lb { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.g-rank li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; background: var(--hover); font-size: 14px; }
.g-rank li.me { background: var(--active); }
.g-rank-pos { width: 24px; text-align: center; font-weight: 800; flex: none; }
.g-rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.g-rank-pts { font-weight: 800; color: var(--brand); flex: none; }
.g-empty { text-align: center; padding: 10px; }
.g-vs { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.g-player { padding: 4px 9px; border-radius: 10px; border: 1.5px solid transparent; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-player.turn { border-color: var(--brand-2); background: var(--active); }
.g-vs-sep { color: var(--muted); font-size: 12px; font-weight: 700; }
.g-status { text-align: center; font-size: 13.5px; color: var(--muted); margin: 6px 0; font-weight: 600; }
.g-status.me { color: var(--brand); font-weight: 800; }
.g-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: min(100%, 240px); margin: 4px auto 6px; }
.g-cell { aspect-ratio: 1; border: 0; border-radius: 12px; background: var(--hover); font-size: 34px; font-weight: 900; line-height: 1; display: grid; place-items: center; color: var(--ink); }
.g-cell:not(:disabled):hover { background: var(--active); }
.g-cell:disabled { cursor: default; }
.g-cell.c-x { color: #e5484d; }
.g-cell.c-o { color: #2a6fdb; }
.g-cell.win { background: #fff1b8; }
[data-theme="dark"] .g-cell.win { background: #4a3d0d; }
/* sheet game */
.g-sheet { display: flex; flex-direction: column; padding-bottom: 6px; }
.g-sheet-head { display: flex; align-items: center; gap: 4px; padding-left: 6px; }
.g-sheet-head .sheet-title { margin-left: 8px; }
.g-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 14px 10px; }
.g-tile-btn { border: 1.5px solid var(--line); background: var(--bg); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; color: var(--ink); }
.g-tile-btn:hover { border-color: var(--brand-2); background: var(--active); }
.g-tile-emoji { font-size: 28px; line-height: 1.2; }
.g-tile-name { font-weight: 800; font-size: 14px; }
.g-tile-desc { font-size: 12px; color: var(--muted); }
.g-opt-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 10px 18px 6px; }
.g-chips { padding: 0 18px; }
.g-chips .chip { padding: 7px 13px; font-size: 13.5px; }
.g-sheet > .chips + .chips { margin-top: 8px; }
.g-start { margin: 16px 18px 4px; }
.g-lb-body { padding: 0 14px 8px; }
.g-lb li { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; }
.g-lb li.me { background: var(--active); }
.g-lb-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.g-lb-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-lb-name small { font-size: 12px; }
.si-emoji { font-size: 18px; }
.g-confirm-btns { display: flex; gap: 8px; padding: 6px 18px 4px; }
.g-confirm-btns .btn { flex: 1; }


/* ---------- LIVE (v2.6): baris "Live sekarang" + layar live gaya TikTok ---------- */
.live-go-btn { color: #e11d48; }
.live-go-btn svg.ic { color: #e11d48; }
.live-row { min-height: 8px; }
.live-strip { display: flex; gap: 6px; overflow-x: auto; padding: 6px 12px 10px; scrollbar-width: none; }
.live-strip::-webkit-scrollbar { display: none; }
.live-card { flex: none; width: 84px; border: 0; background: none; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 12px; }
.live-card:hover { background: var(--hover); }
.live-av { position: relative; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, #ff2d55, #ff7a45); }
.live-av .avatar { display: block; border: 2px solid var(--panel); }
.live-badge { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: #ff2d55; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 1px 6px; border-radius: 5px; border: 2px solid var(--panel); }
.live-card-name { max-width: 100%; font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.live-card-name .name-wrap { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; }
.live-card-name .name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-card-name .verified svg { width: 13px; height: 13px; }
.live-card-sub { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); }
.live-card-sub svg.ic { width: 13px; height: 13px; }
.pad { padding: 4px 16px 10px; margin: 0; }

.live-screen { position: fixed; inset: 0; z-index: 70; background: #000; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.lv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.live-screen.mirror .lv-video { transform: scaleX(-1); }
/* siaran layar / video mendatar: tampil utuh (contain) di atas latar hitam */
.live-screen.src-screen .lv-video, .live-screen.landscape .lv-video { object-fit: contain; }
@media (min-width: 860px) { .live-screen .lv-video { object-fit: contain; } }
.lv-tap { position: absolute; inset: 0; z-index: 1; }
.lv-hearts { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.lv-float { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; animation: lvfloat 2.2s ease-out forwards; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.lv-float.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; animation: lvpop 1s ease-out forwards; }
.lv-float svg { width: 100%; height: 100%; }
@keyframes lvfloat {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0); }
  12% { opacity: 1; transform: translate(0, -20px) scale(1) rotate(var(--rot)); }
  100% { opacity: 0; transform: translate(var(--dx), -260px) scale(.9) rotate(calc(var(--rot) * -1)); }
}
@keyframes lvpop {
  0% { opacity: 0; transform: scale(.3) rotate(var(--rot)); }
  25% { opacity: 1; transform: scale(1.15) rotate(var(--rot)); }
  100% { opacity: 0; transform: translateY(-90px) scale(1) rotate(var(--rot)); }
}
.lv-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: max(10px, env(safe-area-inset-top)) 10px 18px; background: linear-gradient(rgba(0,0,0,.55), transparent); display: flex; flex-direction: column; gap: 6px; }
.lv-top-row { display: flex; align-items: center; gap: 8px; }
.lv-top-row.sub { padding-left: 4px; font-size: 13px; }
.lv-host { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.32); border-radius: 24px; padding: 3px 12px 3px 3px; max-width: max-content; }
.lv-host .avatar.sm { width: 36px; height: 36px; font-size: 13px; }
.lv-host-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lv-host-name { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 14px; min-width: 0; }
.lv-host-name .name-text, .lv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-host-name .verified svg { width: 14px; height: 14px; }
.lv-title { font-size: 12px; opacity: .85; max-width: 52vw; }
.lv-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; border: 0; background: rgba(0,0,0,.35); color: #fff; border-radius: 16px; padding: 6px 10px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-pill svg.ic { width: 16px; height: 16px; }
.lv-icon { color: #fff; background: rgba(0,0,0,.25) !important; border-radius: 50%; }
.lv-live { background: #ff2d55; color: #fff; font-weight: 800; font-size: 11.5px; letter-spacing: .6px; padding: 2px 8px; border-radius: 5px; display: inline-flex; align-items: center; gap: 5px; }
.lv-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.2s ease-in-out infinite; }
.lv-live.ended { background: #555; }
.lv-live.ended::before { animation: none; }
.lv-dur { font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.lv-likes { display: inline-flex; align-items: center; gap: 4px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.lv-likes svg.ic { width: 15px; height: 15px; color: #ff4d6d; }
.lv-side { position: absolute; right: 8px; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lv-ctl { border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; width: 60px; }
.lv-ctl svg.ic { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); backdrop-filter: blur(6px); stroke-width: 2; }
.lv-ctl.off svg.ic { background: #fff; color: #111; }
.lv-ctl.red svg.ic { background: #e02424; }
.lv-ctl-label { font-size: 11px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.lv-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 40px 10px max(10px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.lv-bottom > * { pointer-events: auto; }
.lv-feed { max-height: 34dvh; width: min(78%, 420px); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); }
.lv-feed::-webkit-scrollbar { display: none; }
.lv-row { display: flex; align-items: flex-start; gap: 7px; font-size: 13.5px; line-height: 1.3; animation: up .18s ease-out; }
.lv-row .avatar.xs { width: 26px; height: 26px; font-size: 10px; flex: none; }
.lv-row-body { display: flex; flex-direction: column; min-width: 0; background: rgba(0,0,0,.28); padding: 4px 10px; border-radius: 12px; }
.lv-row-name { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12px; opacity: .85; }
.lv-row-name .verified svg { width: 12px; height: 12px; }
.lv-row-text { white-space: pre-wrap; overflow-wrap: anywhere; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.lv-row.join { font-size: 12.5px; opacity: .9; background: rgba(255,255,255,.14); align-self: flex-start; padding: 3px 10px; border-radius: 12px; }
.lv-row.join .lv-row-name { font-size: 12.5px; opacity: 1; }
.lv-row.host .lv-row-body { background: rgba(255,45,85,.35); }
.lv-host-tag { background: #ff2d55; color: #fff; font-size: 9.5px; font-weight: 800; border-radius: 4px; padding: 0 4px; margin-left: 3px; }
.lv-form { display: flex; align-items: center; gap: 8px; }
.lv-input { flex: 1; min-width: 0; border: 0; outline: none; background: rgba(255,255,255,.18); color: #fff; border-radius: 22px; padding: 11px 16px; backdrop-filter: blur(6px); }
.lv-input::placeholder { color: rgba(255,255,255,.75); }
.lv-send, .lv-heart-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; }
.lv-heart-btn { background: #ff2d55; }
.lv-heart-btn:active { transform: scale(.9); }
.lv-send svg.ic, .lv-heart-btn svg.ic { width: 21px; height: 21px; }
.lv-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; width: min(88%, 380px); background: rgba(0,0,0,.6); backdrop-filter: blur(8px); border-radius: 18px; padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.lv-msg p { margin: 0; }
.lv-msg-btns { display: flex; gap: 10px; justify-content: center; }
.lv-msg-btns .btn.ghost { background: rgba(255,255,255,.16); color: #fff; }
.lv-ended-title { font-size: 20px; font-weight: 800; }
.lv-why { opacity: .85; font-size: 14px; }
.lv-stats { display: flex; justify-content: center; gap: 22px; }
.lv-stats span { display: flex; flex-direction: column; }
.lv-stats strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.lv-stats small { opacity: .75; }
.live-screen.is-ended .lv-video { filter: blur(14px) brightness(.5); }
.lv-sound { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 96px); transform: translateX(-50%); z-index: 6; border: 0; border-radius: 20px; background: rgba(0,0,0,.6); color: #fff; padding: 8px 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.lv-sound svg.ic { width: 18px; height: 18px; }
/* pratinjau "Mulai Live" */
.lv-setup { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 40px 14px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.lv-setup-form { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.lv-title-in { border: 0; outline: none; border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.16); color: #fff; font-size: 16px; font-weight: 600; }
.lv-title-in::placeholder { color: rgba(255,255,255,.7); }
.lv-seg { display: flex; gap: 6px; background: rgba(255,255,255,.12); padding: 4px; border-radius: 14px; }
.lv-seg-btn { flex: 1; border: 0; border-radius: 10px; padding: 9px 10px; background: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; }
.lv-seg-btn svg.ic { width: 18px; height: 18px; }
.lv-seg-btn.on { background: #fff; color: #111; }
.lv-hint { margin: 0; font-size: 12.5px; opacity: .8; text-align: center; }
.lv-go { border: 0; border-radius: 26px; padding: 14px; background: #ff2d55; color: #fff; font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.lv-go:disabled { opacity: .6; }
.lv-go svg.ic { width: 20px; height: 20px; }
.live-screen.mode-preview .lv-side { bottom: calc(260px + env(safe-area-inset-bottom)); }
.live-screen.mode-preview .lv-msg { top: 38%; }
/* layar mendatar / layar penuh: komentar di kiri bawah lebih sempit, kontrol tetap di kanan */
@media (orientation: landscape) and (max-height: 560px) {
  .lv-feed { max-height: 42dvh; width: min(46%, 380px); }
  .lv-side { bottom: 76px; gap: 6px; }
  .lv-ctl svg.ic { width: 40px; height: 40px; padding: 9px; }
  .lv-ctl-label { display: none; }
  .lv-form { width: min(60%, 520px); }
  .lv-setup { padding-top: 12px; }
  .live-screen.mode-preview .lv-side { bottom: 12px; }
}
@media (min-width: 860px) {
  .lv-bottom { padding-left: 24px; padding-right: 90px; }
  .lv-form { max-width: 520px; }
}
.lv-viewer { cursor: default; }
.lv-viewer-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lv-viewer-name small { font-size: 12px; }

/* ---------- LIVE v2.6.1: mode lanskap, kualitas, sumber YouTube ---------- */
.lv-yt { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 100%; aspect-ratio: 16 / 9; max-height: 100%; border: 0; background: #000; z-index: 0; }
.live-screen.mode-preview .lv-yt { top: 34%; }
.live-screen.src-youtube .lv-tap { pointer-events: none; } /* pemutar YouTube harus bisa diketuk (putar/suara) */
.live-screen:not(.ls) .lv-chat-btn { display: none; }
.lv-ls-btn[aria-pressed="true"], .lv-chat-btn[aria-pressed="true"] { background: rgba(255,255,255,.28) !important; }
.lv-qrow { display: flex; align-items: center; gap: 8px; }
.lv-qlabel { flex: none; font-weight: 700; font-size: 13px; }
.lv-qrow .lv-seg { flex: 1; }
.lv-qseg .lv-seg-btn { padding: 7px 4px; font-size: 13px; }
.lv-yt-box { display: flex; flex-direction: column; gap: 6px; }
.lv-yt-in { font-size: 14px; font-weight: 500; }
.lv-yt-in.bad { box-shadow: inset 0 0 0 2px #ff6b6b; }
.lv-uphint { position: absolute; left: 10px; right: 76px; top: calc(max(10px, env(safe-area-inset-top)) + 86px); z-index: 5; background: rgba(255,159,67,.92); color: #111; font-size: 12.5px; font-weight: 600; line-height: 1.3; border-radius: 12px; padding: 6px 10px; }
/* popover di dalam layar live (tetap terlihat saat layar penuh / rotasi CSS) */
.lv-pop { position: absolute; inset: 0; z-index: 9; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lv-pop-card { width: min(92%, 380px); max-height: 92%; overflow: auto; background: rgba(22,22,26,.95); color: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lv-pop-card .muted { color: rgba(255,255,255,.72); }
.lv-pop-card .sheet-title { margin: 0; color: #fff; }
.lv-pop-card .sheet-item { color: #fff; padding: 8px 4px; }
.lv-pop-card .btn.ghost { background: rgba(255,255,255,.16); color: #fff; }
.lv-pop-title { margin: 0; font-size: 16px; }
.lv-pop-note { margin: 0; font-size: 13px; opacity: .88; }
.lv-pop-close { align-self: center; }
.lv-qlist { display: flex; flex-direction: column; gap: 6px; }
.lv-qitem { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; text-align: left; }
.lv-qitem small { opacity: .7; font-weight: 500; }
.lv-qitem.on { background: #fff; color: #111; }

/* tata letak lanskap (otomatis saat perangkat/jendela mendatar, atau lewat tombol "Mode lanskap") */
.live-screen.ls {
  --sa-t: env(safe-area-inset-top, 0px); --sa-r: env(safe-area-inset-right, 0px);
  --sa-b: env(safe-area-inset-bottom, 0px); --sa-l: env(safe-area-inset-left, 0px);
  --ls-chat-w: clamp(220px, 33%, 420px); --ls-top-h: 54px;
}
/* iPhone/potret tanpa kunci orientasi: putar isi (.lv-stage) 90° agar mengisi layar.
   Rotasi di pembungkus dalam, karena elemen :fullscreen dipaksa transform: none oleh browser. */
.lv-stage { position: absolute; inset: 0; overflow: hidden; }
.live-screen.ls-rot {
  /* sisi konten ↔ sisi fisik: kiri = atas (poni), kanan = bawah, atas = kanan, bawah = kiri */
  --sa-t: env(safe-area-inset-right, 0px); --sa-r: env(safe-area-inset-bottom, 0px);
  --sa-b: env(safe-area-inset-left, 0px); --sa-l: env(safe-area-inset-top, 0px);
}
.live-screen.ls-rot .lv-stage {
  inset: auto; top: 0; left: 0; width: 100vh; height: 100vw; width: 100dvh; height: 100dvw;
  transform-origin: top left; transform: translateX(100vw) rotate(90deg);
}
.live-screen.ls .lv-video { object-fit: contain; }
.live-screen.ls .lv-yt { top: 0; bottom: 0; height: 100%; max-height: none; transform: none; aspect-ratio: auto; }
.live-screen.ls.src-youtube:not(.chat-off) .lv-yt { width: calc(100% - var(--ls-chat-w)); }
.live-screen.ls .lv-top { flex-direction: row; align-items: center; gap: 8px; min-height: var(--ls-top-h);
  padding: max(6px, var(--sa-t)) max(10px, var(--sa-r)) 12px max(10px, var(--sa-l)); transition: opacity .25s, transform .25s; }
.live-screen.ls .lv-top-row { display: contents; }
.live-screen.ls .lv-host { order: 1; flex: 0 1 auto; padding-right: 10px; }
.live-screen.ls .lv-host .avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.live-screen.ls .lv-host-name { font-size: 13px; }
.live-screen.ls .lv-title { max-width: 200px; font-size: 11px; }
.live-screen.ls .lv-live { order: 2; flex: none; }
.live-screen.ls .lv-pill { order: 3; margin-left: 0; padding: 5px 9px; font-size: 12.5px; flex: none; }
.live-screen.ls .lv-dur { order: 4; font-size: 13px; flex: none; }
.live-screen.ls .lv-likes { order: 5; font-size: 13px; margin-right: auto; flex: none; }
.live-screen.ls .lv-top .lv-side { order: 6; }
.live-screen.ls .lv-vol-btn { order: 7; }
.live-screen.ls .lv-q-btn { order: 7; }
.live-screen.ls .lv-chat-btn { order: 8; }
.live-screen.ls .lv-ls-btn { order: 9; }
.live-screen.ls .lv-fs { order: 10; }
.live-screen.ls .lv-close { order: 11; }
.live-screen.ls .lv-top .icon-btn { width: 36px; height: 36px; padding: 7px; flex: none; }
.live-screen.ls .lv-top .icon-btn svg.ic { width: 20px; height: 20px; }
/* kontrol penyiar di bilah atas yang ringkas */
.live-screen.ls .lv-top .lv-side { position: static; flex-direction: row; gap: 6px; align-items: center; }
.live-screen.ls .lv-top .lv-ctl { width: auto; flex: none; }
.live-screen.ls .lv-top .lv-ctl svg.ic { width: 36px; height: 36px; padding: 8px; }
.live-screen.ls .lv-top .lv-ctl-label { display: none; }
/* komentar: kolom transparan di kanan, memudar ke atas; input + kirim + hati di bawahnya */
.live-screen.ls .lv-bottom { left: auto; right: 0; top: calc(var(--ls-top-h) + var(--sa-t)); bottom: 0; width: var(--ls-chat-w);
  padding: 8px max(10px, var(--sa-r)) max(8px, var(--sa-b)) 10px; justify-content: flex-end;
  background: linear-gradient(transparent, rgba(0,0,0,.38) 22%, rgba(0,0,0,.5)); transition: opacity .25s; }
.live-screen.ls .lv-feed { width: 100%; max-height: none; flex: 1 1 auto; min-height: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
.live-screen.ls .lv-feed > :first-child { margin-top: auto; }
.live-screen.ls .lv-row { font-size: 12.5px; }
.live-screen.ls .lv-row .avatar.xs { width: 22px; height: 22px; }
.live-screen.ls .lv-form { width: 100%; max-width: none; gap: 6px; }
.live-screen.ls .lv-input { padding: 8px 12px; font-size: 14px; }
.live-screen.ls .lv-send, .live-screen.ls .lv-heart-btn { width: 36px; height: 36px; }
.live-screen.ls .lv-send svg.ic, .live-screen.ls .lv-heart-btn svg.ic { width: 18px; height: 18px; }
.live-screen.ls.chat-off .lv-bottom { opacity: 0; visibility: hidden; pointer-events: none; }
.live-screen.ls .lv-msg { left: calc((100% - var(--ls-chat-w)) / 2); }
.live-screen.ls.chat-off .lv-msg, .live-screen.ls.is-ended .lv-msg { left: 50%; }
.live-screen.ls .lv-sound { top: calc(var(--ls-top-h) + var(--sa-t) + 8px); left: calc((100% - var(--ls-chat-w)) / 2); }
.live-screen.ls .lv-uphint { top: calc(var(--ls-top-h) + var(--sa-t) + 4px); left: max(10px, var(--sa-l)); right: calc(var(--ls-chat-w) + 10px); max-width: 520px; }
/* overlay (bilah atas + kolom input) sembunyi otomatis; ketuk video untuk menampilkan */
.live-screen.ls.ui-hidden .lv-top { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.live-screen.ls.ui-hidden .lv-form, .live-screen.ls.ui-hidden .lv-uphint { opacity: 0; pointer-events: none; }
.live-screen.ls .lv-form, .live-screen.ls .lv-uphint { transition: opacity .25s; }
@media (max-height: 340px) {
  .live-screen.ls { --ls-top-h: 46px; }
  .live-screen.ls .lv-title { display: none; }
}

/* ---------- v2.6.2: audio — volume penonton live, speaker & tombol suara panggilan ---------- */
.lv-vol-row { display: flex; align-items: center; gap: 10px; }
.lv-vol-row svg.ic { width: 20px; height: 20px; flex: none; opacity: .85; }
.lv-vol-range { flex: 1; min-width: 0; accent-color: var(--brand-2, #25d366); height: 28px; }
.lv-vol-val { min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
.call-btn.on { background: #fff; color: #111; }
.call-btn .spk-off, .call-btn.on .spk-on { display: block; }
.call-btn .spk-on, .call-btn.on .spk-off { display: none; }
.call-sound { position: relative; z-index: 4; border: 0; border-radius: 20px; background: rgba(0,0,0,.6); color: #fff; padding: 9px 15px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.call-sound svg.ic { width: 18px; height: 18px; }
@media (max-width: 420px) {
  #callActive { gap: 12px; }
  #callActive .call-btn { width: 54px; height: 54px; }
}
.lv-sound { white-space: nowrap; max-width: calc(100% - 24px); background: #fff; color: #111; padding: 10px 16px; font-size: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.45); }
.call-sound { background: #fff; color: #111; box-shadow: 0 4px 18px rgba(0,0,0,.35); }

/* ================= v2.7.0: push, @mention, teruskan, bintang, arsip, terjadwal, sekali lihat, sementara ================= */
/* daftar chat */
.chat-item .ci-flag { width: 15px; height: 15px; color: var(--muted); flex: none; }
.badge.muted-badge { background: var(--muted); }
.badge.mention-badge { background: var(--brand-2); min-width: 21px; padding: 0; font-weight: 800; }
.chat-item.archived-row { background: none; }
.chat-item.archived-row .archived-ic { background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; }
.chat-item.archived-row .archived-ic svg { width: 22px; height: 22px; }
.chat-item.archived-row .name { color: var(--brand); }
.chat-item.archived-row.in-view { border-bottom: 1px solid var(--line); }
.chat-item.archived-row.in-view .chat-item-body { border-bottom-color: transparent; }
.chat-title .title-flag { width: 15px; height: 15px; margin-left: 5px; opacity: .8; flex: none; }
.chat-title { display: inline-flex; align-items: center; min-width: 0; }
#chatMenuBtn { flex: none; }

/* gelembung */
.fwd-label { display: flex; align-items: center; gap: 4px; font-size: 12px; font-style: italic; color: var(--muted); margin: 0 0 3px; }
.fwd-label svg.ic { width: 14px; height: 14px; }
.meta svg.meta-star, .meta svg.meta-timer { width: 12px; height: 12px; flex: none; }
.meta svg.meta-star { color: #e0a100; }
[data-theme="dark"] .meta svg.meta-star { color: #ffc93c; }
.mention { color: var(--brand); font-weight: 600; cursor: pointer; border-radius: 4px; }
.mention.me { background: var(--accent-soft); padding: 0 2px; }
[data-theme="dark"] .mention { color: var(--brand-2); }
.msg.out .mention { color: #0b6a51; }
[data-theme="dark"] .msg.out .mention { color: #b9f3dd; }

/* sekali lihat */
.vo-chip { display: flex; align-items: center; gap: 10px; min-width: 190px; border: 0; background: rgba(0,0,0,.05); border-radius: 10px; padding: 9px 12px; margin-bottom: 4px; text-align: left; color: inherit; }
[data-theme="dark"] .vo-chip { background: rgba(255,255,255,.07); }
button.vo-chip { cursor: pointer; }
button.vo-chip:hover { background: rgba(0,0,0,.09); }
[data-theme="dark"] button.vo-chip:hover { background: rgba(255,255,255,.12); }
.vo-chip .vo-ic { width: 28px; height: 28px; flex: none; color: var(--brand); }
.vo-chip.done .vo-ic { color: var(--muted); }
.vo-text { display: flex; flex-direction: column; line-height: 1.25; }
.vo-text small { color: var(--muted); font-size: 12px; }
.vo-chip.done strong { font-weight: 600; color: var(--muted); }
.vo-toggle { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.vo-toggle .vo-check { width: 18px; height: 18px; flex: none; accent-color: var(--brand); margin: 0; }
.vo-toggle-ic svg { width: 24px; height: 24px; color: var(--brand); }
.vo-toggle-text { display: flex; flex-direction: column; gap: 1px; }
.vo-viewer { position: fixed; inset: 0; z-index: 70; background: #000; display: flex; flex-direction: column; color: #fff; outline: none; -webkit-user-select: none; user-select: none; }
.vo-viewer-head { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px; font-weight: 600; }
.vo-viewer-head > span { flex: 1; }
.vo-viewer-head .icon-btn { color: #fff; }
.vo-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px; }
.vo-media { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; -webkit-touch-callout: none; pointer-events: auto; }
img.vo-media { pointer-events: none; }
.vo-foot { text-align: center; font-size: 13px; color: rgba(255,255,255,.7); margin: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }

/* @mention autocomplete */
.mention-box { flex: none; max-height: 40vh; overflow-y: auto; background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
.mention-item { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 14px; text-align: left; }
.mention-item.on, .mention-item:hover { background: var(--hover); }
.mention-item .avatar, .starred-head .avatar { width: 30px; height: 30px; font-size: 12px; flex: none; }
.mention-item .mi-name { font-weight: 600; }

/* teruskan */
.fwd-preview { display: flex; align-items: center; gap: 8px; background: var(--hover); border-radius: 10px; padding: 8px 10px; color: var(--muted); font-size: 14px; }
.fwd-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwd-preview svg.ic { width: 18px; height: 18px; flex: none; }
.fwd-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.fwd-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 400 !important; }
.fwd-row:last-child { border-bottom: 0; }
.fwd-row:hover { background: var(--hover); }
.fwd-name { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.fwd-name > span:first-child { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.fwd-check { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.btn svg.ic + span { margin-left: 2px; }

/* berbintang */
.starred-list { display: flex; flex-direction: column; }
.starred-item { position: relative; padding: 10px 44px 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.starred-item:hover { background: var(--hover); }
.starred-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.starred-who { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.starred-body { display: flex; align-items: center; gap: 4px; color: var(--ink); font-size: 14px; padding-left: 38px; overflow: hidden; }
.starred-body > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.starred-body svg.pv-icon { width: 15px; height: 15px; color: var(--muted); flex: none; }
.starred-un { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: #e0a100; }
[data-theme="dark"] .starred-un { color: #ffc93c; }
.empty > svg.ic { width: 40px; height: 40px; margin: 0 auto 8px; opacity: .6; }

/* terjadwal */
.sched-list { display: flex; flex-direction: column; gap: 10px; }
.sched-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sched-when { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); font-size: 14px; }
.sched-when svg.ic { width: 16px; height: 16px; }
.sched-text { grid-column: 1 / 2; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; max-height: 6.5em; overflow: hidden; }
.sched-item .btn { grid-column: 2; grid-row: 1 / span 2; }
.danger-text { color: var(--danger) !important; }
input[type="datetime-local"] { min-height: 42px; }

/* sheet & pengaturan */
.sheet-item .si-label { flex: 1; }
.sheet-item .si-value { margin-left: auto; }
.sheet-item.radio.on { color: var(--brand); font-weight: 600; }
.sheet-item.radio.on .si-icon { color: var(--brand); }
.sheet-title { display: flex; align-items: center; gap: 10px; padding: 6px 20px 4px; }
.sheet-title svg.ic { width: 20px; height: 20px; color: var(--brand); }
.notif-ctl { display: flex; align-items: center; gap: 8px; }
.notif-note { text-align: right; max-width: 190px; }
.segmented.busy { opacity: .6; pointer-events: none; }
.form input.fwd-check, .form input.vo-check { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; flex: none; background: none; }
.form .fwd-row .avatar { flex: none; }

/* ---------- v2.7.1: Profil & Pengaturan terpisah, menu berkelompok ---------- */
.menu { max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
.menu-label { padding: 6px 14px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.menu button { min-height: 44px; }
.menu-sep + .menu-sep { display: none; }
.sheet-sep { height: 1px; background: var(--line); margin: 6px 16px; flex: none; }
.sheet-label { padding: 8px 20px 2px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--brand); flex: none; }
.sheet-card > div > .sheet-label:first-child { padding-top: 4px; }
.si-value { margin-left: auto; }
.si-label { flex: 1; min-width: 0; }

/* layar Pengaturan */
.settings-screen { position: fixed; inset: 0; z-index: 38; background: var(--bg); display: flex; flex-direction: column; }
.settings-screen .bar-title { font-size: 19px; }
.settings-body { flex: 1; overflow-y: auto; padding: 10px 0 max(28px, env(safe-area-inset-bottom)); }
.settings-stack { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; padding: 0 10px; }
.set-group { background: var(--panel); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.set-group > .section-label { margin: 0; padding: 14px 16px 6px; }
.set-group > .setting-row:last-child, .set-group > .set-hint:last-child { border-bottom: 0; }
.setting-row { min-height: 54px; color: var(--ink); }
.setting-row.static { cursor: default; }
.setting-row .set-label { flex: 1; min-width: 0; }
.set-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-text small { font-size: 12.5px; line-height: 1.3; }
.set-value { flex: none; max-width: 45%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-hint { margin: 0; padding: 4px 16px 14px 51px; line-height: 1.4; }
.set-me { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--panel); text-align: left; box-shadow: 0 1px 2px rgba(0,0,0,.05); color: var(--ink); }
.set-me:hover { background: var(--hover); }
.set-me-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-me-text strong { font-size: 17px; display: inline-flex; align-items: center; gap: 2px; }
.notif-row .notif-ctl { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 380px) { .setting-row .segmented button { padding: 6px 9px; } }
@media (min-width: 860px) {
  .settings-body { padding-top: 22px; }
}

/* tab Profil: hanya profil */
#pane-profile .lists { background: var(--bg); }
#pane-profile .set-group { margin: 10px 10px 0; }
#pane-profile .profile-card { box-shadow: 0 1px 2px rgba(0,0,0,.05); }

/* info kontak / grup: daftar aksi berkelompok */
.info-list { display: flex; flex-direction: column; gap: 10px; margin: 0 -20px; padding: 10px 10px 4px; background: var(--bg); }
.info-list.flat { margin: 6px -20px 0; }
.info-list .setting-row { font-size: 15px; }
.profile-card.in-modal + .info-list { margin-top: 0; }
.group-name { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.add-member { border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.add-member summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; color: var(--brand); font-weight: 600; }
.add-member summary::-webkit-details-marker { display: none; }
.add-member summary svg.ic { width: 20px; height: 20px; }
.add-member[open] { padding-bottom: 10px; }

/* Pembaruan: bagian dipisah jelas */
.upd-section + .upd-section { border-top: 8px solid var(--bg); }
.upd-section { padding-bottom: 6px; }
.fwd-title { display: flex !important; align-items: center; gap: 2px; min-width: 0; }
.fwd-title .name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* v2.7.1: video profil */
video.avatar { object-fit: cover; background: var(--line); display: block; pointer-events: none; }

/* ---------- v2.7.2: pemilih foto grup ---------- */
.group-av-btn { position: relative; display: inline-flex; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.group-av-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.group-av-btn .av-cam { position: absolute; right: 2px; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 3px var(--panel); }
.group-av-btn .av-cam svg { width: 18px; height: 18px; }
.group-av-btn:hover .avatar { filter: brightness(.92); }
.group-av-slot { display: inline-flex; }
.group-av-status:empty { display: none; }
.group-av-status { margin: 6px 0 0; }
.group-av-actions { justify-content: center; margin-top: 6px; }
.group-av-actions.hidden { display: none; }
.group-av-empty { background: var(--accent-soft) !important; color: var(--brand); display: grid; place-items: center; }
.group-av-empty svg { width: 40px; height: 40px; }
.new-group-photo { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 4px; }
.sheet-item .si-sub { margin-left: auto; }

/* ---------------------------------------------------------------- v2.7.3: link undangan grup */
.invite-section .invite-box { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.invite-link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--brand); word-break: break-all; background: var(--hover); border-radius: 10px; padding: 10px 12px; user-select: all; }
.invite-link.off { color: var(--muted); font-family: inherit; user-select: none; }
.invite-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-btns .btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; font-size: 14px; cursor: pointer; }
.invite-btns .btn svg { width: 16px; height: 16px; }
.invite-btns .btn:disabled { opacity: .5; cursor: default; }
.form label.invite-toggle, label.invite-toggle { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 400; color: var(--ink); }
.form input.invite-switch, .invite-switch { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; padding: 0; border: 0; min-height: 0; }
.invite-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.invite-switch:checked { background: var(--brand); }
.invite-switch:checked::after { transform: translateX(18px); }
.invite-switch:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.invite-preview { padding: 6px 0 4px; }
.invite-preview .invite-actions { margin-top: 14px; width: 100%; }
.invite-preview .invite-actions .btn { flex: 1; max-width: 180px; cursor: pointer; }
.invite-preview .invite-status { min-height: 1em; margin-top: 6px; }
.invite-bad { background: var(--muted); }
.invite-auth-hint { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--hover); color: var(--ink); font-size: 14px; text-align: left; }
.invite-auth-hint svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.msg-text.has-invite { display: flex; flex-direction: column; gap: 6px; }
.invite-card { display: flex; flex-direction: column; width: 100%; min-width: 230px; max-width: 300px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); text-align: left; cursor: pointer; font: inherit; white-space: normal; overflow: hidden; }
.invite-card:hover { border-color: var(--brand); }
.invite-card .inv-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0; }
.invite-card .inv-av { flex: none; display: inline-flex; }
.invite-card .inv-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.invite-card .inv-name { display: flex; align-items: center; gap: 4px; font-size: 15px; min-width: 0; }
.invite-card .inv-name .verified { flex: none; }
.invite-card .inv-name .verified svg { width: 15px; height: 15px; }
.invite-card .inv-sub { font-size: 12.5px; line-height: 1.35; }
.invite-card .inv-cta { display: block; text-align: center; font-weight: 600; font-size: 14px; color: var(--brand); padding: 9px 12px; border-top: 1px solid var(--line); }
.invite-card.dead { opacity: .75; cursor: default; }
.invite-card.dead .inv-cta { display: none; }

/* ---- v2.7.9: pesan file / dokumen ---- */
.file-card { display: flex; align-items: center; gap: 10px; width: min(300px, 70vw); padding: 4px 2px 2px; }
.file-card.preview { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fl-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 16%, transparent); font-size: 24px; line-height: 1; }
.fl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fl-name { font-weight: 600; font-size: 14.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.fl-meta { font-size: 12.5px; color: var(--muted); }
.fl-dl { flex: none; border: 0; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600;
  background: var(--brand); color: #fff; cursor: pointer; }
.fl-dl:disabled { opacity: .65; cursor: default; }

/* ================= v2.8.1: hapus untuk saya, pilih pesan, simpan media ================= */
.media-wrap { position: relative; }
.media-wrap .msg-video { margin-bottom: 4px; }
.media-dl, .media-fs { position: absolute; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; z-index: 2; }
.media-dl { right: 8px; }
.media-fs { right: 48px; }
.media-dl svg, .media-fs svg { width: 18px; height: 18px; }
.media-dl.busy { opacity: .5; pointer-events: none; }
.viewer-bar { position: absolute; top: 0; right: 0; left: 0; display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px; padding-top: max(12px, env(safe-area-inset-top)); z-index: 2; cursor: default; }
.viewer-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 12px; border: 0;
  border-radius: 20px; background: rgba(255,255,255,.16); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.viewer-btn svg { width: 20px; height: 20px; }
.viewer-btn.hidden { display: none; }
.viewer-btn.busy { opacity: .5; pointer-events: none; }
.sel-bar { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 8px;
  padding-top: env(safe-area-inset-top); background: var(--brand); color: var(--brand-ink); z-index: 5; }
.sel-bar.hidden { display: none; }
.sel-bar .sel-count { font-size: 19px; font-weight: 700; margin-left: 4px; }
.sel-bar .sel-hint { flex: 1; font-size: 15px; opacity: .9; }
.sel-bar .icon-btn:disabled { opacity: .45; }
body.selecting #msgList [data-id] { cursor: pointer; }
#msgList .msg.selected, #msgList .sys-msg.selected { background: rgba(29, 143, 225, .16); border-radius: 8px; }
#msgList .msg.selected .bubble { box-shadow: 0 0 0 2px var(--tick-read); }
.hide-confirm .sheet-note { padding: 0 18px 6px; margin: 0; }

/* ------------------------------------------------------------------ QRIS Top Up (v2.8.1) */
.qris-form { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.qris-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.qris-preset { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border, rgba(128,128,128,.25)); background: transparent; color: var(--text, inherit); font-weight: 600; font-size: 13px; cursor: pointer; }
.qris-preset:hover { border-color: var(--accent, #1d9bf0); color: var(--accent, #1d9bf0); }
.qris-form input[type="number"] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border, rgba(128,128,128,.25)); background: var(--bg, #fff); color: var(--text, inherit); font-size: 16px; }
.qris-qr-box { display: flex; justify-content: center; padding: 12px; background: #fff; border-radius: 12px; min-height: 200px; align-items: center; }
.qris-qr-box canvas { max-width: 220px; }
.qris-ref { font-family: monospace; font-size: 12px; }

/* v2.8.3 — pemilih warna badge (14 tier) */
.verify-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 10px; padding: 4px 0; }
.verify-color { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform .12s ease, box-shadow .12s ease; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.verify-color:hover { transform: scale(1.08); }
.verify-color.active { border-color: var(--text, #111); transform: scale(1.12); box-shadow: 0 0 0 3px rgba(29,155,240,.35); }
.verify-color[data-color="blue"]   { background: #1d9bf0; }
.verify-color[data-color="gold"]   { background: #f4b400; }
.verify-color[data-color="red"]    { background: #e0245e; }
.verify-color[data-color="green"]  { background: #22c55e; }
.verify-color[data-color="purple"] { background: #8b5cf6; }
.verify-color[data-color="orange"] { background: #f97316; }
.verify-color[data-color="pink"]   { background: #ec4899; }
.verify-color[data-color="cyan"]   { background: #06b6d4; }
.verify-color[data-color="lime"]   { background: #84cc16; }
.verify-color[data-color="teal"]   { background: #14b8a6; }
.verify-color[data-color="indigo"] { background: #6366f1; }
.verify-color[data-color="amber"]  { background: #f59e0b; }
.verify-color[data-color="rose"]   { background: #f43f5e; }
.verify-color[data-color="violet"] { background: #7c3aed; }
.verify-price { font-size: 13px; margin: 0; }
.qris-note { font-size: 12px; color: var(--warn, #d97706); }
