/* =====================================================================
 * theme-seekn.css — dark neon redesign overlay (v18)
 * Loaded LAST so it wins the cascade. No HTML/JS structural changes.
 *
 * Direction: pitch-black canvas, sharp 1px lines, neon purple / electric
 * blue / acid green accents, premium underground feel. Subtle glow on
 * hover and focus, no clutter, no rainbow.
 * =================================================================== */

:root,
:root[data-theme="dark"] {
  /* Core palette — pitch black with neon purple primary */
  --bg-0: #000000;
  --bg-1: #060309;
  --bg-2: #0a0612;

  --text:       #ffffff;
  --text-soft:  #ededf3;
  --text-mute:  #6f6886;

  /* Neon palette */
  --neon-purple: #a855f7;
  --neon-purple-2: #8b5cf6;
  --neon-blue:   #3b82f6;
  --neon-cyan:   #22d3ee;
  --neon-green:  #22c55e;
  --neon-pink:   #ec4899;

  --accent:    #a855f7;
  --accent-2:  #c084fc;
  --accent-3:  #6d28d9;
  --accent-on: #07000d;
  --accent-soft: rgba(168, 85, 247, 0.12);
  --accent-glow: rgba(168, 85, 247, 0.45);

  --line:        rgba(255, 255, 255, 0.06);
  --line-strong: rgba(168, 85, 247, 0.22);
  --glass:        rgba(168, 85, 247, 0.04);
  --glass-strong: rgba(168, 85, 247, 0.10);

  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 26px rgba(168, 85, 247, 0.32),
                 0 0 60px rgba(139, 92, 246, 0.18);
}

/* ---------- Background: black + subtle neon grid + scan ----------- */

html, body { background: #000 !important; }

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  /* v27: single-tone purple ambient (was 3-color purple+blue+green). Darker
     overall — top glow tightened, bottom glow added for depth, base is
     pure black. No teal / blue / green tint anywhere on the canvas. */
  background:
    radial-gradient(820px 520px at 12% -10%, rgba(109, 40, 217, 0.22), transparent 62%),
    radial-gradient(700px 480px at 88% 108%, rgba(76, 29, 149, 0.18), transparent 65%),
    linear-gradient(180deg, #000 0%, #050208 55%, #000 100%);
}

body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.06) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

#ambient .ambientOrb { display: none; } /* the new background does this work */
#ambient .floatShape { display: none; }

.app, .container { position: relative; z-index: 1; }

/* ---------- Typography: tight, sharp, lowercase brand ------------ */

body {
  font-family: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.005em;
  color: var(--text-soft);
}

h1, h2, h3, h4 {
  font-family: "Geist", "Inter", sans-serif;
  letter-spacing: -0.025em;
  color: #fff;
}

