@font-face {
  font-family: "Dela Gothic One";
  src: url("./materials/fonts/DelaGothicOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Spotify Mix UI";
  src: url("./materials/fonts/spotify_mix_ui_bold_0.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg-0: #07020f;
  --bg-1: #130527;
  --bg-2: #22083e;
  --text-main: #f1f4ff;
  --text-muted: #9aa4c2;
  --accent: #9000ff;
  --accent-soft: #9a42e3;
  --cyan: #1ee1ff;
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-border-soft: rgba(255, 255, 255, 0.14);
  --glass-fill: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body {
  font-family: "Spotify Mix UI", Arial, sans-serif;
  color: var(--text-main);
  background: linear-gradient(162deg, var(--bg-2) 0%, var(--bg-1) 44%, var(--bg-0) 100%);
  user-select: none;
  -webkit-user-select: none;
}

body.seamless-enter .lab-shell {
  opacity: 0;
  transform: translateY(12px) scale(0.995);
}

body.seamless-ready .lab-shell {
  opacity: 1;
  transform: none;
}

body.page-leaving .lab-shell {
  opacity: 0;
  transform: translateY(10px) scale(0.995);
}

.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 135% at 50% -5%, #5a1a96 0%, #3a0f68 24%, #1d0638 50%, #07020f 100%);
}

.aurora-bg::before {
  content: "";
  position: absolute;
  left: -22vw;
  top: -10vh;
  width: 78vw;
  height: 60vh;
  border-radius: 58% 42% 56% 44% / 62% 38% 60% 40%;
  background:
    radial-gradient(
      84% 72% at 62% 48%,
      rgba(206, 162, 255, 0.2) 0%,
      rgba(162, 104, 236, 0.14) 38%,
      rgba(108, 58, 181, 0.05) 68%,
      rgba(108, 58, 181, 0) 100%
    );
  border: 1px solid rgba(219, 184, 255, 0.18);
  box-shadow:
    inset -24px -18px 58px rgba(32, 12, 62, 0.26),
    0 0 34px rgba(156, 96, 224, 0.16);
  filter: blur(0.15px);
  opacity: 0.84;
  animation: leftBloomDrift 18s ease-in-out var(--bg-delay-left-sweep, 0s) infinite alternate;
  will-change: transform, opacity;
}

.aurora-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 120% at 50% 40%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.22) 58%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg, rgba(2, 2, 12, 0.12), rgba(2, 2, 12, 0.42));
}

.orb {
  position: absolute;
  border-radius: 50%;
}

.orb-a {
  width: 132vmax;
  height: 132vmax;
  left: -44vmax;
  top: -72vmax;
  background:
    radial-gradient(circle at 60% 62%, rgba(199, 151, 255, 0.52) 0%, rgba(142, 89, 224, 0.44) 42%, rgba(67, 30, 120, 0.2) 74%, transparent 100%),
    linear-gradient(140deg, rgba(154, 101, 232, 0.38), rgba(58, 24, 107, 0.2) 63%, transparent 100%);
  box-shadow:
    inset -50px -80px 130px rgba(18, 6, 34, 0.62),
    0 0 42px rgba(168, 103, 232, 0.14);
  animation: orbFloatA 18s ease-in-out var(--bg-delay-orb-a, 0s) infinite alternate;
  will-change: transform;
}

.orb-a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(214, 171, 255, 0.22);
  filter: blur(0.2px);
}

.orb-a::before {
  content: "";
  position: absolute;
  width: 58%;
  height: 44%;
  left: 10%;
  top: 42%;
  border-radius: 62% 38% 55% 45% / 60% 40% 58% 42%;
  background:
    radial-gradient(
      88% 70% at 58% 44%,
      rgba(216, 174, 255, 0.2) 0%,
      rgba(166, 109, 239, 0.14) 42%,
      rgba(109, 58, 182, 0.04) 72%,
      rgba(109, 58, 182, 0) 100%
    );
  border: 1px solid rgba(220, 185, 255, 0.2);
  box-shadow:
    inset -18px -14px 46px rgba(35, 13, 67, 0.24),
    0 0 30px rgba(160, 98, 228, 0.16);
  filter: blur(0.2px);
  opacity: 0.82;
  transform: rotate(-6deg);
}

