/* =====================================================================
   enhancements3.css
   Round 3 polish:
     • Checkmark fully fills the box (white, clean)
     • Username position spacing (left/right look natural)
     • Custom px slider for username size (volume-knob style)
     • Display Name field
     • Bio animations
     • More fonts + name effects
     • Edit form tabbed layout (desktop side-tabs, mobile stacked)
     • Lanyard hidden / replaced with Discord OAuth panel
     • Smoother global animations + perf
   ===================================================================== */

/* ---------- 1) Checkmarks: fill the WHOLE box, clean white --------- */
.toggleLabel input[type="checkbox"],
input[type="checkbox"].seeknCheck,
.checkbox input[type="checkbox"],
.field input[type="checkbox"],
.signupExtras input[type="checkbox"],
.discordToggleGrid input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  border: 1.5px solid rgba(255,255,255,0.35) !important;
  border-radius: 5px !important;
  background: rgba(255,255,255,0.05) !important;
  display: inline-grid !important;
  place-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  transition: background 140ms ease, border-color 140ms ease, transform 100ms ease;
  vertical-align: middle !important;
  flex: 0 0 20px !important;
  padding: 0 !important;
  margin: 0 8px 0 0 !important;
}
.toggleLabel input[type="checkbox"]:hover,
.field input[type="checkbox"]:hover {
  border-color: rgba(255,255,255,0.6) !important;
  background: rgba(255,255,255,0.08) !important;
}
.toggleLabel input[type="checkbox"]:checked,
.field input[type="checkbox"]:checked,
.signupExtras input[type="checkbox"]:checked,
.discordToggleGrid input[type="checkbox"]:checked {
  background: #ffffff !important;
  border-color: #ffffff !important;
}
.toggleLabel input[type="checkbox"]::before,
.field input[type="checkbox"]::before,
.signupExtras input[type="checkbox"]::before,
.discordToggleGrid input[type="checkbox"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 80% 80%;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(0);
  opacity: 0;
  transition: transform 160ms cubic-bezier(.34,1.56,.64,1), opacity 120ms ease;
}
.toggleLabel input[type="checkbox"]:checked::before,
.field input[type="checkbox"]:checked::before,
.signupExtras input[type="checkbox"]:checked::before,
.discordToggleGrid input[type="checkbox"]:checked::before {
  transform: scale(1);
  opacity: 1;
}

/* Kill any old SVG masks/check graphics from previous rounds */
.seeknCheckmark, .checkmarkSvg, .checkOverlay, .checkmark::after, .checkmark::before {
  display: none !important;
}

/* ---------- 2) Username position spacing -------------------------- */
#profileNameWrap[data-pos="left"] {
  text-align: left !important;
  align-items: flex-start !important;
  padding-left: 6px;
  margin-right: auto;
  margin-left: 0;
}
#profileNameWrap[data-pos="right"] {
  text-align: right !important;
  align-items: flex-end !important;
  padding-right: 6px;
  margin-left: auto;
  margin-right: 0;
}
#profileNameWrap[data-pos="center"] {
  text-align: center !important;
  align-items: center !important;
  margin-left: auto;
  margin-right: auto;
}
#profileNameWrap .profileBio { max-width: 100%; }