h1 { font-weight: 800; }
h1 .accent,
.heroSection h1 .accent {
  background: linear-gradient(120deg, #c084fc 0%, #a855f7 35%, #3b82f6 75%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
}

::selection { background: rgba(168, 85, 247, 0.35); color: #fff; }

/* ---------- Topbar / nav ---------------------------------------- */

.topbar.navbar {
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(168, 85, 247, 0.10) !important;
}
.topbar.navbar.scrolled {
  background: rgba(0, 0, 0, 0.86) !important;
  border-bottom-color: rgba(168, 85, 247, 0.18) !important;
  box-shadow: 0 1px 0 rgba(168, 85, 247, 0.10), 0 8px 30px rgba(0, 0, 0, 0.55);
}

/* ---------- Logo: clean monochrome wordmark + outline search icon ----- */
/* BUG FIX: previous logo was a loud purple→blue gradient pill that read
   as a "blob" in the topbar. Redesigned to a slim, premium wordmark:
   plain white text, slightly tighter tracking, and a thin outline search
   glyph that ties to the product name (seek-n). The decorative gradient
   square pseudo-element from style.css is also nuked here.            */

.logoBtn {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  font-size: 18px !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #ffffff !important;
  text-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 10px 4px 6px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  transition: border-color 180ms ease, background 180ms ease, transform 140ms ease !important;
  animation: none !important;
}
.logoBtn:hover {
  border-color: rgba(168, 85, 247, 0.30) !important;
  background: rgba(168, 85, 247, 0.06) !important;
  transform: none !important;
}
/* Kill the old decorative square */
.logoBtn::before { content: none !important; display: none !important; }

.logoBtn .logoMark {
  width: 18px;
  height: 18px;
  color: #c084fc;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.35));
}
.logoBtn .logoText {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #ffffff !important;
  font-weight: 700;
  font-family: "Geist", "Inter", system-ui, sans-serif;
}

.centerNav a {
  color: var(--text-mute) !important;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 160ms ease, background 160ms ease, box-shadow 200ms ease;
}
.centerNav a:hover {
  color: #fff !important;
  background: rgba(168, 85, 247, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.18);
}

/* ---------- Buttons: minimal with neon hover ring --------------- */

.btn,
.userBtn {
  border-radius: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #ededf3 !important;
  transition: transform 140ms ease, background 160ms ease,
              border-color 160ms ease, box-shadow 240ms ease, color 160ms ease;
}
.btn:hover,
.userBtn:hover {
  background: rgba(168, 85, 247, 0.08) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25),
              0 0 22px rgba(168, 85, 247, 0.30) !important;
  color: #fff !important;
}

.btn.primary {
  background: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.45),
              inset 0 0 0 1px rgba(255, 255, 255, 0.10) !important;
}
.btn.primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.65),
              0 0 80px rgba(139, 92, 246, 0.35),
              inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
  color: #ededf3 !important;
}
.btn.ghost:hover {
  background: rgba(168, 85, 247, 0.08) !important;
  border-color: rgba(168, 85, 247, 0.70) !important;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.35) !important;
}

/* ---------- Hero ------------------------------------------------ */

.heroBadge {
  background: rgba(168, 85, 247, 0.06) !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
  color: #cdb9ff !important;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.heroBadge .dot {
  background: #22c55e !important;
  box-shadow: 0 0 12px #22c55e, 0 0 4px #22c55e !important;
}

.heroSection h1 {
  font-size: clamp(40px, 7vw, 76px) !important;
  line-height: 1.02 !important;
}
.heroSection p { color: var(--text-mute) !important; max-width: 620px; }

.heroStats { gap: 28px !important; }
.heroStats .stat strong {
  background: linear-gradient(120deg, #fff, #c084fc 60%, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.discordLink {
  color: #c4b5fd !important;
  border-bottom: 1px dashed rgba(168, 85, 247, 0.40);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}
.discordLink:hover { color: #fff !important; border-color: rgba(168, 85, 247, 0.95); }

/* ---------- Cards (features / dashboard / settings) ------------- */

.card,
.featureCard,
.editCard,
.settingsCard {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.06) 0%, rgba(7, 4, 14, 0.85) 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.15) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55),
              inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
  position: relative;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 240ms ease;
  overflow: hidden;
}
.card::before,
.featureCard::before,
.editCard::before,
.settingsCard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 0% 0%, rgba(168, 85, 247, 0.10), transparent 60%);
  pointer-events: none;
  opacity: 0.7;
}
.card:hover,
.featureCard:hover {
  border-color: rgba(168, 85, 247, 0.40) !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65),
              0 0 30px rgba(168, 85, 247, 0.20) !important;
}

.featureCard .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(59, 130, 246, 0.10)) !important;
  border: 1px solid rgba(168, 85, 247, 0.30);
  box-shadow: inset 0 0 18px rgba(168, 85, 247, 0.15);
  color: #c4b5fd;
}

