/* Report page — cùng theme SCN dark, layout kiểu check-clone */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
  display: grid;
  gap: 1rem;
}
.layout .stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}
.layout .stats .stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1rem;
}
.layout .stats .stat b {
  display: block;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: .2rem;
}
.layout .stats .stat span {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: .75rem;
}
.filters label, .lbl {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .3rem;
}
.filters input, .filters select {
  width: 100%;
  min-width: 0;
}
.signal-block { margin-top: .9rem; }
.signal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  max-height: 130px;
  overflow: auto;
  padding: .25rem 0;
}
.signal-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  user-select: none;
  border-color: transparent;
  position: relative;
}
.signal-chips .chip > input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
  clip: rect(0,0,0,0);
}
.signal-chips .chip .switch-ui {
  width: 36px;
  height: 20px;
  flex: 0 0 36px;
}
.signal-chips .chip .switch-ui::before { font-size: .5rem; padding-left: 10px; }
.signal-chips .chip .switch-ui::after {
  width: 14px;
  height: 14px;
  top: 2px;
  left: 2px;
}
.signal-chips .chip > input[type="checkbox"]:checked + .switch-ui::after {
  transform: translateX(16px);
}
.signal-chips .chip > input[type="checkbox"]:checked + .switch-ui::before {
  padding-right: 10px;
  padding-left: 0;
}
.signal-chips .chip.active {
  border-color: var(--accent);
  background: #163528;
  color: #9fe0bf;
}
.signal-chips .chip.face { color: #ffc9c9; background: #2a1818; }
.signal-chips .chip.face.active {
  border-color: var(--danger);
  background: #3a1a1a;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin-top: .9rem;
}
.result-meta { color: var(--muted); font-size: .88rem; margin-bottom: .5rem; }

.report-table { max-height: none; }
.report-table tbody tr { cursor: pointer; }
.report-table tbody tr:hover { background: #15241c; }
.report-table tbody tr.selected { background: #1a3328; }
.badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  margin: 1px;
  background: #163528;
  color: #9fe0bf;
  border: 1px solid #2f9b6a55;
  white-space: nowrap;
}
.badge.face {
  background: #3a1a1a;
  color: #ffc9c9;
  border-color: #a84a4a55;
}
.score { font-weight: 700; }
.score.high { color: var(--danger); }
.score.medium { color: var(--warn); }
.score.low { color: var(--accent); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-top: .85rem;
}
.pagination button {
  padding: .4rem .75rem;
  border: 1px solid var(--line);
  background: #18241e;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination select {
  min-width: 100px;
}

#modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #000000b8;
  z-index: 1000;
  overflow: auto;
  padding: 1rem;
}
#modal .modal-panel {
  max-width: 1140px;
  margin: 1rem auto;
  position: relative;
  background: #121a16;
}
.close {
  position: absolute;
  top: .7rem;
  right: .9rem;
  border: none;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  z-index: 2;
}
.modal-hero {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.modal-hero .av-wrap {
  flex-shrink: 0;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.modal-avatar, .modal-avatar-ph {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
  background: #0e1613;
  pointer-events: none;
  display: block;
}
.modal-avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
  padding: .5rem;
}
.profile-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .55rem .9rem;
  font-size: .86rem;
}
.pf-label { font-size: .72rem; color: var(--muted); margin-bottom: 2px; }
.pf-val { word-break: break-word; }
.modal-head h2 { margin: 0 0 .45rem; font-size: 1.2rem; padding-right: 2rem; }
.modal-badges { margin: .45rem 0; }
.modal-meta { color: var(--muted); font-size: .88rem; }

.susp-section h3 {
  margin: 1rem 0 .7rem;
  font-size: 1rem;
  color: var(--accent);
}
.susp-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(280px, 1.5fr);
  gap: .9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem;
  margin: .7rem 0;
  background: #0f1814;
}
.susp-row.face { border-left: 4px solid var(--danger); }
.susp-row.meta { border-left: 4px solid var(--accent); }
.susp-right {
  border-left: 1px dashed var(--line);
  padding-left: .9rem;
}
.susp-right-label {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .45rem;
  font-weight: 600;
}
.susp-title { font-weight: 700; margin-bottom: .35rem; }
.susp-stats { font-size: .84rem; color: var(--muted); line-height: 1.45; }

