/* ═══════════════════════════════════════════════════════════════
   DICTIO NETWORKING CSS
   Satu tab "Networking" dengan sub-nav internal: Teman | Pesan | Grup
   Prefix: dnt-  (tidak konflik dengan dcu- di profile)
   Token : sama dengan dictio-profile.css
   ═══════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
   RESET & TOKEN
   ════════════════════════════════════════════════════════════════ */
.dnt-wrap *, .dnt-wrap *::before, .dnt-wrap *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.dnt-wrap {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #FAF8F5;
  color: #1A1C1E;

  --navy:         #1B3A6B;
  --navy-2:       #24508F;
  --navy-pale:    #E4ECF7;
  --amber:        #C8851A;
  --amber-2:      #E09A2A;
  --amber-pale:   #FDF5E8;
  --amber-border: #EDD9A3;
  --bg:           #FAF8F5;
  --bg-2:         #F2EFE9;
  --surface:      #FFFFFF;
  --border:       #DDD8CF;
  --border-light: #EAE6DD;
  --ink:          #1A1C1E;
  --ink-2:        #44484E;
  --ink-3:        #8A9099;
  --success:      #16A34A;
  --success-bg:   #DCFCE7;
  --danger:       #DC2626;
  --danger-bg:    #FEE2E2;
  --shadow-sm:    0 1px 4px rgba(20,24,32,.06);
  --shadow-md:    0 4px 16px rgba(20,24,32,.09);
  --r:            10px;
  --r-sm:         6px;
}
.dnt-wrap a { text-decoration: none; color: inherit; }
.dnt-wrap a:hover { text-decoration: none; }
.dnt-wrap img { display: block; }
.dnt-wrap button { font-family: 'Sora', sans-serif; }
.dnt-wrap button:focus-visible,
.dnt-wrap a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .dnt-wrap * { transition: none !important; animation: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   SUB-NAV (Teman | Pesan | Grup)
   ════════════════════════════════════════════════════════════════ */
.dnt-subnav {
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r) var(--r) 0 0;
  border-bottom: none;
  overflow: hidden;
}
.dnt-subnav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 22px;
  font-size: .76rem; font-weight: 600; color: var(--ink-2);
  border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap; position: relative;
  text-decoration: none;
}
.dnt-subnav-item:hover {
  color: var(--navy); background: var(--bg);
}
.dnt-subnav-item.dnt-on {
  color: var(--navy);
  border-bottom-color: var(--amber);
  background: var(--bg);
}
.dnt-subnav-item svg { opacity: .7; }
.dnt-subnav-item.dnt-on svg { opacity: 1; }

/* Badge (unread, request) dalam sub-nav */
.dnt-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px;
  font-size: .58rem; font-weight: 700; color: #fff;
  background: var(--danger); border-radius: 9px; padding: 0 4px; line-height: 1;
}
.dnt-badge-amber { background: var(--amber); }

/* Panel body — area konten di bawah sub-nav */
.dnt-panel-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--r) var(--r);
  overflow: hidden;
  min-height: 240px;
}

/* ════════════════════════════════════════════════════════════════
   SHARED PRIMITIVES
   ════════════════════════════════════════════════════════════════ */

/* Toolbar row: judul kiri, aksi kanan */
.dnt-tool-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border-light);
}
.dnt-tool-left  { display: flex; align-items: center; gap: 6px; }
.dnt-tool-right { display: flex; align-items: center; gap: 8px; }

.dnt-sec-title {
  font-size: .8rem; font-weight: 700; color: var(--navy);
}
.dnt-sec-count {
  font-size: .68rem; color: var(--ink-3);
  background: var(--bg-2); border-radius: 20px; padding: 2px 8px;
}
.dnt-sec-action {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 600; color: var(--amber);
  background: var(--amber-pale); border: 1px solid var(--amber-border);
  border-radius: var(--r-sm); padding: 5px 12px;
  cursor: pointer; transition: all .15s;
}
.dnt-sec-action:hover { background: var(--amber-border); color: var(--navy); }