/* ---------- 3) Username size slider (volume-knob style) ----------- */
.usernameSizeBlock { display: flex; flex-direction: column; gap: 8px; }
.usernameSizeBlock .sizeRow {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
}
.usernameSizeBlock .sizeRow .sizeIcon {
  font-size: 12px;
  opacity: 0.6;
  width: 14px;
  text-align: center;
  user-select: none;
}
.usernameSizeBlock .sizeRow .sizeIcon.big { font-size: 22px; }
.usernameSizeBlock input[type="range"].sizeSlider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #a78bfa 0%,
    #a78bfa var(--p, 50%),
    rgba(255,255,255,0.12) var(--p, 50%),
    rgba(255,255,255,0.12) 100%
  );
  outline: none;
  cursor: pointer;
}
.usernameSizeBlock input[type="range"].sizeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #a78bfa;
  cursor: grab;
  box-shadow: 0 0 10px rgba(167,139,250,0.6);
  transition: transform 100ms ease, box-shadow 200ms ease;
}
.usernameSizeBlock input[type="range"].sizeSlider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #a78bfa;
  cursor: grab;
  box-shadow: 0 0 10px rgba(167,139,250,0.6);
}
.usernameSizeBlock input[type="range"].sizeSlider:active::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(167,139,250,0.9);
  cursor: grabbing;
}
.usernameSizeBlock .sizePxBadge {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  background: rgba(167,139,250,0.18);
  border: 1px solid rgba(167,139,250,0.35);
  color: #c4b5fd;
  padding: 4px 10px;
  border-radius: 999px;
  min-width: 56px;
  text-align: center;
  user-select: none;
}

/* hide the original select once replaced */
#editUsernameSize.replaced { display: none !important; }

/* Apply the px size live to the profile + preview name */
.profileName[data-px-size] {
  font-size: var(--name-px, 32px) !important;
  line-height: 1.1 !important;
}

/* ---------- 4) Display Name field ---------------------------------- */
.displayNameField .small {
  font-size: 11px;
  opacity: 0.55;
  margin-top: 2px;
}

/* ---------- 5) Bio animations ------------------------------------- */
.bio-anim-fade  { animation: seeknFadeIn 600ms ease both; }
.bio-anim-slide { animation: seeknSlideUp 700ms cubic-bezier(.2,.8,.2,1) both; }
.bio-anim-glow  { animation: seeknBioGlow 2.4s ease-in-out infinite; }
.bio-anim-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: seeknMarquee 14s linear infinite;
  padding-left: 100%;
}
.bio-anim-typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid currentColor;
  animation: seeknTypewriter 2.8s steps(40, end) both, seeknCaret 0.8s step-end infinite;
}

@keyframes seeknFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes seeknSlideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes seeknBioGlow { 0%, 100% { text-shadow: 0 0 6px currentColor; } 50% { text-shadow: 0 0 14px currentColor; } }
@keyframes seeknMarquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes seeknTypewriter { from { width: 0; } to { width: 100%; } }
@keyframes seeknCaret { 50% { border-color: transparent; } }

