#app {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}

#sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surf-1);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--violet-bd) transparent;
  transition: transform .3s var(--ease);
  z-index: 30;
}

.sb-brand {
  padding: 24px 22px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sb-logo {
  font-family: var(--f-head); font-weight: 900; font-size: 20px;
  letter-spacing: -0.03em; color: var(--ink-0); line-height: 1.1;
  display: flex; align-items: center; gap: 10px;
}
.sb-logo-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--violet-dim); border: 1px solid var(--violet-bd);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; box-shadow: var(--violet-glow);
}
.sb-logo span { color: var(--violet-2); }
.sb-tagline {
  margin-top: 6px; font-size: 11.5px; color: var(--ink-2);
  font-weight: 500; padding-left: 46px; letter-spacing: .01em;
}

.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px; margin-left: 46px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--lime-dim); border: 1px solid var(--lime-bd);
  font-size: 10.5px; font-weight: 700; color: var(--violet-2);
  letter-spacing: .08em; text-transform: uppercase;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 6px var(--lime);
  animation: livepulse 1.8s ease infinite;
}
@keyframes livepulse {
  0%,100% { opacity:1; transform:scale(1) }
  50%      { opacity:.3; transform:scale(.5) }
}

.sb-stat {
  margin: 16px 22px 0;
  padding: 14px 16px;
  background: var(--surf-2); border: 1px solid var(--line); border-radius: var(--r-md);
  flex-shrink: 0;
}
.sb-stat-label { font-size: 12px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.sb-stat-num   { font-family: var(--f-head); font-weight: 800; font-size: 28px; background: linear-gradient(135deg, var(--violet-2), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; margin-top: 2px; }

.sb-nav { padding: 20px 12px 10px; flex: 1; flex-shrink: 0; }
.sb-nav-label {
  font-size: 10px; font-weight: 700; color: var(--ink-3);
  letter-spacing: .15em; text-transform: uppercase;
  padding: 0 10px; margin-bottom: 6px;
}
.sb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-1);
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  transition: background var(--fast), color var(--fast);
}
.sb-link:hover  { background: var(--surf-3); color: var(--ink-0); }
.sb-link.active { background: var(--violet-dim); color: var(--violet-2); border-left: 2px solid var(--violet); }
.sb-link svg    { width: 17px; height: 17px; flex-shrink: 0; opacity: .7; }
.sb-link.active svg { opacity: 1; }

.sb-contacts {
  padding: 16px 12px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.sb-contacts-label {
  font-size: 10px; font-weight: 700; color: var(--ink-3);
  letter-spacing: .15em; text-transform: uppercase; padding: 0 10px; margin-bottom: 8px;
}
.sb-contact-link {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; color: var(--ink-1);
  transition: background var(--fast), color var(--fast);
}
.sb-contact-link:hover { background: var(--surf-3); color: var(--ink-0); opacity: 1; }
.sb-contact-link svg   { width: 16px; height: 16px; flex-shrink: 0; opacity: .6; }

.sb-footer {
  padding: 12px 22px 20px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  display: none;
}

  50% { box-shadow: 0 0 12px rgba(57,255,20,.25); }
}
.btn-theme {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 14px; background: var(--surf-2); border: 1px solid var(--line-md);
  border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--f-body); font-size: 13px; font-weight: 600; color: var(--ink-1);
  transition: all var(--fast);
}
.btn-theme:hover { background: var(--surf-3); color: var(--ink-0); border-color: var(--line-hi); }
.btn-theme svg   { width: 15px; height: 15px; flex-shrink: 0; }

#main {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  min-width: 0; overflow-y: auto; overflow-x: hidden;
  scroll-behavior: smooth;
}
#main > #content {
  flex: 1;
}

#topbar {
  display: flex; align-items: center; gap: 0;
  padding: 0 24px; height: 60px;
  background: color-mix(in srgb, var(--surf-1) 85%, transparent);
  /* Fallback for older browsers */
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60; flex-shrink: 0;
}

