:root {
  --bg: #0d0709;
  --bg-2: #150a0d;
  --panel: rgba(28, 14, 17, 0.72);
  --panel-solid: #1a0d10;
  --border: rgba(254, 202, 202, 0.1);
  --border-strong: rgba(254, 202, 202, 0.18);
  --text: #fdf2f2;
  --muted: #7c6467;
  --muted-2: #b49a9d;
  --accent: #dc2626;
  --accent-2: #f87171;
  --accent-soft: rgba(239, 68, 68, 0.14);
  --green: #4ade80;
  --green-soft: rgba(34, 197, 94, 0.12);
  --red: #9f8a8d; /* offline status: muted so it doesn't blend with the red accent */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 8px 24px -6px rgba(239, 68, 68, 0.55);
  --maxw: 1180px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 85% 85%, rgba(127, 29, 29, 0.22), transparent 60%),
    radial-gradient(700px 400px at 10% 0%, rgba(153, 27, 27, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.ico { width: 18px; height: 18px; flex: none; }
.ico--sm { width: 14px; height: 14px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 7, 9, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  min-height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Header buttons */
.pillbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-2);
  background: rgba(28, 14, 17, 0.9);
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s, background 0.2s;
}
.pillbtn:hover { border-color: rgba(248, 113, 113, 0.5); background: var(--accent-soft); }
.pillbtn--solid {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.pillbtn--solid:hover { filter: brightness(1.08); }

/* Logged-in account bar */
.accountbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 9px 16px;
  font-size: 13.5px;
  background: rgba(28, 14, 17, 0.75);
  border-top: 1px solid var(--border);
}
.acct__item { display: inline-flex; align-items: center; gap: 6px; }
.acct__item svg { color: var(--accent-2); }
.acct__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover { color: var(--text); border-color: rgba(254, 202, 202, 0.35); }
.chip--green { color: var(--green); background: var(--green-soft); border-color: rgba(74, 222, 128, 0.3); }
.chip--green:hover { color: #86efac; border-color: rgba(74, 222, 128, 0.55); }
.chip--red { color: var(--accent-2); background: var(--accent-soft); border-color: rgba(248, 113, 113, 0.35); }
.chip--red:hover { color: #fca5a5; border-color: rgba(248, 113, 113, 0.6); }
.chip--blue { color: #60a5fa; background: rgba(59, 130, 246, 0.1); border-color: rgba(96, 165, 250, 0.3); }
.chip--blue:hover { color: #93c5fd; border-color: rgba(96, 165, 250, 0.55); }
.chip--gold { color: #f2c14e; background: rgba(234, 179, 8, 0.1); border-color: rgba(242, 193, 78, 0.3); }
.chip--gold:hover { color: #f8d77f; border-color: rgba(242, 193, 78, 0.55); }

/* Small status labels (deposits, admin) */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pill--muted { color: var(--muted-2); background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); }
.pill--amber { color: #fbbf24; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); }
.pill--green { color: var(--green); background: var(--green-soft); border-color: rgba(74, 222, 128, 0.3); }
.pill--red { color: var(--accent-2); background: var(--accent-soft); border-color: rgba(248, 113, 113, 0.3); }
.pill--gold { color: #f2c14e; background: rgba(234, 179, 8, 0.1); border-color: rgba(242, 193, 78, 0.3); }

.mobile-only { display: none !important; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brand__logo {
  width: 38px;
  height: 38px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #7f1d1d, #0d0709); /* shows while the logo loads */
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.3), 0 6px 18px -6px rgba(239, 68, 68, 0.7);
}
.brand__logo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.brand__name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.brand__name span { color: var(--accent-2); }

.topbar__actions { display: flex; align-items: center; gap: 8px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(74, 222, 128, 0.28);
}
.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}
.status.is-offline { color: var(--red); background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.28); }
.status.is-offline .status__dot { animation: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Currency dropdown */
.currency { position: relative; }
.currency__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.currency__btn:hover { border-color: rgba(248, 113, 113, 0.5); }
.currency__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.currency__btn svg { transition: transform 0.2s; }

.currency__list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 140px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel-solid);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
}
.currency__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.currency__list li span { color: var(--muted-2); font-weight: 500; }
.currency__list li:hover,
.currency__list li[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-2); }

.iconbtn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(28, 14, 17, 0.9);
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s, background 0.2s;
}
.iconbtn:hover { border-color: rgba(248, 113, 113, 0.5); }
.iconbtn .ico--close { display: none; }
.iconbtn[aria-expanded="true"] .ico--open { display: none; }
.iconbtn[aria-expanded="true"] .ico--close { display: block; }

/* Drop-down nav */
.menu {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4px 24px 14px;
  display: grid;
  gap: 8px;
  animation: drop 0.2s ease-out;
}
.menu__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.menu__item:hover { border-color: rgba(248, 113, 113, 0.4); background: rgba(60, 24, 28, 0.7); }

@keyframes drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Main: tools hub ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.hub { max-width: 1100px; margin: 0 auto; text-align: center; }
.hub__title { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.hub__desc { margin: 6px 0 26px; font-size: 15px; color: var(--muted-2); }
/* 4 across on wide screens, 2×2 in between, 1 column on phones */
.hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  justify-content: center;
  gap: 16px;
}
@media (min-width: 1160px) { .hub__grid { grid-template-columns: repeat(4, minmax(0, 260px)); } }
@media (max-width: 600px) { .hub__grid { grid-template-columns: minmax(0, 260px); } }

/* Tool cards: icon tile, title, description, Open button. Each card picks a tone. */
.tool-card {
  --tone: var(--accent);
  --tone-2: var(--accent-2);
  --tone-soft: rgba(239, 68, 68, 0.12);
  --tone-line: rgba(248, 113, 113, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 22px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: rise 0.45s ease-out backwards;
}
.tool-card:nth-child(2) { animation-delay: 60ms; }
.tool-card:nth-child(3) { animation-delay: 120ms; }
.tool-card:nth-child(4) { animation-delay: 180ms; }
.tool-card--blue,
.history__item--blue {
  --tone: #1d4ed8;
  --tone-2: #3b82f6;
  --tone-soft: rgba(59, 130, 246, 0.12);
  --tone-line: rgba(96, 165, 250, 0.45);
}
.tool-card--blue .tool-card__open { color: #60a5fa; }
.tool-card--gold,
.history__item--gold {
  --tone: #b8860b;
  --tone-2: #f2c14e;
  --tone-soft: rgba(234, 179, 8, 0.1);
  --tone-line: rgba(242, 193, 78, 0.45);
}
.tool-card--green,
.history__item--green {
  --tone: #15803d;
  --tone-2: #22c55e;
  --tone-soft: rgba(34, 197, 94, 0.1);
  --tone-line: rgba(74, 222, 128, 0.4);
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--tone-line);
  box-shadow: 0 16px 40px -22px var(--tone);
}

.tool-card__ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--tone-2), var(--tone));
  box-shadow: 0 8px 22px -8px var(--tone), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.tool-card__ico .ico { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)); }
