:root {
  --bg: #07080a;
  --bg-2: #101216;
  --surface: rgba(20, 22, 28, 0.62);
  --surface-strong: rgba(8, 9, 12, 0.88);
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f6f7fb;
  --muted: #8d929e;
  --soft: #c5cad4;
  --accent: #5d8cff;
  --cover-accent: #75a9ff;
  --cover-accent-soft: #b6dcff;
  --accent-2: #ff3d63;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
  --radius: 34px;
}

:root[data-theme="light"] {
  --bg: #f4f5f8;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --glass: rgba(10, 14, 24, 0.06);
  --line: rgba(16, 20, 30, 0.12);
  --text: #101217;
  --muted: #696f7b;
  --soft: #363b46;
  --shadow: 0 30px 80px rgba(36, 42, 55, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 28rem),
    radial-gradient(circle at 92% 26%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 24rem),
    linear-gradient(180deg, var(--bg-2), var(--bg) 42rem);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.topbar,
main,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  isolation: isolate;
}

.brand,
.nav,
.status-strip,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 24%, transparent);
}

.nav {
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.site-version-switch {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-height: 34px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.055));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.site-version-switch a {
  min-width: 78px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.site-version-switch a.is-active {
  color: #111318;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.8);
}

:root[data-theme="light"] .site-version-switch {
  border-color: rgba(10,14,24,.12);
  background: rgba(255,255,255,.7);
}

:root[data-theme="light"] .site-version-switch a.is-active {
  color: #fff;
  background: #111318;
}

body.site-enter-from-right .topbar > :not(.site-version-switch),
body.site-enter-from-right main,
body.site-enter-from-right .footer,
body.site-enter-from-right::before {
  animation: pageEnterFromRight 520ms cubic-bezier(.16, 1, .3, 1) both;
}

body.site-enter-from-left .topbar > :not(.site-version-switch),
body.site-enter-from-left main,
body.site-enter-from-left .footer,
body.site-enter-from-left::before {
  animation: pageEnterFromLeft 520ms cubic-bezier(.16, 1, .3, 1) both;
}

body.site-exit-left .topbar > :not(.site-version-switch),
body.site-exit-left main,
body.site-exit-left .footer,
body.site-exit-left::before {
  animation: pageExitLeft 360ms cubic-bezier(.7, 0, .84, 0) both;
}

body.site-exit-right .topbar > :not(.site-version-switch),
body.site-exit-right main,
body.site-exit-right .footer,
body.site-exit-right::before {
  animation: pageExitRight 360ms cubic-bezier(.7, 0, .84, 0) both;
}

@keyframes pageEnterFromRight {
  from { opacity: 0; transform: translateX(74px) scale(.985); filter: blur(10px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes pageEnterFromLeft {
  from { opacity: 0; transform: translateX(-74px) scale(.985); filter: blur(10px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes pageExitLeft {
  from { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateX(-96px) scale(.98); filter: blur(12px); }
}

@keyframes pageExitRight {
  from { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateX(96px) scale(.98); filter: blur(12px); }
}

.nav a,
.theme-toggle {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.nav a:hover,
.theme-toggle:hover {
  color: var(--text);
  background: var(--glass);
}

.theme-toggle {
  width: 54px;
  padding: 4px;
  background: color-mix(in srgb, var(--accent) 22%, var(--glass));
}

.theme-toggle span {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(0);
  transition: transform 240ms cubic-bezier(.2,.8,.2,1);
}

:root[data-theme="light"] .theme-toggle span {
  transform: translateX(18px);
  background: #111318;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 46px;
  align-items: center;
  padding: 28px 0 70px;
}

body[data-view="register"] .hero {
  display: none;
}

.hero-media {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.desktop-glass {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 1.32;
  border: 1px solid var(--line);
  border-radius: 46px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.025)),
    var(--surface);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.desktop-glass::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.09), transparent 32%),
    linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.02));
}

.island {
  position: absolute;
  left: 50%;
  background: #030303;
  color: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .36);
}

:root[data-theme="light"] .island {
  background: #f7f8fb;
  color: #111318;
  box-shadow: 0 24px 70px rgba(35, 42, 55, .22);
}

:root[data-theme="light"] .timeline-track {
  background: rgba(0,0,0,.16);
}

:root[data-theme="light"] .controls button:hover,
:root[data-theme="light"] .share-toast,
:root[data-theme="light"] .setting-row {
  background: rgba(0,0,0,.065);
}

:root[data-theme="light"] .track-copy span,
:root[data-theme="light"] .timeline,
:root[data-theme="light"] .share-toast small,
:root[data-theme="light"] .setting-row small,
:root[data-theme="light"] .calendar-left p {
  color: #707684;
}

:root[data-theme="light"] .pause-mark b,
:root[data-theme="light"] .play span {
  background: #111318;
}

:root[data-theme="light"] .skip.next::before,
:root[data-theme="light"] .skip.next::after {
  border-left-color: #111318;
}

:root[data-theme="light"] .skip.prev::before,
:root[data-theme="light"] .skip.prev::after {
  border-right-color: #111318;
}

.cover,
.big-cover {
  object-fit: cover;
  background: #243148;
}

.cover {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
}

.waveform i {
  width: 5px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cover-accent-soft), var(--cover-accent));
  transform-origin: center;
  animation: wave 920ms cubic-bezier(.35, 0, .2, 1) infinite;
  box-shadow: 0 0 13px color-mix(in srgb, var(--cover-accent) 52%, transparent);
}

