:root {
  --bg: #0f0608;
  --bg-2: #150a0d;
  --panel: #1c0e12;
  --panel-2: #24121a;
  --panel-line: #38181f;
  --red: #ff375a;
  --red-2: #ff5c78;
  --coral: #ff6a45;
  --pink: #ff86a1;
  --green: #4ade80;
  --text: #f7ecef;
  --muted: #a3838c;
  --muted-2: #7c626b;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(255, 55, 90, 0.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 55, 90, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(255, 106, 69, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.app {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: linear-gradient(180deg, rgba(36, 18, 26, 0.6), rgba(21, 10, 13, 0.6));
  border-right: 1px solid var(--panel-line);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid var(--panel-line);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--coral));
  box-shadow: 0 8px 20px -6px rgba(255, 55, 90, 0.7);
}
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.3px;
}
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label {
  margin: 16px 10px 6px;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav-item:hover { color: var(--text); background: rgba(255, 55, 90, 0.08); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 55, 90, 0.9), rgba(255, 106, 69, 0.85));
  box-shadow: var(--shadow);
}
.nav-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
}
.nav-item.active .nav-ico { background: rgba(255, 255, 255, 0.2); }
.promo {
  position: relative;
  margin-top: auto;
  padding: 18px 16px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 55, 90, 0.16), rgba(21, 10, 13, 0.4));
  border: 1px solid var(--panel-line);
}
.promo-glow {
  position: absolute;
  inset: auto -30% -40% -30%;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 106, 69, 0.5), transparent 70%);
}
.promo-badge {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700;
  background: #fff; color: var(--red);
  margin-bottom: 12px;
}
.promo h4 { position: relative; font-size: 14px; margin-bottom: 4px; }
.promo p { position: relative; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.promo-btn {
  position: relative;
  width: 100%;
  padding: 9px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.promo-btn:hover { background: rgba(255, 255, 255, 0.16); }
.main { padding: 26px 30px 46px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.crumb { font-size: 12px; color: var(--muted-2); margin-bottom: 4px; }
.page-title { font-family: "Space Grotesk", sans-serif; font-size: 26px; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.search {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: var(--muted);
}
.search input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 13px; width: 150px;
}
.search input::placeholder { color: var(--muted-2); }
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--red); }
.icon-btn .dot {
  position: absolute; top: 9px; right: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
}
.avatar {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--red), var(--pink));
}
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
.card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 22px;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.card-head h3 { font-family: "Space Grotesk", sans-serif; font-size: 17px; font-weight: 600; }
.muted { color: var(--muted); font-size: 12px; }
.dots { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.pos-delta { font-size: 12px; color: var(--green); font-weight: 600; margin-top: 4px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 18px;
}
.stat-ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--red), var(--coral));
  box-shadow: 0 10px 22px -10px rgba(255, 55, 90, 0.8);
}
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 600; margin-top: 2px; }
.stat-delta { margin-left: auto; font-size: 12px; font-weight: 700; }
.stat-delta.up { color: var(--green); }
.stat-delta.down { color: var(--red-2); }
.grid-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.grid-charts {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.grid-bottom {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}
.welcome { position: relative; overflow: hidden; padding: 0; min-height: 260px; }
.welcome-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(255, 106, 69, 0.55), transparent 60%),
    radial-gradient(500px 400px at 30% 90%, rgba(255, 55, 90, 0.6), transparent 55%),
    linear-gradient(135deg, #3a0f1c, #1c0e12);
}
.welcome-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 200deg at 70% 40%, transparent, rgba(255, 134, 161, 0.35), transparent 40%);
  mix-blend-mode: screen;
  animation: swirl 14s linear infinite;
}
@keyframes swirl { to { transform: rotate(360deg); } }
.welcome-content { position: relative; padding: 30px; height: 100%; display: flex; flex-direction: column; }
.eyebrow { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--pink); margin-bottom: 8px; }
.welcome h2 { font-family: "Space Grotesk", sans-serif; font-size: 30px; font-weight: 700; }
.welcome-sub { color: var(--muted); font-size: 13px; margin-top: 10px; max-width: 260px; }
.welcome-link { margin-top: auto; color: #fff; font-weight: 600; font-size: 13px; text-decoration: none; }
.welcome-link:hover { color: var(--pink); }
.gauge-card { display: flex; flex-direction: column; }
.gauge-wrap { position: relative; display: grid; place-items: center; flex: 1; }
.gauge-center { position: absolute; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.gauge-big { font-family: "Space Grotesk", sans-serif; font-size: 30px; font-weight: 700; }
.gauge-center .muted { max-width: 110px; }
.gauge-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 12px; }
.chip { padding: 5px 12px; border-radius: 20px; background: rgba(255,55,90,0.15); color: var(--red-2); font-weight: 600; }
.referral { display: flex; flex-direction: column; }
.referral-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.referral-row { display: flex; justify-content: space-between; align-items: center; }
.referral-row strong { font-family: "Space Grotesk", sans-serif; font-size: 15px; }
.score { position: relative; display: grid; place-items: center; flex: 1; }
.score-center { position: absolute; text-align: center; display: flex; flex-direction: column; }
.score-big { font-family: "Space Grotesk", sans-serif; font-size: 28px; font-weight: 700; }
.chart-card canvas { width: 100%; display: block; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; }
.lg-a { background: var(--red); }
.lg-b { background: var(--coral); }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.mini { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-line); }
.mini-ico { color: var(--red-2); font-size: 15px; }
.mini-val { font-family: "Space Grotesk", sans-serif; font-size: 17px; font-weight: 600; margin: 2px 0 8px; }
.mini-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.mini-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--coral)); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600; padding: 0 8px 14px;
  border-bottom: 1px solid var(--panel-line);
}
.tbl td { padding: 16px 8px; border-bottom: 1px solid rgba(56,24,31,0.5); font-size: 14px; }
.tbl tbody tr:last-child td { border-bottom: none; }
.proj { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.proj-dot { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--red), var(--coral)); }
.team { display: flex; }
.team span {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
  border: 2px solid var(--panel);
  margin-left: -8px;
}
.team span:first-child { margin-left: 0; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; width: 120px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--coral)); border-radius: 6px; }
.prog-label { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.timeline { list-style: none; position: relative; padding-left: 8px; }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px rgba(255,55,90,0.15);
}
.timeline li::after {
  content: ""; position: absolute; left: 9px; top: 16px; bottom: -4px;
  width: 2px; background: var(--panel-line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.tl-title { font-size: 14px; font-weight: 500; }
.tl-time { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
@media (max-width: 1100px) {
  .grid-top, .grid-charts, .grid-bottom { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 50; left: 0; top: 0;
    width: 250px; transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: block; }
  .search { display: none; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 40px; }
}
.hidden { display: none !important; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 55, 90, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(255, 106, 69, 0.12), transparent 55%),
    var(--bg);
}
.spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--red);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth-card {
  width: min(400px, calc(100vw - 40px));
  padding: 40px 34px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--panel-line);
  box-shadow: 0 40px 90px -30px rgba(255, 55, 90, 0.5);
}
.brand.center { justify-content: center; border-bottom: none; padding-bottom: 22px; }
.auth-card h1 { font-family: "Space Grotesk", sans-serif; font-size: 25px; font-weight: 700; margin-bottom: 10px; }
.auth-sub { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 26px; }
.discord-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: #5865f2;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 14px 30px -12px rgba(88, 101, 242, 0.9);
}
.discord-btn:hover { background: #4a56e0; transform: translateY(-1px); }
.discord-btn:active { transform: translateY(0); }
.discord-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.auth-note { margin-top: 20px; font-size: 12px; color: var(--muted-2); }
.account { position: relative; }
.account-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border-radius: 14px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}
.account-btn:hover { border-color: var(--red); }
.account-name { font-size: 13px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { color: var(--muted); font-size: 11px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--panel-line);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
  z-index: 20;
}
.account-info { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.account-menu-name { font-weight: 600; font-size: 14px; }
.account-menu #menuEmail { font-size: 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-provider {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.12);
  margin-bottom: 12px;
  text-align: center;
}
.logout-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--coral));
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: filter 0.2s;
}
.logout-btn:hover { filter: brightness(1.08); }
@media (max-width: 860px) {
  .account-name, .caret { display: none; }
  .account-btn { padding: 5px; }
}
.usage-windows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.usage-windows .uw { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-line); }
.usage-windows .uw-label { font-size: 11px; color: var(--muted); }
.usage-windows .uw-val { font-family: "Space Grotesk", sans-serif; font-size: 16px; font-weight: 600; margin-top: 2px; }
.admin-overlay { padding: 24px; overflow-y: auto; }
.admin-panel {
  width: min(560px, 100%);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--panel-line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 40px 90px -30px rgba(255, 55, 90, 0.5);
}
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-head h2 { font-family: "Space Grotesk", sans-serif; font-size: 22px; }
.admin-close { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.admin-close:hover { color: var(--text); }
.admin-block { padding: 18px 0; border-top: 1px solid var(--panel-line); }
.admin-block h3 { font-family: "Space Grotesk", sans-serif; font-size: 16px; margin-bottom: 14px; }
.admin-search { display: flex; gap: 10px; margin-bottom: 12px; }
.admin-search input, .admin-adjust input, .admin-setting input[type="number"] {
  flex: 1; padding: 11px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--panel-line); color: var(--text); font-size: 14px; outline: none;
}
.admin-search input:focus, .admin-adjust input:focus { border-color: var(--red); }
.admin-panel button {
  padding: 11px 18px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--coral)); color: #fff; font-weight: 600; font-size: 14px;
}
.admin-panel button:hover { filter: brightness(1.08); }
.admin-close { background: none; }
.admin-results { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.admin-result { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-line); cursor: pointer; }
.admin-result:hover { border-color: var(--red); }
.admin-result .avatar { width: 34px; height: 34px; }
.admin-result .r-name { font-size: 14px; font-weight: 600; }
.admin-result .r-id { font-size: 11px; color: var(--muted); }
.admin-result .r-points { margin-left: auto; font-family: "Space Grotesk", sans-serif; font-weight: 600; color: var(--red-2); }
.admin-result .r-admin { font-size: 10px; padding: 2px 7px; border-radius: 8px; background: rgba(255,55,90,0.18); color: var(--red-2); margin-left: 6px; }
.admin-selected { margin-top: 8px; padding: 16px; border-radius: 14px; background: rgba(255,55,90,0.06); border: 1px solid var(--panel-line); }
.sel-user { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sel-user .avatar { width: 42px; height: 42px; }
.sel-name { font-weight: 600; }
.sel-points { margin-left: auto; font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; }
.admin-adjust { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-adjust input { min-width: 120px; }
.admin-msg { font-size: 13px; margin-top: 10px; min-height: 16px; color: var(--green); }
.admin-msg.err { color: var(--red-2); }
.admin-setting { margin-bottom: 14px; }
.admin-setting label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.admin-setting.row { display: flex; align-items: center; justify-content: space-between; }
.admin-setting.row label { margin-bottom: 0; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border-radius: 26px; background: rgba(255,255,255,0.12); transition: 0.2s; cursor: pointer; }
.slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: 0.2s; }
.switch input:checked + .slider { background: linear-gradient(135deg, var(--red), var(--coral)); }
.switch input:checked + .slider::before { transform: translateX(20px); }
#zapCookies, .admin-panel textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: var(--text);
  font-size: 13px;
  font-family: "Inter", monospace;
  outline: none;
  resize: none;
}
#zapCookies:focus { border-color: var(--red); }
.admin-panel code { background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 5px; font-size: 12px; }
.zap-costbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.zap-costbar span { font-size: 14px; font-weight: 600; }
.zap-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.zap-counts .zc { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-line); text-align: center; }
.zap-counts .zc-val { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 700; }
.zap-counts .zc-label { font-size: 11px; color: var(--muted); }
.zc.ok .zc-val { color: var(--green); }
.zc.fail .zc-val { color: var(--red-2); }
.zap-jobs { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.zap-job { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-line); font-size: 13px; }
.zap-job .j-user { font-weight: 500; }
.zap-job .j-status { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 8px; }
.j-status.success { background: rgba(74,222,128,0.15); color: var(--green); }
.j-status.failed, .j-status.cancelled { background: rgba(255,55,90,0.15); color: var(--red-2); }
.j-status.pending, .j-status.uncertain { background: rgba(255,255,255,0.08); color: var(--muted); }
.summary-card { display: flex; flex-direction: column; }
.summary-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.active-batch { margin-top: 16px; padding: 14px; border-radius: 14px; background: rgba(255,55,90,0.06); border: 1px solid var(--panel-line); }
.ab-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ab-head span:last-child { color: var(--red-2); font-family: "Space Grotesk", sans-serif; }
.active-batch .bar { width: 100%; height: 8px; }
.active-batch .muted { margin-top: 8px; font-size: 12px; }
.points-box { text-align: center; padding: 10px 0; }
.pb-balance { font-family: "Space Grotesk", sans-serif; font-size: 40px; font-weight: 700; line-height: 1; }
.pb-price { margin-top: 12px; font-size: 13px; }
.tbl td .j-status { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 8px; }
.grid-single { display: grid; grid-template-columns: 1fr; gap: 18px; }
#solverCookies {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--panel-line);
  color: var(--text); font-size: 13px; font-family: "Inter", sans-serif; outline: none; resize: none;
}
#solverCookies:focus { border-color: var(--red); }
.solver-field { margin-top: 12px; margin-bottom: 4px; }
.solver-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.solver-field input {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--panel-line); color: var(--text); font-size: 14px; outline: none;
}
.solver-field input:focus { border-color: var(--red); }
.card code { background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 5px; font-size: 12px; }
#solverView .zap-costbar { margin-top: 16px; }
#solverView .zap-costbar button {
  padding: 11px 22px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--coral)); color: #fff; font-weight: 600; font-size: 14px;
}
#solverView .zap-costbar button:hover { filter: brightness(1.08); }
#liveCounts { margin-top: 14px; }
#liveJobs { margin-top: 12px; }
#solverCookies { resize: none; height: 190px; }
.solver-upload-row { display: flex; gap: 10px; margin-top: 10px; }
.ghost-btn {
  padding: 9px 14px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid var(--panel-line);
  color: var(--text); font-size: 13px; font-weight: 500; transition: border-color 0.2s, background 0.2s;
}
.ghost-btn:hover { border-color: var(--red); background: rgba(255,55,90,0.08); }
.reserved-note { color: var(--muted); font-size: 12px; }
.pb-reserved { font-size: 12px; color: var(--muted); margin-top: 4px; }
.solver-field select, .admin-setting select {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--panel-line); color: var(--text);
  font-size: 14px; outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.solver-field select:focus, .admin-setting select:focus { border-color: var(--red); }
