/* autofill.ivacslot.com — v3 "Modern · Simple" (same look as the extension) */
:root {
  --bg: #010713;
  --card: #0a1120;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --muted: #8b93a7;
  --faint: #5b6478;
  --accent: #22d3ee;
  --ink: #06202a;
  --cta: linear-gradient(90deg, #818cf8 0%, #22d3ee 100%);
  --ok: #34d399;
  --bad: #f87171;
  --warn: #fbbf24;
  --r: 12px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body > *:not(#bg-canvas):not(script) { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.92em; }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.bn { font-size: 13px; margin-top: -6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer;
  transition: 160ms ease; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.btn.cta { background: var(--cta); color: var(--ink); border: 0; }
.btn.cta:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.btn.danger { color: var(--bad); background: rgba(248, 113, 113, 0.10); border-color: rgba(248, 113, 113, 0.3); }
.btn.danger:hover { background: rgba(248, 113, 113, 0.18); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn:disabled { opacity: 0.45; cursor: default; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 20px; min-width: 0;
}
.card p { margin: 8px 0 12px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.card-head .eyebrow { margin: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

.notice { padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel); font-size: 13.5px; }
.notice.warn { color: #fde68a; background: rgba(251, 191, 36, 0.10); border-color: rgba(251, 191, 36, 0.3); }
.notice.ok { color: #a7f3d0; background: rgba(52, 211, 153, 0.10); border-color: rgba(52, 211, 153, 0.3); }
.notice.bad { color: #fecaca; background: rgba(248, 113, 113, 0.10); border-color: rgba(248, 113, 113, 0.3); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 400px; text-align: center; padding: 32px 26px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.login-logo { display: block; margin: 0 auto 14px; }
.login-card h1 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.2px; }
.gbtn { display: flex; justify-content: center; min-height: 44px; margin: 20px 0 6px; }
.msg { min-height: 20px; font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.msg.bad { color: var(--bad); }
.login-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5 !important;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: rgba(1, 7, 19, 0.78); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 15px; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.avatar { border-radius: 50%; display: inline-block; flex-shrink: 0; object-fit: cover; }
.avatar-ph { display: inline-grid; place-items: center; background: rgba(34, 211, 238, 0.14); color: var(--accent); font-weight: 700; font-size: 13px; }

/* ---------- dashboard ---------- */
.dash { max-width: 1040px; margin: 0 auto; padding: 22px 20px 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dash .wide { grid-column: 1 / -1; }
.balance { display: flex; align-items: baseline; gap: 8px; font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.balance small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.balance-card { background: linear-gradient(160deg, rgba(129, 140, 248, 0.10), rgba(34, 211, 238, 0.06) 60%, transparent), var(--card); }

.ext-state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ext-state p { margin: 0; }
.ext-state .btn { margin-right: 6px; }
.ext-line { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--faint); vertical-align: middle; }
.dot-ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
.dot-warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16); }
.dot-off { background: var(--bad); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16); }
.dot-wait { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--panel); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.prices td { padding: 7px 4px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
input {
  height: 40px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05); color: var(--text); font: inherit; font-size: 13.5px; outline: none; min-width: 0;
  transition: 160ms ease;
}
input::placeholder { color: var(--faint); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18); }
.form .btn { align-self: flex-start; }
.search { display: flex; gap: 8px; }
.search input { height: 30px; width: 220px; font-size: 12.5px; border-radius: 9px; }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat span { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.stat b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat small { font-size: 11px; color: var(--faint); }
.users .u { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.users .u b { display: block; font-size: 13.5px; }
.users .u > div > span.mono { display: block; color: var(--muted); }
.users td.actions { white-space: nowrap; text-align: right; }
.users .actions form { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.users .actions form { gap: 6px; align-items: center; }
.users .actions form:last-child { min-width: 150px; justify-content: flex-end; }
.inline-adjust input { height: 30px; width: 74px; font-size: 12.5px; border-radius: 9px; padding: 0 8px; }
.users tr.is-off td { opacity: 0.55; }
.tag { display: inline-block; margin: 3px 6px 0 0; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: rgba(34, 211, 238, 0.12); color: var(--accent); border: 1px solid rgba(34, 211, 238, 0.28); }
.tag.bad { background: rgba(248, 113, 113, 0.12); color: var(--bad); border-color: rgba(248, 113, 113, 0.3); }

.foot { text-align: center; color: var(--faint); font-size: 12px; padding: 10px 0 26px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dash { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 12px; }
  .topbar { padding: 10px 16px; }
  .who-name { display: none; }
  .brand span { max-width: 150px; }
  .balance { font-size: 36px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2 { grid-template-columns: 1fr; }
  .search input { width: 100%; }
  .search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .dot-wait { animation: none; } }