.waveform i:nth-child(2) { height: 24px; animation-delay: -160ms; }
.waveform i:nth-child(3) { height: 30px; animation-delay: -300ms; }
.waveform i:nth-child(4) { height: 18px; animation-delay: -430ms; }

@keyframes wave {
  0%, 100% { transform: scaleY(.48); opacity: .82; }
  40% { transform: scaleY(1.05); opacity: 1; }
  70% { transform: scaleY(.68); opacity: .9; }
}

.expanded-island {
  top: 50%;
  width: 330px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition:
    width 520ms cubic-bezier(.18,.9,.2,1),
    height 520ms cubic-bezier(.18,.9,.2,1),
    border-radius 520ms cubic-bezier(.18,.9,.2,1),
    transform 520ms cubic-bezier(.18,.9,.2,1),
    box-shadow 320ms ease;
}

.expanded-island[data-mode="idle"] {
  width: 230px;
  height: 64px;
}

.expanded-island[data-mode="compact"] {
  width: 330px;
  height: 64px;
}

.expanded-island[data-mode="expanded"] {
  width: 500px;
  height: 320px;
  border-radius: 42px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .42);
}

.expanded-island[data-mode="expanded"].has-volume {
  height: 360px;
}

.expanded-island[data-mode="compact"]:hover {
  transform: translate(-50%, -50%) scale(1.035);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.island-pages {
  width: 100%;
  height: 300%;
  display: flex;
  flex-direction: column;
  transition: transform 560ms cubic-bezier(.18,.9,.2,1);
}

.expanded-island[data-mode="idle"] .island-pages {
  opacity: 0;
  transform: translateY(0) scale(.92);
}

.expanded-island[data-mode="compact"] .island-pages {
  transform: translateY(0) !important;
}

.expanded-island[data-mode="idle"] .island-pages {
  transform: translateY(0) scale(.92) !important;
}

.expanded-island[data-page="player"] .island-pages {
  transform: translateY(0);
}

.expanded-island[data-page="calendar"] .island-pages {
  transform: translateY(-33.333%);
}

.expanded-island[data-page="settings"] .island-pages {
  transform: translateY(-66.666%);
}

.island-page {
  position: relative;
  width: 100%;
  height: 33.333%;
  flex: 0 0 33.333%;
  padding: 28px 30px;
  transition: padding 520ms cubic-bezier(.18,.9,.2,1);
}

.expanded-island[data-mode="compact"] .island-page,
.expanded-island[data-mode="idle"] .island-page {
  padding: 10px 16px;
}

.expanded-island[data-mode="compact"] .player-page,
.expanded-island[data-mode="idle"] .player-page {
  display: flex;
  align-items: center;
}

.expanded-island[data-mode="compact"] .timeline,
.expanded-island[data-mode="compact"] .controls,
.expanded-island[data-mode="compact"] .share-toast,
.expanded-island[data-mode="compact"] .volume-drawer,
.expanded-island[data-mode="compact"] .page-dots,
.expanded-island[data-mode="idle"] .timeline,
.expanded-island[data-mode="idle"] .controls,
.expanded-island[data-mode="idle"] .share-toast,
.expanded-island[data-mode="idle"] .volume-drawer,
.expanded-island[data-mode="idle"] .page-dots {
  display: none;
}

.expanded-island[data-mode="compact"] .calendar-page,
.expanded-island[data-mode="compact"] .settings-page,
.expanded-island[data-mode="idle"] .calendar-page,
.expanded-island[data-mode="idle"] .settings-page {
  visibility: hidden;
}

.player-row,
.timeline,
.controls,
.friend-row,
.track-share,
.pricing {
  display: flex;
  align-items: center;
}

.player-row {
  gap: 14px;
  width: 100%;
  min-width: 0;
  transition: gap 520ms cubic-bezier(.18,.9,.2,1);
}

.expanded-island[data-mode="compact"] .player-row {
  justify-content: space-between;
}

.expanded-island[data-mode="compact"] .waveform {
  margin-left: auto;
}

.big-cover {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  transition:
    width 520ms cubic-bezier(.18,.9,.2,1),
    height 520ms cubic-bezier(.18,.9,.2,1),
    border-radius 520ms cubic-bezier(.18,.9,.2,1);
}

.album-art {
  display: block;
  padding: 0;
  background: #75a9ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}

.expanded-island[data-mode="compact"] .big-cover {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.track-copy {
  min-width: 0;
  flex: 1;
}

.track-copy strong,
.track-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-copy strong {
  font-size: 21px;
  line-height: 1.15;
  transition: font-size 520ms cubic-bezier(.18,.9,.2,1), opacity 220ms ease;
}

.track-copy span {
  margin-top: 4px;
  color: #8e8e93;
  font-size: 16px;
  transition: font-size 520ms cubic-bezier(.18,.9,.2,1), opacity 220ms ease;
}

.expanded-island[data-mode="compact"] .track-copy {
  display: none;
}

.pause-mark {
  display: flex;
  gap: 5px;
  opacity: .46;
}

.expanded-island[data-mode="compact"] .pause-mark {
  display: none;
}

.pause-mark b {
  width: 6px;
  height: 18px;
  border-radius: 99px;
  background: #8e8e93;
}

.timeline {
  gap: 14px;
  margin-top: 28px;
  color: #8e8e93;
  font-size: 13px;
  font-family: "Cascadia Mono", Consolas, monospace;
}

.timeline-track {
  flex: 1;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #303136;
  overflow: hidden;
  cursor: pointer;
}

.timeline b {
  display: block;
  width: 39%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cover-accent), var(--cover-accent-soft));
  transition: width 120ms linear;
}

.controls {
  justify-content: space-between;
  margin-top: 29px;
}

.controls button {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease;
}

.controls button:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-1px) scale(1.04);
}