/* ---------- Inputs / selects / textareas ------------------------ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
input[type="tel"],
select,
textarea {
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(168, 85, 247, 0.18) !important;
  color: #fff !important;
  border-radius: 10px !important;
  transition: border-color 160ms ease, box-shadow 220ms ease, background 160ms ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: rgba(168, 85, 247, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18),
              0 0 22px rgba(168, 85, 247, 0.30) !important;
  background: rgba(15, 8, 28, 0.85) !important;
}
::placeholder { color: rgba(168, 162, 197, 0.45) !important; }

/* ---------- Username size: compact, single-row widget --------- */
/* BUG FIX: shrunk paddings, slider thumb, number input, and removed
   flex-wrap so the whole control stays on ONE compact line.        */

.usernameSizeBlock .sizeRow {
  background: rgba(168, 85, 247, 0.04) !important;
  border: 1px solid rgba(168, 85, 247, 0.18) !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  min-height: 0 !important;
}
.usernameSizeBlock .sizeRow .sizeIcon { font-size: 11px !important; opacity: 0.55 !important; }
.usernameSizeBlock .sizeRow .sizeIcon.big { font-size: 16px !important; }
.usernameSizeBlock .sizeRow .pxNumberInput {
  width: 56px !important;
  height: 26px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background: rgba(0, 0, 0, 0.50) !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
  color: #fff !important;
  border-radius: 7px !important;
  padding: 2px 4px !important;
  text-align: center !important;
  -moz-appearance: textfield;
  appearance: textfield;
}
.usernameSizeBlock .sizeRow .pxNumberInput:focus {
  border-color: rgba(168, 85, 247, 0.85) !important;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.20) !important;
}
.usernameSizeBlock .sizeRow .pxNumberInput::-webkit-outer-spin-button,
.usernameSizeBlock .sizeRow .pxNumberInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.usernameSizeBlock .sizeRow .pxLabel {
  font-size: 11px !important;
  color: #c4b5fd !important;
  opacity: 0.85 !important;
  font-weight: 600;
  margin-left: 0 !important;
}
.usernameSizeBlock .sizeRow .sizePxBadge {
  background: rgba(168, 85, 247, 0.12) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(168, 85, 247, 0.30);
  font-size: 11px !important;
  padding: 2px 6px !important;
}

/* Slider: thinner track + smaller neon thumb */
.usernameSizeBlock input[type="range"].sizeSlider {
  height: 4px !important;
  background: linear-gradient(90deg,
      #a855f7 0%,
      #a855f7 var(--p, 50%),
      rgba(255, 255, 255, 0.10) var(--p, 50%),
      rgba(255, 255, 255, 0.10) 100%) !important;
  border-radius: 999px !important;
}
.usernameSizeBlock input[type="range"].sizeSlider::-webkit-slider-thumb {
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.28),
              0 0 10px rgba(168, 85, 247, 0.55) !important;
  border: none !important;
  width: 12px !important;
  height: 12px !important;
}
.usernameSizeBlock input[type="range"].sizeSlider::-moz-range-thumb {
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.28),
              0 0 10px rgba(168, 85, 247, 0.55) !important;
  border: none !important;
  width: 12px !important;
  height: 12px !important;
}

/* ---------- Toggle switches (checkboxes) ----------------------- */

input[type="checkbox"].toggle,
.toggle input[type="checkbox"],
input[type="checkbox"].switch {
  appearance: none;
  width: 40px; height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.20);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 240ms ease;
}
input[type="checkbox"].toggle::after,
.toggle input[type="checkbox"]::after,
input[type="checkbox"].switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
input[type="checkbox"].toggle:checked,
.toggle input[type="checkbox"]:checked,
input[type="checkbox"].switch:checked {
  background: linear-gradient(135deg, #a855f7, #6d28d9);
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.45);
}
input[type="checkbox"].toggle:checked::after,
.toggle input[type="checkbox"]:checked::after,
input[type="checkbox"].switch:checked::after {
  transform: translateX(18px);
}

/* ---------- Tabs ----------------------------------------------- */