.orb-b {
  width: 108vmax;
  height: 108vmax;
  right: -38vmax;
  bottom: -79vmax;
  background:
    radial-gradient(circle at 42% 30%, rgba(137, 92, 221, 0.34) 0%, rgba(88, 48, 167, 0.27) 38%, rgba(23, 8, 43, 0.9) 68%, rgba(9, 3, 17, 0.99) 100%),
    linear-gradient(160deg, rgba(119, 66, 197, 0.16), rgba(14, 5, 28, 0.95) 70%);
  box-shadow:
    inset -30px -48px 98px rgba(7, 2, 14, 0.84),
    0 0 26px rgba(138, 89, 217, 0.12);
  animation: orbFloatB 22s ease-in-out var(--bg-delay-orb-b, 0s) infinite alternate;
  will-change: transform;
}

.orb-b::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(208, 163, 255, 0.2);
  filter: blur(0.24px);
}

.orb-c {
  width: 86vmax;
  height: 86vmax;
  left: -54vmax;
  bottom: -56vmax;
  background:
    radial-gradient(circle at 66% 36%, rgba(156, 104, 230, 0.28) 0%, rgba(94, 49, 172, 0.2) 34%, rgba(24, 8, 45, 0.82) 70%, rgba(9, 3, 18, 0.98) 100%),
    linear-gradient(165deg, rgba(115, 64, 192, 0.15), rgba(8, 3, 20, 0.94) 70%);
  box-shadow:
    inset 18px -22px 78px rgba(7, 2, 13, 0.8),
    0 0 30px rgba(135, 83, 218, 0.1);
  animation: orbFloatC 20s ease-in-out var(--bg-delay-orb-c, 0s) infinite alternate;
  will-change: transform;
}

.orb-c::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(205, 158, 255, 0.16);
}

.bridge {
  position: absolute;
  left: 28%;
  top: 17%;
  width: 58vw;
  height: 48vh;
  border-radius: 56% 44% 55% 45% / 56% 46% 54% 44%;
  background: radial-gradient(
    ellipse at 35% 38%,
    rgba(203, 152, 246, 0.28) 0%,
    rgba(145, 89, 214, 0.17) 44%,
    rgba(112, 63, 179, 0) 80%
  );
  filter: blur(12px);
  transform: rotate(-8deg);
  opacity: 0.56;
  animation: bridgeDrift 16s ease-in-out var(--bg-delay-bridge, 0s) infinite alternate;
  will-change: transform, opacity;
}

.sweep {
  position: absolute;
  left: -6vw;
  bottom: 8vh;
  width: 122vw;
  height: 34vh;
  border-radius: 50%;
  border-top: 2px solid rgba(205, 167, 255, 0.35);
  transform: rotate(7deg);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.18),
    0 0 24px rgba(157, 95, 219, 0.14);
  animation: sweepMove 14s ease-in-out var(--bg-delay-sweep, 0s) infinite alternate;
  will-change: transform;
}

.sweep::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  height: 100%;
  border-radius: 50%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.62;
}

.left-sweep {
  position: absolute;
  left: -22vw;
  top: 24vh;
  width: 76vw;
  height: 54vh;
  border-radius: 50%;
  border-right: 2px solid rgba(203, 163, 255, 0.22);
  transform: rotate(-15deg);
  box-shadow: 0 0 28px rgba(149, 89, 215, 0.1);
  animation: leftSweepMove 19s ease-in-out var(--bg-delay-left-sweep, 0s) infinite alternate;
  will-change: transform;
}

.left-sweep::before {
  content: "";
  position: absolute;
  inset: 4% 3%;
  border-radius: 50%;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.left-sweep::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 8%;
  width: 74%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 121, 248, 0.12), rgba(60, 20, 107, 0) 66%);
  filter: blur(8px);
}