.controls button:active {
  transform: scale(.92);
}

.play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.play span {
  width: 10px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  transition: transform 320ms cubic-bezier(.2,.8,.2,1), border 320ms ease, width 320ms ease, height 320ms ease;
}

.play.is-paused span:first-child {
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #fff;
  border-radius: 3px;
  background: transparent;
  transform: translateX(4px);
}

.play.is-paused span:last-child {
  opacity: 0;
  transform: scaleX(0);
}

.skip::before,
.skip::after {
  content: "";
  position: absolute;
  top: 13px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.skip.next::before,
.skip.next::after {
  border-left: 19px solid #fff;
}

.skip.prev::before,
.skip.prev::after {
  border-right: 19px solid #fff;
}

.skip.next::before { left: 9px; }
.skip.next::after { left: 25px; }
.skip.prev::before { right: 9px; }
.skip.prev::after { right: 25px; }

.people-icon {
  color: #a8adb6;
  display: grid;
  place-items: center;
}

.people-icon svg {
  width: 28px;
  height: 24px;
  overflow: visible;
}

.people-icon circle,
.people-icon path {
  fill: currentColor;
}

.people-icon.is-active {
  background: rgba(74, 122, 255, .14);
  color: #4a7aff;
}

.sound {
  display: grid;
  place-items: center;
}

.sound svg {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.sound path {
  fill: #a8adb6;
}

.sound path:nth-child(n + 2) {
  fill: none;
  stroke: #a8adb6;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound.is-active {
  background: rgba(74, 122, 255, .14);
}

.sound.is-active path {
  fill: #4a7aff;
}

.sound.is-active path:nth-child(n + 2) {
  fill: none;
  stroke: #4a7aff;
}

.share-toast {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 24px;
  min-height: 58px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 18px;
  border-radius: 29px;
  background: rgba(255,255,255,.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px) scale(.96);
  transition: opacity 280ms ease, transform 360ms cubic-bezier(.18,.9,.2,1);
}

.share-toast.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.share-toast .small {
  position: relative;
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.share-toast .small svg {
  width: 30px;
  height: 26px;
}

.share-toast strong,
.share-toast small {
  display: block;
}

.share-toast small {
  color: #8e8e93;
}

.friends-drawer strong {
  font-size: 15px;
}

.friends-drawer small {
  margin-top: 2px;
  line-height: 1.25;
}

.volume-drawer {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 34px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.98);
  transition: opacity 280ms ease, transform 360ms cubic-bezier(.18,.9,.2,1);
}

.volume-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.volume-drawer input {
  --volume-value: 52%;
  flex: 1;
  height: 5px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  border: 0;
  outline: none;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(222,226,232,.88) 0 var(--volume-value), rgba(100,104,112,.72) var(--volume-value) 100%);
  box-shadow: none;
}

.volume-drawer input::-webkit-slider-runnable-track {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(222,226,232,.88) 0 var(--volume-value), rgba(100,104,112,.72) var(--volume-value) 100%);
  box-shadow: none;
}

