/* Afodabo v4 — bottom nav ya kisasa, Ujumbe (simu), channels, utafutaji wa papo hapo, zoom, charts,
   pricing, admin sidebar, 2FA, AI moderation. Inapakiwa baada ya afodabo.css na social.css. */

[hidden] { display: none !important; }
.hidden { display: none !important; }

/* ============================ Bottom nav (simu) ============================ */
@media (max-width: 767px) {
  body.app .bottom-nav.v4 {
    display: flex; justify-content: space-around; align-items: flex-end; gap: 2px;
    left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); height: 62px; padding: 0 6px 6px;
    border: 1px solid var(--border); border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12), 0 1px 0 rgba(255, 255, 255, .4) inset;
  }
  html[data-mode="dark"] body.app .bottom-nav.v4 { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
  body.app .bottom-nav.v4 a.bn-item {
    flex: 1; min-width: 0; height: 54px; width: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); font-size: 1rem; border-radius: 16px; position: relative; transition: color .2s, transform .15s;
    -webkit-tap-highlight-color: transparent;
  }
  body.app .bottom-nav.v4 a.bn-item .ic { position: relative; display: grid; place-items: center; width: 44px; height: 30px; border-radius: 12px; transition: background .25s, transform .2s; }
  body.app .bottom-nav.v4 a.bn-item .ic > i { font-size: 1.32rem; line-height: 1; }
  body.app .bottom-nav.v4 a.bn-item .lb { font-size: .62rem; font-weight: 700; letter-spacing: .01em; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.app .bottom-nav.v4 a.bn-item.active { color: var(--primary); }
  body.app .bottom-nav.v4 a.bn-item.active .ic { background: var(--primary-soft); }
  html[data-mode="dark"] body.app .bottom-nav.v4 a.bn-item.active { color: var(--accent); }
  body.app .bottom-nav.v4 a.bn-item:active .ic { transform: scale(.9); }
  body.app .bottom-nav.v4 a.bn-item .avatar { --size: 26px; border: 2px solid transparent; }
  body.app .bottom-nav.v4 a.bn-item.active .avatar { border-color: var(--primary); outline: 0; }
  body.app .bottom-nav.v4 .bn-badge {
    position: absolute; top: -4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--like, #ef4444); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface);
  }
  body.app .bottom-nav.v4 a.bn-create {
    flex: none; width: 58px; height: 58px; margin: 0 2px 4px; transform: translateY(-14px); border-radius: 20px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 1.5rem;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 45%, transparent), 0 0 0 5px var(--surface);
    transition: transform .15s;
  }
  body.app .bottom-nav.v4 a.bn-create:active { transform: translateY(-14px) scale(.93); }
  body.app .bottom-nav.v4 a.bn-create .plus { display: grid; place-items: center; }
  body.app .content-wrap { padding-bottom: 96px; }
}