.left-top-accent {
  position: absolute;
  left: -18vw;
  top: -20vh;
  width: 70vw;
  height: 66vh;
  border-radius: 55% 45% 52% 48% / 62% 38% 58% 42%;
  border: 1.6px solid rgba(214, 173, 255, 0.3);
  border-right-color: rgba(214, 173, 255, 0.12);
  border-bottom-color: rgba(214, 173, 255, 0.1);
  background:
    radial-gradient(
      92% 84% at 54% 60%,
      rgba(218, 176, 255, 0.16) 0%,
      rgba(169, 111, 239, 0.08) 40%,
      rgba(120, 69, 194, 0.02) 68%,
      rgba(120, 69, 194, 0) 100%
    );
  box-shadow:
    inset -20px -18px 52px rgba(31, 12, 61, 0.26),
    0 0 28px rgba(168, 106, 235, 0.2);
  opacity: 0.92;
  transform: rotate(-10deg);
  z-index: 3;
  animation: leftTopAccentMove 17s ease-in-out var(--bg-delay-orb-a, 0s) infinite alternate;
  will-change: transform, opacity;
}

.noise,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  z-index: 1;
  opacity: 0.024;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.55px, transparent 0.55px);
  background-size: 2px 2px;
}

.scanlines {
  z-index: 1;
  opacity: 0.015;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.42) 0,
    rgba(255, 255, 255, 0.42) 1px,
    transparent 1px,
    transparent 4px
  );
}

html.bg-static .aurora-bg {
  background: linear-gradient(162deg, rgba(53, 25, 88, 0.96) 0%, rgba(36, 16, 66, 0.98) 46%, rgba(23, 10, 41, 1) 100%);
}

html.bg-static .aurora-bg::before,
html.bg-static .orb,
html.bg-static .bridge,
html.bg-static .sweep,
html.bg-static .left-sweep,
html.bg-static .left-top-accent {
  opacity: 0;
  animation: none !important;
}

html.bg-static .aurora-bg::after {
  background: linear-gradient(180deg, rgba(2, 2, 12, 0.2), rgba(2, 2, 12, 0.48));
}

.aurora-bg,
.aurora-bg::before,
.aurora-bg::after,
.orb,
.bridge,
.sweep,
.left-sweep,
.left-top-accent {
  transition: opacity 340ms ease, filter 340ms ease, background 340ms ease;
}

.lab-shell {
  position: relative;
  z-index: 2;
  max-width: 1260px;
  margin: 0 auto;
  padding: clamp(10px, 2vh, 22px) clamp(18px, 4vw, 56px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 1;
  filter: blur(0px);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease, filter 460ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
}

body.settings-open .lab-shell {
  filter: blur(10px);
  transform: scale(0.995);
}

.center-hub {
  margin: 0 auto;
  max-width: 1120px;
  width: 100%;
}

.home-page .lab-shell {
  justify-content: center;
  gap: 14px;
  padding-top: clamp(10px, 2vh, 22px);
  padding-bottom: clamp(10px, 2vh, 22px);
}

.home-page #floatingNavApp {
  flex: 0 0 auto;
  width: 100%;
  max-width: 1120px;
  margin: 35px auto 0;
}

.home-page .floating-nav,
.home-page .floating-nav-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.home-page .nav-float {
  aspect-ratio: 1 / 1;
}

.tools-page .center-hub {
  position: relative;
}

.center-menu-shell {
  width: 100% !important;
  display: block !important;
}

.center-menu {
  border-radius: 32px;
  position: relative;
  overflow: visible;
  isolation: isolate;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03) 62%),
    rgba(11, 10, 42, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 20px 38px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px) saturate(128%);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
}

.center-menu::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(124% 118% at 50% -10%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 62%);
  opacity: 0.22;
  z-index: 0;
}

.center-menu::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  opacity: 0.72;
  z-index: 0;
}

.home-page .center-menu,
.tools-page .center-menu {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.003) 58%),
    rgba(11, 10, 42, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px) saturate(112%);
  -webkit-backdrop-filter: blur(16px) saturate(112%);
}