.tool-card__title { margin: 14px 0 6px; font-size: 17px; font-weight: 800; }
.tool-card__desc { margin: 0 0 22px; font-size: 13.5px; line-height: 1.5; color: var(--muted-2); }

.tool-card__open {
  margin-top: auto;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tone-2);
  background: var(--tone-soft);
  border: 1px solid var(--tone-line);
  transition: background 0.2s, border-color 0.2s;
}
/* Makes the whole card clickable through the Open button. */
.tool-card__open::after { content: ""; position: absolute; inset: 0; }
.tool-card:hover .tool-card__open { border-color: var(--tone-2); background: color-mix(in srgb, var(--tone) 22%, transparent); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-glow);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 10px 28px -6px rgba(239, 68, 68, 0.7); }
.btn:active { transform: translateY(1px); }
.btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7) brightness(0.7);
  box-shadow: none;
}
.btn--block { width: 100%; }
.btn--green { background: linear-gradient(90deg, #15803d, #22c55e); box-shadow: 0 8px 24px -6px rgba(34, 197, 94, 0.5); }
.btn--green:hover { box-shadow: 0 10px 28px -6px rgba(34, 197, 94, 0.65); }
.btn--blue { background: linear-gradient(90deg, #2563eb, #60a5fa); box-shadow: 0 8px 24px -6px rgba(59, 130, 246, 0.55); }
.btn--blue:hover { box-shadow: 0 10px 28px -6px rgba(59, 130, 246, 0.7); }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-strong); box-shadow: none; }
.btn--ghost:hover { border-color: rgba(254, 202, 202, 0.35); box-shadow: none; }
.btn--sm { padding: 8px 14px; font-size: 13.5px; }
.btn--xs { padding: 5px 10px; font-size: 12px; gap: 5px; }
.btn--danger { background: linear-gradient(90deg, #991b1b, #dc2626); box-shadow: 0 8px 24px -6px rgba(220, 38, 38, 0.55); }
.btn--danger:hover { box-shadow: 0 10px 28px -6px rgba(220, 38, 38, 0.7); }

/* ---------- Footer ---------- */
.footer {
  padding: 18px 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer__brand { color: var(--muted-2); font-weight: 600; }
.footer a { color: var(--accent-2); font-weight: 600; }
.footer a:hover { text-decoration: underline; }

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 3, 4, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade 0.2s ease-out;
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 26px 22px 20px;
  background: linear-gradient(180deg, #1f0f12, #150a0c);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: pop 0.22s ease-out;
}
.modal__panel--sm { max-width: 400px; }
.modal__panel--md { max-width: 620px; }
.modal__panel--lg { max-width: 820px; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; }
.modal__title { margin: 0 40px 6px 0; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.modal__desc { margin: 0 0 18px; color: var(--muted-2); font-size: 14.5px; line-height: 1.5; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

.modal__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.modal__meta div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(60, 24, 28, 0.45);
  border: 1px solid var(--border);
  text-align: center;
}
.modal__meta span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal__meta strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 15px;
}

.modal__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* Profile overview */
.po__head { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; }
.po__avatar {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25), 0 6px 18px -6px rgba(251, 146, 60, 0.6);
}
.po__head strong { display: block; font-size: 17px; font-weight: 700; }
.po__head span { font-size: 13px; color: var(--muted-2); }

.po__rows { margin: 0; border-top: 1px dashed var(--border-strong); }
.po__rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.po__rows div:last-child { border-bottom: 0; }
.po__rows dt { color: var(--muted-2); }
.po__rows dd { margin: 0; font-weight: 600; text-align: right; }
.po__ok { color: var(--green); }

/* ---------- Account History Modal (Tasks, Deposits, Activity) ---------- */
.hm-header { margin-bottom: 14px; }
.hm-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 14px;
  overflow-x: auto;
}
.hm-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted-2);
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.hm-tab:hover { color: var(--text); }
.hm-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.hm-cards {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.hm-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(13, 7, 9, 0.55);
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.hm-card:hover {
  background: rgba(28, 14, 17, 0.75);
  border-color: rgba(254, 202, 202, 0.2);
}
.hm-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hm-card__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.hm-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.hm-card__badge--completed,
.hm-card__badge--approved {
  background: rgba(34, 197, 94, 0.16);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.hm-card__badge--running,
.hm-card__badge--pending {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.hm-card__badge--failed,
.hm-card__badge--rejected {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.hm-card__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.hm-card__details span { display: inline-flex; align-items: center; gap: 4px; }
.hm-card__txid {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 11.5px;
  color: #60a5fa;
  text-decoration: underline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}
.hm-card__time {
  font-size: 11.5px;
  color: var(--muted);
}

/* History activity list */
.history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}
.history__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(13, 7, 9, 0.5);
  border: 1px solid var(--border);
  font-size: 13px;
}
.history__item--blue .history__ico { color: #60a5fa; background: rgba(59, 130, 246, 0.12); }
.history__item--red .history__ico { color: var(--accent-2); background: var(--accent-soft); }
.history__item--gold .history__ico { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.history__item--purple .history__ico { color: #c084fc; background: rgba(192, 132, 252, 0.12); }
.history__item--pink .history__ico { color: #f47fff; background: rgba(235, 69, 158, 0.12); }
.history__item--teal .history__ico { color: #2dd4bf; background: rgba(45, 212, 191, 0.12); }
.history__item--green .history__ico { color: var(--green); background: var(--green-soft); }
.history__ico {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex: none;
}
.history__text {
  flex: 1;
  min-width: 0;
  display: grid;
  line-height: 1.35;
}
.history__text strong { font-size: 13.5px; color: var(--text); }
.history__text span { font-size: 12px; color: var(--muted-2); }
.history__time {
  flex: none;
  font-size: 11.5px;
  color: var(--muted);
}
.history__empty {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted-2);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
}

/* Sheets: icon + title header and boxed form sections (Deposit, Profile Settings) */
.sheet__head { margin-bottom: 16px; text-align: center; }
.sheet__ico {
  width: 56px;
  height: 56px;
  margin: 4px auto 12px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 8px 22px -8px #059669, inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.sheet__ico .ico { width: 26px; height: 26px; }
.sheet__ico--blue {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 8px 22px -12px #3b82f6;
}
.sheet__head .modal__title { margin: 0 0 4px; }
.sheet__head .modal__desc { margin: 0; font-size: 13.5px; }

.sheet__box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(13, 7, 9, 0.45);
  border: 1px solid var(--border);
}
.sheet__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.sheet__label svg { color: var(--green); }
.sheet__label--blue svg { color: #60a5fa; }
.sheet__box + .sheet__box { margin-top: 12px; }
.sheet__done { margin: 0; padding: 9px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-soft); border: 1px solid rgba(74, 222, 128, 0.3); }

/* Deposit (Litecoin only) */
.sheet__input {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(13, 7, 9, 0.6);
  color: var(--text);
  font: 14px ui-monospace, "Cascadia Mono", Consolas, monospace;
  -moz-appearance: textfield;
}
.sheet__input::-webkit-outer-spin-button,
.sheet__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sheet__input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }

.coin-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.55);
}
.coin {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.coin--ltc { background: linear-gradient(135deg, #d4d4d8, #8e8e96); }
.coin-opt__text { display: grid; line-height: 1.25; }
.coin-opt__text strong { font-size: 13.5px; }
.coin-opt__text span { font-size: 11px; color: var(--muted); }

.pay__field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  border-radius: 10px;
  background: rgba(13, 7, 9, 0.6);
  border: 1px solid var(--border-strong);
}
.pay__amount { flex: 1; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pay__addr { flex: 1; min-width: 0; font: 13px ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.pay__rate { margin-top: -4px; font-size: 12.5px; color: var(--muted-2); }
.pay__note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted-2); }
.pay__note a { color: var(--accent-2); font-weight: 600; }
.iconbtn--sm { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.pay__tx { display: grid; gap: 10px; }
.dp-recent { display: grid; gap: 8px; padding-top: 12px; margin-top: 2px; border-top: 1px dashed var(--border-strong); }
.dp-recent ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dp-recent li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; }

/* ---------- Admin panel (admin.html) ---------- */
.admin { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 32px 24px 48px; }
.admin__gate {
  max-width: 520px;
  margin: 40px auto;
  padding: 22px;
  text-align: center;
  line-height: 1.6;
  color: var(--muted-2);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.admin__gate p { margin: 0 0 8px; }
.admin__gate p:last-child { margin: 0; }
.admin__gate strong { color: var(--text); }
.admin__gate a { color: var(--accent-2); font-weight: 600; }
.admin__gate code {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font: 13px ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.admin__who { font-size: 13px; color: var(--muted-2); }

.admin__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin__stats div { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); }
.admin__stats span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin__stats strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin__stats .is-hot { border-color: rgba(251, 191, 36, 0.4); }
.admin__stats .is-hot strong { color: #fbbf24; }

.admin__tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.admin__tab {
  padding: 10px 14px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted-2);
}
.admin__tab:hover { color: var(--text); }
.admin__tab.is-active { color: var(--text); border-bottom-color: var(--accent); }

.admin__filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.admin__filter {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
}
.admin__filter.is-active { color: var(--text); background: var(--accent-soft); border-color: rgba(248, 113, 113, 0.45); }
.admin__hint { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.admin__search { width: 100%; margin-bottom: 12px; }

.admin__list { display: grid; gap: 8px; }
.admin__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.admin__main { display: grid; gap: 3px; min-width: 0; }
.admin__main strong { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.admin__main span { font-size: 13px; color: var(--muted-2); overflow-wrap: anywhere; }
.admin__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.admin__actions { display: flex; gap: 6px; }
.admin__muted { font-size: 12px; color: var(--muted); }
.admin__link { color: #60a5fa; font-weight: 600; }
.admin__link:hover { text-decoration: underline; }
.admin__money { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin__money.is-plus { color: var(--green); }
.admin__money.is-minus { color: var(--accent-2); }
.admin__empty {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--muted-2);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
}

@media (max-width: 720px) {
  .admin { padding: 20px 16px 32px; }
  .admin__who { display: none; }
  .admin__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin__row { flex-direction: column; align-items: stretch; }
  .admin__side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }
}

/* Tool history */
.history {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
}
.history__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(60, 24, 28, 0.45);
  border: 1px solid var(--border);
}
.history__ico {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  /* red unless the item has a --gold / --blue tone class */
  background: linear-gradient(135deg, var(--tone-2, var(--accent-2)), var(--tone, var(--accent)));
}
.history__text { flex: 1; display: grid; gap: 1px; min-width: 0; }
.history__text strong { font-size: 13.5px; }
.history__text span { font-size: 12.5px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history__time { flex: none; font-size: 12px; color: var(--muted); }
.history__empty {
  margin: 0 0 14px;
  padding: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--muted-2);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
}

/* History Modal Tabs & Cards */
.hm-header {
  margin-bottom: 14px;
  padding-right: 44px;
}
.hm-header .modal__title { margin: 0 0 4px; }
.hm-header .modal__desc { margin: 0; font-size: 13.5px; }

.hm-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 14px;
  background: rgba(13, 7, 9, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.hm-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted-2);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hm-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.hm-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.25), rgba(248, 113, 113, 0.15));
  border: 1px solid rgba(248, 113, 113, 0.35);
  box-shadow: 0 4px 14px -4px rgba(239, 68, 68, 0.4);
}

.hm-cards {
  display: grid;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.hm-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(28, 14, 17, 0.7);
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
}
.hm-card:hover {
  background: rgba(38, 20, 24, 0.85);
  border-color: rgba(254, 202, 202, 0.25);
}

.hm-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.hm-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.hm-card__badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
}
.hm-card__badge--completed, .hm-card__badge--approved, .hm-card__badge--done {
  background: rgba(34, 197, 94, 0.18);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.hm-card__badge--running, .hm-card__badge--pending {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.hm-card__badge--rejected, .hm-card__badge--failed, .hm-card__badge--stopped {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.hm-card__details {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted-2);
  flex-wrap: wrap;
}
.hm-card__detail strong {
  color: var(--text);
}
.hm-card__txid {
  font-family: monospace;
  font-size: 11.5px;
  color: var(--accent-2);
  text-decoration: underline;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-card__time {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
}

/* Discord member checker */
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(60, 24, 28, 0.45);
  border: 1px solid var(--border);
}
.check__avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--panel-solid); }
.check__text { display: grid; gap: 2px; min-width: 0; }
.check__text strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check__status { font-size: 13.5px; font-weight: 700; }
.check--yes { background: var(--green-soft); border-color: rgba(74, 222, 128, 0.35); }
.check--yes .check__status { color: var(--green); }
.check--no { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.35); }
.check--no .check__status { color: #fbbf24; }
.check__actions { display: grid; gap: 10px; }
.check__actions + .modal__note { margin-top: 14px; }
#ckError { margin-bottom: 14px; }

/* Token Checker */
.ck-header {
  margin-bottom: 14px;
  padding-right: 44px;
}
.ck-header .modal__title { margin: 0 0 4px; }
.ck-header .modal__desc { margin: 0; font-size: 13.5px; }

.ck-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  margin-bottom: 12px;
  background: rgba(13, 7, 9, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.ck-tab {
  flex: 1 1 auto;
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ck-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.ck-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.25), rgba(248, 113, 113, 0.15));
  border: 1px solid rgba(248, 113, 113, 0.35);
  box-shadow: 0 4px 14px -4px rgba(239, 68, 68, 0.4);
}
.ck-tab__badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-2);
}
.ck-tab.is-active .ck-tab__badge {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Tool live pricing and balance guarantee banner */
.ck-tool-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
}
.ck-tool-banner__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ck-price-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.25);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.4);
}
.ck-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #94a3b8;
}
.ck-guarantee svg { color: #4ade80; }
.ck-user-balance {
  font-size: 12.5px;
  font-weight: 700;
  color: #fbbf24;
}

.ck-extra-fields {
  margin-bottom: 12px;
}
.ck-field-group {
  margin-bottom: 10px;
}
.ck-required {
  font-size: 10.5px;
  color: #f87171;
  font-weight: 600;
  margin-left: 4px;
}
.ck-humanize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 600px) {
  .ck-humanize-grid { grid-template-columns: 1fr; }
  .ck-tool-banner { flex-direction: column; align-items: flex-start; }
}