.volume-drawer input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: inherit;
}

.volume-drawer input::-moz-range-track {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(100,104,112,.72);
  box-shadow: none;
}

.volume-drawer input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: inherit;
}

.volume-drawer input::-moz-range-progress {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(222,226,232,.88);
  box-shadow: none;
}

.speaker {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #a8adb6;
  flex: 0 0 auto;
}

.speaker svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.speaker path {
  fill: currentColor;
}

.speaker path:nth-child(n + 2) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.speaker.low svg {
  width: 18px;
  height: 18px;
}

.calendar-page {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 20px;
  align-items: center;
}

.calendar-left strong,
.calendar-grid > strong {
  color: var(--accent-2);
  font-size: 14px;
  letter-spacing: .04em;
}

.calendar-left span {
  display: block;
  margin: 8px 0 34px;
  font-size: 58px;
  line-height: .9;
  font-weight: 300;
}

.calendar-left p {
  margin: 0 0 6px;
  color: #8e8e93;
  font-size: 16px;
  font-weight: 700;
}

.calendar-grid {
  min-width: 0;
}

.calendar-grid > strong {
  display: block;
  text-align: center;
  margin-bottom: 18px;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.weekdays {
  margin-bottom: 10px;
  color: #8e8e93;
  font-size: 12px;
  font-weight: 900;
}

.days {
  gap: 8px 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.days span {
  position: relative;
  z-index: 0;
  height: 18px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
}

.days span.is-muted {
  color: rgba(255,255,255,.32);
}

.days span.is-today {
  color: #fff;
}

.days span.is-today::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--accent-2);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.settings-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.settings-title strong,
.settings-title span {
  display: block;
}

.settings-title strong {
  font-size: 24px;
}

.settings-title span {
  margin-top: 4px;
  color: #8e8e93;
  font-size: 13px;
  font-weight: 700;
}

.setting-row {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: 18px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}

.setting-row b,
.setting-row small {
  display: block;
  text-align: left;
}

.setting-row small {
  margin-top: 2px;
  color: #8e8e93;
}

.switch {
  position: relative;
  width: 50px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #5c5d65;
  transition: background 220ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 999px;
  background: #fff;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}

.switch.is-on {
  background: var(--accent);
}

.switch.is-on::after {
  transform: translateX(22px);
}

.page-dots {
  position: absolute;
  right: 14px;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-50%);
}

.page-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  transition: width 240ms ease, background 240ms ease;
}

