/* ============================================================
   KSA COMMUNITY — CSS UNIVERSAL
   Dipakai di semua halaman community
   ============================================================ */

/* ============================================================
   1. CSS VARIABLE
   ============================================================ */
:root {
  /* Warna Tema */
  --c-primary: #1A3A8F;
  --c-primary-light: #3AA7F0;
  --c-accent-green: #25D366;
  --c-accent-red: #C62828;
  --c-accent-yellow: #F0A500;

  /* Warna Dasar */
  --c-bg: #F5F1E8;
  --c-bg-card: #FFFFFF;
  --c-bg-soft: #F0EBE0;
  --c-line: #EDE5D5;
  --c-text: #2B2016;
  --c-text-2: #8B7C68;
  --c-text-3: #A89A84;

  /* Header */
  --hdr-height: 56px;
  --hdr-logo-size: 32px;
  --hdr-brand-font: 15px;
  --hdr-brand-gap: 8px;
  --hdr-icon-size: 22px;

  /* Nav Bawah */
  --nav-height: 60px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 2px 8px rgba(120,90,40,.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.15);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.kc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.modal-open {
  overflow: hidden;
}

body.kc-bd-body {
  padding-top: var(--hdr-height);
  padding-bottom: var(--nav-height);
}

body.kc-hdr-offset {
  padding-top: var(--hdr-height) !important;
}

/* ============================================================
   3. HEADER BERANDA
   ============================================================ */
.kc-hdr-bd {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hdr-height);
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.kc-hdr-bd-menu {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background .15s;
}
.kc-hdr-bd-menu:active { background: var(--c-bg-soft); }
.kc-hdr-bd-menu svg {
  width: var(--hdr-icon-size);
  height: var(--hdr-icon-size);
  stroke-width: 2.2;
}

.kc-hdr-bd-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--hdr-brand-gap);
  flex: 1;
  min-width: 0;
  padding: 0 4px;
}

.kc-hdr-bd-txt {
  font-size: var(--hdr-brand-font);
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: .3px;
  white-space: nowrap;
}

.kc-hdr-bd-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.kc-hdr-bd-brand img {
  height: var(--hdr-logo-size);
  width: auto;
  flex-shrink: 0;
}
.kc-hdr-bd-group img {
  height: var(--hdr-logo-size);
  width: auto;
  flex-shrink: 0;
}

.kc-hdr-bd-aksi {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.kc-hdr-bd-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  transition: background .15s;
}
.kc-hdr-bd-btn:active { background: var(--c-bg-soft); }
.kc-hdr-bd-btn svg {
  width: var(--hdr-icon-size);
  height: var(--hdr-icon-size);
  stroke-width: 2.2;
}

.kc-hdr-bd-btn .kc-bell-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #E73B3B;
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #FFFFFF;
}

/* ============================================================
   4. DRAWER
   ============================================================ */
.kc-drawer-ov {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  display: none;
}
.kc-drawer-ov.open { display: block; }

.kc-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 84%;
  max-width: 320px;
  background: #FFFFFF;
  z-index: 501;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.2,.9,.3,1);
  box-shadow: 4px 0 24px rgba(0,0,0,.25);
}
.kc-drawer.open { transform: translateX(0); }

.kc-drawer-head {
  padding: 22px 18px 20px;
  padding-top: calc(22px + env(safe-area-inset-top, 0px));
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.kc-drawer-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.5);
}
.kc-drawer-avatar img { width: 100%; height: 100%; object-fit: cover; }