/* Chips filter */
.dnt-chips {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-light);
}
.dnt-chip {
  font-size: .68rem; font-weight: 600; color: var(--ink-3);
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px;
  cursor: pointer; transition: all .15s; text-decoration: none;
}
.dnt-chip:hover  { border-color: var(--navy); color: var(--navy); }
.dnt-chip.dnt-on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Search box — standalone atau di dalam .dnt-chips */
.dnt-search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
  transition: border-color .15s;
}
.dnt-search-box:focus-within { border-color: var(--navy); }
.dnt-search-box svg { color: var(--ink-3); flex-shrink: 0; }
.dnt-search-box input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: 'Sora', sans-serif; font-size: .76rem; color: var(--ink);
}
.dnt-search-box input::placeholder { color: var(--ink-3); }
.dnt-search-box--sm { padding: 6px 10px; }
.dnt-search-box--sm input { font-size: .7rem; }

/* Avatar */
.dnt-ava {
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 1.5px solid var(--border); background: var(--bg-2);
}
.dnt-ava-sm { width: 34px; height: 34px; }
.dnt-ava-lg { width: 56px; height: 56px; }

/* Buttons */
.dnt-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Sora', sans-serif; font-size: .7rem; font-weight: 700;
  border-radius: var(--r-sm); padding: 7px 14px;
  cursor: pointer; transition: all .15s; border: 1.5px solid transparent;
  white-space: nowrap; text-decoration: none; line-height: 1;
}
.dnt-btn:hover { text-decoration: none; }
.dnt-btn-primary  { background: var(--navy);    color: #fff;         border-color: var(--navy); }
.dnt-btn-primary:hover  { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.dnt-btn-outline  { background: transparent;    color: var(--navy);  border-color: var(--navy); }
.dnt-btn-outline:hover  { background: var(--navy-pale); }
.dnt-btn-amber    { background: var(--amber);   color: #fff;         border-color: var(--amber); }
.dnt-btn-amber:hover    { background: var(--amber-2); border-color: var(--amber-2); color: #fff; }
.dnt-btn-ghost    { background: var(--bg-2);    color: var(--ink-2); border-color: var(--border); }
.dnt-btn-ghost:hover    { border-color: var(--navy); color: var(--navy); background: var(--navy-pale); }
.dnt-btn-danger   { background: transparent;    color: var(--danger);border-color: var(--danger); }
.dnt-btn-danger:hover   { background: var(--danger-bg); }
.dnt-btn-sm { font-size: .68rem; padding: 6px 12px; }
.dnt-btn-xs { font-size: .63rem; padding: 4px 9px; border-radius: 4px; }

/* Empty state */
.dnt-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 44px 20px; gap: 8px; text-align: center;
}
.dnt-empty-ico   { opacity: .35; }
.dnt-empty-title { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.dnt-empty-sub   { font-size: .7rem; color: var(--ink-3); max-width: 240px; line-height: 1.55; }

/* Pagination */
.dnt-pagination {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 14px 18px; border-top: 1px solid var(--border-light);
}
.dnt-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 6px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: .7rem; font-weight: 600; color: var(--ink-2);
  background: var(--surface); cursor: pointer; transition: all .15s;
  text-decoration: none;
}
.dnt-page-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-pale); }
.dnt-page-btn.dnt-on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Field inputs (modal) */
.dnt-field-input {
  width: 100%; font-family: 'Sora', sans-serif; font-size: .78rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 9px 11px; outline: none; transition: border-color .15s;
}
.dnt-field-input:focus { border-color: var(--navy); }
.dnt-field-textarea {
  width: 100%; min-height: 75px; resize: vertical;
  font-family: 'Sora', sans-serif; font-size: .78rem; line-height: 1.55; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 9px 11px; outline: none; transition: border-color .15s;
}
.dnt-field-textarea:focus { border-color: var(--navy); }

/* ════════════════════════════════════════════════════════════════
   FRIENDS
   ════════════════════════════════════════════════════════════════ */

/* Banner permintaan masuk */
.dnt-req-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--amber-pale);
  border-bottom: 1px solid var(--amber-border);
}
.dnt-req-banner-ico  { font-size: .95rem; }
.dnt-req-banner-text { font-size: .72rem; font-weight: 600; color: #7A500A; flex: 1; }

/* Daftar permintaan */
.dnt-req-list { list-style: none; }
.dnt-req-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: background .12s;
}
.dnt-req-item:last-child { border-bottom: none; }
.dnt-req-item:hover { background: var(--bg); }

.dnt-req-info { flex: 1; min-width: 0; }
.dnt-req-name {
  font-size: .78rem; font-weight: 700; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dnt-req-name a:hover { color: var(--amber); }
.dnt-req-role { font-size: .66rem; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dnt-req-btns { display: flex; gap: 6px; flex-shrink: 0; }

/* Grid teman */
.dnt-friend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  border-top: 1px solid var(--border-light);
}
.dnt-friend-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 12px 14px; text-align: center;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: background .15s; position: relative;
}
.dnt-friend-card:hover { background: var(--bg); }