/* Thin separator after menu btn */
.topbar-divider {
  width: 1px; height: 22px;
  background: var(--line-md);
  margin: 0 16px 0 12px;
  flex-shrink: 0;
  display: none; /* shown on desktop only */
}

.topbar-info {
  display: flex; flex-direction: column; gap: 1px;
  flex: 1; min-width: 0; padding: 0 4px;
}
.topbar-title {
  font-family: var(--f-head); font-size: 18px; font-weight: 900;
  color: var(--ink-0); line-height: 1.2; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-subtitle {
  font-size: 11.5px; color: var(--ink-3); font-weight: 500; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Right actions group */
.topbar-right {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: 12px;
}
.topbar-action-divider {
  width: 1px; height: 20px; background: var(--line-md); flex-shrink: 0;
}

/* Hamburger menu btn */
.btn-menu {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none;
  border-radius: var(--r-sm); background: transparent; cursor: pointer;
  transition: background var(--fast); flex-shrink: 0;
}
.btn-menu:hover { background: var(--surf-3); }
.btn-menu svg   { width: 18px; height: 18px; color: var(--ink-1); }

/* Theme toggle btn */
.btn-topbar-theme {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-md); border-radius: var(--r-sm);
  background: var(--surf-2); cursor: pointer; flex-shrink: 0;
  transition: background var(--fast), border-color var(--fast), transform var(--fast);
}
.btn-topbar-theme:hover {
  background: var(--surf-3); border-color: var(--line-hi);
  transform: rotate(30deg);
}
.btn-topbar-theme svg { color: var(--ink-1); }

/* PWA install btn */
.btn-topbar-pwa {
  display: none;
  align-items: center; gap: 6px;
  padding: 0 12px; height: 34px;
  background: linear-gradient(135deg, rgba(124,58,255,.15) 0%, rgba(0,229,255,.08) 100%);
  border: 1px solid rgba(124,58,255,.35);
  border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--f-body); font-size: 12px; font-weight: 700;
  color: var(--violet-2); white-space: nowrap;
  transition: all var(--fast);
  animation: pwa-pulse-topbar 3s ease-in-out infinite;
}
.btn-topbar-pwa.pwa-ready { display: flex; }
.btn-topbar-pwa:hover {
  background: linear-gradient(135deg, rgba(124,58,255,.25) 0%, rgba(0,229,255,.12) 100%);
  border-color: var(--violet);
  box-shadow: var(--violet-glow);
  animation: none;
}
.btn-topbar-pwa svg { flex-shrink: 0; }
@keyframes pwa-pulse-topbar {
  0%,100% { box-shadow: none; }
  50% { box-shadow: 0 0 10px rgba(124,58,255,.3); }
}

/* Desktop: show dividers, adjust spacing */
@media (min-width: 901px) {
  .topbar-divider { display: block; }
  #topbar { padding: 0 28px 0 24px; }
}
#content {
  flex: 1; padding: 36px 32px 80px;
  display: flex; flex-direction: column; gap: 28px;
  min-height: 0;
}

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 65;
  -webkit-tap-highlight-color: transparent;
  animation: fadeIn .2s ease;
}
.sidebar-overlay.show { display: block; }

@media (max-width: 900px) {
  #app { grid-template-columns: 1fr; height: 100vh; height: 100dvh; }

  #sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100dvh;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    z-index: 100;
    box-shadow: 8px 0 40px rgba(0,0,0,.6);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #sidebar.open { transform: translateX(0); }

  .sidebar-overlay { left: 280px; }
  .btn-menu { display: flex; }
  #topbar   { padding: 0 16px; gap: 0; }
  .topbar-info { padding: 0 10px; }
  #content  { padding: 24px 16px 80px; }
  .btn-topbar-theme { display: flex; }
  .sb-footer        { display: none; }
  .sb-contacts      { padding-bottom: 24px; }
}

.sb-banner {
  margin: 0 12px 4px;
  padding: 12px;
  background: var(--surf-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.sb-banner-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3);
}
.sb-banner-img {
  width: 100%; border-radius: var(--r-sm);
  display: block; object-fit: contain; cursor: zoom-in;
  transition: transform var(--mid), box-shadow var(--mid);
}
.sb-banner-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