.home-page .center-menu::before,
.tools-page .center-menu::before {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 58%);
  opacity: 0.044;
}

.home-page .center-menu::after,
.tools-page .center-menu::after {
  border-color: rgba(255, 255, 255, 0.06);
  opacity: 0.5;
}

.home-page .center-login,
.home-page .center-settings,
.tools-page .center-login,
.tools-page .center-settings {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.003) 58%),
    rgba(11, 10, 42, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px) saturate(112%);
  -webkit-backdrop-filter: blur(16px) saturate(112%);
}

.home-page .center-login:hover,
.home-page .center-settings:hover,
.tools-page .center-login:hover,
.tools-page .center-settings:hover {
  border-color: rgba(186, 136, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 30px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(130, 94, 236, 0.1);
}

.center-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.center-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.center-brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(13%) sepia(99%) saturate(7488%) hue-rotate(272deg) brightness(102%) contrast(130%) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.34)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.24));
}

.center-brand-text {
  font-family: "Dela Gothic One", Arial, sans-serif;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.42),
    0 8px 16px rgba(0, 0, 0, 0.28);
}

.brand-hood {
  color: #ffffff;
}

.brand-flow {
  color: #9000ff;
}

.center-login,
.center-settings {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 64%),
    rgba(14, 11, 48, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 8px 20px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.center-login:hover,
.center-settings:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 155, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 24px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(150, 95, 238, 0.22);
}

.center-login-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.34)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.24));
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 28;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 380ms;
}

.settings-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(125, 74, 206, 0.2), rgba(13, 8, 29, 0.6) 68%),
    linear-gradient(180deg, rgba(12, 7, 24, 0.22), rgba(7, 4, 16, 0.6));
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1), backdrop-filter 380ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-backdrop-filter 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.settings-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.settings-overlay.is-open::before {
  opacity: 1;
  backdrop-filter: blur(14px) saturate(122%);
  -webkit-backdrop-filter: blur(14px) saturate(122%);
}

.settings-modal {
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  width: min(520px, 92vw);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.003) 58%),
    rgba(11, 10, 42, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px) saturate(112%);
  -webkit-backdrop-filter: blur(16px) saturate(112%);
  padding: 22px 22px 20px;
  transform: translateY(24px) scale(0.965);
  opacity: 0;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.settings-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 58%);
  opacity: 0.044;
}

.settings-modal::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.5;
}

.settings-modal > * {
  position: relative;
  z-index: 1;
}

.settings-overlay.is-open .settings-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.settings-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: #e8edff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.003) 58%),
    rgba(11, 10, 42, 0.04);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12);
  transition: transform 180ms ease, border-color 180ms ease;
}

.settings-close:hover {
  transform: translateY(-1px);
  border-color: rgba(186, 136, 255, 0.42);
}

.settings-title {
  margin: 4px 0 18px;
  font-family: "Spotify Mix UI", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
  color: #edf0ff;
}

.settings-option {
  min-height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.003) 58%),
    rgba(11, 10, 42, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.12);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.settings-option-text {
  color: rgba(236, 241, 255, 0.96);
  font-size: 17px;
  line-height: 1.1;
}

.settings-switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 52px;
  cursor: pointer;
}

.settings-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.settings-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(61, 35, 104, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background-color 220ms ease, border-color 220ms ease;
  cursor: pointer;
}

.settings-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef2ff;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease;
}

.settings-switch-input:checked + .settings-switch-track {
  background: rgba(144, 0, 255, 0.78);
  border-color: rgba(196, 151, 255, 0.78);
}

.settings-switch-input:checked + .settings-switch-track::after {
  transform: translateX(22px);
}

.floating-nav {
  margin: 0 auto;
  max-width: 1120px;
  width: 100%;
}

.floating-nav-grid,
.floating-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 18px;
}

.nav-float-shell {
  width: 100% !important;
  display: block !important;
}