.dnt-friend-ava {
  position: relative; width: 56px; height: 56px; margin-bottom: 10px;
}
.dnt-friend-ava img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
}
.dnt-friend-online {
  position: absolute; bottom: 1px; right: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--success); border: 2px solid var(--surface);
}

.dnt-friend-name {
  font-size: .75rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 2px;
}
.dnt-friend-name a:hover { color: var(--amber); }
.dnt-friend-role {
  font-size: .62rem; color: var(--ink-3); line-height: 1.4; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dnt-friend-actions {
  display: flex; gap: 5px; width: 100%; justify-content: center; margin-top: auto;
}

/* Unfriend — muncul saat hover */
.dnt-btn-unfriend {
  font-size: .6rem; font-weight: 600; color: var(--ink-3);
  background: none; border: none; cursor: pointer;
  padding: 3px 6px; border-radius: 4px; transition: color .12s;
  display: none; align-items: center; gap: 3px;
}
.dnt-friend-card:hover .dnt-btn-unfriend { display: inline-flex; }
.dnt-btn-unfriend:hover { color: var(--danger); }

/* Section permintaan keluar */
.dnt-sent-section { border-top: 1px solid var(--border-light); }

/* ════════════════════════════════════════════════════════════════
   MESSAGES
   ════════════════════════════════════════════════════════════════ */

.dnt-msg-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 500px;
}

/* Sidebar */
.dnt-msg-sidebar {
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: var(--surface);
}
.dnt-msg-sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px 10px;
  border-bottom: 1px solid var(--border-light);
}
.dnt-msg-sidebar-title { font-size: .78rem; font-weight: 700; color: var(--navy); }

/* Filter Masuk/Terkirim */
.dnt-msg-filters {
  display: flex;
  border-bottom: 1px solid var(--border-light);
}
.dnt-msg-filter-btn {
  flex: 1; text-align: center; padding: 8px 6px;
  font-size: .68rem; font-weight: 600; color: var(--ink-3);
  border-bottom: 2px solid transparent; transition: all .15s;
  text-decoration: none;
}
.dnt-msg-filter-btn:hover { color: var(--navy); }
.dnt-msg-filter-btn.dnt-on { color: var(--navy); border-bottom-color: var(--amber); }

/* Search pesan */
.dnt-msg-search {
  padding: 8px 12px; border-bottom: 1px solid var(--border-light);
}

/* Thread list */
.dnt-conv-list { flex: 1; overflow-y: auto; list-style: none; }
.dnt-conv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background .12s; position: relative;
}
.dnt-conv-item:last-child { border-bottom: none; }
.dnt-conv-item:hover { background: var(--bg); }
.dnt-conv-item.dnt-conv-active {
  background: var(--navy-pale);
  border-left: 3px solid var(--navy);
  padding-left: 11px;
}
.dnt-conv-item.dnt-conv-unread .dnt-conv-name,
.dnt-conv-item.dnt-conv-unread .dnt-conv-preview { font-weight: 700; }
.dnt-conv-item.dnt-conv-unread::after {
  content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
}

/* Avatar percakapan */
.dnt-conv-ava { position: relative; flex-shrink: 0; }
.dnt-conv-ava img {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid var(--border);
}
.dnt-conv-ava-init {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-pale); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: var(--navy);
}
.dnt-conv-online {
  position: absolute; bottom: 0; right: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--success); border: 2px solid var(--surface);
}

/* Info percakapan */
.dnt-conv-body { flex: 1; min-width: 0; }
.dnt-conv-row  { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.dnt-conv-name { font-size: .73rem; font-weight: 600; color: var(--navy); }
.dnt-conv-time { font-size: .6rem; color: var(--ink-3); white-space: nowrap; flex-shrink: 0; }
.dnt-conv-preview {
  font-size: .66rem; color: var(--ink-3); font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px;
}

/* Area chat utama */
.dnt-msg-main {
  display: flex; flex-direction: column; background: var(--bg);
}

/* Header chat */
.dnt-chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.dnt-chat-head-info { flex: 1; min-width: 0; }
.dnt-chat-head-name { font-size: .8rem; font-weight: 700; color: var(--navy); }
.dnt-chat-head-name:hover { color: var(--amber); }
.dnt-chat-head-status { font-size: .63rem; color: var(--ink-3); margin-top: 1px; }
.dnt-chat-head-status.online { color: var(--success); }

/* Bubble area */
.dnt-chat-msgs {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}

/* Date separator */
.dnt-msg-date-sep { text-align: center; position: relative; margin: 4px 0; }
.dnt-msg-date-sep span {
  position: relative; z-index: 1;
  font-size: .6rem; font-weight: 600; color: var(--ink-3);
  background: var(--bg); padding: 0 8px;
}
.dnt-msg-date-sep::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--border-light);
}

