:root {
  --bg: #050508;
  --bg-2: #0a0a10;
  --panel: rgba(18, 18, 24, 0.92);
  --panel-2: #121218;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f5;
  --muted: #9a9aa8;
  --faint: #6a6a78;
  --accent: #7c6cff;
  --accent-soft: rgba(124, 108, 255, 0.18);
  --cyan: #3ecfff;
  --green: #3dd68c;
  --amber: #f0b429;
  --orange: #ff8a4c;
  --radius: 16px;
  --radius-pill: 999px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --font-heading: "Syne", "IBM Plex Sans", system-ui, sans-serif;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --topbar-h: 72px;
  --mx: 50%;
  --my: 30%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 108, 255, 0.12), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(62, 207, 255, 0.06), transparent 35%),
    linear-gradient(180deg, #030306 0%, #07070c 50%, #050508 100%);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 280px at var(--mx) var(--my), rgba(255,255,255,0.05), transparent 60%);
  z-index: 0;
  opacity: .7;
}

::selection {
  background: rgba(124, 108, 255, 0.45);
  color: #fff;
}

h1, h2, h3, strong, b, th {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 15%, transparent 72%);
  z-index: 0;
  opacity: .9;
}

.topbar, main, .toast, .loading-overlay, .api-corner, .auth-modal {
  position: relative;
  z-index: 1;
}

/* ——— Topbar pill ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 16px 0;
}

.topbar-shell {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 14, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  white-space: nowrap;
}

.topbar-nav {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  gap: 2px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar-nav::-webkit-scrollbar { display: none; }

.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-link.is-active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
  background: transparent;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.icon-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }

.btn-logout {
  background: #e8e8ec !important;
  color: #0a0a0c !important;
  border: 0 !important;
  border-radius: var(--radius-pill) !important;
  padding: 8px 14px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.btn-logout:hover { filter: brightness(0.95); transform: none !important; }

.btn-login {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}
.btn-login:hover { background: rgba(255,255,255,0.12); transform: none; }
.btn-login[hidden],
.credits-badge[hidden],
.user-chip[hidden],
.owner-tag[hidden],
.chat-widget[hidden],
#userAvatar[hidden],
#creditsBadge[hidden],
#loginBtn[hidden],
#userChip[hidden],
#ownerTag[hidden],
#chatDot[hidden] {
  display: none !important;
}

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(124, 108, 255, 0.14);
  border: 1px solid rgba(124, 108, 255, 0.28);
  color: #cfc8ff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.credits-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9b8cff;
  box-shadow: 0 0 8px #9b8cff;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
}
.user-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
}
.user-chip #userName {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ddd;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.owner-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0a0c;
  background: linear-gradient(135deg, #f5e6a6, #e0b84a);
  border: 1px solid rgba(224, 184, 74, 0.5);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-modal[hidden] { display: none !important; }
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}
.auth-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 26px 22px;
  border-radius: 20px;
  background: linear-gradient(165deg, #12121a 0%, #0a0a10 100%);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.auth-card h2 {
  margin: 0 0 4px;
  font-family: Syne, sans-serif;
  font-size: 1.45rem;
}
.auth-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
}
.auth-oauth {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.btn-oauth {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  text-decoration: none;
}
.btn-oauth--discord {
  background: #5865f2;
  color: #fff;
  border: 0;
}
.btn-oauth--google {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: #eee;
}
.btn-oauth[hidden], .auth-oauth[hidden] { display: none !important; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
}
.auth-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 9px;
  border-radius: 9px;
  cursor: pointer;
}
.auth-tab.is-active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.auth-form {
  display: grid;
  gap: 12px;
}
.auth-form[hidden] { display: none !important; }
.btn-block { width: 100%; }
.auth-hint {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: #ffb4b4;
  min-height: 1.2em;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.06);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ——— Buttons ——— */
.btn {
  appearance: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  border-radius: 12px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 12px; font-size: 0.84rem; }