.nav-float {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.003) 58%),
    rgba(11, 10, 42, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(40px) saturate(112%);
  -webkit-backdrop-filter: blur(40px) saturate(112%);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background-color 260ms ease;
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.nav-float.is-locked {
  filter: none;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.01) 58%),
    linear-gradient(160deg, rgba(42, 42, 52, 0.38), rgba(16, 16, 22, 0.58) 72%),
    rgba(10, 10, 14, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
}

.nav-float.is-locked:hover {
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 18px 34px rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-float.is-locked .nav-float-icon {
  filter: grayscale(1) brightness(0.9) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.nav-float.is-locked .nav-float-label {
  color: rgba(230, 233, 240, 0.88);
}

.nav-float-lock {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
  line-height: 1;
  z-index: 2;
}

.nav-float::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 58%);
  opacity: 0.044;
  transition: opacity 260ms ease, transform 300ms ease;
  z-index: 0;
}

.nav-float:hover {
  transform: translateY(-4px);
  border-color: rgba(186, 136, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 30px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(130, 94, 236, 0.1);
}

.nav-float:hover::before {
  opacity: 0.46;
  transform: translate(4px, 3px);
}

.nav-float-static {
  cursor: default;
}

.nav-float-static:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12);
}

.nav-float-static:hover::before {
  opacity: 0.3;
  transform: none;
}

.nav-float-icon-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.nav-float-icon {
  width: clamp(46px, 4.2vw, 60px);
  height: clamp(46px, 4.2vw, 60px);
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.32));
}

.nav-float-label {
  font-family: "Dela Gothic One", Arial, sans-serif;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #edf0ff;
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  margin: 0;
}

.welcome-card {
  justify-content: center;
  gap: 16px;
  padding: 22px 16px;
}

.home-page .welcome-card {
  justify-content: flex-start;
  padding-top: 34px;
  padding-bottom: 28px;
}

.welcome-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: "Spotify Mix UI", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.65vw, 26px);
  line-height: 1.08;
  color: #f2f5ff;
  text-align: center;
  letter-spacing: 0.01em;
  text-wrap: balance;
  gap: 4px;
}

.welcome-title-main {
  display: block;
}

.tools-shell {
  justify-content: flex-start;
  gap: 0;
  padding-top: var(--hf-header-top, clamp(68px, 9vh, 96px));
}

.tools-top-nav-wrap {
  position: absolute;
  left: var(--tools-nav-left, 68px);
  top: 0;
  width: var(--tools-nav-width, 240px);
  max-width: calc(100% - 120px);
  z-index: 0;
  pointer-events: none;
}

.tools-top-nav {
  pointer-events: auto;
  width: 100%;
  min-height: 48px;
  border-radius: 16px 16px 0 0;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.003) 58%),
    rgba(11, 10, 42, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px) saturate(112%);
  -webkit-backdrop-filter: blur(16px) saturate(112%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 0 14px;
  transform: translateY(calc(-100% + 1px));
  opacity: 0;
  filter: blur(6px);
  will-change: opacity, filter;
}

.tools-top-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 58%);
  opacity: 0.044;
  z-index: 0;
}

.tools-top-nav::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.5;
  z-index: 0;
}

.tools-top-nav > * {
  position: relative;
  z-index: 1;
}

body.seamless-ready .tools-top-nav {
  opacity: 1;
  filter: blur(0);
  transition: opacity 360ms ease, filter 360ms ease;
}

.tools-back {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #f2f5ff;
  line-height: 0;
  padding-top: 0;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.003) 58%),
    rgba(11, 10, 42, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px) saturate(112%);
  -webkit-backdrop-filter: blur(16px) saturate(112%);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.tools-back-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