/* ═══════════════════════════════════════════════
   BÁO LỖI & GÓP Ý — Button + Modal
═══════════════════════════════════════════════ */
.btn-topbar-report {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; height: 34px;
  background: var(--red-dim);
  border: 1px solid rgba(255,83,112,0.35);
  border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--f-body); font-size: 12px; font-weight: 700;
  color: var(--red); white-space: nowrap;
  transition: all var(--fast); flex-shrink: 0;
}
.btn-topbar-report:hover {
  background: rgba(255,83,112,0.22);
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(255,83,112,0.18);
}
.btn-topbar-report svg { flex-shrink: 0; }
@media (max-width: 480px) {
  .btn-topbar-report span { display: none; }
  .btn-topbar-report { padding: 0; width: 36px; justify-content: center; }
}

/* ── Nút Zalo ── */
.btn-topbar-zalo {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; height: 34px;
  background: rgba(0,104,255,.12);
  border: 1px solid rgba(0,104,255,.35);
  border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--f-body); font-size: 12px; font-weight: 700;
  color: #3b9dff; white-space: nowrap; text-decoration: none;
  transition: all var(--fast); flex-shrink: 0; margin-left: 6px;
}
.btn-topbar-zalo:hover {
  background: rgba(0,104,255,.22);
  border-color: #0068FF;
  box-shadow: 0 0 14px rgba(0,104,255,.2);
}
.btn-topbar-zalo svg { flex-shrink: 0; border-radius: 4px; }
@media (max-width: 480px) {
  .btn-topbar-zalo span { display: none; }
  .btn-topbar-zalo { padding: 0; width: 36px; justify-content: center; margin-left: 4px; }
}


/* ── Nút kính lúp kiểm tra key ── */
.btn-topbar-check {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: var(--surf-2);
  border: 1px solid var(--line-md);
  border-radius: var(--r-sm); cursor: pointer;
  color: var(--ink-2); flex-shrink: 0; margin-left: 6px;
  transition: all var(--fast);
}
.btn-topbar-check:hover {
  background: var(--surf-3); color: var(--violet-2);
  border-color: var(--violet-bd);
  box-shadow: var(--violet-glow);
}