/* Badges zilizopo kila mahali */
.badge-dot.alt { background: #0ea5e9 !important; left: auto; }
.badge-dot.inline { position: static; display: inline-grid; margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--like, #ef4444); color: #fff; font-size: .64rem; font-weight: 800; place-items: center; }
.tab-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--like, #ef4444); color: #fff; font-size: .62rem; font-weight: 800; margin-left: 4px; vertical-align: middle; }

/* ============================ Ujumbe (DM) ============================ */
body.app .dm { grid-template-columns: 360px minmax(0, 1fr); }
body.app .dm > .list, body.app .dm > .chat-pane { min-width: 0; }
body.app .dm .chat-pane { position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
body.app .dm .list { display: flex; flex-direction: column; min-height: 0; }
body.app .dm .list .head { padding: 22px 18px 10px; gap: 8px; }
body.app .dm .dm-lists { flex: 1; overflow-y: auto; min-height: 0; }
.dm-search { display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 0 12px; height: 38px; border-radius: 12px; background: var(--field); color: var(--muted); }
.dm-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: .9rem; outline: 0; }
.dm-tabs { display: flex; gap: 6px; padding: 0 16px 8px; border-bottom: 1px solid var(--border); }
.dm-tabs button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 10px; font: inherit; font-weight: 700; font-size: .86rem; color: var(--muted); cursor: pointer; position: relative; }
.dm-tabs button.on { color: var(--text); background: var(--field); }
body.app .dm .li { padding: 10px 16px; }
body.app .dm .li .p { overflow: hidden; }
body.app .dm .li .p .truncate { min-width: 0; }
.ud-count { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.ch-av { border-radius: 16px !important; background: linear-gradient(135deg, #0ea5e9, var(--primary)); color: #fff; }
.ch-av.plus { background: var(--primary-soft); color: var(--primary); font-size: 1.2rem; }
body.app .dm .li .avatar.ch-av { --size: 54px; }

body.app .dm .chat { height: 100%; flex: 1; min-height: 0; width: 100%; max-width: 100%; }
body.app .dm .chat-head { gap: 8px; min-width: 0; }
body.app .dm .chat-head .grow { min-width: 0; }
body.app .dm .chat-body { display: flex; flex-direction: column; gap: 2px; overflow-x: hidden; overscroll-behavior: contain; padding: 14px 14px 10px; }
body.app .dm .chat-body > * { flex-shrink: 0; }
.mimg, .msg.media > * { flex-shrink: 0; }
.chat-intro { text-align: center; padding: 18px 0 22px; }
.chat-intro .alert { max-width: 420px; margin: 14px auto 0; text-align: left; }
body.app .msg { max-width: min(78%, 520px); overflow-wrap: anywhere; word-break: break-word; }
body.app .msg.media { max-width: min(72%, 300px); padding: 0; background: none; border: 0; box-shadow: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
body.app .msg.them.media { align-items: flex-start; }
.mimg { display: block; width: 260px; max-width: 100%; max-height: 360px; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--field); cursor: zoom-in; }
.mimg img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; display: block; }
body.app .msg.media .mcap { background: var(--field); color: var(--text); border-radius: 14px; padding: 6px 12px; font-size: .9rem; max-width: 100%; }
body.app .msg.me.media .mcap { background: #3797f0; color: #fff; }
body.app .msg.media time { font-size: .62rem; color: var(--muted); padding: 0 6px; }
body.app .msg .shared { width: min(240px, 100%); }
body.app .quick-replies { flex: none; min-width: 0; max-width: 100%; padding: 6px 12px 6px; }
body.app .quick-replies::-webkit-scrollbar { display: none; }
body.app .dm .chat-form { flex: none; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
body.app .chat-bar { display: flex; align-items: center; gap: 4px; min-width: 0; width: 100%; background: var(--field); border-radius: 24px; padding: 4px 4px 4px 6px; position: relative; }
body.app .chat-bar input[name=body] { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; font-size: .95rem; color: var(--text); padding: 8px 4px; }
body.app .chat-bar .ib { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: var(--text); cursor: pointer; background: none; border: 0; }
body.app .chat-bar .send { flex: none; height: 38px; min-width: 38px; border-radius: 19px; border: 0; background: var(--primary); color: #fff; font-weight: 700; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
body.app .chat-bar .send .lbl { font-size: .85rem; }
body.app .chat-bar.recording input, body.app .chat-bar.recording .ib:not([data-mic]) { display: none; }
.new-msg-pill { position: absolute; left: 50%; transform: translateX(-50%); bottom: 130px; z-index: 5; border: 0; border-radius: 999px; padding: 7px 14px; background: var(--primary); color: #fff; font-weight: 700; font-size: .8rem; box-shadow: var(--shadow-lg); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.dm-empty { padding: 22vh 20px; }
@media (max-width: 767px) {
  body.app .dm { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 52px); }
  body.app.chat-open .dm, body.app.chat-open .dm .chat { height: 100dvh; }
  body.app .dm .chat-head { height: 58px; padding: 8px 8px; position: sticky; top: 0; z-index: 3; background: var(--surface); }
  body.app .dm .chat-head .btn-icon { width: 36px; height: 36px; }
  body.app .msg { max-width: 82%; font-size: .93rem; }
  body.app .msg.media { max-width: 76%; }
  .mimg { width: 230px; max-height: 300px; }
  .mimg img { max-height: 300px; }
  body.app .chat-bar .send .lbl { display: none; }
  body.app .chat-bar .send { padding: 0; width: 38px; justify-content: center; }
  .hide-xs { display: none !important; }
  .new-msg-pill { bottom: 120px; }
  body.app .dm .list .head { padding: 14px 14px 8px; }
}

/* ============================ Channels ============================ */
.ch-pinned { flex: none; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.ch-pinned a { display: flex; gap: 8px; align-items: center; padding: 8px 16px; font-size: .82rem; color: var(--text); min-width: 0; }
.ch-pinned i { color: var(--primary); }
.cm-system { text-align: center; margin: 10px 0; }
.cm-system span { display: inline-block; font-size: .72rem; color: var(--muted); background: var(--field); border-radius: 999px; padding: 4px 12px; }
.cm { display: flex; gap: 6px; align-items: flex-end; margin: 3px 0; position: relative; max-width: 100%; }
.cm.me { flex-direction: row-reverse; }
.cm-av { flex: none; }
.cm-bubble { max-width: min(80%, 540px); background: var(--field); border-radius: 18px; padding: 8px 12px 6px; min-width: 0; overflow-wrap: anywhere; }
.cm.me .cm-bubble { background: #3797f0; color: #fff; }
.cm.bc { justify-content: flex-start; }
.cm.bc, .cm.bc.me { flex-direction: row; }
.cm.bc .cm-bubble { max-width: min(92%, 580px); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px 18px 18px 6px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.cm.held .cm-bubble { opacity: .6; }
.cm-author { font-size: .74rem; font-weight: 800; margin-bottom: 2px; color: var(--primary); }
.cm.me:not(.bc) .cm-author { display: none; }
.cm-author a { color: inherit; }
.cm-reply { display: block; font-size: .76rem; border-left: 3px solid currentColor; padding: 2px 8px; margin: 2px 0 6px; opacity: .8; border-radius: 4px; background: rgba(0,0,0,.05); color: inherit; }
.cm-text { font-size: .93rem; white-space: pre-line; }
.cm .mimg { margin: 2px 0 4px; width: 300px; }
.cm-meta { display: flex; gap: 8px; justify-content: flex-end; align-items: center; font-size: .64rem; opacity: .75; margin-top: 2px; }
.cm-meta .flag { color: #e11d48; }
.cm.me:not(.bc) .cm-meta .flag { color: #fff; }
.cm-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cm-reacts span { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.cm-reacts span.on { border-color: var(--primary); background: var(--primary-soft); }
.cm-tools { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; align-self: center; }
.cm:hover .cm-tools, .cm:focus-within .cm-tools { opacity: 1; }
.cm-tools button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.cm-tools button:hover { background: var(--field); color: var(--text); }
@media (hover: none) { .cm-tools { opacity: .55; } }
.react-pop { position: absolute; bottom: 100%; left: 30px; z-index: 6; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--surface-strong, var(--surface)); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: rise .15s ease; }
.cm.me .react-pop { left: auto; right: 30px; }
.react-pop button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 1.25rem; cursor: pointer; transition: transform .12s; }
.react-pop button:hover { transform: scale(1.25); background: var(--field); }
.cm-poll { min-width: min(260px, 70vw); }
.cm-poll .q { font-weight: 800; margin-bottom: 8px; }
.cm-poll .opt { position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 6px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; overflow: hidden; text-align: left; }
.cm-poll .opt::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--primary-soft); transition: width .4s; }
.cm-poll .opt > * { position: relative; }
.cm-poll .opt.on { border-color: var(--primary); font-weight: 700; }
.chat-join { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); text-align: center; }
.creply-bar { flex: none; display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--border); background: var(--field); font-size: .82rem; min-width: 0; }
.creply-bar > i { color: var(--primary); }
.ch-discover { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ch-discover .ch-body { flex: 1; overflow-y: auto; padding: 14px 16px 30px; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ch-card { border: 1px solid var(--border); border-radius: 18px; padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.ch-card .top { display: flex; gap: 12px; align-items: center; color: var(--text); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.opt-cards label { cursor: pointer; }
.opt-cards input { position: absolute; opacity: 0; pointer-events: none; }
.opt-cards span { display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; align-items: center; height: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .15s, background .15s; }
.opt-cards span i { grid-row: span 2; font-size: 1.4rem; color: var(--primary); }
.opt-cards span small { color: var(--muted); font-size: .74rem; line-height: 1.3; }
.opt-cards input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.opt-cards input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ============================ Utafutaji wa papo hapo ============================ */
.live-wrap { position: relative; }
.sr-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; max-height: min(70vh, 520px); overflow-y: auto; background: var(--surface-strong, var(--surface)); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; }
.sr-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--text); }
.sr-row:hover, .sr-row.on { background: var(--surface-hover); }
.sr-row .n { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-row .s { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-row .grow { min-width: 0; }
.sr-row mark { background: none; color: var(--primary); font-weight: 800; }
.sr-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 1.1rem; color: var(--text); }
.sr-ic.crop { color: #16a34a; background: #16a34a14; border-color: transparent; }
.sr-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.sr-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 4px; font-weight: 800; font-size: .88rem; }
.sr-head button { border: 0; background: none; color: #0095f6; font-weight: 700; cursor: pointer; font-size: .8rem; }
.sr-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: .88rem; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.sr-empty i { font-size: 1.8rem; }
.sr-all { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 10px; margin-top: 4px; border-top: 1px solid var(--border); font-weight: 700; font-size: .84rem; color: var(--primary); }
.search-panel { position: fixed; z-index: 90; top: 0; bottom: 0; left: var(--rail-w, 72px); width: min(400px, 100vw); background: var(--surface); border-right: 1px solid var(--border); border-radius: 0 20px 20px 0; box-shadow: 20px 0 50px rgba(0,0,0,.12); display: flex; flex-direction: column; animation: slidein .2s ease; }
@keyframes slidein { from { transform: translateX(-20px); opacity: 0; } }
.search-scrim { position: fixed; inset: 0; z-index: 89; background: rgba(0,0,0,.18); }
.sp-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px 12px; }
.sp-title { font-size: 1.45rem; font-weight: 800; }
.sp-input { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 0 14px; height: 42px; border-radius: 12px; background: var(--field); color: var(--muted); position: relative; }
.sp-input input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; color: var(--text); }
.sp-spin { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sp-results { flex: 1; overflow-y: auto; padding: 4px 8px 20px; border-top: 1px solid var(--border); }
@media (max-width: 767px) {
  .search-panel { left: 0; right: 0; width: 100vw; border-radius: 0; border: 0; }
  .search-scrim { display: none; }
  .sp-head { padding: 12px 14px 8px; }
}
.trend-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; align-items: center; }
.trend-strip::-webkit-scrollbar { display: none; }
.trend-strip .tl { flex: none; font-weight: 800; font-size: .8rem; color: #eb6834; display: inline-flex; gap: 6px; align-items: center; }
.trend-strip a { flex: none; display: inline-flex; gap: 4px; align-items: center; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, #eb6834 10%, var(--surface)); border: 1px solid color-mix(in srgb, #eb6834 30%, var(--border)); color: var(--text); font-weight: 700; font-size: .82rem; }
.trend-strip a span { color: var(--muted); font-weight: 600; font-size: .72rem; }

/* ============================ Live toasts / pills ============================ */
.live-toasts { position: fixed; z-index: 400; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.live-toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface-strong, var(--surface)); border: 1px solid var(--border); box-shadow: var(--shadow-lg); color: var(--text); animation: drop .3s cubic-bezier(.2,.9,.3,1.2); transition: opacity .4s, transform .4s; }
.live-toast.out { opacity: 0; transform: translateY(-10px); }
.live-toast img, .live-toast .ic { width: 38px; height: 38px; border-radius: 50%; flex: none; object-fit: cover; }
.live-toast .ic { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.1rem; }
.live-toast .tx { flex: 1; font-size: .86rem; font-weight: 600; line-height: 1.3; }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }
.new-posts-pill { position: fixed; z-index: 70; top: 72px; left: 50%; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 8px 16px 8px 8px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: .84rem; display: inline-flex; gap: 8px; align-items: center; box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 40%, transparent); cursor: pointer; animation: drop .3s ease; }
.new-posts-pill.static { position: sticky; top: 64px; margin: 0 auto 10px; display: flex; padding: 8px 16px; }
.new-posts-pill .faces { display: flex; }
.new-posts-pill .faces img { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--primary); margin-left: -8px; object-fit: cover; }
.new-posts-pill .faces img:first-child { margin-left: 0; }
@media (min-width: 768px) { .new-posts-pill { top: 20px; } }
[data-like-count].bump { display: inline-block; animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.35); color: var(--like, #ef4444); } }
.comment.fresh { animation: fresh 1.6s ease; }
@keyframes fresh { from { background: var(--primary-soft); } }

/* ============================ Zoom lightbox ============================ */
.zoom-lb { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.94); display: flex; flex-direction: column; animation: fade .15s ease; touch-action: none; }
@keyframes fade { from { opacity: 0; } }
.zoom-lb .zbar { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 2; display: flex; gap: 6px; }
.zoom-lb .zbar > * { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; font-size: 1.1rem; cursor: pointer; }
.zoom-lb .zstage { flex: 1; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.zoom-lb.zoomed .zstage { cursor: grab; }
.zoom-lb img { max-width: 96vw; max-height: 90vh; object-fit: contain; transition: transform .08s linear; transform-origin: center; user-select: none; -webkit-user-drag: none; border-radius: 6px; }
.zoom-lb.round img { width: min(86vw, 520px); height: min(86vw, 520px); max-height: none; object-fit: cover; border-radius: 50%; }
.zoom-lb.round.zoomed img { border-radius: 10px; }
.pic { position: relative; }
.pic-zoom { border: 0; background: none; padding: 0; border-radius: 50%; cursor: zoom-in; display: block; }
.pic-zoom-btn { position: absolute; right: 4px; bottom: 4px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--bg, var(--surface)); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: zoom-in; box-shadow: var(--shadow); }

/* ============================ Picha nyeti (AI) ============================ */
.media.sensitive .track img, .media.sensitive .track video { filter: blur(28px) brightness(.7); transform: scale(1.08); }
.media.sensitive.revealed .track img, .media.sensitive.revealed .track video { filter: none; transform: none; transition: filter .3s; }
.sens-cover { position: absolute; inset: 0; z-index: 4; border: 0; background: rgba(0,0,0,.25); color: #fff; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; text-align: center; padding: 20px; cursor: pointer; font: inherit; }
.sens-cover i { font-size: 2rem; }
.sens-cover span { font-size: .8rem; opacity: .9; max-width: 260px; }
.mod-note { margin: 4px 14px 0; font-size: .74rem; font-weight: 700; color: #b45309; background: #f59e0b1a; border-radius: 10px; padding: 6px 10px; display: flex; gap: 6px; align-items: center; }
.mod-media { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.mod-media img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; cursor: zoom-in; }
.mod-media img.blurred { filter: blur(10px); }
.mod-media img.blurred:hover { filter: none; }
.mod-body { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--field); }

/* ============================ Collabs ============================ */
.collab-avs { position: relative; width: 48px; height: 48px; flex: none; }
.collab-avs .avatar { position: absolute; --size: 32px; border: 2px solid var(--surface); }
.collab-avs .avatar:first-child { top: 0; left: 0; }
.collab-avs .avatar:last-child { right: 0; bottom: 0; }
.collab-and { color: var(--muted); font-weight: 500; margin: 0 2px; }
.collab-more { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; }
.collab-picker { position: relative; }
.cchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cchips:empty { display: none; }
.cchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 3px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .8rem; }
.cchip .avatar { --size: 22px; }
.cchip button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.08); color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; }
.collab-drop { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 20; background: var(--surface-strong, var(--surface)); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 240px; overflow-y: auto; padding: 4px; }
.collab-drop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; color: var(--text); font: inherit; }
.collab-drop button:hover { background: var(--surface-hover); }
.collab-drop small { display: block; color: var(--muted); font-size: .74rem; }
.collab-inv { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.collab-inv .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; background: var(--field); display: grid; place-items: center; color: var(--muted); }
.collab-inv .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-inline-form { display: flex; gap: 8px; align-items: center; padding: 10px 18px; }
.sh-inline-form input { flex: 1; min-width: 0; border: 1px solid var(--border); background: var(--field); border-radius: 10px; padding: 8px 10px; font: inherit; color: var(--text); }

/* ============================ KPIs, charts, insights ============================ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi-grid.in { padding: 0 16px 16px; margin: 0; }
.kpi { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius, 16px); background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.kpi-grid.small .kpi { padding: 10px 14px; }
.kpi-grid.small .kpi-v { font-size: 1.1rem; }
.kpi-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.15rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.kpi-grid.small .kpi-ic { width: 32px; height: 32px; font-size: 1rem; border-radius: 10px; }
.kpi-tx { min-width: 0; }
.kpi-v { font-size: 1.45rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-l { font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.kpi-ch { font-size: .72rem; font-weight: 700; margin-top: 4px; color: var(--muted); }
.kpi-ch.up { color: #15803d; } .kpi-ch.down { color: #dc2626; }
.kpi-ch span { color: var(--faint, var(--muted)); font-weight: 500; }
.kpi-sub { font-size: .7rem; color: var(--faint, var(--muted)); margin-top: 3px; }
.ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ins-grid > .span-2 { grid-column: span 2; }
.chart-card { padding: 0 !important; overflow: hidden; margin: 0 !important; }
.cc-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 4px; }
.cc-head h3 { margin: 0; font-size: .95rem; display: flex; gap: 8px; align-items: center; }
.cc-head h3 i { color: var(--muted); }
.cc-tbl { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--border); background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; }
.cc-tbl.on { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.cc-body { position: relative; padding: 6px 14px 14px; }
.cc-empty { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: var(--muted); font-size: .82rem; pointer-events: none; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.cc-empty i { font-size: 1.6rem; opacity: .6; }
.cc-table { max-height: 260px; overflow: auto; padding: 0 14px 14px; }
.cc-table .table td, .cc-table .table th { padding: 5px 8px; }
.period-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--field); }
.period-tabs a { padding: 6px 12px; border-radius: 9px; font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.period-tabs a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ins-post { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ins-post img, .ins-ph { width: 58px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; background: var(--field); display: grid; place-items: center; color: var(--muted); font-size: 1.4rem; }
.trend-badge { flex: none; display: inline-flex; gap: 6px; align-items: center; font-weight: 800; font-size: .78rem; color: #c2410c; background: #f9731622; padding: 6px 12px; border-radius: 999px; }
.ins-totals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; text-align: center; }
.ins-totals > div { display: flex; flex-direction: column; gap: 2px; align-items: center; padding: 8px 4px; }
.ins-totals i { color: var(--muted); } .ins-totals b { font-size: 1.1rem; } .ins-totals span { font-size: .7rem; color: var(--muted); }
.video-kpis { padding: 0 !important; margin: 0 !important; }
.list-item .rank { width: 24px; text-align: center; font-weight: 800; color: var(--muted); flex: none; }
.dash-2-1 { grid-template-columns: 2fr 1fr; }
.insights .page-head { flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ins-grid { grid-template-columns: minmax(0, 1fr); }
  .ins-grid > .span-2 { grid-column: auto; }
  .dash-2-1 { grid-template-columns: minmax(0, 1fr); }
  .ins-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-v { font-size: 1.2rem; }
  .insights { padding: 0 10px; }
}

/* ============================ Pricing ============================ */
.pricing-hero { text-align: center; padding: 10px 0 6px; }
.pricing-hero h1 { margin: 10px 0 4px; font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -.02em; }
.ph-badge { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .76rem; }
.cycle-switch { display: inline-flex; gap: 4px; padding: 4px; margin-top: 10px; border-radius: 999px; background: var(--field); border: 1px solid var(--border); }
.cycle-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cycle-switch span { display: inline-flex; gap: 6px; align-items: center; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--muted); cursor: pointer; transition: all .2s; }
.cycle-switch span em { font-style: normal; font-size: .66rem; font-weight: 800; background: #16a34a1f; color: #15803d; padding: 2px 7px; border-radius: 999px; }
.cycle-switch input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; margin-top: 18px; }
@media (min-width: 1100px) { .plan-grid { grid-template-columns: repeat(min(var(--n), 4), minmax(0, 1fr)); } }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 18px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); min-width: 0; transition: transform .2s, box-shadow .2s; }
.plan-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 22px 22px 0 0; background: var(--pc); opacity: .9; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan-card.is-featured { border: 2px solid var(--pc); box-shadow: 0 14px 40px color-mix(in srgb, var(--pc) 22%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 7%, var(--surface)), var(--surface) 40%); }
.plan-card.is-current { outline: 2px dashed color-mix(in srgb, var(--pc) 60%, transparent); outline-offset: 3px; }
.plan-card.is-off { opacity: .55; }
.plan-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--pc); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: .7rem; font-weight: 800; display: inline-flex; gap: 5px; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.plan-ribbon.current { top: auto; bottom: -12px; background: var(--text); color: var(--surface); }
.plan-card.is-featured .plan-ribbon.current { display: none; }
.plan-name { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 800; color: var(--pc); }
.plan-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); flex: none; }
.plan-tag { font-size: .8rem; color: var(--muted); margin-top: 2px; min-height: 2.4em; }
.plan-price { min-height: 64px; }
.plan-price > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.plan-price .cur { font-size: .8rem; font-weight: 700; color: var(--muted); }
.plan-price b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--text); }
.plan-price small { font-size: .8rem; color: var(--muted); }
.plan-price .save { flex-basis: 100%; font-size: .72rem; font-weight: 700; color: #15803d; margin-top: 4px; }
.plan-feats { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; font-size: .86rem; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.plan-feats li i { color: var(--pc); flex: none; margin-top: 1px; }
.plan-feats li.off { color: var(--faint, var(--muted)); }
.plan-feats li.off i { color: var(--faint, var(--muted)); }
.plan-stat { font-size: .82rem; color: var(--muted); }
.plan-card .plan-cta { margin-top: 0; }
.plan-grid.admin .plan-cta { margin-top: auto; }
@media (max-width: 560px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .plan-price b { font-size: 1.7rem; }
  .pricing-page { padding: 0 12px; }
}

/* ============================ Admin sidebar ============================ */
body.admin .admin-shell { grid-template-columns: 272px minmax(0, 1fr); transition: grid-template-columns .2s; }
html.as-mini body.admin .admin-shell { grid-template-columns: 76px minmax(0, 1fr); }
body.admin .admin-side { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--surface); border-right: 1px solid var(--border); }
.as-top { display: flex; align-items: center; gap: 8px; padding: 16px 14px 10px; }
.as-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--text); }
.as-ic { width: 38px; height: 38px; border-radius: 12px; flex: none; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.as-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.as-name b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-name small { font-size: .68rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.as-collapse, .as-close { width: 32px; height: 32px; border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; }
.as-collapse:hover, .as-close:hover { background: var(--field); color: var(--text); }
.as-close { display: none; }
.as-search { display: flex; align-items: center; gap: 8px; margin: 2px 12px 8px; padding: 0 10px; height: 36px; border-radius: 10px; background: var(--field); color: var(--muted); font-size: .85rem; }
.as-search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; color: var(--text); }
.as-search kbd { font-size: .66rem; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border); color: var(--muted); font-family: inherit; }
.as-nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; scrollbar-width: thin; }
.as-group { margin-bottom: 4px; }
.as-group > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-top: 6px; border-radius: 10px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); cursor: pointer; user-select: none; }
.as-group > summary::-webkit-details-marker { display: none; }
.as-group > summary:hover { background: var(--field); color: var(--text); }
.as-group > summary .chev { margin-left: auto; transition: transform .2s; font-size: .8rem; }
.as-group[open] > summary .chev { transform: rotate(180deg); }
.as-dot { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger, #e11d48); color: #fff; font-size: .62rem; display: grid; place-items: center; letter-spacing: 0; }
.as-group[open] .as-dot { display: none; }
.as-link { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 12px; color: var(--text); font-weight: 600; font-size: .88rem; position: relative; transition: background .15s; }
.as-link:hover { background: var(--surface-hover); }
.as-i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 1.02rem; color: var(--ic, var(--muted)); background: color-mix(in srgb, var(--ic, #64748b) 12%, transparent); transition: background .15s, color .15s; }
.as-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-link.active { background: var(--primary-soft); color: var(--primary); }
.as-link.active .as-i { background: var(--ic, var(--primary)); color: #fff; box-shadow: 0 4px 10px color-mix(in srgb, var(--ic, var(--primary)) 35%, transparent); }
.as-link.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary); }
html[data-mode="dark"] .as-link.active { color: var(--accent); }
.as-count { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger, #e11d48); color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; }
.as-foot { border-top: 1px solid var(--border); padding: 8px 10px 12px; }
.as-me { display: flex; align-items: center; gap: 10px; padding: 8px 10px 0; min-width: 0; }
.as-me .as-t { display: flex; flex-direction: column; line-height: 1.2; }
.as-me small { font-size: .7rem; color: var(--muted); }
.as-scrim { display: none; }
html.as-mini .as-name, html.as-mini .as-search, html.as-mini .as-t, html.as-mini .as-group > summary span, html.as-mini .as-group > summary .chev { display: none; }
html.as-mini .as-top { flex-direction: column; padding: 14px 8px 8px; }
html.as-mini .as-link { justify-content: center; padding: 6px; }
html.as-mini .as-group > summary { justify-content: center; padding: 8px 4px; }
html.as-mini .as-group:not([open]) .as-link { display: none; }
html.as-mini .as-count { position: absolute; top: 0; right: 2px; min-width: 16px; height: 16px; font-size: .58rem; }
html.as-mini .as-me { justify-content: center; padding: 8px 0 0; }
@media (max-width: 900px) {
  body.admin .admin-shell, html.as-mini body.admin .admin-shell { grid-template-columns: minmax(0, 1fr); }
  body.admin .admin-side { position: fixed; z-index: 80; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow-lg); border-radius: 0 20px 20px 0; }
  body.admin .admin-side.open { transform: none; }
  body.admin .admin-side.open + .as-scrim { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(0,0,0,.35); }
  .as-collapse { display: none; }
  .as-close { display: grid; }
  html.as-mini .as-name, html.as-mini .as-search, html.as-mini .as-t, html.as-mini .as-group > summary span { display: revert; }
}
body.admin .admin-top { position: sticky; top: 0; z-index: 30; margin: -24px -28px 22px; padding: 16px 28px; background: color-mix(in srgb, var(--bg, var(--surface)) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
@media (max-width: 900px) { body.admin .admin-top { margin: -16px -14px 16px; padding: 10px 14px; } body.admin .admin-top h1 { font-size: 1.15rem; } }

/* ============================ 2FA ============================ */
.otp-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); font-size: 1.8rem; }
.otp-ic.sm { width: 44px; height: 44px; border-radius: 14px; font-size: 1.25rem; flex: none; }
.otp-input { text-align: center; font-size: 1.6rem !important; letter-spacing: .5em; font-weight: 800; font-variant-numeric: tabular-nums; padding: 14px !important; }
.tfa-card .tfa-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); margin-top: 12px; }
.tfa-card .tfa-row > i { font-size: 1.2rem; color: var(--primary); }
@media (max-width: 767px) {
  body.app.dm-page:not(.chat-open) .dm { height: calc(100dvh - 52px - 84px); }
  body.app.dm-page:not(.chat-open) .content-wrap { padding-bottom: 0 !important; }
}