.page-dots span.is-active {
  height: 18px;
  background: var(--accent);
}

.hero-copy {
  justify-self: end;
  max-width: 510px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: .96;
  letter-spacing: 0;
  max-width: 520px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.lead,
.section-head p,
.split-section p,
.pricing p,
.glass-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.hero-short {
  max-width: 420px;
  margin-bottom: 28px;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
}

.primary-action,
.secondary-action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: #111;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

:root[data-theme="dark"] .primary-action,
:root:not([data-theme]) .primary-action {
  background: #fff;
  color: #0b0c10;
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(20px);
}

.status-strip {
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.status-strip span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: var(--glass);
  font-size: 13px;
}

.section,
.split-section,
.pricing {
  margin: 46px 0;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-head.left {
  margin: 0;
  text-align: left;
}

.feature-grid,
.security-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glass-card,
.friends-panel,
.pricing {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.glass-card {
  min-height: 220px;
  border-radius: 30px;
  padding: 28px;
}

.glass-card.compact {
  min-height: 170px;
}

.card-mark {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 26%, transparent);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr);
  gap: 28px;
  align-items: center;
}

.friends-panel {
  border-radius: var(--radius);
  padding: 22px;
}

.friend-row,
.track-share {
  gap: 14px;
  border-radius: 22px;
  padding: 16px;
  background: var(--glass);
}

.friend-row {
  margin-bottom: 14px;
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2a6cff, #ff3d63);
}

.friend-row div:nth-child(2),
.track-share div {
  flex: 1;
  min-width: 0;
}

.friend-row strong,
.friend-row span,
.track-share strong,
.track-share span {
  display: block;
}

.friend-row span,
.track-share span {
  color: var(--muted);
}

.friend-row button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.track-share img {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: cover;
}

.pricing {
  justify-content: space-between;
  gap: 28px;
  border-radius: 40px;
  padding: 34px;
}

.pricing div {
  max-width: 720px;
}

.faq-shell {
  min-height: calc(100vh - 78px);
  padding: 64px 0 92px;
}

.faq-hero {
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
}

.faq-hero h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(44px, 5vw, 72px);
}

.faq-hero p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.028)),
    var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 58px rgba(0,0,0,.22);
  overflow: hidden;
}

.faq-item summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), border-color 180ms ease;
}

.faq-item[open] summary::after {
  border-color: var(--accent);
  transform: rotate(225deg) translateY(-1px);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.faq-item:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.legal-links {
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
}

.legal-links a {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.035)),
    var(--surface);
  box-shadow: 0 20px 58px rgba(0,0,0,.18);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.legal-links a:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.05)),
    var(--surface);
}

.legal-links span {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.legal-links small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.account-section {
  position: relative;
  min-height: calc(100vh - 78px);
  display: none;
  align-content: center;
  padding: 74px 0 112px;
  overflow: hidden;
}

body[data-view="register"] .account-section {
  display: grid;
  animation: registerViewIn 520ms cubic-bezier(.16,1,.3,1) both;
}

.account-layout {
  display: grid;
  place-items: center;
  min-height: 430px;
}

.auth-panel,
.cabinet-panel {
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025)),
    var(--surface);
  backdrop-filter: blur(26px) saturate(1.15);
  -webkit-backdrop-filter: blur(26px) saturate(1.15);
  box-shadow: var(--shadow);
}

.auth-panel {
  position: relative;
  width: min(460px, 100%);
  padding: 18px;
  overflow: hidden;
  animation: accountCardIn 640ms cubic-bezier(.16,1,.3,1) both;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 33px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(315deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%);
  opacity: .55;
}

