:root {
  --bg: #0b0d14;
  --bg2: #121624;
  --panel: #161b2e;
  --panel2: #1a2035;
  --card: #161b2e;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.12);
  --text: #e8eaf2;
  --muted: #9aa3b8;
  --dim: #6b738a;
  --blurple: #5865f2;
  --blurple2: #7289da;
  --accent: #5865f2;
  --accent2: #eb459e;
  --accent-rgb: 88, 101, 242;
  --green: #57f287;
  --gold: #ffd700;
  --pink: #eb459e;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-bg: rgba(11, 13, 20, 0.85);
  --fill-soft: rgba(255,255,255,0.05);
  --fill-med: rgba(255,255,255,0.08);
  --chip-bg: rgba(0,0,0,0.3);
  --glow1: rgba(88, 101, 242, 0.35);
  --glow2: rgba(235, 69, 158, 0.18);
  --glow3: rgba(87, 242, 135, 0.08);
  --btn-grad: linear-gradient(135deg, var(--blurple), #4752c4);
  --btn-shadow: 0 10px 28px rgba(88, 101, 242, 0.4);
  --theme-color: #0b0d14;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, var(--glow1), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, var(--glow2), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, var(--glow3), transparent);
}

a { color: var(--blurple2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.logo {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blurple), var(--pink));
  display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
  overflow: hidden;
}
.logo-img {
  background: transparent !important;
  padding: 0;
  box-shadow: 0 8px 20px rgba(var(--accent-rgb, 88, 101, 242), 0.35);
}
.logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.nav-links { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); padding: 0.4rem 0.7rem; border-radius: 999px; text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: none; cursor: pointer; font-weight: 600; font-size: 0.95rem;
  border-radius: 999px; padding: 0.7rem 1.2rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--btn-grad);
  color: white !important;
  box-shadow: var(--btn-shadow);
}
.btn-secondary {
  background: var(--fill-soft);
  color: var(--text) !important;
  border: 1px solid var(--border);
}
.btn-discord {
  background: #5865f2;
  color: white !important;
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

/* hero */
.hero { padding: 4.5rem 0 3rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 2.5rem; align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(87, 242, 135, 0.12); color: var(--green);
  border: 1px solid rgba(87, 242, 135, 0.25);
  padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1rem;
}
.hero h1 span {
  background: linear-gradient(135deg, #fff, #aab3ff 40%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 36rem; margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.8rem; }

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-pill {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 14px; padding: 0.9rem 1rem;
}
.stat-pill .n { font-size: 1.35rem; font-weight: 800; }
.stat-pill .l { color: var(--muted); font-size: 0.8rem; }

.hero-card {
  background: linear-gradient(160deg, rgba(88,101,242,0.18), rgba(22,27,46,0.95));
  border: 1px solid var(--border); border-radius: 24px;
  padding: 1.4rem; box-shadow: var(--shadow);
}
.preview-line {
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.75rem 0.9rem; border-radius: 12px;
  background: rgba(0,0,0,0.25); margin-bottom: 0.55rem; font-size: 0.92rem;
}
.preview-line .cmd { color: var(--gold); font-family: ui-monospace, monospace; }
.preview-line .tag { color: var(--muted); font-size: 0.8rem; }

/* sections */
section { padding: 3rem 0; }
section h2 { font-size: 1.8rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
section .sub { color: var(--muted); margin-bottom: 1.6rem; max-width: 40rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.3rem;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: rgba(88, 101, 242, 0.4); transform: translateY(-2px); }
.card .icon { font-size: 1.5rem; margin-bottom: 0.55rem; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.card p { color: var(--muted); font-size: 0.92rem; }

.cmd-cloud {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.cmd-cloud code {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 0.35rem 0.65rem; border-radius: 999px; font-size: 0.82rem; color: #c5c9ff;
}

/* dashboard layout */
.dash-wrap { padding: 1.5rem 0 3rem; }
.dash-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1.5rem;
}
.user-chip {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--card); border: 1px solid var(--border);
  padding: 0.45rem 0.8rem 0.45rem 0.45rem; border-radius: 999px;
}
.user-chip img { width: 36px; height: 36px; border-radius: 50%; }
.muted { color: var(--muted); }
.table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
}

/* alerts */
.alert {
  background: rgba(237, 66, 69, 0.12);
  border: 1px solid rgba(237, 66, 69, 0.35);
  color: #ffb4b4;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.alert-ok {
  background: rgba(87, 242, 135, 0.1);
  border-color: rgba(87, 242, 135, 0.3);
  color: #b6f5c9;
}
.alert a { color: #c5c9ff; }

/* server control panel */
.manage-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 860px) {
  .manage-layout { grid-template-columns: 1fr; }
}
.manage-side { position: sticky; top: 4.5rem; }
.server-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 60vh; overflow: auto; }
.server-item {
  display: flex; align-items: center; gap: 0.55rem;
  width: 100%; text-align: left;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.server-item:hover { border-color: rgba(88,101,242,0.45); }
.server-item.active { border-color: var(--blurple); background: rgba(88,101,242,0.12); }
.server-item.dim { opacity: 0.65; }
.server-item img, .srv-fallback {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
}
.srv-fallback {
  display: grid; place-items: center;
  background: rgba(88,101,242,0.25); font-size: 0.95rem;
}
.srv-name { flex: 1; font-size: 0.9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag {
  font-size: 0.7rem; padding: 0.15rem 0.4rem; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: var(--muted); white-space: nowrap;
}
.tag.ok { background: rgba(87,242,135,0.12); color: var(--green); }
.tag.warn { background: rgba(254,231,92,0.12); color: var(--warn, #fee75c); }

.guild-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem;
}
.guild-head img { border-radius: 14px; background: rgba(0,0,0,0.3); }

.form-title { font-size: 1rem; margin-bottom: 0.85rem; }
.field {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin-bottom: 0.75rem; font-size: 0.88rem; color: var(--muted);
}
.field span { font-weight: 600; color: #b4bbcf; }
.field input, .field select, .field textarea {
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(88,101,242,0.55);
}
.field textarea { resize: vertical; min-height: 3rem; }
.check {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.45rem; font-size: 0.9rem; color: var(--text); cursor: pointer;
}
.check input { accent-color: var(--blurple); width: 1rem; height: 1rem; }

.modules-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem;
}
@media (max-width: 700px) { .modules-grid { grid-template-columns: 1fr; } }
.mod-card {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.mod-card input { accent-color: var(--blurple); width: 1.05rem; height: 1.05rem; }
.active-nav { color: var(--text) !important; background: rgba(255,255,255,0.05); }

/* Quick setup presets */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}
.preset-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.preset-card:hover:not(:disabled) {
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.12);
  transform: translateY(-1px);
}
.preset-card:disabled { opacity: 0.65; cursor: wait; }
.preset-emoji { font-size: 1.45rem; flex-shrink: 0; }
.preset-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.preset-body strong { font-size: 0.95rem; }
.preset-body span { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.preset-go {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blurple2);
  white-space: nowrap;
}

.check.big {
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.check.big:last-child { border-bottom: none; }
.check.big span { display: flex; flex-direction: column; gap: 0.15rem; }
.check.big strong { font-size: 0.92rem; }
.check.big small { color: var(--muted); font-size: 0.8rem; font-weight: 400; }

.tips-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.tips-list li { margin-bottom: 0.45rem; }
.tips-list code {
  background: rgba(0,0,0,0.35);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: #c5c9ff;
}

.tab-panel { animation: fadeIn 0.2s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.server-search {
  width: 100%;
  margin-bottom: 0.65rem;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.5rem 0.7rem;
  font: inherit;
}
.server-search:focus {
  outline: none;
  border-color: rgba(88,101,242,0.55);
}

.protect-pills {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin-top: 0.55rem;
}
.ppill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}
.ppill.on {
  color: var(--green);
  border-color: rgba(87,242,135,0.3);
  background: rgba(87,242,135,0.1);
}
.ppill.off { opacity: 0.7; }

.level-badge {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.level-off { color: var(--muted); background: rgba(255,255,255,0.04); }
.level-light { color: #9ecbff; background: rgba(88,101,242,0.15); border-color: rgba(88,101,242,0.35); }
.level-med { color: var(--gold); background: rgba(254,231,92,0.12); border-color: rgba(254,231,92,0.3); }
.level-strict { color: #ffb4b4; background: rgba(237,66,69,0.12); border-color: rgba(237,66,69,0.35); }

.status-card .status-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  margin-bottom: 0.9rem;
}
.status-meters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
@media (max-width: 700px) {
  .status-meters { grid-template-columns: repeat(2, 1fr); }
}
.meter {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  font-size: 0.8rem;
  color: var(--muted);
}
.meter i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.meter.on { color: var(--text); border-color: rgba(87,242,135,0.28); }
.meter.on i { background: var(--green); box-shadow: 0 0 8px var(--green); }

.preset-card.is-active {
  border-color: rgba(87, 242, 135, 0.5);
  background: rgba(87, 242, 135, 0.1);
  box-shadow: 0 0 0 1px rgba(87, 242, 135, 0.15);
}
.preset-card.is-active .preset-go { color: var(--green); }

/* Leaderboard person cells */
.person {
  display: flex; align-items: center; gap: 0.65rem;
  min-width: 0;
}
.person img,
.lb-avatar {
  width: 32px; height: 32px;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: rgba(0,0,0,0.3);
  flex-shrink: 0;
  display: block;
}
.preview-line .lb-avatar {
  width: 28px; height: 28px;
}

/* ── User lookup ───────────────────────────────────────── */
.lookup-page { padding-bottom: 3rem; }
.lookup-search-card { margin-bottom: 1rem; }
.lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}
.lookup-input-wrap {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fill-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.15rem 0.85rem;
  min-height: 48px;
}
.lookup-input-wrap:focus-within {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.lookup-icon { opacity: 0.7; font-size: 1rem; }
.lookup-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 0.65rem 0;
  min-width: 0;
  font-family: inherit;
}
.lookup-hint { margin-top: 0.75rem; font-size: 0.85rem; }
.lookup-status {
  margin: 0.5rem 0 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: var(--fill-soft);
  border: 1px solid var(--border);
}
.lookup-status-err {
  color: #ffb4b4;
  border-color: rgba(237, 66, 69, 0.35);
  background: rgba(237, 66, 69, 0.1);
}
.lookup-status-ok {
  border-color: rgba(87, 242, 135, 0.25);
  background: rgba(87, 242, 135, 0.08);
}
.lookup-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}
.lookup-result {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, transform 0.12s, background 0.15s;
}
.lookup-result:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: var(--panel2);
  transform: translateY(-1px);
  text-decoration: none;
}
.lookup-result-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.lookup-result-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.lookup-result-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lookup-result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  align-items: center;
}
.lookup-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--fill-med);
  color: var(--text);
  white-space: nowrap;
}
.lookup-pill.gold { color: var(--gold); }
.tag-ok {
  color: var(--green) !important;
  border-color: rgba(87, 242, 135, 0.3);
  background: rgba(87, 242, 135, 0.1);
}
.lookup-profile { margin-top: 0.25rem; }
.lookup-profile-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.lookup-profile-av {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(0,0,0,0.25);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.lookup-profile-meta h2 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}
.lookup-id {
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: var(--fill-soft);
}
.lookup-id:hover { background: var(--fill-med); }
.lookup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.lookup-lifetime {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.lookup-lifetime-card {
  background: var(--fill-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  text-align: center;
}
.lookup-lifetime-card.earned {
  border-color: rgba(87, 242, 135, 0.28);
  background: rgba(87, 242, 135, 0.08);
}
.lookup-lifetime-card.earned .lookup-stat-value { color: var(--green); }
.lookup-lifetime-card.lost {
  border-color: rgba(237, 66, 69, 0.28);
  background: rgba(237, 66, 69, 0.08);
}
.lookup-lifetime-card.lost .lookup-stat-value { color: #ff8e8e; }
.lookup-lifetime-card.net.pos {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.08);
}
.lookup-lifetime-card.net.pos .lookup-stat-value { color: var(--gold); }
.lookup-lifetime-card.net.neg {
  border-color: rgba(237, 66, 69, 0.35);
  background: rgba(237, 66, 69, 0.1);
}
.lookup-lifetime-card.net.neg .lookup-stat-value { color: #ff8e8e; }
.lookup-lifetime-card .lookup-stat-label { margin-bottom: 0.35rem; }
.lookup-lifetime-card .lookup-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
@media (max-width: 560px) {
  .lookup-lifetime { grid-template-columns: 1fr; }
}

.lookup-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.lookup-stat {
  background: var(--fill-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
.lookup-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.lookup-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.lookup-stat-value.gold { color: var(--gold); }
.lookup-xp { margin-bottom: 0.5rem; }
.lookup-xp-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.lookup-xp-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--fill-med);
  overflow: hidden;
  border: 1px solid var(--border);
}
.lookup-xp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blurple), var(--accent2));
  transition: width 0.35s ease;
}
.lookup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 560px) {
  .lookup-result-stats { width: 100%; justify-content: flex-start; }
  .lookup-profile-av { width: 72px; height: 72px; }
}
.person-text {
  display: flex; flex-direction: column; min-width: 0; line-height: 1.25;
}
.person-text strong {
  font-size: 0.92rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.person-text .muted { font-size: 0.75rem; }
.score-cell { font-weight: 700; white-space: nowrap; color: var(--gold); }

/* Hosting coming soon */
.hosting-soon {
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(88,101,242,0.12), rgba(235,69,158,0.06)),
    var(--card);
}
.hosting-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(254,231,92,0.12);
  border: 1px solid rgba(254,231,92,0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hosting-icon { font-size: 2.75rem; margin-bottom: 0.5rem; }
.hosting-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  max-width: 36rem;
  margin: 0 auto;
  text-align: left;
}
@media (max-width: 560px) {
  .hosting-features { grid-template-columns: 1fr; }
}
.hosting-feat {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.hosting-feat strong { font-size: 0.92rem; }
.hosting-feat span { font-size: 0.8rem; color: var(--muted); }

/* Site help chatbot popup */
.tacot-chat-root { position: fixed; z-index: 9999; right: 1.1rem; bottom: 1.1rem; font-family: inherit; }
.tacot-chat-fab {
  width: 58px; height: 58px; border-radius: 50%;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, #5865f2, #eb459e);
  color: #fff; font-size: 1.55rem;
  box-shadow: 0 12px 32px rgba(88,101,242,0.45);
  display: grid; place-items: center;
  transition: transform 0.15s ease;
}
.tacot-chat-fab:hover { transform: scale(1.06); }
.tacot-chat-panel {
  display: none;
  width: min(380px, calc(100vw - 1.5rem));
  height: min(520px, calc(100vh - 6rem));
  margin-bottom: 0.75rem;
  background: #121624;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  flex-direction: column;
  overflow: hidden;
}
.tacot-chat-root.open .tacot-chat-panel { display: flex; }
.tacot-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tacot-chat-head strong { font-size: 0.95rem; }
.tacot-chat-head span { display: block; font-size: 0.75rem; color: #9aa3b8; font-weight: 500; }
.tacot-chat-close {
  background: transparent; border: none; color: #9aa3b8;
  font-size: 1.25rem; cursor: pointer; line-height: 1; padding: 0.2rem;
}
.tacot-chat-msgs {
  flex: 1; overflow-y: auto; padding: 0.9rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.tacot-bubble {
  max-width: 90%;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.tacot-bubble.bot {
  align-self: flex-start;
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.25);
  color: #e8eaf2;
}
.tacot-bubble.user {
  align-self: flex-end;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8eaf2;
}
.tacot-bubble.err {
  align-self: flex-start;
  background: rgba(237,66,69,0.12);
  border-color: rgba(237,66,69,0.3);
  color: #ffb4b4;
}
.tacot-chat-form {
  display: flex; gap: 0.4rem;
  padding: 0.7rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
}
.tacot-chat-form input {
  flex: 1;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: #e8eaf2;
  padding: 0.6rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
}
.tacot-chat-form input:focus { outline: none; border-color: rgba(88,101,242,0.5); }
.tacot-chat-form button {
  border: none; border-radius: 999px;
  background: #5865f2; color: #fff;
  font-weight: 700; font-size: 0.85rem;
  padding: 0.55rem 0.95rem; cursor: pointer;
}
.tacot-chat-form button:disabled { opacity: 0.55; cursor: wait; }
.tacot-chat-hints {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  padding: 0 0.9rem 0.55rem;
}
.tacot-chat-hints button {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #b4bbcf;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}
.tacot-chat-hints button:hover {
  border-color: rgba(88,101,242,0.4);
  color: #e8eaf2;
}
.table th, .table td {
  text-align: left; padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.rank { color: var(--gold); font-weight: 700; width: 2.5rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tab {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: 0.45rem 0.9rem; border-radius: 999px; cursor: pointer; font-weight: 600;
}
.tab.active, .tab:hover { color: var(--text); border-color: var(--blurple); background: rgba(88,101,242,0.15); }

.alert {
  background: rgba(254, 231, 92, 0.1); border: 1px solid rgba(254, 231, 92, 0.3);
  color: #ffe57a; padding: 0.85rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: 0.92rem;
}
.alert a { color: #fff3b0; }

.footer {
  border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 2rem;
  color: var(--muted); font-size: 0.9rem; text-align: center;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; height: 1.1rem;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }


/* Theme dropdown (shared with marketing site) */
.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.45rem 0.28rem 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--fill-soft);
  flex-shrink: 0;
}
.theme-picker-swatch {
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, var(--blurple)), var(--pink));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}
.theme-picker select {
  appearance: none; -webkit-appearance: none;
  border: none; background: transparent;
  color: var(--text);
  font: inherit; font-size: 0.82rem; font-weight: 600;
  padding: 0.2rem 1.15rem 0.2rem 0.1rem;
  cursor: pointer;
  min-width: 6.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}
.theme-picker select option { background: var(--card); color: var(--text); }
html.theme-white body,
html[data-theme="light"] body {
  background-image: none !important;
}
.nav-links { align-items: center; }

/* logo circle — Tacot pfp (force round) */
.brand .logo,
.brand .logo-img,
.nav .logo,
.nav .logo-img,
.logo.logo-img,
.logo,
.logo-img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand .logo img,
.brand .logo-img img,
.nav .logo img,
.logo img,
.logo-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