.tools-back:hover {
  transform: translateY(-1px);
  border-color: rgba(193, 146, 255, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 30px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(130, 94, 236, 0.1);
}

.tools-nav-sep {
  color: rgba(239, 244, 255, 0.66);
  font-size: 17px;
  transform: translateY(-1px);
}

.tools-nav-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.tools-nav-text {
  font-family: "Dela Gothic One", Arial, sans-serif;
  color: #edf0ff;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.tools-header {
  overflow: visible;
  isolation: isolate;
  position: relative;
  z-index: 1;
}

.tools-header .center-brand,
.tools-header .center-actions,
.tools-header .center-login,
.tools-header .center-settings {
  position: relative;
  z-index: 2;
}

.tools-converter-wrap {
  width: 100%;
  max-width: 1120px;
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.converter-main {
  --tool-glow-rgb: 144, 0, 255;
  --copy-rgb: 144, 0, 255;
  --copy-icon-rgb: 246, 249, 255;
  width: min(920px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.003) 58%),
    rgba(11, 10, 42, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px) saturate(112%);
  -webkit-backdrop-filter: blur(22px) saturate(112%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 22px 22px 20px;
}

.converter-main::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 58%);
  opacity: 0.044;
  z-index: 0;
}

.converter-main::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.5;
  z-index: 0;
}

.converter-main > * {
  position: relative;
  z-index: 1;
}

.converter-head {
  display: block;
  margin-bottom: 20px;
}

.converter-title {
  margin: 0;
  font-family: "Spotify Mix UI", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.color-picker-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.converter-palette {
  display: grid;
  gap: 10px;
}

.palette-title {
  color: rgba(255, 255, 255, 0.92);
}

.palette-strip {
  width: 100%;
  height: 66px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  overflow: hidden;
  cursor: pointer;
  background: rgba(11, 10, 42, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12),
    0 0 29px rgba(var(--tool-glow-rgb), 0.5);
  transition: box-shadow 220ms ease;
}

.palette-strip-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: rgb(var(--tool-glow-rgb));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background-color 180ms ease;
}

.converter-gap {
  height: 20px;
}

.converter-codes {
  display: grid;
  gap: 12px;
}

.converter-code-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
}

.converter-field-label,
.converter-code-label {
  color: rgba(223, 231, 255, 0.82);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.converter-code-label {
  color: rgba(255, 255, 255, 0.95);
  font-family: "Spotify Mix UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.09em;
}

.converter-input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  outline: none;
  font: inherit;
  font-size: 15px;
  color: #eef2ff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.003) 58%),
    rgba(11, 10, 42, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px) saturate(112%);
  -webkit-backdrop-filter: blur(16px) saturate(112%);
  padding: 0 12px;
  transition: border-color 200ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.converter-input:focus {
  border-color: rgba(var(--tool-glow-rgb), 0.72);
  box-shadow: 0 0 0 3px rgba(var(--tool-glow-rgb), 0.24);
}

.copy-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  border: 1px solid rgba(23, 14, 46, 0.76);
  background: rgb(var(--copy-rgb));
  color: #f3f6ff;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(14, 9, 30, 0.46),
    0 0 0 2px rgba(255, 255, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 16px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 160ms ease, box-shadow 220ms ease, border-color 200ms ease, filter 200ms ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 18, 56, 0.9);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(12, 8, 28, 0.56),
    0 0 0 2px rgba(255, 255, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 26px rgba(0, 0, 0, 0.24);
}

.copy-btn-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.copy-btn-icon::before,
.copy-btn-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(var(--copy-icon-rgb), 0.96);
  border-radius: 3px;
}

.copy-btn-icon::before {
  top: 3px;
  left: 3px;
  opacity: 0.86;
}

.copy-btn-icon::after {
  top: 0;
  left: 0;
}

.copy-btn.copied {
  filter: saturate(1.2) brightness(1.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}

.tools-empty-stage {
  width: 100%;
  max-width: 1120px;
  min-height: min(60vh, 560px);
  margin-top: 35px;
}

.about-stage {
  width: 100%;
  max-width: 1120px;
  min-height: min(60vh, 560px);
  margin-top: 26px;
  display: flex;
  align-items: stretch;
}

.about-card {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.003) 58%),
    rgba(11, 10, 42, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px) saturate(112%);
  -webkit-backdrop-filter: blur(22px) saturate(112%);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 34px 24px;
  text-align: center;
}

