@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700&family=JetBrains+Mono:wght@500;700&display=swap");

:root {
  --bg: #050506;
  --card: rgba(20, 13, 14, 0.5);
  --line: #3a1518;
  --text: #f4ecec;
  --muted: #9a8686;
  --accent: #e10600;
  --accent-2: #ff3b3b;
  --wait: #ffb020;
  --err: #ff5a5a;
  --run: #ff6b6b;

  --glass: rgba(20, 13, 14, 0.5);
  --glass-soft: rgba(28, 18, 19, 0.34);
  --glass-deep: rgba(11, 8, 9, 0.66);
  --glass-brd: rgba(255, 255, 255, 0.09);
  --glass-brd-hot: rgba(225, 6, 0, 0.38);
  --glass-hi: rgba(255, 255, 255, 0.13);
  --glass-blur: blur(22px) saturate(150%);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --glass-shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 0.9, 0.24, 1);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html, body,
.activity-list,
.table-wrap,
.report,
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: #e10600 rgba(18, 6, 6, 0.85);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(18, 6, 6, 0.9);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff2d2d, #b80000);
  border-radius: 999px;
  border: 2px solid rgba(18, 6, 6, 0.9);
}

*::-webkit-scrollbar-thumb:hover {
  background: #ff3b3b;
}

*::-webkit-scrollbar-corner {
  background: rgba(18, 6, 6, 0.9);
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

html, body {
  color-scheme: dark;
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Barlow", "Segoe UI", sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fx-orb {
  position: absolute;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.26;
  background: radial-gradient(circle, #e10600 0%, transparent 68%);
  animation: drift 22s ease-in-out infinite alternate;
}

.fx-orb.a { top: -22vw; left: -12vw; }
.fx-orb.b {
  right: -16vw;
  bottom: -24vw;
  width: 44vw;
  height: 44vw;
  opacity: 0.16;
  animation-duration: 28s;
  animation-delay: -8s;
}

.fx-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.fx-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(225, 6, 0, 0.16), transparent 55%),
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.92) 100%);
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8%, 10%) scale(1.12); }
}

.top, .wrap { position: relative; z-index: 1; }

a { color: var(--accent-2); text-decoration: none; }
code, .mono { font-family: "JetBrains Mono", Consolas, monospace; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(225, 6, 0, 0.28);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: center;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.side-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.btn.discord {
  gap: 10px;
  background: #5865F2;
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.38);
}

.btn.discord:hover {
  background: #4752c4;
  filter: none;
}