.ck-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text);
  background: rgba(28, 14, 17, 0.8);
  border: 1px solid var(--border-strong);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ck-input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.ck-input-section {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.ck-input-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.ck-input-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.ck-input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ck-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted-2);
}
.ck-badge--count.is-warning {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
}
.file-label {
  cursor: pointer;
  margin: 0;
}
.ck-textarea {
  width: 100%;
  min-height: 110px;
  max-height: 240px;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  color: #fdf2f2;
  background: rgba(13, 7, 9, 0.65);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ck-textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}
.ck-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ck-job-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.ck-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
}
.ck-status-dot.is-running {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.ck-muted { color: var(--muted); font-size: 12px; }

.ck-progress-wrap {
  margin-bottom: 16px;
  display: grid;
  gap: 6px;
}
.ck-progress-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ck-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f87171, #4ade80);
  background-size: 200% 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
  animation: shimmer-progress 2s linear infinite;
}
@keyframes shimmer-progress {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.ck-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
}

.ck-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .ck-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .ck-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.ck-stat {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(28, 14, 17, 0.65);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
}
.ck-stat__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.ck-stat__val {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.ck-stat--valid { border-color: rgba(74, 222, 128, 0.25); background: rgba(34, 197, 94, 0.07); }
.ck-stat--valid .ck-stat__val { color: var(--green); }
.ck-stat--locked { border-color: rgba(251, 191, 36, 0.25); background: rgba(251, 191, 36, 0.07); }
.ck-stat--locked .ck-stat__val { color: #fbbf24; }
.ck-stat--invalid { border-color: rgba(248, 113, 113, 0.25); background: rgba(239, 68, 68, 0.07); }
.ck-stat--invalid .ck-stat__val { color: #f87171; }
.ck-stat--nitro { border-color: rgba(88, 101, 242, 0.3); background: rgba(88, 101, 242, 0.08); }
.ck-stat--nitro .ck-stat__val { color: #818cf8; }
.ck-stat--boosts { border-color: rgba(235, 69, 158, 0.3); background: rgba(235, 69, 158, 0.08); }
.ck-stat--boosts .ck-stat__val { color: #f47fff; }

.ck-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ck-filter-pills {
  display: flex;
  gap: 4px;
}
.ck-filter-pill {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.ck-filter-pill:hover { color: var(--text); border-color: var(--border-strong); }
.ck-filter-pill.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}
.ck-filter-pill--valid.is-active { background: rgba(34, 197, 94, 0.2); border-color: rgba(74, 222, 128, 0.5); color: var(--green); }
.ck-filter-pill--locked.is-active { background: rgba(251, 191, 36, 0.2); border-color: rgba(251, 191, 36, 0.5); color: #fbbf24; }
.ck-filter-pill--invalid.is-active { background: rgba(239, 68, 68, 0.2); border-color: rgba(248, 113, 113, 0.5); color: #f87171; }

.ck-search-wrap { flex: 1; min-width: 140px; }
.ck-search-input {
  width: 100%;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text);
  background: rgba(13, 7, 9, 0.55);
  border: 1px solid var(--border);
  outline: none;
}
.ck-search-input:focus { border-color: var(--accent-2); }
.ck-export-group { display: flex; align-items: center; gap: 6px; }

.ck-results-container {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(13, 7, 9, 0.5);
  padding: 8px;
  margin-bottom: 12px;
}
.ck-items-list {
  display: grid;
  gap: 8px;
}
.ck-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(28, 14, 17, 0.7);
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
}
.ck-item:hover {
  background: rgba(38, 20, 24, 0.85);
  border-color: rgba(254, 202, 202, 0.22);
}
.ck-item--valid, .ck-item--humanized, .ck-item--joined, .ck-item--added, .ck-item--delivered, .ck-item--reverified { border-left: 3px solid var(--green); }
.ck-item--locked { border-left: 3px solid #fbbf24; }
.ck-item--invalid, .ck-item--failed, .ck-item--error { border-left: 3px solid #ef4444; opacity: 0.8; }

.ck-item__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  background: var(--panel-solid);
  object-fit: cover;
  border: 1px solid var(--border);
}
.ck-item__body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.ck-item__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ck-item__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ck-item__user-id {
  font-size: 11.5px;
  color: var(--muted);
  font-family: monospace;
}
.ck-item__badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.ck-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.ck-tag--valid, .ck-tag--humanized, .ck-tag--joined, .ck-tag--added, .ck-tag--delivered, .ck-tag--reverified { background: rgba(34, 197, 94, 0.16); color: var(--green); border: 1px solid rgba(74, 222, 128, 0.3); }
.ck-tag--locked { background: rgba(251, 191, 36, 0.16); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.ck-tag--invalid, .ck-tag--failed, .ck-tag--error { background: rgba(239, 68, 68, 0.16); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }
.ck-tag--nitro { background: rgba(88, 101, 242, 0.2); color: #a5b4fc; border: 1px solid rgba(88, 101, 242, 0.4); }
.ck-tag--boost { background: rgba(235, 69, 158, 0.2); color: #f47fff; border: 1px solid rgba(235, 69, 158, 0.4); }
.ck-tag--age { background: rgba(255, 255, 255, 0.06); color: var(--muted-2); border: 1px solid var(--border); }
.ck-tag--flag { background: rgba(255, 255, 255, 0.05); color: var(--muted-2); border: 1px solid var(--border); }

.ck-item__right {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ck-item__token-preview {
  font-family: monospace;
  font-size: 11.5px;
  color: var(--muted-2);
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .ck-item__token-preview { display: none; }
}

.ck-note {
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
  margin-top: 10px;
}

/* TOTP generator */
.otp {
  margin: 16px 0 14px;
  padding: 16px 16px 14px;
  text-align: center;
  border-radius: 14px;
  background: rgba(60, 24, 28, 0.45);
  border: 1px solid var(--border);
}
.otp__label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.otp__code {
  margin-top: 4px;
  padding: 2px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: background 0.2s;
}
.otp__code:hover { background: var(--accent-soft); }
.otp__timer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
}
.otp__bar { flex: 1; height: 5px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.otp__bar span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.otp__next { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.otp__next strong { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.otp.is-ending .otp__bar span { background: #fbbf24; }
.otp.is-ending #tmLeft { color: #fbbf24; }
.otp.is-idle .otp__code { color: var(--muted); pointer-events: none; }
.otp.is-idle .otp__bar span { width: 0; }

/* Login form */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.form input {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(13, 7, 9, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }
.form .btn { margin-top: 6px; }
.form__hint { font-size: 12px; font-weight: 500; color: var(--muted); }
.form__error {
  margin: 0;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.form__switch { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--muted-2); }
.form__switch button {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  color: var(--accent-2);
}
.form__switch button:hover { text-decoration: underline; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--panel-solid);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (min-width: 901px) {
  .menu { display: none !important; }
}

@media (max-width: 900px) {
  .desktop-only { display: none; }
  .mobile-only { display: grid !important; }
}

@media (max-width: 720px) {
  .hub__title { font-size: 26px; }
  main { padding: 32px 16px 24px; }
  .topbar__inner { padding: 10px 16px; }
  .menu { padding: 4px 16px 12px; }
}

@media (max-width: 420px) {
  .status__label { display: none; }
  .status { padding: 7px; }
  .brand__name { font-size: 17px; }
  .modal__meta { grid-template-columns: 1fr 1fr; }
  .modal__meta div:last-child { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