/* ============================ Green Tick (vigezo) ============================ */
.vf { padding: 0 !important; overflow: hidden; }
.vf-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, var(--primary-soft), transparent); }
.vf-score { position: relative; width: 62px; height: 62px; flex: none; --sc: #e11d48; }
.vf-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vf-score path { fill: none; stroke-width: 3.6; stroke-linecap: round; }
.vf-score .bg { stroke: var(--border); }
.vf-score .fg { stroke: var(--sc); transition: stroke-dasharray .4s, stroke .3s; }
.vf-score b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; }
.vf-sec { display: flex; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.vf-sec h4 { margin: 2px 0 12px; font-size: 1rem; }
.vf-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.vf .grow { min-width: 0; }
.vf > .btn-block { margin: 18px 20px 20px; width: calc(100% - 40px); }
.req { color: var(--danger, #e11d48); font-weight: 800; }
.vf-biz { margin-top: 6px; padding: 12px; border-radius: 14px; background: var(--field); }
.vf-gps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vf-gps .input { width: 150px; }
.vf-contact { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; }
.vf-contact > i { font-size: 1.3rem; color: var(--primary); margin-top: 2px; }
.vbadge { display: inline-block; font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #e11d4815; color: #be123c; margin-left: 6px; }
.vbadge.ok { background: #16a34a1a; color: #15803d; }
.vf-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.vf-doc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.vf-doc:hover { border-color: var(--primary); }
.vf-doc > i { font-size: 1.3rem; color: var(--muted); flex: none; }
.vf-doc b { font-size: .84rem; }
.vf-doc small { display: block; font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-doc.is-req { border-color: color-mix(in srgb, var(--danger, #e11d48) 40%, var(--border)); }
.vf-doc.has { border-style: solid; border-color: #16a34a; background: #16a34a0d; }
.vf-doc.has > i { color: #16a34a; }
.vf-decl { margin-top: 14px; align-items: flex-start; line-height: 1.45; }
@media (max-width: 640px) { .vf-sec { padding: 14px; gap: 10px; } .vf-n { width: 26px; height: 26px; } .vf-head { padding: 14px; } .vf-gps .input { width: calc(50% - 4px); } }
.vr-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1000px) { .vr-grid { grid-template-columns: minmax(0, 1fr); } }
.vr-score { flex: none; text-align: center; padding: 8px 14px; border-radius: 14px; background: color-mix(in srgb, var(--sc) 12%, transparent); color: var(--sc); }
.vr-score b { display: block; font-size: 1.5rem; line-height: 1; }
.vr-score span { font-size: .68rem; font-weight: 700; }
.vr-h { margin: 18px 0 6px; font-size: .9rem; display: flex; gap: 8px; align-items: center; color: var(--muted); }
.vr-table td:first-child { width: 170px; color: var(--muted); font-size: .84rem; }
.vr-doc-row { padding: 10px 0; border-top: 1px solid var(--border); }
.vr-doc-t { font-weight: 700; font-size: .86rem; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.vr-docs { display: flex; flex-wrap: wrap; gap: 8px; }
.vr-doc { width: 130px; border: 1px solid var(--border); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 4px; align-items: center; color: var(--text); }
.vr-doc img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; }
.vr-doc > i { font-size: 2.4rem; color: var(--danger, #e11d48); height: 90px; display: grid; place-items: center; }
.vr-check { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; }
.vr-check.is-req { background: var(--field); }
.vr-side { position: sticky; top: 90px; }
.score-bar { width: 70px; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.score-bar i { display: block; height: 100%; width: var(--p); background: var(--c); }
.status-needs_info, .status-review { background: #ffedd5; color: #9a3412; }
.status-suspended { background: #ffe4e6; color: #9f1239; }
/* Reels: bottom nav ya giza ili isifunike video */
@media (max-width: 767px) {
  body.reels-page .bottom-nav.v4 { background: rgba(10, 10, 10, .62); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
  body.reels-page .bottom-nav.v4 a.bn-item { color: rgba(255, 255, 255, .78); }
  body.reels-page .bottom-nav.v4 a.bn-item.active { color: #fff; }
  body.reels-page .bottom-nav.v4 a.bn-item.active .ic { background: rgba(255, 255, 255, .16); }
  body.reels-page .bottom-nav.v4 a.bn-create { box-shadow: 0 0 0 4px rgba(0, 0, 0, .6); }
  body.reels-page .content-wrap { padding-bottom: 0 !important; }
  body.reels-page .reels, body.reels-page .reel, body.reels-page .reel .stage { height: 100dvh; }
  body.reels-page .reel .info { padding-bottom: 96px; }
  body.reels-page .reel .side { bottom: 98px; }
}
/* ============================ Maintenance ============================ */
.maint { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.maint-card { width: min(480px, 100%); text-align: center; padding: 34px 26px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.maint-logo { height: 34px; width: auto; margin: 0 auto 18px; }
.maint-ic { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; font-size: 2.1rem; color: #b45309; background: #f59e0b22; animation: wob 2.4s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(-12deg); } }
.maint-card h1 { font-size: 1.45rem; margin: 0 0 8px; }
.maint-card p { color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.maint-eta { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: var(--field); margin-bottom: 14px; }
.maint-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.maint-banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; margin-bottom: 16px; border-radius: 14px; background: #f59e0b1f; border: 1px solid #f59e0b55; color: #92400e; font-weight: 700; font-size: .86rem; }
html[data-mode="dark"] .maint-banner { color: #fcd34d; }
.maint-banner > span { flex: 1; min-width: 0; }
.maint-banner > a { white-space: nowrap; }
.maint-banner > i { margin-top: 1px; }
.maint-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px 6px 8px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.maint-toggle .sw { width: 34px; height: 20px; border-radius: 10px; background: var(--border); position: relative; transition: background .2s; }
.maint-toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.maint-toggle.on { border-color: #f59e0b; color: #b45309; }
.maint-toggle.on .sw { background: #f59e0b; }
.maint-toggle.on .sw::after { transform: translateX(14px); }
@media (max-width: 600px) { .maint-toggle .lbl { display: none; } }

/* ===== Arifa: kugusa popote kwenye arifa kunakupeleka mahali husika ===== */
.ntf { position: relative; cursor: pointer; border-radius: 12px; transition: background .15s; }
.ntf:hover { background: var(--hover, color-mix(in srgb, var(--text) 5%, transparent)); }
.ntf:active { background: color-mix(in srgb, var(--text) 9%, transparent); }
.ntf .ntf-link { color: inherit; text-decoration: none; min-width: 0; }
.ntf .ntf-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ntf .ntf-act { position: relative; z-index: 1; }
.ntf-thumb { position: relative; width: 44px; height: 44px; flex: none; border-radius: 8px; overflow: hidden; background: var(--field); }
.ntf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ntf-thumb i { position: absolute; right: 2px; bottom: 0; color: #fff; font-size: .8rem; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Comment uliyoletwa nayo kutoka kwenye arifa: inaangaziwa */
.comment, .cm { scroll-margin-top: 90px; }
.comment.is-target, .cm.is-target { animation: afTarget 2.6s ease-out; border-radius: 12px; }
@keyframes afTarget { 0%, 35% { background: color-mix(in srgb, var(--primary) 16%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 16%, transparent); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }

/* ============================ Channels v4.1 — muonekano mpya wa chat ============================ */
.ch-type { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); vertical-align: 1px; }
.ch-type.broadcast { background: color-mix(in srgb, #0ea5e9 15%, transparent); color: #0369a1; }
html[data-mode="dark"] .ch-type.broadcast { color: #7dd3fc; }
.chat.channel .chat-head { border-bottom: 1px solid var(--border); background: var(--surface); }
.chat.channel .chat-body {
  padding: 10px 12px 14px; gap: 0;
  background-color: color-mix(in srgb, var(--primary) 4%, var(--bg, var(--surface)));
  background-image: radial-gradient(color-mix(in srgb, var(--primary) 13%, transparent) 1px, transparent 1.5px);
  background-size: 20px 20px;
}
.chat.channel .ch-intro { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px 16px; margin: 6px auto 12px; max-width: 360px; text-align: center; }
.cm-day { position: sticky; top: 6px; z-index: 2; text-align: center; margin: 12px 0 6px; pointer-events: none; }
.cm-day span { display: inline-block; font-size: .7rem; font-weight: 800; color: var(--muted); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chat.channel .cm-system span { background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--border); }

.chat.channel .cm { display: flex; gap: 8px; align-items: flex-end; margin: 10px 0 0; position: relative; max-width: 100%; }
.chat.channel .cm.cont { margin-top: 3px; }
.chat.channel .cm.me { flex-direction: row-reverse; }
.chat.channel .cm .cm-av { flex: none; width: 28px; align-self: flex-end; }
.chat.channel .cm .cm-av .avatar { --size: 28px; }
.chat.channel .cm.cont .cm-av { visibility: hidden; height: 0; }
.chat.channel .cm-col { display: flex; flex-direction: column; min-width: 0; max-width: min(78%, 560px); }
.chat.channel .cm.me .cm-col { align-items: flex-end; }
.chat.channel .cm-bubble { max-width: 100%; background: var(--surface); color: var(--text); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: 18px; padding: 7px 12px 5px; box-shadow: 0 1px 1.5px rgba(15, 23, 42, .06); overflow-wrap: anywhere; }
.chat.channel .cm.them:not(.cont) .cm-bubble { border-top-left-radius: 6px; }
.chat.channel .cm.me .cm-bubble { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 78%, #0b3d1a)); color: #fff; border-color: transparent; }
.chat.channel .cm.me:not(.cont) .cm-bubble { border-top-right-radius: 6px; }
.chat.channel .cm-author { font-size: .76rem; font-weight: 800; color: var(--uc, var(--primary)); margin-bottom: 1px; display: flex; align-items: center; gap: 3px; }
html[data-mode="dark"] .chat.channel .cm-author, html[data-mode="dark"] .chat.channel .cm-reply { --uc-d: color-mix(in srgb, var(--uc, var(--primary)) 55%, #fff); }
html[data-mode="dark"] .chat.channel .cm-author { color: var(--uc-d); }
.chat.channel .cm-author a { color: inherit; }
.chat.channel .cm-text { font-size: .94rem; line-height: 1.42; white-space: pre-line; }
.chat.channel .cm-meta { display: flex; gap: 8px; justify-content: flex-end; align-items: center; font-size: .66rem; opacity: .7; margin-top: 1px; font-variant-numeric: tabular-nums; }
.chat.channel .cm.me .cm-meta .flag { color: #fff; }
.chat.channel .cm-reply { display: flex; flex-direction: column; gap: 1px; font-size: .78rem; border-left: 3px solid var(--uc, var(--primary)); padding: 4px 8px; margin: 2px 0 6px; border-radius: 8px; background: color-mix(in srgb, var(--uc, var(--primary)) 9%, transparent); color: inherit; min-width: 0; }
.chat.channel .cm-reply b { color: var(--uc, var(--primary)); font-size: .74rem; }
html[data-mode="dark"] .chat.channel .cm-reply b { color: var(--uc-d); }
.chat.channel .cm.me .cm-reply { background: rgba(255,255,255,.16); border-left-color: #fff; }
.chat.channel .cm.me .cm-reply b { color: #fff; }
.chat.channel .cm .mimg.cm-img { display: block; width: 280px; max-width: 100%; margin: 3px -6px 5px; width: calc(min(280px, 100%) + 12px); border-radius: 13px; overflow: hidden; }
.chat.channel .cm-shared { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); color: var(--text); max-width: 260px; margin: 2px 0 4px; }
.chat.channel .cm-shared .h { display: flex; gap: 6px; align-items: center; padding: 6px 8px; font-size: .8rem; font-weight: 700; }
.chat.channel .cm-shared img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.chat.channel .cm-shared .b { display: block; padding: 6px 8px; font-size: .78rem; color: var(--muted); }

/* Broadcast: kadi za matangazo */
.chat.channel .cm.bc { flex-direction: row; }
.chat.channel .cm.bc .cm-col { max-width: min(92%, 600px); }
.chat.channel .cm.bc .cm-bubble { border-radius: 6px 20px 20px 20px; padding: 10px 14px 7px; }
.chat.channel .cm.bc.cont .cm-bubble { border-top-left-radius: 20px; }
.chat.channel .cm.bc.cont .cm-bc-head { display: none; }
.chat.channel .cm-bc-head { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--primary); margin-bottom: 3px; min-width: 0; }
.chat.channel .cm.bc .cm-text { font-size: .97rem; }
.chat.channel .cm.bc .mimg.cm-img { width: calc(100% + 28px); max-width: none; margin: 4px -14px 6px; border-radius: 0; }

/* Reactions chini ya ujumbe */
.chat.channel .cm-reacts { margin: -5px 10px 0; position: relative; z-index: 1; }
.chat.channel .cm-reacts span { box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.chat.channel .cm.me .cm-reacts { justify-content: flex-end; }

/* Vitufe vya ujumbe: desktop → hover; simu → gusa ujumbe */
.chat.channel .cm-tools { align-self: center; flex-direction: column; gap: 0; }
@media (hover: none) {
  .chat.channel .cm-tools { display: none; opacity: 1; }
  .chat.channel .cm.tools-on .cm-tools { display: flex; flex-direction: row; position: absolute; z-index: 4; top: -38px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,.14)); }
  .chat.channel .cm.them.tools-on .cm-tools, .chat.channel .cm.bc.tools-on .cm-tools { left: 36px; }
  .chat.channel .cm.me.tools-on .cm-tools { right: 0; }
  .chat.channel .cm-tools button { width: 36px; height: 36px; font-size: 1.05rem; }
  .chat.channel .cm.tools-on .cm-bubble { filter: brightness(.96); }
}

/* Voice note player */
.chat.channel .cm.is-voice .cm-bubble { min-width: min(270px, 70vw); }
.cvoice { display: flex; align-items: center; gap: 10px; padding: 4px 0 2px; }
.cvoice .cv-play { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.35rem; cursor: pointer; background: var(--primary); color: #fff; box-shadow: 0 2px 6px color-mix(in srgb, var(--primary) 35%, transparent); transition: transform .15s; }
.cvoice .cv-play:active { transform: scale(.92); }
.cm.me .cvoice .cv-play { background: #fff; color: var(--primary); box-shadow: none; }
.cvoice .cv-track { flex: 1; min-width: 0; cursor: pointer; padding: 6px 0; }
.cvoice .cv-wave { display: flex; align-items: center; gap: 2px; height: 30px; }
.cvoice .cv-wave i { flex: 1; min-width: 2px; height: var(--h, 40%); border-radius: 2px; background: currentColor; opacity: .3; transition: opacity .15s; }
.cvoice .cv-wave i.p { opacity: 1; color: var(--primary); }
.cm.me .cvoice .cv-wave i.p { color: #fff; }
.cvoice.playing .cv-play { animation: cvPulse 1.4s ease-in-out infinite; }
@keyframes cvPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 18%, transparent); } }
.cvoice .cv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.cvoice .cv-time { font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cvoice .cv-speed { border: 0; border-radius: 999px; padding: 1px 7px; font-size: .64rem; font-weight: 800; cursor: pointer; background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; }

/* Sehemu ya kuandika (composer) */
.chat.channel .chat-form.cform { flex: none; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
.chat.channel .creply-bar { background: var(--surface); border-left: 3px solid var(--primary); }
.cbar { position: relative; display: flex; align-items: flex-end; gap: 8px; }
.cbar-pill { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 0; background: var(--field); border: 1px solid transparent; border-radius: 24px; padding: 3px 6px 3px 3px; min-height: 46px; transition: border-color .15s, background .15s; }
.cbar-pill:focus-within { border-color: color-mix(in srgb, var(--primary) 45%, transparent); background: var(--surface); }
.cbar-pill .ib { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; background: none; color: var(--muted); font-size: 1.2rem; border-radius: 50%; cursor: pointer; }
.cbar-pill .ib:hover { color: var(--primary); background: var(--primary-soft); }
.cbar-pill textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: .95rem; line-height: 1.35; padding: 10px 6px 9px; resize: none; max-height: 140px; height: 40px; }
.cbtn { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; cursor: pointer; background: var(--primary); color: #fff; box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 32%, transparent); transition: transform .15s, opacity .15s; }
.cbtn:active { transform: scale(.9); }
.cbtn.ghost { background: transparent; color: #e11d48; box-shadow: none; font-size: 1.15rem; }
.cbar.has-mic:not(.has-text) > .send { display: none; }
.cbar.has-mic.has-text > .mic { display: none; }
.cform.is-sending .cbtn.send { opacity: .55; pointer-events: none; }
.crec { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; gap: 6px; background: var(--surface); }
.crec-mid { flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; gap: 10px; background: var(--field); border-radius: 24px; padding: 0 14px; }
.crec-mid .dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; flex: none; animation: recDot 1s ease-in-out infinite; }
@keyframes recDot { 50% { opacity: .25; } }
.crec-time { font-weight: 800; font-size: .88rem; font-variant-numeric: tabular-nums; min-width: 34px; }
.crec-wave { flex: 1; min-width: 0; height: 26px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.crec-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: #ef4444; height: calc(var(--l, .08) * 100%); transition: height .09s linear; }

/* Chini ya chat: jiunge / broadcast (soma tu) */
.chat.channel .chat-join { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
.chat.channel .chat-join .cj-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: .88rem; }
.chat.channel .chat-join .cj-ic { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, #0ea5e9 15%, transparent); color: #0369a1; font-size: 1.15rem; }
.chat.channel .new-msg-pill { bottom: 90px; }

/* Channels za wazi (kwenye tab ya Channels) */
.ch-sug-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 6px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-top: 1px solid var(--border); margin-top: 6px; }
.ch-sug-head a { color: var(--primary); text-transform: none; letter-spacing: 0; font-size: .8rem; }
.dm .li.ch-sug { display: flex; align-items: center; gap: 10px; }
.dm .li.ch-sug .ch-sug-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; }
.dm .li.ch-sug .p i { font-size: .72rem; }

/* Simu: bottom nav inabaki; sehemu ya kuandika iko juu yake. Kibodi ikifunguka, nav inajificha. */
@media (max-width: 767px) {
  html body.app.dm-page.ch-open .m-top { display: none; }
  html body.app.dm-page.ch-open .dm, html body.app.dm-page.ch-open .dm .chat { height: calc(100dvh - 80px - env(safe-area-inset-bottom)); }
  html body.app.dm-page.ch-open .chat.channel .chat-form.cform, html body.app.dm-page.ch-open .chat.channel .chat-join { padding-bottom: 10px; }
  html body.app.dm-page.ch-open.kb-open .bottom-nav { display: none; }
  html body.app.dm-page.ch-open.kb-open .dm, html body.app.dm-page.ch-open.kb-open .dm .chat { height: 100dvh; }
  html body.app.dm-page.ch-open.kb-open .chat.channel .chat-form.cform { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .chat.channel .cm-col { max-width: 84%; }
  .chat.channel .cm.bc .cm-col { max-width: calc(100% - 36px); }
  .chat.channel .chat-body { padding: 8px 8px 12px; }
}
.chat.channel .chat-form.cform { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.chat.channel .chat-form.cform > .cbar { flex: 1 1 auto; width: 100%; min-width: 0; }
.chat.channel .cm-tools { flex-direction: row; }
@media (max-width: 767px) {
  /* Kitufe cha "+" kisiingiliane na sehemu ya kuandika */
  html body.app.dm-page.ch-open .bottom-nav.v4 a.bn-create { width: 50px; height: 50px; transform: translateY(-4px); border-radius: 17px; font-size: 1.35rem; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent); }
  html body.app.dm-page.ch-open .bottom-nav.v4 a.bn-create:active { transform: translateY(-4px) scale(.93); }
}
.chat.channel .cm:not(.bc) .mimg.cm-img { width: 292px; max-width: calc(100% + 12px); }

/* ===== Nywila: kijicho cha kuonyesha / kuficha, hatua za "umesahau nywila", kipimo cha uimara ===== */
.pw-wrap { position: relative; display: block; }
.has-eye > .input, .has-eye > input { padding-right: 46px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; border-radius: 10px; color: var(--muted); font-size: 1.1rem; display: grid; place-items: center; cursor: pointer; z-index: 1; }
.pw-eye, .pw-eye:focus, .pw-eye:active { background: none !important; box-shadow: none !important; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .pw-eye:hover { color: var(--text); background: var(--field) !important; } }
.pw-eye.on { color: var(--primary); }
.pw-eye:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.input-icon.has-eye > i:first-child { pointer-events: none; }
input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear { display: none; }
.pw-steps { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 18px; }
.pw-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--field); color: var(--muted); }
.pw-steps span.on { background: var(--primary); color: #fff; }
.pw-steps span.done { background: var(--primary-soft); color: var(--primary); }
.pw-steps > i { width: 34px; height: 2px; border-radius: 2px; background: var(--border); }
.pw-steps > i.on { background: var(--primary); }
.pw-meter { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pw-meter i { flex: 1; height: 5px; border-radius: 4px; background: var(--field); position: relative; overflow: hidden; }
.pw-meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; transition: width .2s, background .2s; }
.pw-meter[data-s="0"] i::after { width: 12%; background: #e11d48; }
.pw-meter[data-s="1"] i::after { width: 30%; background: #e11d48; }
.pw-meter[data-s="2"] i::after { width: 55%; background: #f59e0b; }
.pw-meter[data-s="3"] i::after { width: 80%; background: #16a34a; }
.pw-meter[data-s="4"] i::after { width: 100%; background: #15803d; }
.pw-meter span { min-width: 70px; text-align: right; }

/* ═════════════ v11 Channels: usalama, ruhusa, reactions za emoji, maoni, mada ═════════════ */
.cm-reacts button { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 700; padding: 2px 8px 2px 6px; border-radius: 999px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); cursor: pointer; font-family: inherit; line-height: 1.5; }
.cm-reacts button em { font-style: normal; font-size: .95rem; line-height: 1; }
.cm-reacts button.on { border-color: var(--primary); background: var(--primary-soft); }
.cm-reacts button:not([data-creact-toggle]) { cursor: default; }
.chat.channel .cm-reacts button { box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.react-pop.emo { flex-wrap: wrap; max-width: min(300px, 80vw); border-radius: 22px; }
.react-pop.emo button.on { background: var(--primary-soft); }
.cm-topic { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 1px 8px; border-radius: 999px; margin-bottom: 4px; text-decoration: none; }
.cm-edited { font-style: italic; opacity: .8; }
.cm.is-silent .cm-bubble { border-style: dashed; }
.cm-comments { display: inline-flex; align-items: center; gap: 6px; margin: 6px 10px 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--primary); font-weight: 700; font-size: .78rem; cursor: pointer; font-family: inherit; }
.cm-comments:hover { background: var(--primary-soft); }
.ch-topics { padding: 8px 12px 6px !important; border-bottom: 1px solid var(--border); margin: 0; }
.ch-mg { position: relative; }
.dot-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e11d48; color: #fff; font-size: .6rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.pill-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e11d48; color: #fff; font-size: .65rem; font-weight: 800; margin-left: 4px; }
.ib { position: relative; }
.ib-n { position: absolute; top: -2px; right: -2px; min-width: 14px; height: 14px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .55rem; font-weight: 800; display: grid; place-items: center; padding: 0 3px; }
.ch-rules-gate { margin: 8px 12px 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 10px; }
.ch-rules-gate .rules { white-space: pre-line; max-height: 34vh; overflow: auto; padding: 10px 12px; border-radius: 12px; background: var(--field); }
.ch-rules-mini { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: var(--field); }
.ch-rules-mini summary { cursor: pointer; font-weight: 700; font-size: .85rem; }
.ch-rules-mini .small { white-space: pre-line; margin-top: 6px; }
.ch-role { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, transparent); padding: 0 7px; border-radius: 999px; font-size: .68rem; }
.sh-sub { padding: 10px 16px 6px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sh-actions .sw-row { padding: 9px 0; }
.sh-actions .sw-row button, .sh-actions .ch-rights .sw-row { width: 100%; }
.danger-t, .danger-t i { color: var(--danger) !important; }
/* Mipangilio */
.ch-set .ch-sec { margin-bottom: 12px; }
.ch-set .ch-sec h2 { font-size: .95rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.ch-set .ch-sec h2 i { color: var(--primary); }
.ch-set .ch-save { position: sticky; bottom: calc(var(--bnav-h, 0px) + 10px); padding: 10px 12px; margin-top: 4px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow); z-index: 5; }
.ce-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 42px; padding: 6px; border-radius: 12px; background: var(--field); }
.ce-chip { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); cursor: grab; user-select: none; }
.ce-chip .e { font-size: 1.25rem; line-height: 1; }
.ce-chip button { border: 0; background: none; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; }
.ce-chip button:hover { background: var(--field); color: var(--danger); }
.ce-chip.dragging { opacity: .4; }
.ce-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 2px; margin-top: 8px; max-height: 150px; overflow: auto; padding: 4px; border-radius: 12px; border: 1px solid var(--border); }
.ce-pick button { border: 0; background: none; height: 38px; border-radius: 10px; font-size: 1.3rem; cursor: pointer; transition: transform .1s; }
.ce-pick button:hover { background: var(--field); transform: scale(1.12); }
.ce-pick button.on { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
/* Usimamizi */
.ch-mgmt .page-head h1 { font-size: 1.1rem; }
.ch-state { font-size: .65rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; margin-left: 4px; background: var(--field); color: var(--muted); }
.ch-state.active { background: color-mix(in srgb, #16a34a 14%, transparent); color: #16a34a; }
.ch-state.revoked, .ch-state.expired, .ch-state.full { background: color-mix(in srgb, #e11d48 12%, transparent); color: #e11d48; }
.ch-link.is-off { opacity: .6; }
.ch-report { display: grid; gap: 10px; }
.ch-rep-body { padding: 10px 12px; border-radius: 12px; background: var(--field); }
.ch-top { padding: 7px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.ch-top:last-child { border-bottom: 0; }
.list-item .sw-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--field); color: var(--primary); flex: none; }
/* Maoni chini ya tangazo */
.ccm-wrap { display: flex; flex-direction: column; max-height: min(70vh, 640px); padding: 0 !important; }
.ccm-src { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.ccm-list { flex: 1; overflow: auto; padding: 8px 12px; min-height: 120px; }
.ccm { display: flex; gap: 8px; padding: 7px 4px; align-items: flex-start; }
.ccm-h { display: flex; align-items: center; gap: 6px; font-size: .8rem; }
.ccm-b { font-size: .88rem; white-space: pre-line; word-break: break-word; }
.ccm-t { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.ccm:hover .ccm-t, .ccm:focus-within .ccm-t { opacity: 1; }
@media (hover: none) { .ccm-t { opacity: .7; } }
.ccm-t button { border: 0; background: none; width: 28px; height: 28px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.ccm-t button:hover { background: var(--field); color: var(--danger); }
.ccm-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.ccm-form .textarea { min-height: 40px; max-height: 120px; resize: none; border-radius: 20px; padding: 9px 14px; }
.empty.sm { padding: 24px 10px; font-size: .85rem; }
@media (max-width: 600px) { .ch-set .grid-2 { grid-template-columns: 1fr; } }
.cm.me .cm-topic { color: #fff; background: rgba(255,255,255,.2); }