.auth-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.auth-tabs button {
  position: relative;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 850;
  transition: color 220ms ease, transform 220ms cubic-bezier(.2,.8,.2,1), background 260ms ease;
}

.auth-tabs button:hover {
  transform: translateY(-1px);
}

.auth-tabs button.is-active {
  color: #0b0c10;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

:root[data-theme="light"] .auth-tabs button.is-active {
  color: #fff;
  background: #111318;
}

.auth-forms-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 4px;
}

.auth-forms-track {
  display: grid;
  grid-template-columns: 100% 100%;
  grid-auto-flow: column;
  transition: transform 520ms cubic-bezier(.18,.9,.2,1);
  will-change: transform;
}

.auth-forms-window[data-auth-current="login"] .auth-forms-track {
  transform: translateX(-100%);
}

.auth-form {
  display: block;
  padding: 18px 4px 4px;
  opacity: .32;
  pointer-events: none;
  transform: scale(.97);
  transition: opacity 300ms ease, transform 420ms cubic-bezier(.18,.9,.2,1);
}

.auth-form.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.auth-form label {
  display: block;
  margin-bottom: 12px;
}

.auth-form label span {
  display: block;
  margin: 0 0 7px 4px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255,255,255,.07);
  outline: none;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.auth-form input:focus {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
  background: rgba(255,255,255,.095);
  transform: translateY(-1px);
}

.auth-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
}

.auth-submit:active {
  transform: scale(.98);
}

.auth-form p {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  min-height: 20px;
}

.auth-status.is-error {
  color: #ff9fb0;
}

.auth-status.is-ok {
  color: var(--cover-accent-soft);
}

.verify-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.verify-page .topbar,
.verify-page .footer {
  display: none;
}

.verify-shell {
  width: min(560px, 100%);
}

.verify-inline {
  width: min(560px, 100%);
  margin: 0 auto;
}

.verify-card {
  width: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025)),
    var(--surface);
  backdrop-filter: blur(26px) saturate(1.15);
  -webkit-backdrop-filter: blur(26px) saturate(1.15);
  box-shadow: var(--shadow);
  animation: accountCardIn 640ms cubic-bezier(.16,1,.3,1) both;
}

.verify-inline-card {
  margin: 0 auto;
}

.verify-brand {
  justify-content: center;
  margin-bottom: 24px;
}

.verify-copy {
  text-align: center;
  margin-bottom: 22px;
}

.verify-copy .eyebrow {
  margin: 0 0 8px;
  color: var(--cover-accent-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.verify-copy h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}

.verify-copy p:last-child {
  margin: 14px auto 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.verify-form {
  display: grid;
  gap: 12px;
}

.verify-form label {
  display: grid;
  gap: 7px;
}

.verify-form label span {
  margin-left: 4px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.verify-form input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255,255,255,.07);
  outline: none;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.verify-form input:focus {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
  background: rgba(255,255,255,.095);
  transform: translateY(-1px);
}

.verify-form .secondary-action {
  justify-content: center;
}

.verify-status {
  min-height: 22px;
  margin: 2px 4px 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.verify-actions a {
  color: var(--soft);
}

.verify-actions a:hover {
  color: var(--text);
}

.link-button {
  border: 0;
  padding: 0;
  color: var(--soft);
  background: transparent;
  cursor: pointer;
}

.link-button:hover {
  color: var(--text);
}

.cabinet-menu {
  width: min(980px, 100%);
  margin: 0 auto;
}

.cabinet-panel {
  padding: 32px;
}

.cabinet-panel.is-demo-login {
  animation: cabinetPulse 520ms cubic-bezier(.2,.8,.2,1);
}

.cabinet-head,
.cabinet-actions {
  display: flex;
  align-items: center;
}

.cabinet-head {
  gap: 14px;
  min-height: 112px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.07);
}

.profile-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 34px color-mix(in srgb, var(--accent) 22%, transparent);
}

.profile-badge {
  width: min(42%, 396px);
  height: 74px;
  border-radius: 24px;
  font-size: 24px;
}

.cabinet-head div {
  min-width: 0;
  flex: 1;
}

.cabinet-head strong,
.cabinet-head span {
  display: block;
}

.cabinet-head strong {
  font-size: 20px;
}

.cabinet-head span,
.cabinet-grid small {
  color: var(--muted);
}

.cabinet-head i {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dce8ff;
  background: color-mix(in srgb, var(--accent) 34%, rgba(255,255,255,.08));
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.cabinet-grid article {
  min-height: 188px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.055);
}

.cabinet-grid span,
.cabinet-grid strong,
.cabinet-grid small {
  display: block;
}

.cabinet-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.cabinet-grid strong {
  margin: 18px 0 14px;
  font-size: 30px;
}

.cabinet-grid small {
  line-height: 1.35;
}

.cabinet-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 22px;
}