.related-scroll {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  padding: .25rem 0 .6rem;
  scroll-snap-type: x mandatory;
}
.acc-mini {
  flex: 0 0 160px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem;
  background: #121a16;
  cursor: pointer;
}
.acc-mini:hover { border-color: var(--accent); }
.acc-mini.self {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #3ecf8e55;
}
.acc-mini img, .acc-mini .av-ph {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  background: #0e1613;
  display: block;
}
.acc-mini .av-click { cursor: zoom-in; border-radius: 8px; overflow: hidden; display: block; }
.acc-mini .av-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .75rem;
}
.acc-mini .acc-id { font-weight: 700; font-size: .85rem; margin-top: .4rem; }
.acc-mini .acc-name { font-size: .8rem; margin-top: 2px; max-height: 2.5em; overflow: hidden; }
.acc-mini .acc-meta { font-size: .72rem; color: var(--muted); margin-top: .25rem; }
.acc-mini .acc-score { font-size: .72rem; margin-top: .25rem; }
.self-tag {
  display: inline-block;
  background: var(--accent);
  color: #0c1210;
  font-size: .65rem;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 4px;
  font-weight: 700;
}
.empty { padding: 2rem; text-align: center; color: var(--muted); }

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #000000d9;
  z-index: 1200;
  overflow: auto;
  padding: 1.1rem;
  align-items: flex-start;
  justify-content: center;
}
#lightbox.open { display: flex; }
.lightbox-panel {
  background: #121a16;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.2rem;
  max-width: min(960px, 96vw);
  width: 100%;
  margin: auto;
  position: relative;
}
.lightbox-close {
  position: absolute;
  top: .6rem;
  right: .7rem;
  border: none;
  background: #ffffff18;
  color: #fff;
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.lightbox-main {
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 72vh;
  padding: .4rem 0;
}
.lightbox-main img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  background: #0a100e;
}
.lightbox-main .no-img { color: var(--muted); padding: 2rem; }
.lightbox-caption {
  color: #cfe6d8;
  text-align: center;
  margin-top: .65rem;
  font-size: .9rem;
  line-height: 1.4;
}
.lightbox-gallery-wrap {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: .85rem;
}
.lightbox-gallery-label { color: var(--muted); font-size: .78rem; margin-bottom: .5rem; }
.lightbox-gallery {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding: .35rem 0 .5rem;
}
.lightbox-gitem { flex: 0 0 96px; cursor: pointer; text-align: center; }
.lightbox-gitem img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid transparent;
  background: #0e1613;
  display: block;
}
.lightbox-gitem.active img { border-color: var(--accent); }
.lightbox-gitem .g-cap {
  color: var(--muted);
  font-size: .68rem;
  margin-top: .25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-gallery {
  margin-top: .65rem;
  border-top: 1px dashed var(--line);
  padding-top: .6rem;
}
.group-gallery-label { font-size: .76rem; color: var(--muted); margin-bottom: .4rem; }
.group-gallery-scroll { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0; }
.group-gthumb { flex: 0 0 72px; cursor: zoom-in; text-align: center; }
.group-gthumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: #0e1613;
}
.group-gthumb.active img { border-color: var(--accent); }
.group-gthumb .g-cap {
  font-size: .65rem;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.btn { text-decoration: none; display: inline-flex; align-items: center; }

@media (max-width: 900px) {
  .susp-row { grid-template-columns: 1fr; }
  .susp-right {
    border-left: none;
    border-top: 1px dashed var(--line);
    padding-left: 0;
    padding-top: .75rem;
  }
  .modal-hero { flex-direction: column; }
  .layout { padding: .85rem .75rem 2rem; }
}
@media (max-width: 760px) {
  .layout {
    width: 100%;
    max-width: 100%;
    padding: .65rem .6rem 1.75rem;
    gap: .75rem;
    overflow-x: hidden;
  }
  .layout .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
  }
  .filters {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  .filters > div { min-width: 0; }
  .signal-chips {
    max-height: 160px;
  }
  .signal-chips .chip {
    max-width: 100%;
  }
  .toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-row .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .report-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  /* Ẩn Nickname + Acc liên quan trên mobile */
  .report-table th:nth-child(5),
  .report-table td:nth-child(5),
  .report-table th:nth-child(8),
  .report-table td:nth-child(8) {
    display: none;
  }
  .report-table table {
    min-width: 0;
    width: 100%;
    font-size: .74rem;
  }
  .report-table th,
  .report-table td {
    padding: .35rem .3rem;
  }
  .pagination {
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: center;
  }
  #modal .modal-panel {
    margin: .4rem;
    width: calc(100% - .8rem);
    max-width: 100%;
    max-height: calc(100vh - .8rem);
    overflow: auto;
    padding: .75rem .7rem;
  }
  #lightbox .lightbox-panel {
    margin: .4rem;
    width: calc(100% - .8rem);
    max-width: 100%;
  }
}