.tab,
.tabBtn,
[role="tab"] {
  background: transparent !important;
  color: var(--text-mute) !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
.tab:hover,
.tabBtn:hover,
[role="tab"]:hover {
  color: #fff !important;
  background: rgba(168, 85, 247, 0.06) !important;
  border-color: rgba(168, 85, 247, 0.18) !important;
}
.tab.active,
.tabBtn.active,
[role="tab"][aria-selected="true"] {
  color: #fff !important;
  background: rgba(168, 85, 247, 0.10) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow: inset 0 -2px 0 #a855f7,
              0 0 18px rgba(168, 85, 247, 0.25);
}

/* ---------- Auth (login / register) ---------------------------- */

#view-auth {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}
#view-auth::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 50% 30%, rgba(168, 85, 247, 0.18), transparent 60%),
    radial-gradient(500px 400px at 50% 90%, rgba(59, 130, 246, 0.10), transparent 60%);
  pointer-events: none;
}
#view-auth > * { position: relative; z-index: 1; }
#view-auth .card,
#view-auth .authCard,
#view-auth form {
  background: rgba(7, 3, 14, 0.85) !important;
  border: 1px solid rgba(168, 85, 247, 0.30) !important;
  border-radius: 18px !important;
  padding: 36px !important;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7),
              0 0 60px rgba(168, 85, 247, 0.20),
              inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(20px);
}

/* ---------- Profile card -------------------------------------- */

.profileCard {
  border: 1px solid rgba(168, 85, 247, 0.20) !important;
}

/* ---------- Footer / minimal links ---------------------------- */

footer, .footer, .siteFooter {
  border-top: 1px solid rgba(168, 85, 247, 0.10);
  color: var(--text-mute);
}
footer a:hover, .footer a:hover { color: #c4b5fd; }

/* ---------- Toasts / popups ----------------------------------- */

.toast, .notification, .popup {
  background: rgba(10, 5, 18, 0.95) !important;
  border: 1px solid rgba(168, 85, 247, 0.40) !important;
  color: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7),
              0 0 30px rgba(168, 85, 247, 0.30) !important;
  backdrop-filter: blur(14px);
}

/* ---------- Discord block: badges, status dot, links ---------- */

.discordSync {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.10), rgba(168, 85, 247, 0.06)) !important;
  border: 1px solid rgba(88, 101, 242, 0.30) !important;
  border-radius: 12px !important;
  padding: 14px !important;
}
.dsAvatar {
  border: 2px solid rgba(88, 101, 242, 0.55) !important;
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.45) !important;
}
.dsStatusDot[data-status="online"] {
  background: #22c55e !important;
  box-shadow: 0 0 10px #22c55e, 0 0 4px #22c55e !important;
}
.dsStatusDot[data-status="offline"] {
  background: #6b7280 !important;
  box-shadow: none !important;
}
.dsBadges {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
/* BUG FIX: badges no longer have boxes / borders / pill backgrounds.
   See style.css `.dsBadge` for the canonical, transparent rule. */
.dsBadge {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 !important;
  font-size: 11px; font-weight: 700;
  color: #fff;
  background: transparent !important;
  border: none !important;
  border-radius: 4px;
  box-shadow: none !important;
  text-shadow: 0 0 6px rgba(167, 139, 250, 0.55);
}

/* ---------- Misc polish --------------------------------------- */

hr, .divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.35), transparent);
  margin: 22px 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.30),
              0 0 18px rgba(168, 85, 247, 0.45);
}

/* Reduce motion on hidden tabs / for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
  .btn, .card, .featureCard { transition: none !important; }
}

/* Mobile tweaks */
@media (max-width: 720px) {
  .heroSection h1 { font-size: clamp(34px, 9vw, 56px) !important; }
  body::after { background-size: 40px 40px, 40px 40px; }
  .usernameSizeBlock .sizeRow { gap: 6px !important; padding: 6px 8px !important; }
  .usernameSizeBlock .sizeRow .pxNumberInput { width: 50px !important; }
}
