/* ================= InfluenceMe ================= */
:root {
  --bg: #0a0a12;
  --bg-2: #10101c;
  --panel: #14142290;
  --card: #161627;
  --card-2: #1d1d33;
  --line: #ffffff14;
  --line-2: #ffffff22;
  --text: #eceafd;
  --muted: #9b98b8;
  --faint: #6d6a8a;
  --brand-1: #7c3aed;
  --brand-2: #ec4899;
  --grad: linear-gradient(100deg, var(--brand-1), var(--brand-2));
  --good: #a3e635;
  --excellent: #2dd4bf;
  --average: #fbbf24;
  --low: #f87171;
  --radius: 14px;
  --shadow: 0 12px 40px #00000066;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  background:
    radial-gradient(1100px 500px at 75% -150px, #7c3aed26, transparent 65%),
    radial-gradient(900px 420px at 15% -120px, #ec489922, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font: inherit; }
a { color: inherit; }
::selection { background: #7c3aed77; }

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; gap: 26px;
  padding: 14px 28px; position: sticky; top: 0; z-index: 40;
  background: #0a0a12d9; backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); font-weight: 800; font-size: 15px; color: #fff;
  box-shadow: 0 4px 18px #7c3aed66;
}
.logo-word { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.logo-word em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topnav { display: flex; gap: 6px; }
.navlink { padding: 8px 16px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.navlink:hover { color: var(--text); background: #ffffff0a; }
.navlink.active { color: var(--text); background: #ffffff10; }
.nav-badge { background: var(--grad); border-radius: 20px; font-size: 11px; padding: 1px 7px; margin-left: 3px; }
.topbar-right { margin-left: auto; }
.db-counter { font-size: 12.5px; color: var(--faint); border: 1px solid var(--line); padding: 5px 12px; border-radius: 20px; }

/* ---------- hero ---------- */
.view { max-width: 1240px; margin: 0 auto; padding: 0 24px 90px; }
.hero { text-align: center; padding: 54px 0 30px; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.06; letter-spacing: -1.5px; font-weight: 800; }
.hero .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); margin: 16px auto 0; max-width: 640px; font-size: 15.5px; line-height: 1.55; }

/* ---------- search panel ---------- */
.search-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px; backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.platform-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ptab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 10px; font-weight: 600; font-size: 14px;
  color: var(--muted); border: 1px solid transparent;
}
.ptab:hover { color: var(--text); background: #ffffff0a; }
.ptab.active { color: #fff; background: #ffffff12; border-color: var(--line-2); }
.ptab.active svg { filter: drop-shadow(0 0 6px #ec489988); }

.ig-note {
  font-size: 13px; color: var(--muted); background: #ec48990f; border: 1px solid #ec489933;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; line-height: 1.5;
}

.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 6px 6px 6px 16px; transition: border-color .15s, box-shadow .15s;
}
.search-bar:focus-within { border-color: #7c3aed88; box-shadow: 0 0 0 4px #7c3aed22; }
.search-icon { color: var(--faint); flex: none; }
#search-input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 16px; padding: 10px 0; min-width: 0; }
#search-input::placeholder { color: var(--faint); }

.btn-primary {
  background: var(--grad); color: #fff; font-weight: 700; font-size: 15px;
  padding: 11px 26px; border-radius: 10px; transition: transform .1s, filter .15s;
  box-shadow: 0 4px 16px #7c3aed55;
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .55; filter: saturate(.4); cursor: wait; transform: none; }
.btn-ghost {
  border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; font-size: 13.5px;
  padding: 8px 14px; border-radius: 9px;
}
.btn-ghost:hover { color: var(--text); background: #ffffff0a; }
.btn-danger { border: 1px solid #f8717144; color: #f87171; font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-radius: 9px; }
.btn-danger:hover { background: #f8717115; }
.btn-sm { padding: 7px 16px; font-size: 13.5px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  font-size: 13px; color: var(--muted); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 20px; transition: all .12s;
}
.chip:hover { color: #fff; border-color: #ec489966; background: #ec48990d; transform: translateY(-1px); }

/* ---------- filter bar ---------- */
.filter-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.filter-group { display: flex; align-items: center; gap: 7px; }
.filter-group label { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); font-weight: 700; }
.filter-group select {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 7px 10px; font-size: 13.5px; outline: none; cursor: pointer;
}
.filter-group select:focus { border-color: #7c3aed88; }
.dash { color: var(--faint); }
.tier-chips { gap: 4px; }
.tier-chip {
  font-size: 12px; font-weight: 700; color: var(--faint);
  border: 1px solid var(--line); padding: 6px 11px; border-radius: 8px;
}
.tier-chip:hover { color: var(--text); }
.tier-chip.active { color: #fff; background: #7c3aed33; border-color: #7c3aed88; }
.push-right { margin-left: auto; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  color: var(--faint); font-size: 15px; display: inline-grid; place-items: center;
}
.icon-btn.active, .icon-btn:hover { color: var(--text); background: #ffffff0d; border-color: var(--line-2); }

.recent-row { margin-top: 13px; font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.recent-chip { color: var(--muted); border: 1px dashed var(--line-2); padding: 4px 11px; border-radius: 16px; font-size: 12.5px; }
.recent-chip:hover { color: var(--text); border-style: solid; }

/* ---------- status / warnings ---------- */
.status-bar { margin: 22px 4px 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-bar .count { color: var(--text); font-weight: 700; }
.src-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--faint); }
.warnings { margin: 12px 4px 0; }
.warning-item {
  background: #fbbf2412; border: 1px solid #fbbf2440; color: #fcd34d;
  font-size: 13px; border-radius: 10px; padding: 9px 14px; margin-bottom: 6px;
}

/* ---------- results ---------- */
.results-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 16px; margin-top: 18px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; position: relative; transition: transform .12s, border-color .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card.live::after {
  content: "LIVE"; position: absolute; top: -8px; right: 12px;
  background: var(--grad); font-size: 9.5px; font-weight: 800; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 8px; color: #fff;
}
.card-head { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--line-2); background: var(--card-2);
}
.avatar-fallback {
  width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 20px; color: #fff; background: var(--grad); border: 2px solid var(--line-2);
}
.card-id { min-width: 0; flex: 1; }
.card-name { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 5px; }
.card-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verified { color: #60a5fa; font-size: 13px; flex: none; }
.card-handle { font-size: 12.5px; color: var(--faint); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-handle:hover { color: var(--brand-2); }
.card-meta-row { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.tier-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 8px; background: #7c3aed26; color: #c4b5fd; border: 1px solid #7c3aed44;
}
.country-badge { font-size: 10.5px; color: var(--faint); padding: 2px 6px; }
.compare-check { position: absolute; top: 12px; right: 12px; width: 17px; height: 17px; accent-color: var(--brand-1); cursor: pointer; opacity: .35; }
.compare-check:checked, .card:hover .compare-check { opacity: 1; }

.score-ring { flex: none; position: relative; width: 46px; height: 46px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .val {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px;
}
.stat .k { font-size: 10px; text-transform: uppercase; letter-spacing: .7px; color: var(--faint); font-weight: 700; }
.stat .v { font-size: 15.5px; font-weight: 700; margin-top: 2px; display: flex; align-items: baseline; gap: 5px; }
.stat .v small { font-size: 10.5px; color: var(--faint); font-weight: 600; }
.er-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; align-self: center; }
.er-excellent { background: var(--excellent); box-shadow: 0 0 8px var(--excellent); }
.er-good { background: var(--good); box-shadow: 0 0 8px var(--good); }
.er-average { background: var(--average); }
.er-low { background: var(--low); }

.topic-row { display: flex; gap: 5px; flex-wrap: wrap; min-height: 0; }
.topic { font-size: 11px; color: var(--muted); background: #ffffff08; padding: 3px 9px; border-radius: 12px; }
.links-row { display: flex; gap: 7px; align-items: center; }
.plink {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; text-decoration: none;
  color: var(--muted); transition: all .12s;
}
.plink:hover { color: #fff; border-color: #ec489966; transform: translateY(-1px); }

.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .btn-ghost { flex: 1; text-align: center; padding: 8px 6px; }
.card-actions .primary-act { border-color: #7c3aed55; color: #c4b5fd; }
.card-actions .primary-act:hover { background: #7c3aed22; color: #fff; }

/* skeletons */
.skeleton { pointer-events: none; }
.sk { background: linear-gradient(90deg, #ffffff08 25%, #ffffff14 50%, #ffffff08 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-circle { width: 52px; height: 52px; border-radius: 50%; }
.sk-line { height: 13px; }

/* table view */
.results-table { width: 100%; border-collapse: collapse; margin-top: 18px; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.results-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--faint);
  padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; user-select: none; white-space: nowrap;
}
.results-table th:hover { color: var(--text); }
.results-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.results-table tr:hover td { background: #ffffff06; }
.results-table .t-name { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.results-table .t-name img, .results-table .t-name .avatar-fallback { width: 32px; height: 32px; font-size: 13px; }
.table-wrap { overflow-x: auto; }

/* ---------- empty states ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-emoji { font-size: 44px; margin-bottom: 14px; }
.empty-state h3 { color: var(--text); font-size: 19px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; line-height: 1.6; }

/* ---------- compare ---------- */
.compare-bar {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: #1d1d33f0; border: 1px solid var(--line-2); border-radius: 14px;
  padding: 11px 18px; display: flex; align-items: center; gap: 14px; z-index: 45;
  box-shadow: var(--shadow); backdrop-filter: blur(10px); font-size: 14px; font-weight: 600;
}

/* ---------- lists ---------- */
.lists-head { display: flex; align-items: center; justify-content: space-between; padding: 44px 0 22px; }
.lists-head h2 { font-size: 28px; letter-spacing: -.5px; }
.lists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.list-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: transform .12s, border-color .15s;
}
.list-card:hover { transform: translateY(-3px); border-color: #7c3aed66; }
.list-card .lc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.list-card .lc-emoji { font-size: 26px; }
.list-card .lc-name { font-weight: 700; font-size: 17px; flex: 1; }
.list-card .lc-count { color: var(--faint); font-size: 13px; }
.lc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.lc-stats .stat .v { font-size: 14px; }
.lc-statusbar { display: flex; height: 5px; border-radius: 4px; overflow: hidden; margin-top: 14px; background: #ffffff0a; }
.lc-statusbar span { height: 100%; }

.list-detail-head { display: flex; align-items: center; gap: 16px; padding: 44px 0 10px; flex-wrap: wrap; }
.list-detail-head h2 { font-size: 26px; }
.list-detail-stats { display: flex; gap: 10px; margin: 12px 0 20px; flex-wrap: wrap; }
.list-detail-stats .stat { min-width: 130px; }

.li-row {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; flex-wrap: wrap;
}
.li-row .who { display: flex; align-items: center; gap: 11px; min-width: 220px; flex: 1; cursor: pointer; }
.li-row .who img, .li-row .who .avatar-fallback { width: 38px; height: 38px; font-size: 15px; }
.li-row .who .nm { font-weight: 600; font-size: 14.5px; }
.li-row .who .hd { font-size: 12px; color: var(--faint); }
.li-row .li-metrics { display: flex; gap: 16px; color: var(--muted); font-size: 13px; }
.li-row .li-metrics b { color: var(--text); }
.status-select {
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 8px; padding: 6px 8px; font-size: 12.5px; cursor: pointer;
}
.status-select.s-shortlisted { color: #c4b5fd; }
.status-select.s-contacted { color: #93c5fd; }
.status-select.s-negotiating { color: #fcd34d; }
.status-select.s-booked { color: #86efac; }
.status-select.s-posted { color: #2dd4bf; }
.status-select.s-rejected { color: #f87171; }
.notes-input {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; padding: 6px 10px; font-size: 12.5px; width: 190px; outline: none;
}
.notes-input:focus { border-color: #7c3aed77; color: var(--text); }
.li-remove { color: var(--faint); font-size: 15px; padding: 4px 8px; border-radius: 6px; }
.li-remove:hover { color: #f87171; background: #f8717115; }

/* ---------- drawer ---------- */
.overlay { position: fixed; inset: 0; background: #000000a8; z-index: 50; backdrop-filter: blur(3px); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 96vw); z-index: 51;
  background: var(--bg-2); border-left: 1px solid var(--line-2); overflow-y: auto;
  animation: slideIn .22s cubic-bezier(.2,.9,.3,1);
  box-shadow: -30px 0 70px #00000088;
}
@keyframes slideIn { from { transform: translateX(60px); opacity: 0; } }
.drawer-close {
  position: sticky; top: 14px; margin: 14px 14px 0 auto; display: block;
  width: 32px; height: 32px; border-radius: 8px; background: #ffffff10; color: var(--muted); z-index: 2;
}
.drawer-close:hover { color: #fff; background: #ffffff1c; }
.d-hero { padding: 0 26px 20px; margin-top: -18px; }
.d-top { display: flex; gap: 16px; align-items: center; }
.d-top .avatar, .d-top .avatar-fallback { width: 72px; height: 72px; font-size: 28px; }
.d-name { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.d-handle { color: var(--faint); font-size: 13.5px; text-decoration: none; }
.d-handle:hover { color: var(--brand-2); }
.d-badges { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.d-statgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 18px; }
.d-section { padding: 18px 26px; border-top: 1px solid var(--line); }
.d-section h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--faint); margin-bottom: 12px; }
.d-bio { font-size: 13.5px; color: var(--muted); line-height: 1.6; white-space: pre-line; max-height: 130px; overflow-y: auto; }
.d-meta { display: grid; gap: 7px; font-size: 13.5px; }
.d-meta div { display: flex; justify-content: space-between; }
.d-meta .k { color: var(--faint); }
.d-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-post { position: relative; border-radius: 9px; overflow: hidden; aspect-ratio: 16/10; background: var(--card-2); display: block; }
.d-post img { width: 100%; height: 100%; object-fit: cover; }
.d-post .pv {
  position: absolute; bottom: 0; left: 0; right: 0; font-size: 10.5px; font-weight: 700;
  background: linear-gradient(transparent, #000000d9); color: #fff; padding: 14px 7px 5px;
}
.d-links { display: grid; gap: 7px; }
.d-link {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; text-decoration: none;
  color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px;
}
.d-link:hover { color: #fff; border-color: #7c3aed66; }
.d-cost {
  background: linear-gradient(120deg, #7c3aed1c, #ec48991c); border: 1px solid #7c3aed3a;
  border-radius: 12px; padding: 14px 16px;
}
.d-cost .big { font-size: 22px; font-weight: 800; }
.d-cost .expl { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.d-actions { display: flex; gap: 9px; padding: 18px 26px 30px; border-top: 1px solid var(--line); }
.d-actions > * { flex: 1; text-align: center; }

/* ---------- modals ---------- */
.modal-back { position: fixed; inset: 0; background: #000000b5; z-index: 60; display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); }
.modal {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px;
  padding: 26px; width: 100%; max-width: 430px; box-shadow: var(--shadow);
  animation: pop .18s cubic-bezier(.2,.9,.3,1);
}
.modal.wide { max-width: 900px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal h3 { font-size: 19px; margin-bottom: 18px; }
.modal .field { margin-bottom: 14px; }
.modal .field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); font-weight: 700; margin-bottom: 6px; }
.modal input[type=text] {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--text); padding: 11px 13px; font-size: 14.5px; outline: none;
}
.modal input[type=text]:focus { border-color: #7c3aed88; }
.emoji-row { display: flex; gap: 6px; flex-wrap: wrap; }
.emoji-opt { font-size: 20px; padding: 7px 9px; border-radius: 9px; border: 1px solid transparent; }
.emoji-opt:hover { background: #ffffff0d; }
.emoji-opt.active { border-color: #7c3aed88; background: #7c3aed22; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* compare table */
.cmp-wrap { overflow-x: auto; }
.cmp-table { border-collapse: collapse; width: 100%; }
.cmp-table th, .cmp-table td { padding: 10px 14px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.cmp-table th { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; white-space: nowrap; }
.cmp-table td.best { color: var(--excellent); font-weight: 700; }
.cmp-head-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 130px; }
.cmp-head-cell img, .cmp-head-cell .avatar-fallback { width: 40px; height: 40px; font-size: 16px; }

/* save popover */
.popover {
  position: absolute; z-index: 70; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 13px; padding: 12px; width: 240px; box-shadow: var(--shadow);
  animation: pop .15s cubic-bezier(.2,.9,.3,1);
}
.popover h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .9px; color: var(--faint); margin: 2px 4px 9px; }
.pop-list { max-height: 210px; overflow-y: auto; display: grid; gap: 3px; }
.pop-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 9px;
  font-size: 13.5px; text-align: left; width: 100%;
}
.pop-item:hover { background: #ffffff0c; }
.pop-item .in { margin-left: auto; font-size: 11px; color: var(--excellent); }
.pop-new { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 9px; display: flex; gap: 6px; }
.pop-new input {
  flex: 1; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--text); padding: 7px 9px; font-size: 12.5px; outline: none; min-width: 0;
}

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 90; display: grid; gap: 8px; }
.toast {
  background: #1d1d33f5; border: 1px solid var(--line-2); border-left: 3px solid var(--brand-1);
  border-radius: 11px; padding: 12px 17px; font-size: 13.5px; min-width: 230px; max-width: 340px;
  box-shadow: var(--shadow); animation: pop .2s;
}
.toast.err { border-left-color: var(--low); }
.toast.ok { border-left-color: var(--excellent); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .topbar { padding: 12px 16px; gap: 12px; }
  .logo-word { display: none; }
  .db-counter { display: none; }
  .view { padding: 0 12px 90px; }
  .hero { padding: 34px 0 22px; }
  .search-bar { flex-wrap: wrap; padding: 10px; }
  #search-input { width: 100%; }
  .btn-primary { width: 100%; }
  .filter-group.push-right { margin-left: 0; }
  .d-statgrid { grid-template-columns: 1fr 1fr; }
}