.btn-primary {
  background: #f4f4f6;
  color: #0a0a0c;
  border-color: transparent;
}
.btn-primary:hover { background: #fff; }
.btn-accent {
  background: linear-gradient(135deg, #8b7cff 0%, #6a5aef 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(108, 92, 231, 0.35);
}
.btn-accent:hover { filter: brightness(1.06); }
.btn-discord {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
  color: #eee;
  gap: 10px;
}
.btn-discord:hover { background: rgba(255,255,255,0.1); }
.discord-count {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
  color: #e8e8ee;
  font-weight: 500;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 96px;
}

.view { display: none; }
.view.is-active { display: block; animation: fadeUp .35s ease; }
.view[hidden] { display: none !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Hero ——— */
.seek-hero {
  text-align: center;
  padding: 28px 8px 20px;
}

.eye-art {
  margin: 4px auto 20px;
  width: min(240px, 68vw);
  position: relative;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.28)) drop-shadow(0 0 42px rgba(255,255,255,0.12));
  will-change: transform;
  animation: eyeBreathe 4.8s ease-in-out infinite;
}
.neon-eye {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: visible;
}
#eyeBall {
  transition: transform .08s linear;
}

@keyframes eyeBreathe {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 18px rgba(255,255,255,0.28)) drop-shadow(0 0 42px rgba(255,255,255,0.12)); }
  50% { transform: translateY(-5px) scale(1.015); filter: drop-shadow(0 0 26px rgba(255,255,255,0.4)) drop-shadow(0 0 56px rgba(255,255,255,0.16)); }
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8e8ef;
  font-size: 0.82rem;
  font-weight: 500;
}
.live-badge--online {
  margin-bottom: 14px;
  border-color: rgba(61, 214, 140, 0.28);
  background: rgba(12, 28, 20, 0.85);
}
.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55);
  animation: pulseDot 1.8s ease-out infinite;
}
.live-pulse--green { background: #3dd68c; }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(61, 214, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}
.hero-brand {
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 20%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-typewriter {
  margin: 10px 0 0;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: #ececf4;
  font-weight: 500;
  min-height: 1.5em;
}
.tw-dynamic { font-weight: 700; color: #fff; }
.tw-cursor {
  display: inline-block;
  margin-left: 1px;
  color: #a78bfa;
  animation: blink 1s step-end infinite;
  font-weight: 400;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-copy {
  margin: 14px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-ctas {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.feature-row {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  max-width: 820px;
}
.feature-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 0.8rem;
}
.feature-row svg { color: var(--muted); flex-shrink: 0; }

/* ——— Search bar (image 2) ——— */
.hero-search {
  margin: 32px auto 0;
  max-width: 820px;
  text-align: left;
}

.hero-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  background: #14141a;
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

.search-ico { color: var(--faint); display: grid; place-items: center; flex-shrink: 0; }

.hero-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 4px;
}
.hero-search-box input::placeholder { color: #6e6e7a; }

.search-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.tool-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--faint);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.tool-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.tool-btn--accent { color: var(--muted); }
.tool-btn--accent:hover { color: #fff; background: var(--accent-soft); }

.hero-search-box .btn-primary {
  border-radius: 10px;
  padding: 11px 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

.type-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.type-label { color: var(--faint); font-size: 0.84rem; }
.type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.type-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: #121218;
  color: #c8c8d2;
  font: inherit;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: transform .15s, border-color .15s, color .15s, background .15s;
}
.type-chip:hover { border-color: #555; color: #fff; transform: translateY(-1px); }
.type-chip.is-active {
  background: #1c1c24;
  border-color: #6a6a78;
  color: #fff;
}

/* ——— Metrics ——— */
.metrics {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  text-align: left;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  transition: transform .18s, border-color .18s;
}
.metric:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.metric-ico {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.metric-ico--violet { background: #8b7cff; box-shadow: 0 0 12px rgba(139,124,255,.5); }
.metric-ico--blue { background: #4ea1ff; box-shadow: 0 0 12px rgba(78,161,255,.45); }
.metric-ico--amber { background: #f0b429; box-shadow: 0 0 12px rgba(240,180,41,.4); }
.metric-ico--cyan { background: #3ecfff; box-shadow: 0 0 12px rgba(62,207,255,.4); }
.metric-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--faint);
}
.metric-value {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: -0.03em;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ——— Sources marquee (QueryX-style) ——— */
.sources-block {
  margin-top: 56px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}
.sources-title {
  margin: 0 0 22px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--faint);
  font-family: var(--font);
  font-weight: 600;
}
.sources-marquee {
  display: grid;
  gap: 12px;
  overflow: hidden !important;
  overflow-x: hidden !important;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sources-marquee::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sources-row {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.sources-row--left {
  animation: marqueeLeft 55s linear infinite;
}
.sources-row--right {
  animation: marqueeRight 62s linear infinite;
}
.sources-row.is-js-marquee {
  animation: none !important;
}
.sources-marquee:hover .sources-row:not(.is-js-marquee) {
  animation-play-state: paused;
}
.sources-row-set {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 10px;
}
.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 10px;
  border-radius: 12px;
  background: rgba(22, 22, 28, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8e8ef;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .2s, background .2s, transform .2s;
}
.source-pill:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(32, 32, 40, 0.95);
  transform: translateY(-1px);
}
.source-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  flex-shrink: 0;
  display: block;
}
.source-logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0a0c;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.sources-line {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.8rem;
  text-align: center;
}

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ——— Panels / multi ——— */
.panel, .multi-page {
  margin-top: 12px;
  padding: 26px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.multi-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.multi-head h2 {
  margin: 0;
  font-size: 1.55rem;
}
.back-link {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: #ddd;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.back-link:hover { background: rgba(255,255,255,0.08); }

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.panel-head h2 {
  margin: 4px 0 0;
  font-size: 1.5rem;
}
.panel-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 52ch;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--faint);
}
.panel-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: #0c0c10;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.mode-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.mode-tab.is-active {
  background: #fff;
  color: #0a0a0c;
  font-weight: 600;
}

.mc-section {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 16px;
  background: #0e0e14;
  border: 1px solid var(--border);
}
.mc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.mc-section-head h3 {
  margin: 0;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mc-section-head > span {
  color: var(--faint);
  font-size: 0.78rem;
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.fields-grid--quick { grid-template-columns: 180px 1fr; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.field--grow { grid-column: 1 / -1; }
.field--inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.field--inline input {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  min-width: 160px;
}

.raw-tag {
  font-style: normal;
  color: var(--orange);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  margin-left: 4px;
}

.field-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #0a0a0e;
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.field-box:focus-within {
  border-color: #5a5a6a;
  color: var(--muted);
}
.field-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  padding: 12px 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.field-box input::placeholder { color: #555564; }

.field input,
.field select {
  width: 100%;
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #0a0a0e;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  outline: none;
}
.field input:focus,
.field select:focus { border-color: #5a5a6a; }
.field input::placeholder { color: #555564; }

.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}
.hint-line {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 0.84rem;
}

.multi-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.active-fields {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 0.85rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* ——— About ——— */
.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
  margin-top: 12px;
  padding: 8px 0 20px;
}
.about-copy h2 {
  margin: 8px 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.about-copy p {
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 48ch;
}
.about-copy .btn { margin-top: 8px; }

.about-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 20px;
  box-shadow: var(--shadow);
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
.about-stats strong {
  display: block;
  font-size: 1.35rem;
  color: #fff;
}
.about-stats span {
  color: var(--faint);
  font-size: 0.78rem;
}

.globe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 434px;
  margin: 8px auto 0;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(61, 214, 140, 0.12);
  box-shadow:
    inset 0 0 80px rgba(61, 214, 140, 0.04),
    0 0 40px rgba(0, 0, 0, 0.4);
}
#globeCanvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.globe-fallback {
  display: grid;
  place-items: center;
  min-height: 200px;
  border-radius: 20px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px;
  text-align: center;
}
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
}

/* ——— Results ——— */
.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: #0c0c10;
  border: 1px solid var(--border);
}
.toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.toggle-btn.is-active {
  background: #1c1c24;
  color: #fff;
}

.status-line { color: var(--faint); margin-bottom: 12px; font-size: 0.88rem; }

.results-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.results-cards--rich {
  max-width: 860px;
}
.result-card {
  padding: 0;
  border-radius: 16px;
  background: #101016;
  border: 1px solid var(--border);
  transition: border-color .18s, box-shadow .18s;
  overflow: hidden;
}
.result-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  transform: none;
}
.result-card--rich { padding: 0; }
.result-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.result-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rank-pill {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(124, 108, 255, 0.18);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 700;
}
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #d4d4e0;
  font-size: 0.72rem;
  font-weight: 600;
}
.source-chip--discord {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.35);
  color: #c4b5fd;
}
.result-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.icon-action {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #cfcfd8;
  border-radius: 10px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.icon-action:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.profile-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: linear-gradient(180deg, rgba(124, 108, 255, 0.1), rgba(255,255,255,0.02));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.profile-banner--simple {
  background: rgba(255,255,255,0.02);
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(167, 139, 250, 0.35);
  background: #1a1a24;
  flex-shrink: 0;
}
.profile-avatar--fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #ddd;
  font-size: 1.1rem;
}
.profile-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-handle {
  margin: 2px 0 0;
  color: #a78bfa;
  font-size: 0.9rem;
}
.profile-meta {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.profile-linked {
  margin: 8px 0 0;
  color: #8a8a98;
  font-size: 0.8rem;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  padding: 16px;
}
.info-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.info-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6e6e7a;
  font-weight: 600;
}
.field-value {
  color: #f2f2f7;
  font-size: 0.88rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  text-align: left;
}
button.field-value {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--cyan);
}
button.field-value:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.badge--conf {
  background: rgba(124, 108, 255, 0.2);
  border-color: rgba(124, 108, 255, 0.35);
  color: #ddd6fe;
}
.empty-fields {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--faint);
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .info-grid { grid-template-columns: 1fr; }
  .result-card-top { align-items: flex-start; }
}
.badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  background: #1c1c24;
  border: 1px solid #333;
  color: #ddd;
}

/* ——— Family tree (image 5) ——— */
.family-tree { display: grid; gap: 14px; }
.family-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.family-summary h3 {
  margin: 0;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c4b5fd;
}
.family-summary .meta {
  color: var(--faint);
  font-size: 0.88rem;
}

.household {
  padding: 18px;
  border-radius: 16px;
  background: #101018;
  border: 1px solid var(--border);
}
.household-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.household-title {
  margin: 0;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.household-title svg { color: var(--cyan); flex-shrink: 0; }
.household-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.same-addr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.8rem;
}
.same-addr::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(61, 214, 140, 0.6);
}
.household-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(62, 207, 255, 0.35);
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.82rem;
  background: rgba(62, 207, 255, 0.06);
  transition: background .15s, border-color .15s, transform .15s;
  cursor: pointer;
}
.pill-link:hover {
  background: rgba(62, 207, 255, 0.12);
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.pill-link--mail {
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.08);
}
.pill-link--mail:hover { background: rgba(167, 139, 250, 0.14); }
.quick-search {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.member-details .quick-search:hover,
.quick-search:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pill-link.quick-search {
  background: rgba(62, 207, 255, 0.06);
  border: 1px solid rgba(62, 207, 255, 0.35);
  padding: 7px 12px;
}
.pill-link.quick-search:hover { text-decoration: none; }
.pill-link--mail.quick-search {
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.08);
}

.member-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(255,255,255,0.1);
  display: grid;
  gap: 12px;
}
.member-list li {
  position: relative;
  padding-left: 14px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
}
.member-list li::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 16px;
  width: 12px;
  height: 2px;
  background: rgba(255,255,255,0.15);
}
.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1a1a24;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ddd;
}
.member-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}
.member-details {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.member-details a,
.member-details .mail { color: #c4b5fd; }
.member-details .quick-search:not(.mail) { color: var(--cyan); }

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.results-table th,
.results-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  vertical-align: top;
  font-size: 0.82rem;
}
.results-table th {
  color: #bcbcbc;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .68rem;
  background: rgba(255,255,255,0.03);
  position: sticky;
  top: 0;
}
.results-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--faint);
  font-size: 0.85rem;
}
.pager button {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.pager button:disabled { opacity: .35; cursor: not-allowed; }

.raw {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #050508;
  border: 1px solid #222;
  color: #cfcfcf;
  overflow: auto;
  max-height: 40vh;
  font-size: 0.78rem;
}
.empty-state {
  padding: 36px 16px;
  text-align: center;
  color: #777;
  border: 1px dashed #2a2a2a;
  border-radius: 14px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.guide-card {
  padding: 16px;
  border-radius: 14px;
  background: #101016;
  border: 1px solid var(--border);
}
.guide-card h3 { margin: 0 0 8px; font-size: 1rem; }
.guide-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 50;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.95);
  color: #111;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  max-width: min(92vw, 480px);
  text-align: center;
}
.toast.error { background: #2a1212; color: #ffc9c9; border: 1px solid #5a2a2a; }

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.78);
}
.loading-overlay[hidden] { display: none !important; }
.loading-card {
  text-align: center;
  padding: 28px 32px;
  border-radius: 18px;
  background: rgba(18,18,24,0.95);
  border: 1px solid var(--border);
  min-width: 250px;
}
.loading-card p { margin: 14px 0 0; }
.loading-sub { color: #888 !important; font-size: .88rem; }
.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.16);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.api-corner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(10,10,14,0.85);
  border: 1px solid var(--border);
  color: #f3f3f3;
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.api-corner.is-down .live-dot { background: #ff6b6b; }

.faq-card {
  max-width: 920px;
  margin: 22px auto;
  padding: 28px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
  .fields-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-layout { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .topbar-shell {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 12px 14px;
  }
  .topbar-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 4px;
    gap: 2px;
  }
  .topbar-nav.is-open { display: flex; }
  .nav-link {
    text-align: left;
    padding: 12px 12px;
    border-radius: 12px;
  }
  .nav-link.is-active {
    background: rgba(255,255,255,0.06);
    text-decoration: none;
  }
  .topbar-actions { gap: 4px; }
  .hero-search-box {
    flex-wrap: wrap;
    border-radius: 16px;
  }
  .hero-search-box input { width: 100%; flex: 1 1 100%; order: 2; }
  .search-ico { order: 1; }
  .search-tools { order: 3; margin-left: auto; }
  .hero-search-box .btn-primary {
    order: 4;
    width: 100%;
  }
}

@media (max-width: 560px) {
  main { padding: 4px 12px 80px; }
  .panel, .multi-page { padding: 18px 14px; }
  .fields-grid,
  .fields-grid--quick { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric { padding: 14px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .feature-row { gap: 10px 14px; }
  .feature-row li { font-size: 0.74rem; }
  .btn-logout { padding: 8px 12px !important; font-size: 0.78rem !important; }
  .multi-footer { flex-direction: column; align-items: stretch; }
  .form-actions { width: 100%; }
  .form-actions .btn { flex: 1; }
  .household-actions { width: 100%; }
  .pill-link { font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Marquee: garder le défilement (JS), jamais de barre de scroll */
  .sources-marquee {
    overflow: hidden !important;
    overflow-x: hidden !important;
  }
  .sources-row--left,
  .sources-row--right {
    animation: none !important;
  }
  .sources-row-set:last-child { display: flex !important; }
}
/* Discord lookup + empty + removal */
.empty-results {
  text-align: center;
  padding: 48px 16px 28px;
}
.empty-title {
  margin: 0;
  font-size: 1.15rem;
  color: #c8c8d4;
  font-weight: 600;
}
.empty-sub {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.discord-lookup-card {
  margin: 0 auto 18px;
  max-width: 420px;
  padding: 16px;
  border-radius: 16px;
  background: #12121a;
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.discord-card-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
}
.discord-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a24;
  border: 2px solid rgba(167, 139, 250, 0.35);
  flex-shrink: 0;
}
.discord-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.discord-tag {
  margin: 2px 0 0;
  color: #a78bfa;
  font-size: 0.88rem;
}
.discord-meta {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 0.78rem;
}
.discord-foot {
  margin: 10px 0 0;
  color: #8a8a98;
  font-size: 0.8rem;
}

.removal-page { margin-top: 12px; }
.removal-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 12px 8px;
}
.removal-hero h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.credits-box {
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(13, 24, 22, 0.7);
  text-align: left;
}
.credits-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: #2dd4bf;
  font-weight: 600;
}
.credits-value {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.btn-outline-teal {
  background: transparent !important;
  border: 1px solid rgba(45, 212, 191, 0.55) !important;
  color: #5eead4 !important;
  border-radius: 12px !important;
}
.btn-outline-teal:hover { background: rgba(45, 212, 191, 0.1) !important; }
.removal-features {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.removal-features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #121218;
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: #d8d8e2;
}
.removal-features span { color: #f87171; font-weight: 700; }
.removal-pay-note {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 0.82rem;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  padding: 22px;
  border-radius: 18px;
  background: #101016;
  border: 1px solid var(--border);
  text-align: left;
}
.price-card--hot {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.12), 0 20px 40px rgba(0,0,0,0.25);
}
.price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.price-card h3 { margin: 0; font-size: 1.2rem; }
.price-desc { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; }
.price-amount {
  margin: 16px 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: var(--font-heading);
}
.price-card ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.price-card li {
  color: #cfcfd8;
  font-size: 0.88rem;
  padding-left: 1.2em;
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: 700;
}
.btn-removal {
  width: 100%;
  background: #ef4444 !important;
  border-color: transparent !important;
  color: #fff !important;
  border-radius: 12px !important;
}
.btn-removal:hover { filter: brightness(1.06); }
.price-card .btn { width: 100%; }

/* ——— Chat widget ——— */
.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.chat-toggle {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: #12121a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  position: relative;
}
.chat-dot {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd68c;
}
.chat-panel {
  width: min(360px, calc(100vw - 28px));
  height: min(440px, 62vh);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #14141c, #0a0a10);
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
  overflow: hidden;
}
.chat-panel[hidden] { display: none !important; }
.chat-head {
  position: relative;
  padding: 12px 40px 10px 14px;
  border-bottom: 1px solid var(--border);
}
.chat-head strong { display: block; font-size: 0.95rem; }
.chat-sub { color: var(--muted); font-size: 0.75rem; }
.chat-close {
  position: absolute;
  top: 8px;
  right: 10px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.chat-msg.is-me { background: rgba(124, 108, 255, 0.12); border-color: rgba(124, 108, 255, 0.22); }
.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}
.chat-msg-name { color: #ddd; font-weight: 700; }
.chat-msg-text {
  margin: 0;
  font-size: 0.88rem;
  color: #ececf2;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border);
}
.chat-form input {
  flex: 1;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.35);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.88rem;
}
.guest-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.chat-guest {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.chat-guest p { margin: 0 0 10px; color: var(--muted); font-size: 0.84rem; }
.chat-guest-form { display: flex; gap: 8px; }
.chat-guest-form input {
  flex: 1;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.35);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.chat-guest-hint { margin: 8px 0 0; color: #ffb4b4; font-size: 0.8rem; min-height: 1.1em; }
.chat-form[hidden], .chat-guest[hidden] { display: none !important; }

.tempmail-box { margin-top: 8px; }
.tempmail-address-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.tempmail-address-row code {
  flex: 1 1 220px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  color: #e8e8ef;
  font-size: 0.86rem;
  word-break: break-all;
}
.tempmail-hint { color: var(--muted); font-size: 0.86rem; margin: 0 0 14px; }
.tempmail-list { display: grid; gap: 8px; }
.tempmail-item {
  appearance: none;
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: inherit;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  display: grid;
  gap: 4px;
}
.tempmail-item:hover { border-color: rgba(255,255,255,0.2); }
.tempmail-item strong { color: #fff; font-size: 0.92rem; }
.tempmail-item span { color: var(--muted); font-size: 0.78rem; }
.tempmail-item em { color: #bdbdc8; font-size: 0.82rem; font-style: normal; }
.tempmail-read { margin-top: 12px; }
.tempmail-read h3 { margin: 10px 0 4px; }
.tempmail-meta { color: var(--muted); font-size: 0.84rem; }
.tempmail-body {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 50vh;
  overflow: auto;
  font-size: 0.86rem;
  color: #e4e4ec;
}
.tempmail-read[hidden], .tempmail-list[hidden] { display: none !important; }


@media (max-width: 700px) {
  .pricing-cards { grid-template-columns: 1fr; }
  .credits-box { flex-direction: column; align-items: stretch; }
  .chat-widget { right: 12px; bottom: 12px; }
}