.admin-setting select option, .solver-field select option { background: var(--panel-2); color: var(--text); }
.j-status.clean { background: rgba(68,138,255,0.15); color: #7ab0ff; }
.zc.ok .zc-val { color: var(--green); }
.confirm-overlay { z-index: 100; }
.confirm-box {
  width: min(400px, 90%);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.confirm-box p { font-size: 15px; margin-bottom: 20px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 12px; justify-content: flex-end; }
.confirm-yes {
  padding: 10px 20px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--coral)); color: #fff; font-weight: 600; font-size: 14px;
}
.confirm-yes:hover { filter: brightness(1.08); }
.chart-tip {
  position: fixed; z-index: 200; pointer-events: none;
  background: var(--panel-2); border: 1px solid var(--panel-line);
  border-radius: 10px; padding: 8px 12px; box-shadow: var(--shadow);
  font-size: 12px; color: var(--text); transform: translateY(-100%);
}
.chart-tip .tip-val { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 15px; color: var(--red-2); }
.chart-tip .tip-unit { color: var(--muted); font-size: 11px; }
.chart-tip .tip-label { color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
#solverCancel { padding: 6px 14px; font-size: 12px; }
* { scrollbar-width: thin; scrollbar-color: var(--panel-line) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--panel-line); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--red); background-clip: padding-box; }
#solverCookies, .zap-jobs, .live-list, .admin-panel { scrollbar-color: var(--panel-line) transparent; }
.live-list { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; }
.job-item { border: 1px solid var(--panel-line); border-radius: 14px; background: rgba(255,255,255,0.02); overflow: hidden; }
.job-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.job-head:hover { background: rgba(255,55,90,0.05); }
.job-caret { color: var(--muted); font-size: 12px; width: 12px; flex-shrink: 0; }
.job-main { flex: 1; min-width: 0; }
.job-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.job-id { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 13px; }
.job-stat { font-size: 12px; color: var(--muted); white-space: nowrap; }
.job-head .bar { width: 100%; height: 7px; }
.job-cancel { padding: 6px 12px; font-size: 12px; flex-shrink: 0; }
.job-body { padding: 0 14px 14px 14px; }
.job-body .zap-counts { margin: 6px 0 12px; }
.job-body .zap-jobs { max-height: 220px; overflow-y: auto; }
.topup-cost { font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; margin: 12px 0 16px; }
#topupOverlay .admin-panel button, #topupCreate {
  padding: 11px 20px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--coral)); color: #fff; font-weight: 600; font-size: 14px;
}
#topupOverlay .ghost-btn { background: rgba(255,255,255,0.05); color: var(--text); }
.topup-qr { display: flex; justify-content: center; margin: 6px 0 18px; }
.topup-qr img, .topup-qr canvas { border-radius: 12px; padding: 10px; background: #fff; }
.topup-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--panel-line); }
.tr-label { width: 74px; color: var(--muted); font-size: 13px; flex-shrink: 0; }
.tr-val { flex: 1; font-size: 14px; word-break: break-all; }
.tr-val.mono { font-family: monospace; font-size: 12px; }
.tr-copy { padding: 5px 12px; font-size: 12px; flex-shrink: 0; }
.topup-status { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--panel-line); font-size: 14px; font-weight: 500; }
.topup-status.ok { background: rgba(74,222,128,0.12); color: var(--green); border-color: rgba(74,222,128,0.3); }
.topup-status.warn { background: rgba(255,106,69,0.12); color: var(--coral); }
.topup-status.err { background: rgba(255,55,90,0.12); color: var(--red-2); }
#ordTimer { margin-top: 8px; font-size: 12px; }
.job-sub { font-size: 12px; margin-top: 4px; }
.grid-single { margin-top: 18px; }
#profileView .admin-setting { margin-bottom: 14px; }
#profileView .admin-setting select, #profileView .admin-setting input {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--panel-line); color: var(--text); font-size: 14px; outline: none;
}
#profileView .admin-setting select:focus, #profileView .admin-setting input:focus { border-color: var(--red); }
#topupCreate { padding: 11px 20px; border: none; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, var(--red), var(--coral)); color: #fff; font-weight: 600; font-size: 14px; }
#topupCreate:disabled { opacity: 0.5; cursor: not-allowed; }
td.mono { font-family: monospace; }
.order-row { cursor: pointer; }
.order-row:hover { background: rgba(255,55,90,0.05); }
.order-row .job-caret { font-size: 18px; color: var(--muted); }
#orderDetail .topup-qr { margin: 6px 0 18px; }
.src-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.src-tab {
  flex: 1; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--panel-line);
  color: var(--muted); font-size: 13px; font-weight: 600; transition: all .15s;
}
.src-tab:hover { color: var(--text); }
.src-tab.active { background: linear-gradient(135deg, var(--red), var(--coral)); color: #fff; border-color: transparent; }
.fs-opts { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.fs-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
#farmPane .admin-setting { margin-bottom: 12px; }
#farmPane .admin-setting select, #farmPane .admin-setting input {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--panel-line); color: var(--text); font-size: 14px; outline: none;
}
#farmPane .admin-setting select:focus, #farmPane .admin-setting input:focus { border-color: var(--red); }
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 6px; cursor: pointer; flex-shrink: 0;
  background: var(--panel); border: 1px solid var(--panel-line); position: relative; transition: all .15s;
}
input[type="checkbox"]:checked { background: linear-gradient(135deg, var(--red), var(--coral)); border-color: transparent; }
input[type="checkbox"]:checked::after {
  content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
}
.admin-panel input[type="text"], .admin-panel input[type="number"], .admin-panel input[type="password"],
.admin-panel select {
  width: 100%; padding: 10px 12px; border-radius: 10px; box-sizing: border-box;
  background: var(--panel); border: 1px solid var(--panel-line); color: var(--text); font-size: 14px; outline: none;
}
.admin-panel input:focus, .admin-panel select:focus { border-color: var(--red); }
.admin-panel .admin-search input { flex: 1; }
.console { margin: 12px 0; border: 1px solid var(--panel-line); border-radius: 12px; overflow: hidden; background: #120a0d; }
.con-head { padding: 7px 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--panel-line); background: rgba(255,255,255,0.02); }
.con-body { max-height: 200px; overflow-y: auto; padding: 8px 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; line-height: 1.7; }
.con-line { color: #cdbfc4; white-space: pre-wrap; word-break: break-word; }
.con-line.muted { color: var(--muted); }
.fs-auto { margin: 10px 0; padding: 12px; border: 1px solid var(--panel-line); border-radius: 12px; background: rgba(255,255,255,0.02); }
.zap-counts .zc { min-width: 60px; }
.grid-solver { display: grid; grid-template-columns: 1.05fr 0.75fr 1.2fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .grid-solver { grid-template-columns: 1fr; } }
.lj-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lj-actions { margin-top: 14px; }
.lj-actions .ghost-btn { width: 100%; }
.console.big { border: 1px solid var(--panel-line); border-radius: 12px; overflow: hidden; background: #0e0709; }
.console.big .con-body { max-height: 420px; min-height: 220px; overflow-y: auto; padding: 12px 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.75; }
.con-line { white-space: pre-wrap; word-break: break-word; }
.con-line.ln-info { color: #b9a7ad; }
.con-line.ln-ok { color: var(--green); }
.con-line.ln-clean { color: #67d6e0; }
.con-line.ln-fail { color: var(--coral); }
.con-line.muted { color: var(--muted); }
.collapse-head { cursor: pointer; user-select: none; }
.collapse-head .caret { font-size: 12px; color: var(--muted); margin-left: 4px; }
.grid-solver { align-items: stretch; }
.grid-solver > .card { display: flex; flex-direction: column; }
.console.big { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 300px; }
.console.big .con-body { flex: 1 1 auto; height: 0; min-height: 260px; max-height: 460px; overflow-y: auto; }
.lj { display: flex; flex-direction: column; }
.lj-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lj-prog { margin: 14px 0 4px; }
.lj-prog-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.lj-actions { margin-top: 16px; }
.lj-actions .ghost-btn { width: 100%; }
.ghost-btn.danger { border-color: rgba(255,55,90,0.4); color: var(--red-2); }
.ghost-btn.danger:hover { background: rgba(255,55,90,0.12); }
.zc.clean .zc-val { color: #67d6e0; }
.lj-cancelled { position: relative; }
.lj-cancelled .lj-top .job-id { text-decoration: line-through; opacity: 0.7; }
.lj-cancelled .bar span { background: var(--coral) !important; }
.lj-cancelled::after { content: "CANCELLED"; position: absolute; top: 10px; right: 12px; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--coral); }
.live-widget .lw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 6px; }
.lw-stat { background: rgba(255,255,255,0.03); border: 1px solid var(--panel-line); border-radius: 12px; padding: 16px; text-align: center; }
.lw-val { font-family: "Space Grotesk", sans-serif; font-size: 30px; font-weight: 700; }
.lw-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(255,255,255,0.04); }
.live-dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(74,222,128,0.15); }
.live-dot.upd { background: var(--coral); box-shadow: 0 0 0 4px rgba(255,106,69,0.15); }
.live-dot.off { background: var(--red-2); box-shadow: 0 0 0 4px rgba(255,55,90,0.15); }
@media (max-width: 700px) { .live-widget .lw-grid { grid-template-columns: repeat(2, 1fr); } }
#liveWidgetSection { margin: 0 0 20px; }
.live-widget { background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.live-widget .card-head { margin-bottom: 14px; }
.live-widget .lw-grid { margin-top: 0; }
.lw-stat { transition: transform .18s ease, border-color .18s ease; }
.lw-stat:hover { transform: translateY(-2px); border-color: rgba(255,55,90,0.35); }
.lw-val { background: linear-gradient(135deg, var(--text), var(--muted)); -webkit-background-clip: text; background-clip: text; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.view-anim > section { animation: cardIn .5s cubic-bezier(.2,.7,.2,1) both; }
.view-anim > section:nth-child(1) { animation-delay: .02s; }
.view-anim > section:nth-child(2) { animation-delay: .08s; }
.view-anim > section:nth-child(3) { animation-delay: .14s; }
.view-anim > section:nth-child(4) { animation-delay: .20s; }
.card { transition: transform .18s ease, box-shadow .25s ease, border-color .18s ease; }
.grid-top .card:hover, .grid-charts .card:hover, .stats .stat:hover { transform: translateY(-2px); }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.45); } 50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } }
.live-dot.on { animation: pulseDot 1.8s ease-in-out infinite; }
.bar span { transition: width .5s cubic-bezier(.2,.7,.2,1); }
textarea, input[type="text"], input[type="number"], input[type="password"], input[type="email"], select {
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: none; line-height: 1.5; }
textarea:focus, input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="email"]:focus, select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,55,90,0.12);
}
textarea::placeholder, input::placeholder { color: var(--muted); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; cursor: pointer; }
#solverCookies { min-height: 150px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
#fsExtra { min-height: 104px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.grid-solver { align-items: start; }
.grid-solver > .card:nth-child(2), .grid-solver > .card:nth-child(3) {
  height: 540px; display: flex; flex-direction: column;
}
.grid-solver > .card:nth-child(2) .card-head, .grid-solver > .card:nth-child(3) .card-head { flex: 0 0 auto; }
#liveJobPanel { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.console.big { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--panel-line); border-radius: 12px; overflow: hidden; background: #0d0709; }
.console.big .con-body { flex: 1 1 auto; min-height: 0; max-height: none; height: auto; overflow-y: auto; padding: 12px 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.7; }
.lj { gap: 0; }
.lj-prog .bar { width: 100%; height: 10px; background: rgba(255,255,255,0.07); border-radius: 999px; }
.lj-prog .bar span { border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--coral)); box-shadow: 0 0 14px -2px rgba(255,55,90,0.7); }
.lj-prog-head { font-size: 12.5px; font-weight: 600; }
.lj-pct { font-family: "Space Grotesk", sans-serif; font-size: 40px; font-weight: 700; line-height: 1; margin: 6px 0 2px; background: linear-gradient(135deg, var(--red), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lj-pct-label { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.zap-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.zap-counts .zc { background: rgba(255,255,255,0.03); border: 1px solid var(--panel-line); border-radius: 12px; padding: 12px 6px; text-align: center; }
.zap-counts .zc-val { font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; }
.zap-counts .zc-label { font-size: 11px; color: var(--muted); margin-top: 2px; }
.zap-counts .zc.ok .zc-val { color: var(--green); }
.zap-counts .zc.fail .zc-val { color: var(--red-2); }
.zap-counts .zc.clean .zc-val { color: #67d6e0; }
.lj-actions { margin-top: auto; padding-top: 16px; }
.lw-chart-wrap { margin-top: 14px; padding: 12px 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--panel-line); border-radius: 14px; }
.lw-chart-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
#lwChart { display: block; width: 100%; }
.live-widget { position: relative; overflow: hidden; }
.live-widget::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(255,55,90,0.10), transparent 60%); pointer-events: none; }
.live-widget .card-head h3 { font-size: 16px; }
.lw-stat { position: relative; overflow: hidden; }
.lw-stat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,55,90,0.5), transparent); opacity: 0; transition: opacity .2s; }
.lw-stat:hover::after { opacity: 1; }.grid-solver { display: grid; grid-template-columns: 1.05fr 0.82fr 1.28fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .grid-solver { grid-template-columns: 1fr; } }
.grid-solver > .card { display: flex; flex-direction: column; }
.grid-solver > .card:nth-child(2), .grid-solver > .card:nth-child(3) { height: 496px; }
.grid-solver > .card .card-head { flex: 0 0 auto; }
#liveJobPanel { flex: 1 1 auto; display: flex; flex-direction: column; }
.console.big { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--panel-line); border-radius: 14px; overflow: hidden; background: #0d0709; }
.console.big .con-body { flex: 1 1 auto; min-height: 0; height: auto; max-height: none; overflow-y: auto; padding: 14px 16px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.8; }
@media (max-width: 1100px) { .grid-solver > .card:nth-child(2), .grid-solver > .card:nth-child(3) { height: auto; } .console.big .con-body { max-height: 360px; } }
.lj2 { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; }
.lj2-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lj2-id { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.pill { font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.pill.success { background: rgba(74,222,128,0.14); color: var(--green); }
.pill.pending { background: rgba(255,255,255,0.07); color: var(--muted); }
.pill.clean { background: rgba(103,214,224,0.14); color: #67d6e0; }
.pill.fail { background: rgba(255,55,90,0.14); color: var(--red-2); }
.lj2-progwrap { text-align: center; }
.lj2-bignum { font-family: "Space Grotesk", sans-serif; font-size: 44px; font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--red), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lj2-bignum span { font-size: 20px; opacity: .7; }
.lj2-progbar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; margin: 14px 0 8px; }
.lj2-progbar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--coral)); box-shadow: 0 0 14px rgba(255,55,90,0.5); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.lj2-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.lj2-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ljc { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-line); }
.ljc-val { font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; }
.ljc-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ljc.ok .ljc-val { color: var(--green); }
.ljc.clean .ljc-val { color: #67d6e0; }
.ljc.fail .ljc-val { color: var(--red-2); }
.lj2-foot { margin-top: auto; }
.btn-solid { padding: 11px 18px; border: none; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, var(--red), var(--coral)); color: #fff; font-weight: 600; font-size: 14px; }
.btn-outline { padding: 11px 18px; border: 1px solid var(--panel-line); border-radius: 12px; cursor: pointer; background: rgba(255,255,255,0.04); color: var(--text); font-weight: 600; font-size: 14px; transition: all .15s ease; }
.btn-outline.danger { border-color: rgba(255,55,90,0.4); color: var(--red-2); }
.btn-outline.danger:hover { background: rgba(255,55,90,0.12); }
.btn-solid.full, .btn-outline.full { width: 100%; }
.lj-cancelled .lj2-id { text-decoration: line-through; opacity: .7; }
.lj-cancelled .lj2-progbar span { background: var(--coral) !important; box-shadow: none; }
.lj-cancelled .lj2-bignum { background: linear-gradient(135deg, var(--coral), var(--coral)); -webkit-background-clip: text; background-clip: text; }
.grid-solver > .card:nth-child(2) { height: auto; min-height: 300px; }
.grid-solver > .card:nth-child(3) { height: 496px; }
.fs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs-collapse { margin: 6px 0 2px; }
.fs-collapse-head { width: 100%; text-align: left; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-line); border-radius: 10px; color: var(--muted); padding: 9px 12px; cursor: pointer; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.fs-collapse-head:hover { color: var(--text); }
.fs-collapse-head .caret { font-size: 11px; }
#fsAdvanced { padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.acc-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; }
.acc-results { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.acc-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--panel-line); border-radius: 10px; background: rgba(255,255,255,0.02); }
.acc-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acc-user { font-weight: 600; font-size: 14px; }
.acc-owner { font-size: 11px; color: var(--muted); }
.acc-cookie { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-copy { flex: 0 0 auto; }
.auto-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(74,222,128,0.12), rgba(74,222,128,0.04)); border: 1px solid rgba(74,222,128,0.25); }
.auto-banner.hidden { display: none; }
.auto-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74,222,128,0.5); animation: pulseDot 1.8s ease-in-out infinite; flex: 0 0 auto; }
.auto-txt { font-weight: 700; font-size: 13px; color: var(--green); letter-spacing: .02em; }
.auto-right { margin-left: auto; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.lj2-wait { text-align: center; font-size: 12.5px; color: var(--muted); padding: 10px 12px; border: 1px dashed var(--panel-line); border-radius: 12px; line-height: 1.5; }
.refresh-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--panel-line); background: var(--panel); color: var(--text); font-size: 18px; cursor: pointer; margin-right: 10px; transition: border-color .15s ease, transform .15s ease; }
.refresh-btn:hover { border-color: var(--red); }
.refresh-btn.spin { animation: spin360 .6s ease; }
@keyframes spin360 { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.auto-banner { flex-direction: column; align-items: stretch; gap: 10px; }
.auto-top { display: flex; align-items: center; gap: 10px; }
.auto-stop { margin-left: 8px; padding: 5px 12px; border-radius: 8px; border: 1px solid rgba(255,55,90,0.4); background: rgba(255,55,90,0.1); color: var(--red-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.auto-stop:hover { background: rgba(255,55,90,0.18); }
.auto-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.at { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: rgba(0,0,0,0.18); }
.at-v { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 700; }
.at-v.ok { color: var(--green); }
.at-v.cl { color: #67d6e0; }
.at-v.fa { color: var(--red-2); }
.at-l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.acc-pass { font-size: 11px; color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.acc-pass em { color: var(--red-2); font-style: normal; }
.mon-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mon-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.mon-tile { background: rgba(255,255,255,0.03); border: 1px solid var(--panel-line); border-radius: 12px; padding: 12px; text-align: center; }
.mon-v { display: block; font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 700; }
.mon-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mon-sub { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 8px; }
.mon-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.mon-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--panel-line); border-radius: 10px; background: rgba(255,255,255,0.02); }
.mon-row-main { display: flex; flex-direction: column; min-width: 0; }
.mon-name { font-weight: 600; font-size: 14px; }
.mon-meta { font-size: 11px; color: var(--muted); }
.mon-pct { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--coral); }
.mon-rec { display: grid; grid-template-columns: 1.2fr 1fr auto auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,0.02); font-size: 12px; }
.mon-rec-user { font-weight: 600; }
.mon-rec-owner { color: var(--muted); }
.mon-rec-st { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.mon-rec-st.ok { color: var(--green); }
.mon-rec-st.fail { color: var(--red-2); }
.mon-rec-st.cl { color: #67d6e0; }
.mon-rec-time { color: var(--muted); text-align: right; }
.auto-last { display: flex; align-items: center; gap: 10px; position: relative; font-size: 13px; padding: 4px 2px; }
.auto-last-label { color: var(--muted); font-weight: 600; }
.alv { font-weight: 700; }
.alv.ok { color: var(--green); }
.alv.cl { color: #67d6e0; }
.alv.fa { color: var(--red-2); }
.auto-info { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--panel-line); display: flex; align-items: center; justify-content: center; font-size: 11px; font-style: italic; color: var(--muted); cursor: help; font-family: Georgia, serif; }
.auto-tip { position: absolute; right: 0; bottom: 26px; width: 190px; background: var(--panel-2); border: 1px solid var(--panel-line); border-radius: 12px; padding: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.4); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; z-index: 30; }
.auto-last:hover .auto-tip, .auto-last:focus .auto-tip, .auto-last:focus-within .auto-tip { opacity: 1; visibility: visible; transform: translateY(0); }
.auto-tip-h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.auto-tip-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.auto-tip-row .ok { color: var(--green); font-weight: 700; }
.auto-tip-row .cl { color: #67d6e0; font-weight: 700; }
.auto-tip-row .fa { color: var(--red-2); font-weight: 700; }