.discord-ico {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

body.landing .wrap {
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-box {
  width: min(560px, 100%);
  text-align: center;
  background: var(--card);
  border: 1px solid rgba(225, 6, 0, 0.32);
  border-radius: 22px;
  padding: 36px 34px 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(225, 6, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.landing-logo {
  width: 118px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 0 22px rgba(225, 6, 0, 0.45));
}

.landing-box h1 {
  font-size: 30px;
}

.landing-box .lead {
  margin: 0 0 22px;
}

.landing-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.landing-actions .btn {
  width: 100%;
}

.landing-or {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mark {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent), 0 0 28px rgba(225, 6, 0, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.86); }
}

.wrap { width: min(1120px, calc(100% - 40px)); margin: 40px auto 80px; }
.kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  margin: 0 0 8px;
  font-weight: 700;
}
h1 {
  margin: 0 0 12px;
  font-size: 40px;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-shadow: 0 0 40px rgba(225, 6, 0, 0.25);
}
.lead, .muted { color: var(--muted); }
.hero { max-width: 680px; padding: 28px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ff2d2d, #b80000);
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(225, 6, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.lg { padding: 13px 22px; font-size: 16px; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(225, 6, 0, 0.45);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--accent); color: #fff; }

.btn.small {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  box-shadow: none;
}

.btn[disabled] {
  opacity: 0.38;
  cursor: default;
  transform: none;
  filter: none;
}

.pin-cell {
  font-size: 18px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #ffd6d6;
}

tr.hl td {
  background: rgba(225, 6, 0, 0.18);
}

.who { display: flex; gap: 12px; align-items: center; color: var(--muted); }

.card, .table-card, .pin-form, .pin-box {
  background: var(--card);
  border: 1px solid rgba(225, 6, 0, 0.24);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.split { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; flex-wrap: wrap; }
.pin-form { display: flex; gap: 12px; align-items: end; }
.pin-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.pin-form input {
  background: #090909;
  border: 1px solid rgba(225, 6, 0, 0.35);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 220px;
  outline: none;
}
.pin-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.18); }

.hero .pin-form input {
  letter-spacing: 0.28em;
  font-size: 24px;
  text-align: center;
  font-family: "JetBrains Mono", Consolas, monospace;
}

ol { color: var(--muted); padding-left: 20px; }
ol li { margin: 8px 0; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid rgba(225, 6, 0, 0.16); }
th { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
tr:hover td { background: rgba(225, 6, 0, 0.06); }

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.pill.wait { background: #2a1d08; color: var(--wait); }
.pill.run { background: #3a1010; color: var(--run); }
.pill.ok { background: #2a0808; color: #ff8a8a; }
.pill.err { background: #3a0808; color: var(--err); }

.banner { border-radius: 12px; padding: 12px 14px; }
.banner.ok { background: rgba(225, 6, 0, 0.16); color: #ffb4b4; border: 1px solid rgba(225, 6, 0, 0.3); }
.banner.err { background: #3a1518; color: #ffb4b4; }

.pin-box { margin: 18px 0; text-align: center; }
.pin-box span, .pin-box em { display: block; color: var(--muted); }
.pin-box strong {
  display: block;
  font-size: 48px;
  letter-spacing: 0.28em;
  margin: 8px 0;
  font-family: "JetBrains Mono", Consolas, monospace;
  color: #fff;
  text-shadow: 0 0 24px rgba(225, 6, 0, 0.55);
}

.report {
  overflow: auto;
  background: #090909;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}

.stat {
  background: rgba(9, 9, 9, 0.7);
  border: 1px solid rgba(225, 6, 0, 0.25);
  border-radius: 14px;
  padding: 14px;
}

.stat b { display: block; font-size: 22px; margin-top: 4px; color: #fff; }
.stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }

.sys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.flag {
  border-left: 3px solid var(--wait);
  padding: 10px 12px;
  margin: 8px 0;
  background: rgba(18, 8, 8, 0.8);
  border-radius: 8px;
}

.flag.suspect { border-color: var(--accent); }
.flag small { color: var(--muted); }
.flag-group {
  margin: 0 0 10px;
  border: 1px solid rgba(225, 6, 0, 0.2);
  border-radius: 10px;
  background: rgba(8, 6, 6, 0.45);
  padding: 0 10px 8px;
}
.flag-list {
  max-height: 24.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  margin: 0 -2px 0 0;
}
.flag-list .flag { margin: 6px 0; }
.flag-list .flag:first-child { margin-top: 0; }
.flag-list .flag:last-child { margin-bottom: 4px; }
.flag-list::-webkit-scrollbar { width: 8px; }
.flag-list::-webkit-scrollbar-track { background: transparent; }
.flag-list::-webkit-scrollbar-thumb {
  background: rgba(225, 6, 0, 0.4);
  border-radius: 999px;
}
.flag-list { scrollbar-color: rgba(225, 6, 0, 0.4) transparent; }

.flag.suspect { border-color: var(--accent); }
.flag small { color: var(--muted); }
.flag-group {
  margin: 0 0 10px;
  border: 1px solid rgba(225, 6, 0, 0.2);
  border-radius: 10px;
  background: rgba(8, 6, 6, 0.45);
  padding: 0 10px 8px;
}
.flag-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  padding: 10px 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  color: #ffb4b4;
  list-style: none;
}
.flag-group > summary::-webkit-details-marker { display: none; }
.flag-group > summary em {
  font-style: normal;
  color: var(--muted);
  background: rgba(225, 6, 0, 0.16);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(225, 6, 0, 0.22);
}

.tab-btn {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(225, 6, 0, 0.28);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: 13px/1.2 "Barlow", sans-serif;
  white-space: nowrap;
  transition: 0.15s ease;
}

.tab-btn:hover { color: #fff; border-color: var(--accent); }
.tab-btn.active {
  background: linear-gradient(180deg, #ff2d2d, #b80000);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(225, 6, 0, 0.35);
}

.tab-panel { min-height: 180px; }
.tab-panel table { font-size: 13px; }
.tab-panel td { word-break: break-all; }

.tab-btn em {
  margin-left: 8px;
  min-width: 18px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.tab-btn.active em { background: rgba(0, 0, 0, 0.25); }

.wrap-wide { width: min(1440px, calc(100% - 28px)); margin-top: 22px; }

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.results-head h1 { font-size: 32px; margin-bottom: 6px; }

.verdict-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.verdict-badge.ok { background: #102418; color: #4ade80; box-shadow: 0 0 24px rgba(74, 222, 128, 0.18); }
.verdict-badge.wait { background: #2a1d08; color: var(--wait); }
.verdict-badge.err { background: #3a0808; color: var(--err); }
.verdict-badge.run { background: #3a1010; color: var(--run); }

.results-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.results-side {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.sys-panel, .panel, .info-card {
  background: var(--card);
  border: 1px solid rgba(225, 6, 0, 0.28);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.sys-panel { padding: 18px; }
.sys-panel h2 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.sys-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(225, 6, 0, 0.14);
  font-size: 13px;
}

.sys-row span { color: var(--muted); }
.sys-row b { font-weight: 600; text-align: right; word-break: break-word; }

.sys-sheets {
  padding: 8px;
  display: grid;
  gap: 2px;
}

.sheet-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 0;
  color: #ffb4b4;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
  font: 700 12px/1.2 "Barlow", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
}

.sheet-btn:hover,
.sheet-btn:focus-visible {
  background: rgba(225, 6, 0, 0.12);
  color: #fff;
  outline: none;
}

.sheet-btn span { flex: 1; }
.sheet-btn em {
  font-style: normal;
  color: var(--muted);
  background: rgba(225, 6, 0, 0.16);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.sheet-overlay[hidden] { display: none; }

.sheet {
  width: min(720px, 100%);
  max-height: min(82vh, 860px);
  display: flex;
  flex-direction: column;
  background: #0c0808;
  border: 1px solid rgba(225, 6, 0, 0.35);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(225, 6, 0, 0.22);
}

.sheet-head h3 {
  margin: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 700;
}

.sheet-ico {
  display: inline-flex;
  color: var(--accent-2);
}

.sheet-ico .nav-ico {
  width: 20px;
  height: 20px;
}

.sheet-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.sheet-close:hover { color: #fff; }

.sheet-body {
  padding: 14px 16px 18px;
  overflow: auto;
  min-height: 120px;
}

.sheet-body .flag-list { max-height: none; }
.sheet-body .empty-note { text-align: left; padding: 12px 4px; }

body.sheet-open { overflow: hidden; }

.results-tabs {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.results-tabbar.tabs {
  margin: 0;
  flex-wrap: nowrap;
}

.results-tab-panels {
  min-width: 0;
}

.tab-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  background: var(--glass-soft);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}

.cat-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}
.cat-search-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #c9b4b4;
}
.cat-search input {
  background: #090909;
  border: 1px solid rgba(225, 6, 0, 0.35);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
  flex: 1;
  min-width: 0;
  width: 100%;
  outline: none;
}
.cat-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.18);
}

.tab-panel-body {
  min-width: 0;
}

.results-main .tabs { margin-top: 0; }

.empty-state, .empty-note {
  text-align: center;
  padding: 36px 16px;
  color: var(--muted);
}

.empty-state strong { display: block; color: #fff; font-size: 18px; margin-bottom: 6px; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0;
}

.boxed-note {
  margin: 0 0 8px;
  font-size: 13px;
}

.subcat-browser {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.subcat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.subcat-browser.is-open .subcat-tiles {
  display: none;
}

.subcat-tile {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 132px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(225, 6, 0, 0.28);
  background: rgba(8, 6, 6, 0.55);
  color: #ffb4b4;
  cursor: pointer;
  text-align: left;
  font: 700 13px/1.25 "Barlow", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.subcat-tile:hover,
.subcat-tile:focus-visible {
  border-color: var(--accent);
  background: rgba(225, 6, 0, 0.14);
  color: #fff;
  transform: translateY(-2px);
  outline: none;
}

.subcat-tile-title {
  display: block;
  word-break: break-word;
}

.subcat-tile em {
  font-style: normal;
  align-self: flex-end;
  color: var(--muted);
  background: rgba(225, 6, 0, 0.18);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
}

.subcat-panel {
  min-width: 0;
}

.subcat-toolbar {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.subcat-toolbar .tab-toolbar {
  margin: 0;
}

.subcat-back {
  justify-self: start;
  background: transparent;
  border: 1px solid rgba(225, 6, 0, 0.28);
  color: #ffb4b4;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font: 700 12px/1.2 "Barlow", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subcat-back:hover,
.subcat-back:focus-visible {
  color: #fff;
  border-color: var(--accent);
  outline: none;
}

.subcat-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.sheet-toolbar {
  padding: 0 16px 4px;
}

.sheet-toolbar .tab-toolbar {
  margin: 0;
}

.flag-group .empty-note {
  padding: 8px 4px 12px;
  text-align: left;
}

.info-card { padding: 0; overflow: hidden; }
.info-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.info-card summary::-webkit-details-marker { display: none; }
.info-card summary em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}

.info-body { padding: 0 12px 12px; border-top: 1px solid rgba(225, 6, 0, 0.16); }

.split-cards {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 12px;
}

.panel { padding: 16px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.panel-head h3, .tab-panel h3 { margin: 18px 0 8px; font-size: 15px; }
.panel-head h3 { margin: 0; }
.panel-head em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.check-line {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.activity-list {
  max-height: 24.5rem;
  overflow: auto;
  padding-right: 6px;
}

.activity-row {
  display: grid;
  grid-template-columns: 92px 78px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(225, 6, 0, 0.12);
  font-size: 12px;
}

.activity-row code {
  color: #ffd6d6;
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.activity-row .time { color: var(--muted); }
.exec-badge {
  display: inline-flex;
  justify-content: center;
  background: #102033;
  color: #7dd3fc;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 700;
  font-size: 11px;
}

.activity-row.sus .exec-badge { background: #3a0808; color: #ff8a8a; }

.table-wrap { overflow: auto; max-height: 520px; }

.pins-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.pins-metric {
  background: var(--card);
  border: 1px solid rgba(225, 6, 0, 0.24);
  border-radius: 10px;
  padding: 12px 14px;
}
.pins-metric .home-stat-ico { margin-bottom: 6px; }
.pins-metric b {
  display: block;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.pins-metric > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pins-metric em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.pins-metric.used b { color: #4ade80; }
.pins-metric.unused b { color: #ffb020; }

.pins-board {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  gap: 10px;
  align-items: start;
}

.pins-stats h2 { margin: 0 0 4px; font-size: 15px; }
.pins-donut {
  width: 148px;
  height: 148px;
  margin: 16px auto 12px;
  border-radius: 50%;
  background: conic-gradient(
    #4ade80 0 calc(var(--clean) * 1%),
    #ffb020 calc(var(--clean) * 1%) calc((var(--clean) + var(--review)) * 1%),
    #e10600 calc((var(--clean) + var(--review)) * 1%) calc((var(--clean) + var(--review) + var(--suspect)) * 1%),
    rgba(255, 255, 255, 0.08) calc((var(--clean) + var(--review) + var(--suspect)) * 1%) 100%
  );
  display: grid;
  place-items: center;
  position: relative;
}
.pins-donut::after {
  content: "";
  position: absolute;
  inset: 18px;
  background: #0c0c0e;
  border-radius: 50%;
}
.pins-donut strong,
.pins-donut span {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}
.pins-donut strong { font-size: 22px; margin-top: -8px; }
.pins-donut span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 22px;
}
.pins-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pins-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.pins-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pins-legend i.ok { background: #4ade80; }
.pins-legend i.wait { background: #ffb020; }
.pins-legend i.err { background: #e10600; }
.pins-legend em { color: var(--muted); font-style: normal; }
.pins-updated { margin: 14px 0 0; font-size: 12px; }
.pins-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.pins-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
  color: var(--muted);
  font-size: 13px;
}
.pins-search-label { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.pins-search input {
  background: #090909;
  border: 1px solid rgba(225, 6, 0, 0.35);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  flex: 1;
  min-width: 0;
  width: 100%;
  outline: none;
}
.pins-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.18);
}
.pin-form.pins-generate {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  backdrop-filter: none;
  align-items: center;
}
.pin-form.pins-generate .btn {
  white-space: nowrap;
}

.aim-toasts {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 90;
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.aim-toast {
  min-width: 220px;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  background: #101214;
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #d7ffe4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  animation: toast-in 0.2s ease;
}
.aim-toast.out {
  animation: toast-out 0.25s ease forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-6px); }
}

.trial-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}
.trial-modal {
  width: min(440px, 100%);
  padding: 28px 26px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(42, 16, 18, 0.96), rgba(12, 8, 9, 0.98));
  border: 1px solid rgba(225, 6, 0, 0.38);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.trial-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff6b6b;
}
.trial-modal h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
}
.trial-modal p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}
.trial-modal strong {
  color: #fff;
}
.trial-modal .btn {
  min-width: 140px;
}
.pins-table-wrap { max-height: none; }
.pins-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(225, 6, 0, 0.16);
  color: var(--muted);
  font-size: 13px;
}
.pins-pager-info,
.pins-pager-page { margin: 0; }
.pins-pager-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pins-per {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pins-per select {
  background: #090909;
  border: 1px solid rgba(225, 6, 0, 0.35);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 8px;
  outline: none;
}
.pins-per select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.18);
}

@media (max-width: 980px) {
  .results-grid, .split-cards { grid-template-columns: 1fr; }
  .results-side { position: static; max-height: none; }
  .activity-row { grid-template-columns: 1fr; }
  .pins-search input { min-width: 0; width: 100%; }
  .pins-search { width: 100%; }
  .pin-form.pins-generate { width: 100%; }
  .pin-form.pins-generate .btn { width: 100%; }
  .pins-metrics,
  .pins-board { grid-template-columns: 1fr; }
}

.actions { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; justify-content: flex-end; }
.actions form { margin: 0; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(225, 6, 0, 0.32);
  background: rgba(225, 6, 0, 0.12);
  color: #ffb0b0;
  cursor: pointer;
  text-decoration: none;
  flex: 0 0 32px;
}
.icon-btn .nav-ico { width: 15px; height: 15px; }
.icon-btn:hover:not([disabled]) {
  background: rgba(225, 6, 0, 0.28);
  border-color: var(--accent);
  color: #fff;
}
.icon-btn[disabled] {
  opacity: 0.28;
  cursor: default;
  filter: none;
}
.icon-btn.danger {
  background: transparent;
  border-color: rgba(255, 90, 90, 0.4);
  color: #ff7a7a;
}
.icon-btn.danger:hover:not([disabled]) {
  background: rgba(225, 6, 0, 0.22);
  color: #fff;
}
.icon-btn.copied {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.12);
}
.vis-form { margin: 0; }
.vis-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 116px;
}
.icon-btn.vis-slot {
  visibility: hidden;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
}
#pins-table { table-layout: fixed; }
#pins-table th:nth-child(1),
#pins-table td.pin-cell { width: 112px; }
#pins-table th:nth-child(2) { width: 110px; }
#pins-table th:nth-child(4),
#pins-table td.vis-cell { width: 148px; }
#pins-table th:last-child,
#pins-table td.actions { width: 48px; }
.switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  min-width: 78px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(225, 6, 0, 0.35);
  background: #140808;
  color: #c9b4b4;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.switch.on {
  background: linear-gradient(180deg, #ff2d2d, #b80000);
  color: #fff;
  border-color: transparent;
}

.app-body {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 3;
  width: 248px;
  flex: 0 0 248px;
  height: 100vh;
  overflow: auto;
  padding: 18px 12px 16px;
  background: linear-gradient(180deg, rgba(10, 6, 6, 0.96), rgba(5, 5, 6, 0.98));
  border-right: 1px solid rgba(225, 6, 0, 0.28);
}

.side-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  padding: 6px 8px 16px;
}

.side-brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.side-brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.beta-tag,
.brand em {
  display: inline-block;
  font-style: normal;
  color: #ff2a2a;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-left: 6px;
  padding: 2px 6px 1px;
  border-radius: 6px;
  border: 1px solid #e10600;
  background: rgba(225, 6, 0, 0.16);
  vertical-align: 2px;
}

.shield {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ff2d2d, #8a0000);
  box-shadow: 0 0 18px rgba(225, 6, 0, 0.45);
  clip-path: polygon(50% 4%, 94% 22%, 94% 58%, 50% 96%, 6% 58%, 6% 22%);
}

.side-label {
  margin: 14px 8px 6px;
  color: #7a6868;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin: 2px 0;
  color: #cfc4c4;
  border-radius: 10px;
  position: relative;
}

.side-link:hover { color: #fff; background: rgba(225, 6, 0, 0.1); }
.side-link.active {
  color: #fff;
  background: rgba(225, 6, 0, 0.18);
  box-shadow: inset 3px 0 0 var(--accent);
}

.side-link.soon { opacity: 0.72; }
.side-link em {
  margin-left: auto;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7373;
}

.nav-ico { width: 16px; height: 16px; flex: 0 0 16px; }

.side-user {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 8px 4px;
  border-top: 1px solid rgba(225, 6, 0, 0.2);
  color: #fff;
}

.side-avatar, .profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(225, 6, 0, 0.4);
}

.profile-avatar { width: 72px; height: 72px; }
.side-user b { display: block; font-size: 13px; }
.side-user a { color: var(--muted); font-size: 12px; }

.app-main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding: 28px 32px 80px;
}

.app-main:has(.profile-page) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 24px;
}

.app-main h1 { font-size: 34px; }

.profile-page {
  width: min(380px, 100%);
  display: grid;
  gap: 12px;
}

.pf-card {
  background: rgba(12, 12, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 22px 22px 18px;
}

.pf-identity {
  text-align: center;
}

.pf-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 4px auto 14px;
}

.pf-avatar img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1a1a1c;
}

.pf-online {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #0c0c0e;
}

.pf-identity h1 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0;
  text-shadow: none;
  font-weight: 700;
}

.pf-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pf-access .nav-ico {
  width: 14px;
  height: 14px;
}

.pf-rows {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.pf-rows div,
.pf-sub-box div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.pf-rows span,
.pf-sub-box span {
  color: #8b8088;
  font-size: 13px;
}

.pf-rows b,
.pf-sub-box b {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: right;
}

.pf-sub h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.pf-sub h2 .nav-ico {
  width: 16px;
  height: 16px;
  color: var(--accent-2);
}

.pf-sub-box {
  background: rgba(225, 6, 0, 0.08);
  border: 1px solid rgba(225, 6, 0, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

.pf-plan { color: var(--accent-2) !important; }

.pf-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pf-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.pf-status.off i { background: #6b7280; }

.pf-sub-box em {
  font-style: normal;
  color: #8b8088;
  font-size: 13px;
  text-align: right;
}

.profile-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 8px 0 16px;
}

.profile-hero h2 { margin: 0 0 4px; }

.home-hero h1 { font-size: 40px; margin-bottom: 8px; }
.accent-name { color: var(--accent-2); }
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}
.home-stat {
  background: var(--card);
  border: 1px solid rgba(225, 6, 0, 0.24);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: none;
}
.home-stat-ico {
  display: flex;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.home-stat-ico .nav-ico { width: 16px; height: 16px; }
.home-stat.status b { color: #4ade80; }
.home-stat b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.home-stat > span:last-child {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.announce-wrap h2 {
  margin: 0 0 14px;
  font-size: 20px;
}
.announce {
  background: var(--card);
  border: 1px solid rgba(225, 6, 0, 0.24);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.announce-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.announce-tag {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.announce-ago {
  color: var(--muted);
  font-size: 11px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(225, 6, 0, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
}
.announce h3 { margin: 0 0 6px; font-size: 16px; }
.announce p { margin: 0; color: #f4ecec; }
.announce-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.announce-ava {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(225, 6, 0, 0.35);
  background: #120808;
  flex: 0 0 22px;
}

@media (max-width: 1100px) {
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .app-body { flex-direction: column; }
  .sidebar {
    width: 100%;
    flex-basis: auto;
    height: auto;
    position: static;
  }
}
.tab-panel table { font-size: 13px; }
.tab-panel td { word-break: break-all; }

.settings-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.settings-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.settings-card h2 { margin: 0 0 6px; }
.settings-card .muted { margin: 0 0 12px; }
.scanner-drop {
  display: block;
  margin: 0 0 10px;
}
.scanner-drop.hot .scanner-preview {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.18);
}
.drop-btn {
  display: block;
  margin: 0 auto 12px;
}
.settings-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.toggle input { display: none; }
.toggle span {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #1a1010;
  border: 1px solid rgba(225, 6, 0, 0.35);
  position: relative;
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c9b4b4;
  transition: 0.15s ease;
}

.toggle input:checked + span {
  background: linear-gradient(180deg, #ff2d2d, #b80000);
  border-color: transparent;
}

.toggle input:checked + span::after {
  left: 22px;
  background: #fff;
}

.preview-note {
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.28);
  color: #ffd089;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}

.scanner-preview {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 620 / 380;
  height: auto;
  min-height: 280px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background-color: #050506;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(225, 6, 0, 0.28), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(90, 0, 0, 0.35), transparent 46%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(225, 6, 0, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.scanner-preview-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.scanner-preview .scanner-x,
.scanner-preview .scanner-float {
  z-index: 2;
}

.scanner-preview.off { filter: grayscale(0.4); opacity: 0.75; }

.scanner-x {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  color: var(--accent, #e10600);
  font-style: normal;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.scanner-float {
  position: absolute;
  left: 50%;
  top: 56%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: min(240px, 42%);
  text-align: center;
}

.fake-pin {
  height: 34px;
  margin: 0 auto 12px;
  max-width: 200px;
  border: 1px solid var(--accent, #e10600);
  border-radius: 12px;
  background: rgba(7, 7, 7, 0.82);
}

.fake-go {
  background: var(--accent, #e10600);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  max-width: 160px;
  margin: 0 auto;
}

.settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.webhook-status {
  display: grid;
  gap: 6px;
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(225, 6, 0, 0.22);
  background: rgba(225, 6, 0, 0.08);
}

.webhook-status code {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.webhook-actions {
  margin-top: 8px;
}

.settings-wrap {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.settings-row label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.settings-row input[type="color"] {
  width: 54px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 180px;
  margin: 12px 0;
  border: 1px dashed rgba(225, 6, 0, 0.45);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  padding: 20px;
}

.dropzone strong { color: #fff; }
.dropzone.hot { border-color: var(--accent); background: rgba(225, 6, 0, 0.12); }
.drop-icon {
  font-size: 28px;
  color: var(--accent, #e10600);
  line-height: 1;
}

.license-gate {
  width: min(440px, 100%);
}

.license-card {
  text-align: center;
  padding: 36px 32px 28px;
  background: rgba(10, 8, 8, 0.82);
  border: 1px solid rgba(225, 6, 0, 0.4);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 70px rgba(225, 6, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  animation: license-in 0.45s ease;
}

@keyframes license-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.license-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.license-avatar {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
}

.license-avatar img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(225, 6, 0, 0.18), 0 12px 40px rgba(0, 0, 0, 0.45);
}

.license-avatar span {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #5865F2;
  border: 3px solid #0a0808;
  border-radius: 50%;
  color: #fff;
}

.license-avatar .discord-ico {
  width: 16px;
  height: 16px;
}

.license-card h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.01em;
}

.license-handle {
  margin: 4px 0 14px;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 14px;
}

.license-pill {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(225, 6, 0, 0.16);
  border: 1px solid rgba(225, 6, 0, 0.4);
  color: #ffb4b4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.license-copy {
  margin: 0 0 22px;
  color: #cbb8b8;
  font-size: 15px;
}

.license-copy code {
  color: #ffd0d0;
}

.license-actions {
  display: flex;
  justify-content: center;
}

.ban-pill {
  background: rgba(225, 6, 0, 0.28);
  border-color: rgba(255, 80, 80, 0.65);
  color: #ffd0d0;
}

.ban-meta {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  text-align: left;
}

.ban-meta > div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ban-meta dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ban-meta dd {
  margin: 0;
  color: #f4e8e8;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.ban-actions {
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .settings-grid { grid-template-columns: 1fr; }
}

.btn.danger {
  background: transparent;
  color: #ff6b6b;
  border: 1px solid rgba(255, 90, 90, 0.45);
  box-shadow: none;
}

.btn.danger:hover {
  background: rgba(225, 6, 0, 0.22);
  color: #fff;
  border-color: var(--accent);
}

.ent-lead { margin: 0 0 12px; max-width: 52ch; }

.ent-stats,
.ent-people,
.ent-add-card,
.ent-week,
.ent-empty-card,
.ent-details-card {
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: none;
}

.ent-stats h2,
.ent-people h2,
.ent-add-card h2,
.ent-week h2,
.ent-empty-card h2,
.ent-details-card h2 {
  font-size: 15px;
  font-weight: 700;
}

.ent-add-card p,
.ent-week p,
.ent-details-card p,
.ent-empty-card p {
  margin: 6px 0 0;
  font-size: 13px;
}

.ent-tabs.tabs {
  gap: 4px;
  padding: 0;
  margin: 4px 0 14px;
  border-bottom: 1px solid rgba(225, 6, 0, 0.22);
}

.ent-tabs .tab-btn {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 12px 9px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
}

.ent-tabs .tab-btn:hover {
  color: #fff;
  border-color: transparent;
  border-bottom-color: rgba(225, 6, 0, 0.45);
}

.ent-tabs .tab-btn.active {
  background: transparent;
  color: #fff;
  border-color: transparent;
  border-bottom-color: var(--accent);
  box-shadow: none;
}

.ent-stats-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 8px;
}

.ent-stats-head h2 { margin: 2px 0 0; font-size: 15px; }
.ent-stats-head .kicker { margin: 0; }
.ent-stats-head strong {
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ent-stats-head strong span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.ent-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(225, 6, 0, 0.14);
  border: 0;
  overflow: hidden;
}

.ent-bar span {
  display: block;
  height: 100%;
  min-width: 0;
  background: var(--accent);
  box-shadow: none;
  border-radius: inherit;
}

.ent-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid rgba(225, 6, 0, 0.16);
}

.ent-metrics div {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 0 0;
}

.ent-metrics div + div {
  padding-left: 12px;
  border-left: 1px solid rgba(225, 6, 0, 0.16);
  margin-left: 12px;
}

.ent-metrics span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ent-metrics b {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.ent-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}

.ent-people-head,
.ent-week h2,
.ent-add-card h2,
.ent-people h2 {
  margin: 0;
}

.ent-people-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ent-people-head em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ent-list { display: grid; gap: 4px; }

.ent-member {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid rgba(225, 6, 0, 0.14);
  border-radius: 8px;
}

.ent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(225, 6, 0, 0.4);
  background: #120808;
}

.ent-who { min-width: 0; }
.ent-who strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ent-who .mono {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.ent-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ent-member:has(.ent-badge.owner) .ent-avatar {
  border-color: rgba(255, 176, 32, 0.7);
}

.ent-member form { margin: 0; display: flex; }

.ent-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.ent-pins {
  white-space: nowrap;
  padding: 4px 8px;
  font-size: 11px;
}

.ent-pins-ph { width: 0; height: 28px; }

.ent-badge.owner {
  background: rgba(255, 176, 32, 0.16);
  color: #ffd089;
  border: 1px solid rgba(255, 176, 32, 0.4);
}

.ent-badge.member {
  background: rgba(225, 6, 0, 0.12);
  color: #ffb4b4;
  border: 1px solid rgba(225, 6, 0, 0.32);
}

.ent-del {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 7px;
}

.ent-del .nav-ico,
.ent-add .nav-ico {
  width: 14px;
  height: 14px;
}

.ent-del-ph { width: 28px; height: 28px; }

.ent-side { display: grid; gap: 10px; }

.ent-add {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.ent-add label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.ent-add input,
.ent-add select,
.ent-add textarea {
  background: #090909;
  border: 1px solid rgba(225, 6, 0, 0.35);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  outline: none;
  width: 100%;
  font: inherit;
  font-size: 13px;
  color-scheme: dark;
}

.ent-add select option,
select option {
  background-color: #0a0a0a;
  color: #f4ecec;
}

.ent-add textarea { min-height: 120px; resize: vertical; }

.ent-add input:focus,
.ent-add select:focus,
.ent-add textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.18);
}

.ent-add .btn {
  width: auto;
  justify-self: start;
  padding: 7px 12px;
  font-size: 13px;
  gap: 6px;
}

.ent-empty {
  margin: 8px 0 0;
  color: var(--muted);
}

.ent-empty-card { margin-top: 0; }

.ent-activity {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.ent-activity li {
  display: grid;
  gap: 1px;
  padding: 7px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(225, 6, 0, 0.12);
}

.ent-activity li:last-child { border-bottom: 0; padding-bottom: 0; }

.ent-activity b { font-size: 13px; }
.ent-activity span,
.ent-activity em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.ent-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 10px 0 12px;
  border: 1px solid rgba(225, 6, 0, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.ent-details div {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 10px;
  border-right: 1px solid rgba(225, 6, 0, 0.16);
  border-bottom: 1px solid rgba(225, 6, 0, 0.16);
}

.ent-details div:nth-child(2n) { border-right: 0; }
.ent-details div:nth-last-child(-n+2) { border-bottom: 0; }

.ent-details span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ent-week h2 { margin-bottom: 4px; }

.hook-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.hook-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hook-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
}

.hook-card h2 .nav-ico { width: 16px; height: 16px; }
.hook-card .ent-add { margin-top: 4px; }
.hook-card .ent-add .btn { margin-top: 4px; }

.hook-state {
  margin-top: 8px;
  padding: 18px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(225, 6, 0, 0.28);
  text-align: center;
}

.hook-state strong { display: block; margin-bottom: 6px; }
.hook-state code {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
  word-break: break-all;
}
.hook-state.off { color: var(--muted); }
.hook-state.on {
  border-style: solid;
  border-color: rgba(225, 6, 0, 0.35);
}

.hook-card form .btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.an-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 10px;
  align-items: start;
  margin-top: 12px;
}

.an-grid h2 { font-size: 15px; margin: 0 0 10px; }

.an-admin .announce-author {
  justify-content: flex-start;
}

.an-admin .announce-author form {
  margin-left: auto;
}

@media (max-width: 980px) {
  .an-grid { grid-template-columns: 1fr; }
  .ent-grid { grid-template-columns: 1fr; }
  .hook-grid { grid-template-columns: 1fr; }
  .ent-metrics { grid-template-columns: 1fr; }
  .ent-metrics div + div {
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(225, 6, 0, 0.16);
  }
  .ent-details { grid-template-columns: 1fr; }
  .ent-details div {
    border-right: 0;
  }
  .ent-details div:nth-last-child(-n+2) { border-bottom: 1px solid rgba(225, 6, 0, 0.16); }
  .ent-details div:last-child { border-bottom: 0; }
  .ent-member { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .ent-actions { grid-column: 3; grid-row: 1; }
  .ent-badge { grid-column: 2; }
}

.mu-search {
  display: flex;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.mu-search label {
  display: grid;
  gap: 6px;
  flex: 1;
  color: var(--muted);
  font-size: 13px;
}
.mu-search input {
  background: #090909;
  border: 1px solid rgba(225, 6, 0, 0.35);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
.mu-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.18);
}
.mu-hits {
  display: grid;
  gap: 8px;
}
.mu-hit {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.4fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(225, 6, 0, 0.2);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.18);
}
.mu-hit:hover {
  border-color: var(--accent);
  background: rgba(225, 6, 0, 0.1);
}
.mu-hit img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.mu-hit strong, .mu-hit span {
  display: block;
}
.mu-hit span { color: var(--muted); font-size: 12px; }
.mu-hit em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mu-hit b { font-size: 13px; }
.mu-profile {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.mu-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mu-identity img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.mu-identity strong, .mu-identity span { display: block; }
.mu-identity span { color: var(--muted); font-size: 12px; }
.mu-profile .pins-metric span {
  display: block;
  margin-top: 0;
}
.card.table-card h2 { margin: 0; font-size: 15px; }

@media (max-width: 980px) {
  .mu-hit { grid-template-columns: 40px minmax(0, 1fr); }
  .mu-hit em, .mu-hit b, .mu-hit > span { grid-column: 2; }
  .mu-profile { grid-template-columns: 1fr; }
}

/* ?? Glass layer ??????????????????????????????????????????????? */

.card,
.table-card,
.pin-form:not(.pins-generate),
.pin-box,
.sys-panel,
.panel,
.info-card,
.landing-box,
.home-stat,
.pins-metric,
.announce,
.pf-card,
.stat,
.mu-hit,
.hook-card,
.dropzone {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.stat,
.pins-metric,
.home-stat,
.mu-hit,
.announce {
  border-radius: var(--radius-sm);
}

.home-stat,
.pins-metric,
.mu-hit,
.announce,
.info-card,
.stat {
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.home-stat:hover,
.pins-metric:hover,
.mu-hit:hover,
.announce:hover,
.stat:hover {
  transform: translateY(-2px);
  border-color: var(--glass-brd-hot);
  box-shadow: var(--glass-shadow-lg), inset 0 1px 0 var(--glass-hi), 0 0 34px rgba(225, 6, 0, 0.12);
}

.landing-box,
.license-card,
.sheet {
  border-radius: 26px;
}

.license-card {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow-lg), inset 0 1px 0 var(--glass-hi), 0 0 70px rgba(225, 6, 0, 0.1);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.top {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid var(--glass-brd);
  background: rgba(10, 7, 8, 0.55);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.sidebar {
  background: linear-gradient(180deg, rgba(18, 12, 13, 0.6), rgba(9, 7, 8, 0.66));
  border-right: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.side-link {
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}

.side-link:hover { transform: translateX(2px); }

.side-link.active {
  background: linear-gradient(90deg, rgba(225, 6, 0, 0.28), rgba(225, 6, 0, 0.06));
  box-shadow: inset 2px 0 0 var(--accent-2), inset 0 1px 0 var(--glass-hi);
}

.results-head h1,
.home-hero h1,
.landing-box h1 {
  background: linear-gradient(180deg, #ffffff 20%, #ffb3b3 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.btn {
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(225, 6, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.btn:hover { box-shadow: 0 14px 34px rgba(225, 6, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-brd);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn.ghost:hover {
  background: rgba(225, 6, 0, 0.14);
  border-color: var(--glass-brd-hot);
}

input,
select,
textarea {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.pin-form input,
.pins-search input,
.mu-search input,
.cat-search input,
.ent-add input,
.ent-add select,
.ent-add textarea,
.pins-per select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pin-form input:focus,
.pins-search input:focus,
.mu-search input:focus,
.cat-search input:focus,
.ent-add input:focus,
.ent-add select:focus,
.ent-add textarea:focus,
.pins-per select:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.16);
}

/* ?? Tabs ?????????????????????????????????????????????????????? */

.tabs:not(.ent-tabs) {
  gap: 4px;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 6, 0, 0.55) transparent;
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  background: var(--glass-soft);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.results-tabbar.tabs {
  border-radius: 14px;
  padding: 5px;
}

.tabs:not(.ent-tabs)::-webkit-scrollbar {
  height: 5px;
  display: block;
}

.tabs:not(.ent-tabs)::-webkit-scrollbar-track {
  background: transparent;
}

.tabs:not(.ent-tabs)::-webkit-scrollbar-thumb {
  background: rgba(225, 6, 0, 0.45);
  border: none;
}

.tabs:not(.ent-tabs) .tab-btn {
  border-color: transparent;
  background: transparent;
  padding: 8px 12px;
  transition: color 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}

.tabs:not(.ent-tabs) .tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
}

.tabs:not(.ent-tabs) .tab-btn.active {
  background: linear-gradient(180deg, #ff3535, #b80000);
  box-shadow: 0 8px 22px rgba(225, 6, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.tab-panel.panel-in {
  animation: panel-in 0.34s var(--ease) both;
}

.tab-panel.panel-in > .tab-toolbar {
  animation: item-in 0.3s var(--ease) both;
}

.tab-panel.panel-in > .tab-panel-body > * {
  animation: item-in 0.36s var(--ease) both;
}

.tab-panel.panel-in > .tab-panel-body > *:nth-child(1) { animation-delay: 0.03s; }
.tab-panel.panel-in > .tab-panel-body > *:nth-child(2) { animation-delay: 0.07s; }
.tab-panel.panel-in > .tab-panel-body > *:nth-child(3) { animation-delay: 0.11s; }
.tab-panel.panel-in > .tab-panel-body > *:nth-child(4) { animation-delay: 0.15s; }
.tab-panel.panel-in > .tab-panel-body > *:nth-child(5) { animation-delay: 0.19s; }
.tab-panel.panel-in > .tab-panel-body > *:nth-child(6) { animation-delay: 0.23s; }
.tab-panel.panel-in > .tab-panel-body > *:nth-child(n + 7) { animation-delay: 0.26s; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes item-in {
  from { opacity: 0; transform: translateY(12px) scale(0.994); }
  to { opacity: 1; transform: none; }
}

/* ?? Detection boxes ??????????????????????????????????????????? */

.flag-group,
.info-card,
.subcat-tile {
  border-radius: var(--radius-sm);
  border-color: var(--glass-brd);
  background: var(--glass-soft);
}

.subcat-tile {
  box-shadow: inset 0 1px 0 var(--glass-hi);
}

.subcat-tile:hover,
.subcat-tile:focus-visible {
  border-color: var(--glass-brd-hot);
}

.flag-group {
  box-shadow: inset 0 1px 0 var(--glass-hi);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.flag-group:hover { border-color: var(--glass-brd-hot); }

.flag-group > summary {
  transition: color 0.2s var(--ease);
}

.flag-group > summary:hover { color: #fff; }

.flag-group[open] > .flag-list,
.info-card[open] > .info-body {
  animation: list-in 0.3s var(--ease) both;
}

@keyframes list-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.flag {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 10px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.flag:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}

.flag.suspect { background: rgba(225, 6, 0, 0.1); }
.flag.suspect:hover { background: rgba(225, 6, 0, 0.16); }

.verdict-badge {
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ?? Sheet popup ??????????????????????????????????????????????? */

.sheet-overlay {
  animation: overlay-in 0.24s ease both;
}

.sheet {
  background: rgba(16, 11, 12, 0.72);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow-lg), inset 0 1px 0 var(--glass-hi), 0 0 80px rgba(225, 6, 0, 0.1);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  animation: sheet-in 0.32s var(--ease) both;
}

.sheet-btn {
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}

.sheet-btn:hover,
.sheet-btn:focus-visible { transform: translateX(2px); }

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ?? Page entrance ????????????????????????????????????????????? */

/* The results board must not animate transforms: it holds the fixed sheet
   overlay, which would otherwise be positioned against the board. */
.app-main > *:not(.results-board),
.wrap > *:not(.results-board),
.results-board > .results-head,
.results-board > .results-grid {
  animation: page-in 0.4s var(--ease) both;
}

body.sheet-open .app-main { z-index: 10; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.strings-page {
  width: min(780px, 100%);
  margin: 0 auto;
}

.strings-page h1 {
  font-size: 24px;
  margin: 4px 0 6px;
}

.strings-page > .muted {
  margin: 0 0 10px;
  font-size: 13px;
}

.strings-page .hook-card {
  padding: 12px 14px;
  gap: 6px;
  border-radius: 14px;
}

.strings-page .hook-card h2 { font-size: 14px; }
.strings-page .hook-card .muted { font-size: 12px; margin: 0; }
.strings-page .ent-add { gap: 6px; margin-top: 2px; }
.strings-page .ent-add input,
.strings-page .ent-add select,
.strings-page .ent-add textarea {
  padding: 7px 9px;
  font-size: 13px;
}
.strings-page .ent-add textarea { min-height: 88px; }
.strings-page .yara-form textarea { min-height: 132px; }
.strings-page .ent-add .btn { padding: 8px 12px; font-size: 13px; }

.strings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 10px;
}

.string-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.string-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--glass-brd);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.string-row strong { display: block; font-size: 13px; }
.string-row .mono {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 980px) {
  .strings-grid { grid-template-columns: 1fr; }
}

.strings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 10px;
  margin-top: 10px;
}

.string-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.string-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.string-row.is-off { opacity: 0.45; }

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.switch input {
  appearance: none;
  width: 34px;
  height: 18px;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--glass-brd);
  position: relative;
  cursor: pointer;
}

.switch input:checked {
  background: rgba(225, 6, 0, 0.7);
  border-color: var(--accent);
}

.switch input::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.16s var(--ease);
}

.switch input:checked::after { transform: translateX(14px); }

.drop-zone {
  margin-top: 8px;
  padding: 16px 12px;
  border: 1px dashed var(--glass-brd-hot);
  border-radius: 12px;
  background: rgba(225, 6, 0, 0.05);
  text-align: center;
  cursor: pointer;
}

.drop-zone strong { display: block; }
.drop-zone span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.drop-zone.hot { background: rgba(225, 6, 0, 0.12); }

.hash-out {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.file-info-title {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.file-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.file-info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-brd);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
}

.file-info-card:hover:not(:disabled) { border-color: var(--glass-brd-hot); }
.file-info-card.is-disabled,
.file-info-card:disabled {
  opacity: 0.55;
  cursor: default;
}

.file-info-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.file-info-value {
  font-size: 12px;
  word-break: break-all;
  color: #fff;
}

.file-info-hint {
  font-size: 10px;
  color: var(--muted);
}

.file-info-more,
.file-info-tip {
  margin: 2px 0 0;
  font-size: 12px;
}

.hash-out-extra {
  display: grid;
  gap: 6px;
}

.hash-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--glass-brd);
  background: rgba(255,255,255,0.03);
  color: inherit;
  cursor: pointer;
}

.hash-row .mono { font-size: 11px; word-break: break-all; }
.hash-row:hover { border-color: var(--glass-brd-hot); }

@media (max-width: 720px) {
  .file-info-grid { grid-template-columns: 1fr; }
}

.yara-card { margin-top: 10px; }
.yara-editor {
  position: relative;
}
.yara-form textarea,
.yara-ghost {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}
.yara-editor textarea {
  position: relative;
  z-index: 1;
  background: transparent;
  min-height: 132px;
}
.yara-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(244, 236, 236, 0.28);
  white-space: pre;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.yara-editor.is-filled .yara-ghost { opacity: 0; }
.yara-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.yara-actions .ok { color: #7dffb0; }
.yara-actions .err { color: var(--err); }

.string-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}

.filter-pill {
  border: 1px solid var(--glass-brd);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.filter-pill em {
  font-style: normal;
  color: var(--muted);
  margin-left: 4px;
}

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
}

.string-search { margin-left: auto; }
.string-search input {
  min-width: 180px;
  border-radius: 99px;
  border: 1px solid var(--glass-brd);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  padding: 6px 10px;
  font-size: 12px;
}

.pill-custom {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 99px;
  border: 1px solid var(--glass-brd-hot);
  background: rgba(225, 6, 0, 0.16);
  color: #ffd0d0;
  font-size: 11px;
  font-weight: 600;
}

.flag.custom { border-color: var(--glass-brd-hot); }

@media (max-width: 980px) {
  .strings-hero { grid-template-columns: 1fr; }
  .string-search { margin-left: 0; width: 100%; }
  .string-search input { width: 100%; min-width: 0; }
}

/* �� Marketing / public site (Scanify red-black, not a clone) �� */
body.marketing {
  min-height: 100vh;
}
body.marketing .m-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(225, 6, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 6, 0, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.m-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(5, 5, 6, 0.82);
  border-bottom: 1px solid rgba(225, 6, 0, 0.18);
  backdrop-filter: blur(14px);
}
.m-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.m-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(225, 6, 0, 0.45));
}
.m-brand em {
  display: inline-block;
  font-style: normal;
  color: #ff2a2a;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-left: 8px;
  padding: 3px 7px 2px;
  border-radius: 6px;
  border: 1px solid #e10600;
  background: rgba(225, 6, 0, 0.18);
  vertical-align: 2px;
}
.m-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 auto;
  justify-content: center;
}
.m-nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 2px;
}
.m-nav-link:hover,
.m-nav-link.is-on { color: #fff; }
.m-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.m-btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow: none !important;
}
.m-main {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
.m-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.m-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(225, 6, 0, 0.35);
  background: rgba(225, 6, 0, 0.12);
  color: #ffb4b4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.m-hero h1,
.m-download h1,
.m-auth-card h1,
.m-legal h1 {
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.045em;
  margin: 0 0 14px;
}
.m-hero h1 span,
.m-download h1 span {
  color: var(--accent-2);
  text-shadow: 0 0 40px rgba(225, 6, 0, 0.35);
}
.m-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 auto 22px;
  max-width: 560px;
}
.m-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.m-hero-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #d7c8c8;
  font-size: 12px;
  font-weight: 600;
}
.m-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.m-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 64px;
}
.m-stats article {
  background: rgba(12, 8, 8, 0.72);
  border: 1px solid rgba(225, 6, 0, 0.2);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
}
.m-stats b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.m-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.m-section {
  margin: 0 0 64px;
  text-align: center;
}
.m-kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 8px;
}
.m-section h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
}
.m-sub {
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 520px;
}
.m-steps,
.m-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}
.m-steps article,
.m-cards article {
  background: rgba(10, 7, 7, 0.8);
  border: 1px solid rgba(225, 6, 0, 0.18);
  border-radius: 18px;
  padding: 22px 20px;
}
.m-step-n {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.m-steps h3,
.m-cards h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.m-steps p,
.m-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.m-auth {
  display: flex;
  justify-content: center;
  padding: 24px 0 40px;
}
.m-auth-card {
  width: min(460px, 100%);
  text-align: center;
  background: rgba(10, 7, 7, 0.88);
  border: 1px solid rgba(225, 6, 0, 0.28);
  border-radius: 22px;
  padding: 36px 28px 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 50px rgba(225, 6, 0, 0.1);
}
.m-auth-logo {
  width: 72px;
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 0 18px rgba(225, 6, 0, 0.4));
}
.m-auth-card .btn {
  width: 100%;
  margin-top: 8px;
}
.m-fine {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.m-download {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.m-dl-card {
  margin-top: 28px;
  text-align: left;
  background: rgba(10, 7, 7, 0.9);
  border: 1px solid rgba(225, 6, 0, 0.25);
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}
.m-dl-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.m-dl-meta div {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
}
.m-dl-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.m-dl-meta b { font-size: 13px; }
.m-dl-step { margin-bottom: 22px; }
.m-dl-step h2 {
  margin: 0 0 6px;
  font-size: 16px;
}
.m-dl-step > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.m-pin {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.m-pin-box {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: Consolas, ui-monospace, monospace;
  color: var(--text);
  background: #0c0808;
  border: 1px solid #3a1518;
  border-radius: 12px;
  outline: none;
}
.m-pin-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.2);
}
.m-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  color: #e8dede;
  font-size: 14px;
  cursor: pointer;
}
.m-check input {
  margin-top: 3px;
  accent-color: var(--accent);
}
.m-check a { color: var(--accent-2); }
.m-dl-card .btn {
  width: 100%;
}
.m-dl-card .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.m-warn {
  margin: 12px 0 0;
  color: #c9a06a;
  font-size: 12px;
  text-align: center;
}
.m-legal {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(10, 7, 7, 0.75);
  border: 1px solid rgba(225, 6, 0, 0.16);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: left;
}
.m-legal h2 {
  margin: 28px 0 8px;
  font-size: 18px;
}
.m-legal p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 10px;
}
.m-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(225, 6, 0, 0.16);
  padding: 36px clamp(16px, 4vw, 40px) 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  background: rgba(0,0,0,0.35);
}
.m-foot-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.m-foot-brand img { width: 36px; height: 36px; }
.m-foot-brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 360px;
  line-height: 1.45;
}
.m-foot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.m-foot-cols b {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.m-foot-cols a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  margin: 0 0 8px;
}
.m-foot-cols a:hover { color: #fff; }
.m-copy {
  grid-column: 1 / -1;
  margin: 0;
  color: #6a5050;
  font-size: 12px;
}
@media (max-width: 900px) {
  .m-nav { display: none; }
  .m-stats,
  .m-steps,
  .m-cards,
  .m-dl-meta,
  .m-foot { grid-template-columns: 1fr; }
  .m-foot-cols { grid-template-columns: 1fr 1fr; }
  .m-pin-box { width: 42px; height: 50px; }
}

/* Terms cards */
.m-terms {
  max-width: 820px;
  margin: 0 auto;
}
.app-body .app-terms {
  max-width: none;
  margin: 18px 0 0;
}
.m-terms-head {
  margin: 0 0 28px;
  text-align: left;
}
.m-terms-head h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.04em;
}
.m-terms-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 560px;
}
.m-term-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.m-term-card {
  background: rgba(12, 8, 8, 0.88);
  border: 1px solid rgba(225, 6, 0, 0.18);
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.m-term-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.m-term-card h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.m-term-ico {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(225, 6, 0, 0.35);
  background: rgba(225, 6, 0, 0.12);
  color: var(--accent-2);
}
.m-term-ico svg {
  width: 18px;
  height: 18px;
}
.m-term-card p {
  margin: 0 0 10px;
  color: #b9a8a8;
  font-size: 14px;
  line-height: 1.6;
}
.m-term-card p:last-child { margin-bottom: 0; }

/* Discord Info (PIN results) */
.discord-info {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(12, 10, 12, 0.72);
}
.di-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 14px;
}
.di-head h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.di-head .muted { margin: 0; flex: 1 1 180px; }
.di-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(225, 6, 0, 0.35);
  background: rgba(225, 6, 0, 0.12);
  color: #ffb4ae;
  font-size: 12px;
  font-weight: 600;
}
.di-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 14px;
}
.di-users {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.di-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: default;
}
.di-user.is-active {
  border-color: rgba(80, 150, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(80, 150, 255, 0.25);
}
.di-avatar,
.di-server-ico {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: linear-gradient(145deg, #3a3a45, #1c1c24);
  color: #f2f2f5;
  object-fit: cover;
}
img.di-avatar,
img.di-server-ico {
  padding: 0;
  border: 0;
}
.di-user strong,
.di-server strong {
  display: block;
  font-size: 13px;
}
.di-user em,
.di-server em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.di-user .mono,
.di-server .mono {
  display: block;
  font-size: 11px;
  color: #8f8383;
  margin-top: 2px;
}
.di-servers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.di-server {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.di-server.is-hit {
  border-color: rgba(225, 6, 0, 0.75);
  background: rgba(225, 6, 0, 0.08);
}
.di-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.di-status.ok { color: #ff8d84; }
.di-status.miss { color: #6f6767; }
@media (max-width: 860px) {
  .di-layout { grid-template-columns: 1fr; }
}