/* ── Check Modal ── */
.check-overlay {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 16px;
}
.check-overlay.open { display: flex; }
.check-modal {
  background: var(--surf-1); border: 1px solid var(--line-md);
  border-radius: var(--r-lg); width: min(580px, 96vw);
  max-height: 84vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: checkSlideIn .22s var(--ease) both;
}
@keyframes checkSlideIn { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
.check-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 800; color: var(--ink-0); flex-shrink: 0;
}
.check-modal-title { display: flex; align-items: center; gap: 8px; color: var(--violet-2); }
.check-modal-close {
  background: none; border: none; color: var(--ink-3); cursor: pointer;
  padding: 4px; border-radius: var(--r-xs); transition: all var(--fast);
}
.check-modal-close:hover { color: var(--ink-0); background: var(--surf-3); }
.check-modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.check-input-row { display: flex; gap: 8px; align-items: center; }
.check-key-input {
  flex: 1; background: var(--surf-2); border: 1.5px solid var(--line-md);
  border-radius: var(--r-sm); color: var(--ink-0); font-family: var(--f-body);
  font-size: 13.5px; font-weight: 700; padding: 10px 14px;
  outline: none; transition: border-color var(--fast), box-shadow var(--fast);
  letter-spacing: .03em;
}
.check-key-input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,255,.18), var(--violet-glow); }
.check-btn-search {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--violet) 0%, #5B1FCC 100%);
  box-shadow: 0 4px 20px rgba(124,58,255,.45), inset 0 1px 0 rgba(255,255,255,.15);
  color: #0a1a00; border: none; font-family: var(--f-body);
  font-size: 13px; font-weight: 900; cursor: pointer;
  transition: all var(--fast); white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(124,58,255,.45);
}
.check-btn-search:hover { filter: brightness(1.08); transform: translateY(-1px); }
.check-btn-search:disabled { opacity: .5; pointer-events: none; }
.check-error {
  margin-top: 10px;
  background: var(--red-dim); border: 1px solid rgba(255,83,112,.3);
  color: var(--red); border-radius: var(--r-sm);
  padding: 9px 14px; font-size: 13px; font-weight: 600;
}
.check-result-header { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.check-result-key { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.check-result-key strong { color: var(--violet-2); font-size: 12.5px; }
.check-name-card {
  background: var(--surf-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.check-name-card:hover { border-color: var(--line-md); box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.check-name-card:last-child { margin-bottom: 0; }
.check-name-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.check-name-title { font-size: 14px; font-weight: 900; color: var(--ink-0); flex: 1; }
.check-status-on  { display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:800;background:var(--lime-dim);color:var(--lime);border:1px solid var(--lime-bd); }
.check-status-off { display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:800;background:rgba(255,83,112,.12);color:var(--red);border:1px solid rgba(255,83,112,.3); }
.check-updated { font-size:10.5px;color:var(--ink-3); }
.check-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin-bottom:8px; }
.check-field { background:var(--surf-1);border:1px solid var(--line);border-radius:var(--r-xs);padding:8px 10px; }
.check-field-label { font-size:10px;color:var(--ink-3);font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px; }
.check-field-val { font-size:13px;font-weight:800;color:var(--ink-0);word-break:break-all; }
.check-field-val.hi { color:var(--cyan); }
.check-field-val.cyan { color:var(--cyan); }
.check-missions { font-size:12px;color:var(--ink-2);background:var(--surf-1);border:1px solid var(--line);border-radius:var(--r-xs);padding:8px 10px;word-break:break-word;margin-top:8px; }
.check-missions-label { font-size:10px;color:var(--ink-3);font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px; }
.check-progress { font-size:11.5px;color:var(--cyan);background:rgba(0,229,255,.07);border:1px solid rgba(0,229,255,.2);border-radius:var(--r-xs);padding:6px 10px;margin-top:8px; }
.check-empty { text-align:center;padding:40px 20px;color:var(--ink-3);font-size:13.5px; }
.check-loading { display:flex;gap:6px;justify-content:center;padding:40px; }
.check-loading-dot { width:8px;height:8px;border-radius:50%;background:var(--ink-3);animation:forumDotBounce .9s ease-in-out infinite; }
.check-loading-dot:nth-child(2){animation-delay:.18s}
.check-loading-dot:nth-child(3){animation-delay:.36s}
.report-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
.report-overlay.open { opacity: 1; pointer-events: auto; }
.report-modal {
  background: var(--surf-1);
  border: 1px solid var(--line-md);
  border-radius: var(--r-lg);
  width: 100%; max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  transform: translateY(14px) scale(.97);
  transition: transform .25s var(--ease);
  overflow: hidden;
}
.report-overlay.open .report-modal { transform: translateY(0) scale(1); }
.report-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.report-modal-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-size: 14px; font-weight: 800;
  color: var(--red); letter-spacing: -.01em;
}
.report-modal-close {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-md); border-radius: var(--r-xs);
  background: var(--surf-2); cursor: pointer; color: var(--ink-2);
  transition: all var(--fast);
}
.report-modal-close:hover { background: var(--surf-3); color: var(--ink-0); }
.report-modal-body { padding: 18px 20px 20px; }
.report-field { margin-bottom: 14px; }
.report-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--ink-2); letter-spacing: .03em;
  text-transform: uppercase; margin-bottom: 7px;
}
.report-required { color: var(--red); }
.report-optional { color: var(--ink-3); font-weight: 500; text-transform: none; font-size: 11px; }
.report-input, .report-textarea {
  width: 100%; background: var(--surf-2);
  border: 1px solid var(--line-md); border-radius: var(--r-sm);
  color: var(--ink-0); font-family: var(--f-body); font-size: 13.5px;
  padding: 9px 13px;
  transition: border-color var(--fast), box-shadow var(--fast);
  resize: none; outline: none;
}
.report-input:focus, .report-textarea:focus {
  border-color: rgba(255,83,112,0.5);
  box-shadow: 0 0 0 3px rgba(255,83,112,0.1);
}
.report-char { text-align: right; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.report-upload {
  border: 1.5px dashed var(--line-md); border-radius: var(--r-sm);
  background: var(--surf-2); cursor: pointer; overflow: hidden;
  transition: border-color var(--fast), background var(--fast);
}
.report-upload:hover { border-color: rgba(255,83,112,.4); background: var(--surf-3); }
.report-upload-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; color: var(--ink-2);
  font-size: 13px; pointer-events: none;
}
.report-upload-inner small { font-size: 11px; color: var(--ink-3); }
.report-preview { position: relative; }
.report-preview img { width: 100%; max-height: 180px; object-fit: cover; display: block; }
.report-preview-remove {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px;
  background: rgba(0,0,0,.6); border: none;
  border-radius: 50%; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fast);
}
.report-preview-remove:hover { background: var(--red); }
.report-error {
  padding: 10px 13px; border-radius: var(--r-sm);
  background: var(--red-dim); border: 1px solid rgba(255,83,112,.3);
  color: var(--red); font-size: 12.5px; font-weight: 600;
  margin-bottom: 14px;
}
.report-success { text-align: center; padding: 28px 16px; }
.report-success svg { margin: 0 auto 12px; display: block; color: var(--violet-2); }
.report-success p { font-size: 15px; font-weight: 700; color: var(--ink-0); line-height: 1.6; }
.report-success span { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.report-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.report-btn-cancel {
  padding: 0 16px; height: 38px;
  background: var(--surf-3); border: 1px solid var(--line-md);
  border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  color: var(--ink-2); transition: all var(--fast);
}
.report-btn-cancel:hover { color: var(--ink-0); border-color: var(--line-hi); }
.report-btn-submit {
  padding: 0 18px; height: 38px;
  background: var(--red); border: none;
  border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--f-body); font-size: 13px; font-weight: 700;
  color: #fff; transition: all var(--fast);
  display: flex; align-items: center; gap: 7px;
}
.report-btn-submit:hover { filter: brightness(1.1); box-shadow: 0 4px 16px rgba(255,83,112,.3); }
.report-btn-submit:disabled { opacity: .6; cursor: not-allowed; filter: none; box-shadow: none; }
@keyframes report-spin { to { transform: rotate(360deg); } }
.report-spin { animation: report-spin .7s linear infinite; }