.kc-drawer-info { flex: 1; min-width: 0; }
.kc-drawer-nama {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kc-drawer-sub {
  font-size: 12px;
  opacity: .9;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kc-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.kc-drawer-section {
  padding: 10px 18px 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--c-text-2);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.kc-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  color: var(--c-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background .15s;
}
.kc-drawer-item:active { background: #F5F1E8; }

.kc-drawer-ico {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}
.kc-drawer-ico svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kc-drawer-txt {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kc-drawer-item.danger .kc-drawer-ico { color: var(--c-accent-red); }
.kc-drawer-item.danger { color: var(--c-accent-red); }
.kc-drawer-item.success .kc-drawer-ico { color: #2E7D32; }
.kc-drawer-item.success { color: #2E7D32; }

.kc-drawer-divider {
  height: 1px;
  background: var(--c-line);
  margin: 6px 18px;
}

.kc-drawer-foot {
  flex-shrink: 0;
  padding: 12px 18px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--c-line);
  font-size: 11px;
  color: var(--c-text-2);
  text-align: center;
  font-weight: 600;
}

/* ============================================================
   5. NAV BAWAH (universal)
   ============================================================ */
.kc-navb {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 90;
  background: #FFFFFF;
  border-top: 1px solid var(--c-line);
  display: flex;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.kc-navb-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--c-text-2);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  transition: color .15s, background .15s;
  border: none;
  background: transparent;
  padding: 6px 2px;
  position: relative;
  font-family: inherit;
}
.kc-navb-item:active { background: #FAF5EA; }
.kc-navb-item.active { color: var(--c-primary); }

.kc-navb-ico {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.kc-navb-ico svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kc-navb-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #E73B3B;
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #FFFFFF;
}

/* ============================================================
   6. TOAST
   ============================================================ */
.kc-toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translate(-50%, 20px);
  background: #1E7E34;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.kc-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.kc-toast.err { background: var(--c-accent-red); }

/* ============================================================
   7. LOADING
   ============================================================ */
.kc-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--c-text-2);
  font-size: 13px;
}
.kc-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--c-line);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: kcSpin .8s linear infinite;
}
@keyframes kcSpin { to { transform: rotate(360deg); } }

/* ============================================================
   8. EMPTY STATE
   ============================================================ */
.kc-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--c-text-2);
}
.kc-empty-ico {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  opacity: .35;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kc-empty-ico svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kc-empty strong {
  display: block;
  color: var(--c-text);
  font-size: 15px;
  margin-bottom: 5px;
}

/* ============================================================
   9. MODAL GENERIK
   ============================================================ */
.kc-modal-ov {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.kc-modal-ov.open { display: flex; }

.kc-modal {
  background: #FFFFFF;
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  -webkit-overflow-scrolling: touch;
}

.kc-modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #FFFFFF;
  z-index: 2;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.kc-modal-head h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kc-modal-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-2);
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}
.kc-modal-x:active { transform: scale(.9); }
.kc-modal-x svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.kc-modal-body { padding: 16px 18px 20px; }

/* ============================================================
   10. KONFIRMASI
   ============================================================ */
.kc-confirm-ov {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.kc-confirm-box {
  background: #FFFFFF;
  border-radius: var(--r-md);
  padding: 20px;
  max-width: 340px;
  width: 100%;
}
.kc-confirm-txt {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.kc-confirm-aksi {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.kc-btn-ghost {
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--c-bg-soft);
  color: var(--c-text);
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.kc-btn-primary {
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--c-primary);
  color: #FFFFFF;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================================
   11. KARTU POSTINGAN
   ============================================================ */
.kc-post {
  background: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  overflow: hidden;
}

.kc-post-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px 8px;
}

.kc-post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 2px;
}
.kc-post-avatar img { width: 100%; height: 100%; object-fit: cover; }

.kc-post-info { flex: 1; min-width: 0; }

/* Baris atas: Nama (kiri) + Server (kanan) */
.kc-post-info-atas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.kc-post-nama {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}
.kc-post-nama:hover { color: var(--c-primary); }

/* Baris bawah: Waktu • Tipe */
.kc-post-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--c-text-2);
  margin-top: 2px;
  flex-wrap: wrap;
}

/* Server badge */
.kc-post-server {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}
.kc-post-server.garuda {
  background: #FFF4E0;
  color: #B8770E;
}
.kc-post-server.naga {
  background: #EDE7FF;
  color: #5B3FBF;
}