/* ---------- 6) Extra name effects (gradient/neon/glitch/shadow) --- */
.profileName.fx-gradient {
  background: linear-gradient(90deg, var(--fx-color, #a78bfa), #ec4899, #06b6d4, var(--fx-color, #a78bfa));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: seeknGradient 6s linear infinite;
}
@keyframes seeknGradient { from { background-position: 0% 0%; } to { background-position: 300% 0%; } }
.profileName.fx-neon {
  color: #fff !important;
  text-shadow:
    0 0 5px var(--fx-color, #a78bfa),
    0 0 10px var(--fx-color, #a78bfa),
    0 0 20px var(--fx-color, #a78bfa),
    0 0 40px var(--fx-color, #a78bfa);
}
.profileName.fx-glow-pulse {
  animation: seeknPulse 2.6s ease-in-out infinite;
}
@keyframes seeknPulse { 0%,100% { text-shadow: 0 0 4px var(--fx-color, #a78bfa); } 50% { text-shadow: 0 0 18px var(--fx-color, #a78bfa); } }
.profileName.fx-glitch { position: relative; }
.profileName.fx-glitch::before,
.profileName.fx-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.profileName.fx-glitch::before {
  color: #ec4899;
  transform: translate(2px, 0);
  mix-blend-mode: screen;
  animation: seeknGlitchA 2s steps(2) infinite;
}
.profileName.fx-glitch::after {
  color: #06b6d4;
  transform: translate(-2px, 0);
  mix-blend-mode: screen;
  animation: seeknGlitchB 2s steps(2) infinite;
}
@keyframes seeknGlitchA { 0%,100% { clip-path: inset(0 0 80% 0); } 50% { clip-path: inset(60% 0 0 0); } }
@keyframes seeknGlitchB { 0%,100% { clip-path: inset(80% 0 0 0); } 50% { clip-path: inset(0 0 60% 0); } }
.profileName.fx-shadow {
  text-shadow: 4px 4px 0 var(--fx-color, #a78bfa);
}
.profileName.fx-rainbow {
  background: linear-gradient(90deg, #ff5757, #ffbd59, #ffde59, #7ed957, #38b6ff, #5e17eb, #ff66c4);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: seeknGradient 5s linear infinite;
}

/* ---------- 7) Tabbed edit form ----------------------------------- */
.editTabsBar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  margin-bottom: 16px;
  position: sticky;
  top: 8px;
  z-index: 5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.editTabsBar button {
  flex: 1 1 110px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, transform 100ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.editTabsBar button:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
}
.editTabsBar button.active {
  background: linear-gradient(135deg, rgba(167,139,250,0.25), rgba(236,72,153,0.18));
  color: #fff;
  border-color: rgba(167,139,250,0.4);
  box-shadow: 0 0 0 1px rgba(167,139,250,0.25), 0 6px 20px -8px rgba(167,139,250,0.5);
}
.editTabsBar button .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }

[data-edit-tab] { display: none; }
[data-edit-tab].active { display: block; animation: seeknTabIn 220ms ease both; }
@keyframes seeknTabIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* On big screens, allow side-by-side fields inside a tab */
@media (min-width: 980px) {
  [data-edit-tab].active .fieldGridTwo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  [data-edit-tab].active .connectionsGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .editTabsBar { padding: 6px; gap: 4px; }
  .editTabsBar button { flex: 1 1 calc(50% - 4px); padding: 9px 8px; font-size: 12px; }
}

/* ---------- 8) Lanyard removal + Discord OAuth highlight ---------- */
[data-lanyard-block], .lanyardPanel, #discordSync .lanyardPanel {
  display: none !important;
}
#discordVerifyBox {
  background: linear-gradient(135deg, rgba(88,101,242,0.10), rgba(88,101,242,0.04));
  border: 1px solid rgba(88,101,242,0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 8px 0;
}
#discordVerifyBox h4 { margin: 0 0 6px; font-size: 14px; color: #c7d2fe; display: flex; align-items: center; gap: 8px; }
#discordVerifyBox p { margin: 0 0 10px; font-size: 12px; color: rgba(255,255,255,0.7); }
#discordVerifyBox .verifyRow { display: flex; gap: 8px; flex-wrap: wrap; }
#discordVerifyBox button {
  padding: 8px 14px;
  border-radius: 8px;
  background: #5865F2;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: background 140ms ease, transform 80ms ease;
}
#discordVerifyBox button:hover { background: #4752C4; }
#discordVerifyBox button:active { transform: scale(0.97); }
#discordVerifyBox .verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  color: #86efac;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- 9) Display Name preview row --------------------------- */
.namePreviewRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.10);
  border-radius: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}
.namePreviewRow strong { color: #fff; font-weight: 600; }

/* ---------- 10) Performance + smoothing --------------------------- */
section.view { content-visibility: auto; contain-intrinsic-size: 1px 800px; }
section.view.active { content-visibility: visible; }

img, video { will-change: auto; }
.profileCard, .editCard, .card { transform: translateZ(0); }

/* Reduce expensive blurs on mobile / low-power */
@media (max-width: 720px), (prefers-reduced-motion: reduce) {
  body, .profileCard, .editCard, .card, .userDropdown {
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }
  .nameFx, .bgFx, .floatingFx { display: none !important; }
}

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

/* ---------- 11) Brand connection icon polish (final) -------------- */
a.connIcon {
  transition: transform 140ms ease, filter 140ms ease, box-shadow 200ms ease;
}
a.connIcon:hover { transform: translateY(-2px) scale(1.05); }
a.connIcon svg { width: 60% !important; height: 60% !important; display: block; }