/* ═══════════════════════════════════════════════
   MODAL THÔNG BÁO
═══════════════════════════════════════════════ */
.notice-overlay {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.notice-overlay.open { opacity: 1; pointer-events: auto; }

.notice-modal {
  background: var(--surf-1);
  border: 1px solid var(--line-md);
  border-radius: var(--r-lg);
  width: 100%; max-width: 460px;
  box-shadow: 0 28px 72px rgba(0,0,0,.55);
  transform: translateY(18px) scale(.96);
  transition: transform .28s var(--ease);
  overflow: hidden;
}
.notice-overlay.open .notice-modal { transform: translateY(0) scale(1); }

.notice-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, rgba(124,58,255,.07) 0%, rgba(0,229,255,.05) 100%);
  border-bottom: 1px solid var(--line);
}
.notice-modal-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-size: 14px; font-weight: 800;
  background: linear-gradient(135deg, var(--violet-2), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: -.01em;
}
.notice-modal-close {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-md); border-radius: var(--r-xs);
  background: var(--surf-2); cursor: pointer; color: var(--ink-2);
  transition: all var(--fast);
}
.notice-modal-close:hover { background: var(--surf-3); color: var(--ink-0); }

.notice-modal-body { padding: 18px 18px 4px; display: flex; flex-direction: column; gap: 12px; }

/* Từng dòng nội dung */
.notice-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surf-2); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.55;
}
.notice-item-icon {
  font-size: 18px; flex-shrink: 0; margin-top: 1px;
}
.notice-item-text { color: var(--ink-1); }
.notice-item-text strong { color: var(--ink-0); font-weight: 700; }
.notice-item-text a {
  color: var(--red); font-weight: 700; text-decoration: none;
  cursor: pointer;
}
.notice-item-text a:hover { opacity: .8; }