/* Tipe badge */
.kc-post-tipe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.kc-post-tipe.umum {
  background: transparent;
  padding: 0;
  color: var(--c-text-2);
  width: 16px;
  height: 16px;
}
.kc-post-tipe.umum svg {
  width: 14px;
  height: 14px;
  stroke: var(--c-text-2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kc-post-tipe.buy  { background: #E3F2FD; color: #1565C0; }
.kc-post-tipe.sell { background: #E8F5E9; color: #2E7D32; }

.kc-post-dot { color: #C9BEA9; }

/* Bersama @... */
.kc-post-bersama {
  font-size: 11.5px;
  color: var(--c-text-2);
  margin-top: 3px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.kc-post-bersama-nama {
  color: var(--c-primary);
  font-weight: 700;
  cursor: pointer;
}
.kc-post-bersama-nama:hover {
  text-decoration: underline;
}
.kc-post-bersama-more {
  color: var(--c-primary);
  font-weight: 700;
  cursor: pointer;
}
.kc-post-bersama-more:hover {
  text-decoration: underline;
}

.kc-post-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--c-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: background .15s;
  margin-top: 2px;
}
.kc-post-more:active { background: var(--c-bg-soft); }
.kc-post-more svg { width: 18px; height: 18px; }

.kc-post-isi {
  padding: 4px 14px 12px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.kc-post-imgs {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  background: var(--c-bg-soft);
}
.kc-post-imgs[data-count="1"] { grid-template-columns: 1fr; }
.kc-post-imgs[data-count="2"] { grid-template-columns: 1fr 1fr; }
.kc-post-imgs[data-count="3"] { grid-template-columns: 1fr 1fr 1fr; }
.kc-post-imgs[data-count="4"] { grid-template-columns: 1fr 1fr; }
.kc-post-imgs[data-count="5"] { grid-template-columns: 1fr 1fr 1fr; }

.kc-post-img {
  position: relative;
  background: var(--c-bg-soft);
  overflow: hidden;
  cursor: pointer;
}
.kc-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kc-post-imgs[data-count="1"] .kc-post-img { aspect-ratio: 4/3; }
.kc-post-imgs:not([data-count="1"]) .kc-post-img { aspect-ratio: 1/1; }

.kc-post-img-more {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kc-post-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 10px;
  font-size: 11.5px;
  color: var(--c-text-2);
}
.kc-post-stats-ico {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.kc-post-stats-ico svg { width: 13px; height: 13px; }

.kc-post-stats-komen {
  cursor: pointer;
  transition: color .15s;
}
.kc-post-stats-komen:hover {
  color: var(--c-primary);
  text-decoration: underline;
}

.kc-post-aksi {
  display: flex;
  border-top: 1px solid var(--c-line);
  padding: 4px;
}

.kc-post-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: var(--r-sm);
  background: transparent;
  border: none;
  color: #6B5C48;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
}
.kc-post-btn:active { background: var(--c-bg); }
.kc-post-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.kc-post-btn.liked { color: #E73B3B; }
.kc-post-btn.liked svg { fill: #E73B3B; stroke: #E73B3B; }

/* ============================================================
   12. LIGHTBOX
   ============================================================ */
.kc-lb {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.94);
  z-index: 700;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.kc-lb.open { display: flex; }
.kc-lb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.kc-lb-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.kc-lb-x svg {
  width: 18px;
  height: 18px;
  stroke: #FFF;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* ============================================================
   13. AVATAR ANONIM
   ============================================================ */
.kc-avatar-anon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--c-text-2);
}

/* ============================================================
   14. MODAL KOMENTAR — BOTTOM SHEET 80% LAYAR
   ============================================================ */
.kc-pd-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.kc-pd-modal.open { pointer-events: auto; }

.kc-pd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .25s ease;
}
.kc-pd-modal.open .kc-pd-modal-backdrop { opacity: 1; }

.kc-pd-modal-sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 80vh;
  max-height: 80dvh;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 -8px 32px rgba(0,0,0,.25);
  overflow: hidden;
}
.kc-pd-modal.open .kc-pd-modal-sheet { transform: translateY(0); }

.kc-pd-modal-grip-wrap {
  padding: 8px 0 4px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.kc-pd-modal-grip {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #D4CDC4;
}

.kc-pd-modal-hdr {
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 10px;
}
.kc-pd-modal-hdr h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0;
  flex: 1;
  min-width: 0;
}
.kc-pd-modal-x {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  border: none;
  color: var(--c-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.kc-pd-modal-x:active { transform: scale(.9); }
.kc-pd-modal-x svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.kc-pd-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 20px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.kc-pd-komen-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kc-pd-komen {
  display: flex;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 10px 12px;
}

.kc-pd-komen-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}
.kc-pd-komen-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kc-pd-komen-body {
  flex: 1;
  min-width: 0;
}

.kc-pd-komen-nama {
  font-size: 13px;
  font-weight: 800;
  color: var(--c-text);
  cursor: pointer;
  display: inline-block;
  margin-bottom: 3px;
}
.kc-pd-komen-nama:hover { color: var(--c-primary); }

.kc-pd-komen-teks {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.kc-pd-komen-aksi {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.kc-pd-komen-aksi button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-text-2);
  transition: color .15s;
}
.kc-pd-komen-aksi button:hover { color: var(--c-primary); }
.kc-pd-komen-aksi button.danger { color: var(--c-accent-red); }

.kc-pd-komen-waktu {
  font-size: 11px;
  color: var(--c-text-3);
  margin-top: 4px;
}

.kc-pd-komen-reply-quote {
  background: rgba(26,58,143,.06);
  border-left: 3px solid var(--c-primary);
  padding: 6px 9px;
  border-radius: 6px;
  margin: 4px 0 6px;
  font-size: 12px;
  line-height: 1.35;
}
.kc-pd-komen-reply-nama {
  font-weight: 800;
  color: var(--c-primary);
  font-size: 11.5px;
  margin-bottom: 1px;
}
.kc-pd-komen-reply-isi {
  color: #6B5C48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kc-pd-komen-loadmore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  border-radius: var(--r-sm);
  background: #FFFFFF;
  border: 1.5px solid var(--c-line);
  color: var(--c-primary);
  font-size: 12.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
}
.kc-pd-komen-loadmore:active { background: var(--c-bg-soft); }
.kc-pd-komen-loadmore svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kc-pd-reply-preview {
  display: none;
  background: #FFFFFF;
  border-top: 1px solid var(--c-line);
  padding: 8px 12px;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.kc-pd-reply-preview.show { display: flex; }

.kc-pd-reply-bar {
  width: 3px;
  height: 32px;
  background: var(--c-primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.kc-pd-reply-body {
  flex: 1;
  min-width: 0;
}
.kc-pd-reply-judul {
  font-size: 12px;
  font-weight: 800;
  color: var(--c-primary);
}
.kc-pd-reply-teks {
  font-size: 12.5px;
  color: #6B5C48;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kc-pd-reply-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--c-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.kc-pd-reply-close:active { background: var(--c-bg-soft); }
.kc-pd-reply-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.kc-pd-modal-form {
  background: #F0EBE0;
  padding: 8px 10px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
  border-top: 1px solid var(--c-line);
}

.kc-pd-form-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.kc-pd-form-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kc-pd-form-input {
  flex: 1;
  border: none;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--c-text);
  outline: none;
  resize: none;
  max-height: 100px;
  min-height: 38px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.kc-pd-form-input::placeholder { color: var(--c-text-3); }

.kc-pd-form-kirim {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: .15s;
  box-shadow: 0 2px 6px rgba(26,58,143,.3);
}
.kc-pd-form-kirim:active { transform: scale(.92); }
.kc-pd-form-kirim:disabled { opacity: .4; cursor: not-allowed; }
.kc-pd-form-kirim svg { width: 18px; height: 18px; }

/* ============================================================
   15. MODAL TANDAI — BOTTOM SHEET
   ============================================================ */
.kc-tandai-modal {
  position: fixed;
  inset: 0;
  z-index: 8100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.kc-tandai-modal.open { pointer-events: auto; }

.kc-tandai-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .25s ease;
}
.kc-tandai-modal.open .kc-tandai-backdrop { opacity: 1; }

.kc-tandai-sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 -8px 32px rgba(0,0,0,.25);
  max-height: 70vh;
  overflow: hidden;
}
.kc-tandai-modal.open .kc-tandai-sheet { transform: translateY(0); }

.kc-tandai-grip-wrap {
  padding: 8px 0 4px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.kc-tandai-grip {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #D4CDC4;
}

.kc-tandai-hdr {
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 10px;
}
.kc-tandai-hdr h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0;
  flex: 1;
  min-width: 0;
}
.kc-tandai-x {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  border: none;
  color: var(--c-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.kc-tandai-x:active { transform: scale(.9); }
.kc-tandai-x svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.kc-tandai-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 12px 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.kc-tandai-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .15s;
  margin-bottom: 2px;
}
.kc-tandai-item:active { background: var(--c-bg-soft); }

.kc-tandai-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.kc-tandai-item-avatar img { width: 100%; height: 100%; object-fit: cover; }

.kc-tandai-item-info { flex: 1; min-width: 0; }
.kc-tandai-item-nama {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kc-tandai-item-username {
  font-size: 11.5px;
  color: var(--c-text-2);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   16. MODAL SHARE
   ============================================================ */
.kc-share-modal {
  position: fixed;
  inset: 0;
  z-index: 8500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.kc-share-modal.open { pointer-events: auto; }

.kc-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .22s ease;
}
.kc-share-modal.open .kc-share-backdrop { opacity: 1; }

.kc-share-sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 -8px 32px rgba(0,0,0,.25);
  max-height: 90vh;
  overflow: hidden;
}
.kc-share-modal.open .kc-share-sheet { transform: translateY(0); }

.kc-share-grip-wrap {
  padding: 8px 0 4px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.kc-share-grip {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #D4CDC4;
}

.kc-share-hdr {
  padding: 6px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--c-line);
  flex-shrink: 0;
}
.kc-share-hdr h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: var(--c-text);
}
.kc-share-x {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  border: none;
  color: var(--c-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.kc-share-x:active { transform: scale(.9); }
.kc-share-x svg { width: 16px; height: 16px; }

.kc-share-body {
  padding: 16px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.kc-share-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-bottom: 18px;
}
.kc-share-link-txt {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--c-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kc-share-link-copy {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--c-line);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.kc-share-link-copy:active { transform: scale(.92); }
.kc-share-link-copy svg { width: 16px; height: 16px; }

.kc-share-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}

.kc-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
}

.kc-share-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  border-radius: var(--r-sm);
  transition: background .15s;
}
.kc-share-app:active { background: var(--c-bg-soft); }

.kc-share-app-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}
.kc-share-app-ico svg {
  width: 26px;
  height: 26px;
}

.kc-share-app-ico.wa   { background: #25D366; }
.kc-share-app-ico.fb   { background: #1877F2; }
.kc-share-app-ico.ig   { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.kc-share-app-ico.tt   { background: #000000; }
.kc-share-app-ico.tg   { background: #0088CC; }
.kc-share-app-ico.x    { background: #000000; }
.kc-share-app-ico.copy { background: var(--c-primary); }
.kc-share-app-ico.more { background: #6B5C48; }

.kc-share-app-txt {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-text);
  text-align: center;
  line-height: 1.2;
}

/* ============================================================
   17. BANNED OVERLAY
   ============================================================ */
body.kc-banned {
  overflow: hidden !important;
  pointer-events: none;
}
body.kc-banned #kc-banned-overlay {
  pointer-events: auto;
}

#kc-banned-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #FDF6E9 0%, #F5E6D3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: kcFadeIn .3s ease;
  overflow-y: auto;
}
@keyframes kcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.kc-banned-box {
  max-width: 420px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px 24px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  border-top: 5px solid #C62828;
}

.kc-banned-ico {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #FFE4E4;
  color: #C62828;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kc-banned-ico svg {
  width: 42px;
  height: 42px;
}

.kc-banned-title {
  font-size: 22px;
  font-weight: 800;
  color: #C62828;
  margin: 0 0 6px;
}

.kc-banned-sub {
  font-size: 13.5px;
  color: #6B5C48;
  line-height: 1.55;
  margin: 0 0 20px;
}

.kc-banned-info {
  text-align: left;
  background: #F8F4EA;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.kc-banned-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid #EDE5D5;
}
.kc-banned-row:last-child { border-bottom: none; }
.kc-banned-label {
  color: #8B7C68;
  font-weight: 700;
  flex-shrink: 0;
}
.kc-banned-value {
  color: #2B2016;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.kc-banned-note {
  font-size: 11.5px;
  color: #8B7C68;
  line-height: 1.5;
  margin: 0 0 18px;
}

.kc-banned-logout {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #C62828;
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 800;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: .15s;
}
.kc-banned-logout:active { transform: scale(.97); opacity: .9; }

/* ============================================================
   18. RESPONSIVE
   ============================================================ */
@media (max-width: 380px) {
  :root {
    --hdr-logo-size: 42px;
    --hdr-brand-font: 13px;
    --hdr-brand-gap: 6px;
  }

  .kc-pd-modal-sheet {
    height: 85vh;
    max-height: 85dvh;
  }
  .kc-pd-modal-body {
    padding: 10px 10px 16px;
  }
  .kc-pd-komen-avatar,
  .kc-pd-form-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .kc-pd-komen-teks,
  .kc-pd-form-input {
    font-size: 13px;
  }

  .kc-share-app-ico { width: 46px; height: 46px; }
  .kc-share-app-ico svg { width: 22px; height: 22px; }
  .kc-share-app-txt { font-size: 10.5px; }
  .kc-share-grid { gap: 12px 6px; }
}
/* ============================================================
   KARTU IKLAN — Nyatu sama Post Card
   ============================================================ */

.kc-ad-slot {
  background: #FFFFFF;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.kc-ad-slot .kc-ad-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-text-2);
  letter-spacing: .3px;
}
.kc-ad-slot .kc-ad-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25D366;
  flex-shrink: 0;
}

.kc-ad-content {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.kc-ad-content ins.adsbygoogle {
  display: block;
  width: 100%;
}

/* ============================================================
   PLACEHOLDER — SVG Abstract + Text
   ============================================================ */

.kc-ad-placeholder,
.kc-pd-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, #F8FAFF, #EEF3FF);
  border: 1.5px dashed #C6D9FF;
  border-radius: var(--r-md);
  width: 100%;
  min-height: 130px;
}

.kc-ad-placeholder-ico {
  width: 100px;
  height: 68px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kc-ad-placeholder-ico svg {
  width: 100%;
  height: 100%;
}

.kc-ad-placeholder-txt {
  font-size: 13px;
  font-weight: 800;
  color: var(--c-text-2);
  letter-spacing: .4px;
  margin-bottom: 2px;
}

.kc-ad-placeholder-sub {
  font-size: 11px;
  color: var(--c-text-3);
  text-align: center;
}

/* ============================================================
   IKLAN IN-ARTICLE (post detail)
   ============================================================ */

.kc-pd-ad {
  background: #FFFFFF;
  border-radius: var(--r-md);
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.kc-pd-ad-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-text-2);
}
.kc-pd-ad-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25D366;
  flex-shrink: 0;
}

.kc-pd-ad-content {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.kc-pd-ad-content ins.adsbygoogle {
  display: block;
  width: 100%;
}

/* ============================================================
   DARK MODE — Tema Gelap
   Aktif kalau body punya class .kc-dark
   ============================================================ */

body.kc-dark {
  /* === Warna Dasar === */
  --c-bg: #121212;
  --c-bg-card: #1E1E1E;
  --c-bg-soft: #2A2A2A;
  --c-line: #333333;
  --c-text: #E8E8E8;
  --c-text-2: #A0A0A0;
  --c-text-3: #707070;

  /* Primary (tetap biru, tapi lebih terang) */
  --c-primary: #4A9EFF;
  --c-primary-light: #6BB6FF;
}

/* Transisi smooth */
body {
  transition: background-color .3s ease, color .3s ease;
}

body.kc-dark .kc-hdr-bd,
body.kc-dark .kc-navb,
body.kc-dark .kc-drawer,
body.kc-dark .kc-modal,
body.kc-dark .kc-post,
body.kc-dark .kc-ad-slot,
body.kc-dark .kc-ch-item,
body.kc-dark .kc-fr-user,
body.kc-dark .kc-cr-user,
body.kc-dark .kc-pd-komen,
body.kc-dark .kc-ad-item,
body.kc-dark .kc-nt-item,
body.kc-dark .kc-us-header,
body.kc-dark .kc-us-stats,
body.kc-dark .kc-pr-avatar,
body.kc-dark .kc-composer,
body.kc-dark .kc-bd-composer,
body.kc-dark .kc-bd-search-btn,
body.kc-dark .kc-cr-search input,
body.kc-dark .kc-fr-search input,
body.kc-dark .kc-pd-modal-sheet,
body.kc-dark .kc-share-sheet,
body.kc-dark .kc-tandai-sheet {
  background-color: var(--c-bg-card);
  color: var(--c-text);
}

/* Input di dark mode */
body.kc-dark input,
body.kc-dark textarea,
body.kc-dark .kc-pd-form-input,
body.kc-dark .kc-cr-input,
body.kc-dark .kc-cr-search input,
body.kc-dark .kc-fr-search input,
body.kc-dark .kc-ad-input,
body.kc-dark .kc-ad-select,
body.kc-dark .kc-nt-form-input,
body.kc-dark .kc-nt-form-textarea,
body.kc-dark .kc-po-caption {
  background-color: var(--c-bg-soft);
  color: var(--c-text);
  border-color: var(--c-line);
}

body.kc-dark input::placeholder,
body.kc-dark textarea::placeholder {
  color: var(--c-text-3);
}

/* Bottom sheet (chat room, drawer) */
body.kc-dark .kc-pd-modal-sheet,
body.kc-dark .kc-share-sheet,
body.kc-dark .kc-tandai-sheet,
body.kc-dark .kc-cr-menu-box {
  background-color: var(--c-bg-card);
}

body.kc-dark .kc-pd-modal-hdr,
body.kc-dark .kc-share-hdr,
body.kc-dark .kc-tandai-hdr,
body.kc-dark .kc-modal-head {
  background-color: var(--c-bg-card);
  border-color: var(--c-line);
}

body.kc-dark .kc-pd-modal-hdr h3,
body.kc-dark .kc-share-hdr h3,
body.kc-dark .kc-tandai-hdr h3,
body.kc-dark .kc-modal-head h3 {
  color: var(--c-text);
}

/* Separator */
body.kc-dark .kc-drawer-divider,
body.kc-dark .kc-post-aksi,
body.kc-dark .kc-ad-slot,
body.kc-dark .kc-us-stat + .kc-us-stat {
  border-color: var(--c-line);
}

/* Tombol icon */
body.kc-dark .kc-hdr-bd-btn,
body.kc-dark .kc-hdr-bd-menu,
body.kc-dark .kc-navb-item {
  color: var(--c-text-2);
}

body.kc-dark .kc-hdr-bd-btn:active,
body.kc-dark .kc-hdr-bd-menu:active,
body.kc-dark .kc-navb-item:active {
  background-color: var(--c-bg-soft);
}

body.kc-dark .kc-navb-item.active {
  color: var(--c-primary);
}

/* Drawer item */
body.kc-dark .kc-drawer-item {
  color: var(--c-text);
}
body.kc-dark .kc-drawer-item:active {
  background-color: var(--c-bg-soft);
}
body.kc-dark .kc-drawer-section {
  color: var(--c-text-3);
}

/* Search di beranda */
body.kc-dark .kc-bd-search-txt {
  color: var(--c-text-3);
}

/* Post isi text */
body.kc-dark .kc-post-isi,
body.kc-dark .kc-post-nama {
  color: var(--c-text);
}

body.kc-dark .kc-post-meta,
body.kc-dark .kc-post-stats {
  color: var(--c-text-2);
}

/* Modal overlay */
body.kc-dark .kc-modal-ov {
  background: rgba(0,0,0,.75);
}

/* Toast */
body.kc-dark .kc-toast {
  background: #2E7D32;
}

/* Chat room body (biru gelap) */
body.kc-dark.kc-cr-body {
  background-color: #0B0F1A;
}

body.kc-dark .kc-cr-pesan {
  background-color: #0B0F1A;
}

body.kc-dark .kc-cr-row.other .kc-cr-bubble {
  background: #1E1E1E;
  color: var(--c-text);
}

body.kc-dark .kc-cr-row.me .kc-cr-bubble {
  background: #1A3A8F;
  color: #FFFFFF;
}

body.kc-dark .kc-cr-form {
  background: #1E1E1E;
}

body.kc-dark .kc-cr-reply-preview {
  background: #1E1E1E;
  border-color: var(--c-line);
}

body.kc-dark .kc-cr-input {
  background: #2A2A2A;
  color: var(--c-text);
}

/* Chat room header */
body.kc-dark .kc-cr-hdr {
  background: linear-gradient(135deg, #1E3A6E, #0F1F4A);
}

/* Empty state */
body.kc-dark .kc-empty {
  color: var(--c-text-2);
}
body.kc-dark .kc-empty strong {
  color: var(--c-text);
}