/* Bubbles */
.dnt-msg-row {
  display: flex; gap: 8px; max-width: 76%;
}
.dnt-msg-row--me   { margin-left: auto; flex-direction: row-reverse; }
.dnt-msg-row--them { margin-right: auto; }

.dnt-bubble {
  padding: 9px 13px; border-radius: 14px;
  font-size: .76rem; line-height: 1.55;
}
.dnt-msg-row--me .dnt-bubble {
  background: var(--navy); color: #fff;
  border-radius: 14px 14px 4px 14px;
}
.dnt-msg-row--them .dnt-bubble {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  box-shadow: var(--shadow-sm);
}
.dnt-bubble--deleted {
  font-style: italic; color: var(--ink-3) !important;
  background: var(--bg-2) !important; border: 1px dashed var(--border) !important;
}
.dnt-bubble-time {
  font-size: .58rem; color: var(--ink-3); margin-top: 3px; text-align: right;
}
.dnt-msg-row--me .dnt-bubble-time { color: rgba(255,255,255,.5); }

/* Compose */
.dnt-compose {
  padding: 10px 14px; background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-end; gap: 8px;
}
.dnt-compose-input {
  flex: 1; font-family: 'Sora', sans-serif; font-size: .76rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 11px; resize: none; min-height: 38px; max-height: 110px;
  line-height: 1.5; outline: none; transition: border-color .15s;
}
.dnt-compose-input:focus { border-color: var(--navy); background: var(--surface); }
.dnt-compose-input::placeholder { color: var(--ink-3); }
.dnt-compose-send {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none;
  cursor: pointer; flex-shrink: 0; transition: background .15s;
}
.dnt-compose-send:hover { background: var(--navy-2); }
.dnt-compose-send:disabled { background: var(--border); cursor: not-allowed; }

/* Empty chat state */
.dnt-msg-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 40px; text-align: center;
}
.dnt-msg-empty-ico   { opacity: .22; }
.dnt-msg-empty-title { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.dnt-msg-empty-sub   { font-size: .7rem; color: var(--ink-3); max-width: 210px; line-height: 1.6; }

/* Mobile: back button (desktop hidden) */
.dnt-chat-back {
  background: none; border: none; cursor: pointer;
  color: var(--navy); display: none;
  align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 600; padding: 0; margin-right: 2px;
}
.dnt-chat-back:hover { color: var(--amber); }

/* ════════════════════════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════════════════════════ */
.dnt-modal-bg {
  position: fixed; inset: 0;
  background: rgba(27,58,107,.28); backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.dnt-modal-bg.dnt-modal-open { opacity: 1; pointer-events: auto; }
.dnt-modal {
  background: var(--surface); border-radius: var(--r);
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  width: 100%; max-width: 460px; overflow: hidden;
  transform: translateY(14px); transition: transform .22s;
}
.dnt-modal-bg.dnt-modal-open .dnt-modal { transform: translateY(0); }

.dnt-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid var(--border-light);
}
.dnt-modal-title { font-size: .82rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 7px; }
.dnt-modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--ink-3); font-size: 1.15rem; line-height: 1; padding: 4px; border-radius: 4px;
  transition: color .12s;
}
.dnt-modal-close:hover { color: var(--navy); }
.dnt-modal-body   { padding: 16px 18px; display: flex; flex-direction: column; gap: 13px; }
.dnt-modal-label  { font-size: .71rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.dnt-modal-hint   { font-size: .63rem; color: var(--ink-3); margin-top: 4px; }
.dnt-modal-select {
  width: 100%; font-family: 'Sora', sans-serif; font-size: .76rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 8px 10px; outline: none; transition: border-color .15s; min-height: 90px;
}
.dnt-modal-select:focus { border-color: var(--navy); }
.dnt-modal-footer {
  padding: 12px 18px; border-top: 1px solid var(--border-light);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ════════════════════════════════════════════════════════════════
   GROUPS
   ════════════════════════════════════════════════════════════════ */
.dnt-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  border-top: 1px solid var(--border-light);
}
.dnt-group-card {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface); overflow: hidden;
  transition: box-shadow .15s;
}
.dnt-group-card:hover { z-index: 1; box-shadow: var(--shadow-md); }