/* Version badge đặc biệt */
.notice-version-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--violet-dim); border: 1px solid var(--violet-bd);
  color: var(--violet-2); font-family: var(--f-head);
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.notice-version-badge--couple {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  border-color: color-mix(in srgb, var(--red) 28%, transparent);
  color: var(--red);
}
.notice-version-label {
  color: var(--ink-0); font-weight: 700; margin-right: 6px;
}
.notice-item-text .notice-version-badge + .notice-version-badge {
  margin-left: 6px;
}

.notice-modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line); margin-top: 14px;
  gap: 8px; flex-wrap: wrap;
}
.notice-btn-hide {
  display: flex; align-items: center; gap: 6px;
  padding: 0 13px; height: 36px;
  background: var(--surf-2); border: 1px solid var(--line-md);
  border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--f-body); font-size: 12px; font-weight: 600;
  color: var(--ink-3); transition: all var(--fast); white-space: nowrap;
  flex: 1 1 auto; justify-content: center;
}
.notice-btn-hide:hover { color: var(--ink-1); border-color: var(--line-hi); }
.notice-btn-ok {
  padding: 0 20px; height: 36px;
  background: linear-gradient(135deg, var(--violet) 0%, #5B1FCC 100%); border: none;
  border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--f-body); font-size: 13px; font-weight: 800;
  color: #0a1a00; transition: all var(--fast); white-space: nowrap;
  flex-shrink: 0;
}
.notice-btn-ok:hover { filter: brightness(1.08); box-shadow: 0 4px 16px rgba(124,58,255,.4); }
@media (max-width: 480px) {
  .notice-modal-foot { flex-wrap: wrap; }
  .notice-btn-hide { flex: 1 1 auto; }
  .notice-btn-ok { flex-shrink: 0; }
}


.notice-section-link {
  color: var(--lime) !important; font-weight: 700;
  cursor: pointer; text-decoration: none;
  border-bottom: 1px dashed var(--lime-bd);
  transition: opacity var(--fast);
}
.notice-section-link:hover { opacity: .75; }

/* Resolved button in report modal header */
.report-resolved-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--r-xs);
  background: var(--cyan-dim); border: 1px solid var(--cyan-bd);
  color: var(--cyan) !important; font-family: var(--f-head);
  font-size: 11.5px; font-weight: 700; cursor: pointer;
  transition: all var(--fast); white-space: nowrap;
  text-decoration: none;
}
.report-resolved-link:hover { background: rgba(0,229,255,.10); opacity: 1; }

/* Resolved list items */
.resolved-item {
  padding: 13px 14px; border-radius: var(--r-sm);
  background: var(--surf-2); border: 1px solid var(--line);
  margin-bottom: 10px;
}
.resolved-item:last-child { margin-bottom: 0; }
.resolved-item-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.resolved-item-meta .badge-version { font-size: 10.5px; }
.resolved-date { font-size: 11px; color: var(--ink-3); }
.resolved-content {
  font-size: 13px; color: var(--ink-1); line-height: 1.55;
  margin-bottom: 8px;
}
.resolved-reply {
  padding: 8px 11px;
  background: var(--surf-3); border-left: 3px solid var(--violet);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
}
.resolved-reply-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; color: var(--violet-2);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px;
}
.resolved-reply-text { font-size: 12.5px; color: var(--ink-0); line-height: 1.5; }
.resolved-empty {
  text-align: center; padding: 28px 16px;
  color: var(--ink-3); font-size: 13px;
}
.resolved-loading { text-align:center; padding:24px; color:var(--ink-3); font-size:13px; }


/* Sidebar shadow nhẹ hơn */


/* Topbar */


/* Sidebar mobile shadow */


/* Overlay tối nhẹ hơn */


/* Sb-stat num — bỏ glow nặng */


/* Live dot */


/* Sb-logo icon */


/* Check modal */


/* Report modal */


/* Notice modal */


/* Overlay backdrop nhẹ hơn */