.cabinet-logout {
  border-color: color-mix(in srgb, var(--accent-2) 30%, var(--line));
  color: var(--soft);
}

.cabinet-logout:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent-2) 18%, rgba(255,255,255,.08));
}

.cabinet-versions {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cabinet-versions-head,
.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cabinet-versions-head {
  margin-bottom: 12px;
}

.cabinet-versions-head span,
.cabinet-versions-head small,
.version-row small {
  color: var(--muted);
}

.cabinet-versions-head span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 850;
}

.cabinet-versions-head strong {
  font-size: 20px;
}

.version-list {
  display: grid;
  gap: 10px;
}

.version-row {
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}

.version-row strong,
.version-row small {
  display: block;
}

.version-row .version-meta {
  margin-top: 5px;
  font-size: 12px;
  opacity: .78;
}

.version-row b {
  flex: 0 0 auto;
  min-width: 88px;
  padding: 9px 13px;
  border-radius: 999px;
  text-align: center;
  color: #0b0c10;
  background: rgba(255,255,255,.9);
  font-size: 13px;
}

.version-row.is-muted {
  opacity: .72;
}

.version-row.is-muted b {
  color: var(--muted);
  background: rgba(255,255,255,.08);
}

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

@keyframes accountCardIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(12px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes registerViewIn {
  from { opacity: 0; transform: translateY(18px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes cabinetPulse {
  0% { transform: scale(.985); box-shadow: var(--shadow); }
  45% { transform: scale(1.012); box-shadow: 0 34px 90px color-mix(in srgb, var(--accent) 18%, rgba(0,0,0,.42)); }
  100% { transform: scale(1); box-shadow: var(--shadow); }
}

.account-section.has-cabinet .account-layout,
.account-section.has-cabinet .section-head {
  display: none;
}

.account-section.has-cabinet .cabinet-menu {
  display: block;
  animation: softReveal 420ms cubic-bezier(.2,.8,.2,1) both;
}

.footer {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

@media (max-width: 940px) {
  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    justify-self: start;
    order: -1;
  }

  .hero-media {
    min-height: 440px;
  }

  .desktop-glass {
    transform: scale(.9);
    transform-origin: center;
  }

  .feature-grid,
  .security-grid,
  .cabinet-grid,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-badge {
    width: 86px;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: auto;
    padding: 64px 0 16px;
    align-items: flex-start;
    gap: 14px;
  }

  .site-version-switch {
    top: 16px;
    transform: translateX(-50%);
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav > a {
    display: none;
  }

  .hero {
    padding-top: 8px;
  }

  .hero-media {
    min-height: 360px;
  }

  .desktop-glass {
    width: 560px;
    transform: scale(.58);
  }

  .feature-grid,
  .security-grid,
  .cabinet-grid,
  .faq-grid,
  .legal-links,
  .pricing {
    grid-template-columns: 1fr;
  }

  .cabinet-panel {
    padding: 18px;
  }

  .cabinet-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .profile-badge {
    width: 74px;
    height: 58px;
  }

  .pricing,
  .footer {
    display: block;
  }

  .pricing .primary-action {
    margin-top: 20px;
  }
}