.about-line {
  margin: 0;
  color: rgba(236, 241, 255, 0.94);
  font-family: "Spotify Mix UI", Arial, sans-serif;
  font-size: clamp(19px, 2.2vw, 32px);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.about-heart-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: -4px;
  margin-left: 6px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
}

.section-menu-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.section-menu-grid .nav-float {
  aspect-ratio: 1 / 1;
}

.section-menu-grid .nav-float.is-active {
  border-color: rgba(192, 146, 255, 0.56);
}

.section-intro {
  justify-content: center;
  gap: 12px;
  padding: 22px 16px;
}

.section-intro-title {
  margin: 0;
  font-family: "Spotify Mix UI", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  color: #f2f5ff;
  text-align: center;
  text-wrap: balance;
}

.section-intro-desc {
  margin: 0;
  max-width: 92%;
  font-family: "Spotify Mix UI", Arial, sans-serif;
  font-weight: 700;
  color: rgba(224, 229, 255, 0.76);
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.28;
  text-align: center;
  text-wrap: balance;
}

@keyframes orbFloatA {
  from { transform: translate3d(-2.2%, -1.2%, 0) rotate(0deg); }
  to { transform: translate3d(2.2%, 1.6%, 0) rotate(5deg); }
}

@keyframes orbFloatB {
  from { transform: translate3d(2.8%, 2.2%, 0) rotate(0deg); }
  to { transform: translate3d(-2.5%, -1.6%, 0) rotate(-4deg); }
}

@keyframes orbFloatC {
  from { transform: translate3d(-2%, 2%, 0) rotate(0deg); }
  to { transform: translate3d(2.5%, -2%, 0) rotate(4deg); }
}

@keyframes bridgeDrift {
  from { transform: rotate(-8deg) translate3d(-1%, -1%, 0); opacity: 0.52; }
  to { transform: rotate(-5deg) translate3d(1%, 1%, 0); opacity: 0.63; }
}

@keyframes sweepMove {
  from { transform: rotate(7deg) translate3d(-1.2%, 0, 0); }
  to { transform: rotate(8.5deg) translate3d(1.2%, 1.2%, 0); }
}

@keyframes leftSweepMove {
  from { transform: rotate(-15deg) translate3d(-1.4%, 0, 0); }
  to { transform: rotate(-13deg) translate3d(1.6%, 1.2%, 0); }
}

@keyframes leftBloomDrift {
  from { transform: translate3d(-1.8%, -1.2%, 0) rotate(-2deg); opacity: 0.78; }
  to { transform: translate3d(1.2%, 1.4%, 0) rotate(2deg); opacity: 0.9; }
}

@keyframes leftTopAccentMove {
  from { transform: rotate(-10deg) translate3d(-1.6%, -1%, 0); opacity: 0.86; }
  to { transform: rotate(-6deg) translate3d(1.2%, 1.6%, 0); opacity: 0.96; }
}

@media (max-width: 880px) {
  .lab-shell {
    justify-content: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 10px;
  }

  .center-hub {
    max-width: 1160px;
  }

  .floating-nav {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 14px;
    max-width: 1160px;
  }

  .floating-nav-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 14px;
  }

  .section-menu-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 14px;
  }

  .converter-main {
    padding: 20px 16px 18px;
  }

  .converter-code-row {
    grid-template-columns: 62px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .nav-float {
    gap: 10px;
    padding: 14px 12px;
  }

  .nav-float-icon-wrap {
    width: 74px;
    height: 74px;
  }
}

@media (max-width: 560px) {
  .converter-title {
    font-size: clamp(22px, 8vw, 30px);
  }

  .converter-code-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .converter-code-label {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .copy-btn {
    justify-self: end;
  }

  .floating-nav {
    grid-template-columns: 1fr;
  }

  .floating-nav-grid {
    grid-template-columns: 1fr;
  }

  .section-menu-grid {
    grid-template-columns: 1fr;
  }

  .nav-float-label {
    font-size: clamp(20px, 8vw, 30px);
  }
}