.dnt-group-cover {
  height: 60px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative; flex-shrink: 0;
}
.dnt-group-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dnt-group-cover-privacy {
  position: absolute; top: 6px; right: 8px;
  font-size: .56rem; font-weight: 700;
  background: rgba(0,0,0,.38); color: rgba(255,255,255,.88);
  border-radius: 3px; padding: 2px 6px; letter-spacing: .04em; text-transform: uppercase;
}

.dnt-group-ava {
  width: 42px; height: 42px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
  border: 2.5px solid var(--surface); background: var(--navy-pale);
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
  margin-top: -20px; margin-left: 12px; position: relative; z-index: 1;
}
.dnt-group-ava--init {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--navy-pale); border: 2.5px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
  margin-top: -20px; margin-left: 12px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: var(--navy);
}

.dnt-group-body { padding: 8px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.dnt-group-name {
  font-size: .78rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dnt-group-name a:hover { color: var(--amber); }
.dnt-group-desc {
  font-size: .66rem; color: var(--ink-3); line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dnt-group-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.dnt-group-stat { display: flex; align-items: center; gap: 4px; font-size: .63rem; color: var(--ink-3); }
.dnt-group-stat strong { color: var(--ink-2); font-weight: 600; }
.dnt-group-status {
  font-size: .58rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 3px; padding: 2px 6px; margin-left: auto;
}
.dnt-group-status--member  { background: var(--success-bg); color: var(--success); }
.dnt-group-status--pending { background: var(--amber-pale);  color: var(--amber); }
.dnt-group-status--admin   { background: var(--navy-pale);   color: var(--navy); }
.dnt-group-status--mod     { background: var(--navy-pale);   color: var(--navy); }

.dnt-group-footer {
  padding: 8px 12px; border-top: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 6px; background: var(--bg);
}

/* Privacy opts (modal) */
.dnt-privacy-opts  { display: flex; gap: 7px; flex-wrap: wrap; }
.dnt-privacy-opt {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 11px; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); cursor: pointer; transition: all .15s; flex: 1; min-width: 110px;
}
.dnt-privacy-opt:hover { border-color: var(--navy); }
.dnt-privacy-opt input[type="radio"] { display: none; }
.dnt-privacy-opt--on { border-color: var(--navy); background: var(--navy-pale); }
.dnt-privacy-ico   { font-size: .9rem; flex-shrink: 0; margin-top: 1px; }
.dnt-privacy-name  { font-size: .7rem; font-weight: 700; color: var(--navy); }
.dnt-privacy-desc  { font-size: .61rem; color: var(--ink-3); margin-top: 1px; }

/* Toast */
.dnt-toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 999999;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 8px;
  background: var(--navy); color: #fff;
  font-size: .74rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  transform: translateY(70px); opacity: 0;
  transition: transform .24s, opacity .24s;
  pointer-events: none; max-width: 300px;
}
.dnt-toast.dnt-toast-show { transform: translateY(0); opacity: 1; }
.dnt-toast-success { background: var(--success); }
.dnt-toast-error   { background: var(--danger); }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

/* Tablet / medium */
@media (max-width: 800px) {
  .dnt-msg-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  /* Default: sidebar tampil, main tersembunyi */
  .dnt-msg-main { display: none; }
  /* Saat thread aktif: sidebar tersembunyi, main tampil */
  .dnt-msg-layout.dnt-chat-open .dnt-msg-sidebar { display: none; }
  .dnt-msg-layout.dnt-chat-open .dnt-msg-main    { display: flex; min-height: 480px; }
  .dnt-chat-back { display: flex; }
}

/* Mobile */
@media (max-width: 600px) {
  .dnt-subnav-item { padding: 11px 14px; font-size: .72rem; }
  .dnt-friend-grid { grid-template-columns: repeat(2, 1fr); }
  .dnt-group-grid  { grid-template-columns: 1fr; }
  .dnt-chips       { gap: 4px; padding: 8px 12px; }
  .dnt-chip        { font-size: .65rem; padding: 3px 9px; }
  .dnt-req-btns    { flex-direction: column; gap: 4px; }
  .dnt-req-btns .dnt-btn { width: 100%; justify-content: center; }
  .dnt-tool-row    { padding: 11px 14px 8px; }
}
