@import url("pro-branding.css");
@import url("routine-enhancements.css");
@import url("persistent-player.css");
@import url("player-expanded.css");
:root {
  --night: #050d1d;
  --panel: #0b1930e8;
  --panel2: #10213cf2;
  --line: #ffffff18;
  --text: #f7f5ff;
  --muted: #a8b2c9;
  --violet: #8d7cf4;
  --teal: #61d5cd;
  --gold: #f4d8a2;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
}
button,
a,
input,
select {
  font: inherit;
}
.page-main {
  padding-bottom: 100px !important;
}
.page-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
aside nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: 0.22s;
}
aside nav a:hover,
aside nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #6559c8, #413b91);
  border-color: #ffffff17;
  transform: translateX(3px);
}
aside .brand {
  margin-bottom: 22px;
}
.sidebar-upgrade {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 15px;
  border: 1px solid #8d7cf43d;
  border-radius: 14px;
  background: linear-gradient(145deg, #8d7cf41b, #61d5cd0d);
}
/* Pro/trialing accounts already pay — stop nagging them to upgrade.
   shell.js (and its sleep-insights.js fallback) build this block without
   checking the plan; auth.js sets data-account-plan on <html> once the
   session is known, so gate visibility here instead. */
:root[data-account-plan="active"] .sidebar-upgrade,
:root[data-account-plan="trialing"] .sidebar-upgrade,
:root[data-account-plan="pro"] .sidebar-upgrade {
  display: none;
}
.sidebar-upgrade strong {
  color: #fff;
}
.sidebar-upgrade small {
  color: var(--muted);
}
.sidebar-upgrade button {
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--violet), #6253d0);
  color: #fff;
  font-weight: 850;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff08;
  color: #fff;
  text-decoration: none;
}
.sidebar-user-avatar,
.user-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #9d8cff, #6656d5);
  color: #fff;
  font-weight: 900;
}
.sidebar-user div {
  min-width: 0;
}
.sidebar-user b,
.sidebar-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user small {
  color: var(--muted);
  font-size: 10px;
}
.sidebar-signout {
  padding: 8px;
  border: 0;
  background: transparent;
  color: #9ca9c3;
  text-align: left;
  cursor: pointer;
}
.page-account,
.page-head > a {
  transition: 0.22s;
}
.page-grid {
  align-items: start;
}
.page-card {
  overflow: hidden;
}
.page-card:hover {
  border-color: #ffffff29;
}
.settings-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}
.profile-card {
  grid-column: 1/-1;
}
.settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.settings-field {
  display: grid;
  gap: 7px;
}
.settings-field span {
  color: #dcd8f8;
  font-size: 12px;
  font-weight: 800;
}
.settings-field input,
.settings-field select,
.password-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #071329;
  color: #fff;
}
.settings-field input:focus,
.settings-field select:focus,
.password-form input:focus {
  outline: 3px solid #8d7cf426;
  border-color: #8d7cf4;
}
.profile-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(145deg, #9d8cff, #5546bd);
  font-size: 26px;
  font-weight: 900;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #8d7cf420;
  color: var(--violet);
  font-size: 20px;
}
.section-head h2,
.section-head p {
  margin: 0;
}
.section-head p {
  color: var(--muted);
  font-size: 12px;
}
.preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.preference-item:last-child {
  border-bottom: 0;
}
.preference-item b,
.preference-item small {
  display: block;
}
.preference-item small {
  color: var(--muted);
}
.switch {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 26px;
}
.switch input {
  position: absolute;
  opacity: 0;
}
.switch i {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #536078;
  transition: 0.25s;
}
.switch i:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.switch input:checked + i {
  background: var(--violet);
}
.switch input:checked + i:after {
  transform: translateX(20px);
}
.plan-card {
  background: linear-gradient(145deg, #4f429f, #151f47) !important;
}
.plan-card ul {
  display: grid;
  gap: 7px;
  padding: 0;
  list-style: none;
}
.plan-card li {
  border: 0;
  padding: 0;
}
.plan-card li:before {
  content: "✓";
  margin-right: 8px;
  color: var(--teal);
}
.password-change summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.password-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.toast {
  position: fixed;
  z-index: 250;
  right: 18px;
  top: 18px;
  min-width: 250px;
  padding: 14px 18px;
  border: 1px solid #61d5cd66;
  border-radius: 13px;
  background: #0c2435;
  color: #dffffa;
  box-shadow: 0 18px 50px #0008;
  animation: toast 3s both;
}
.account-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.account-hero {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(145deg, #25205b, #101d3d) !important;
}
.account-plan {
  padding: 7px 11px;
  border-radius: 99px;
  background: #61d5cd1c;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}
.account-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.account-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.pro-banner {
  grid-column: 1/-1;
  justify-self: center;
  width: min(100%, 840px);
  padding: 35px !important;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, #8d7cf43a, transparent 18rem),
    linear-gradient(145deg, #312779, #0c1834) !important;
}
.pro-banner > div,
.pro-banner ul {
  width: min(100%, 600px);
  margin-left: auto;
  margin-right: auto;
}
.pro-banner ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 20px 0;
  list-style: none;
}
.pro-banner li {
  justify-content: center;
  border: 0;
  padding: 0;
  color: #ded9ff;
}
.pro-banner li:before {
  content: "✓";
  margin-right: 7px;
  color: var(--teal);
}
.pro-banner .price {
  font-size: 34px;
  font-weight: 900;
}
.pro-banner-status {
  width: min(100%, 320px);
  margin: 16px auto 0;
  padding: 9px 14px;
  border-radius: 10px;
  background: #ffb02414;
  color: #ffc971;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.pro-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 320px);
  margin: 14px auto 0;
}
.pro-banner-actions .page-action.alt {
  background: transparent;
  border: 1px solid #ffffff40;
  color: #fff;
}
.pro-banner-trial {
  width: min(100%, 600px);
  margin: 0 auto 16px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #ffffff14;
  color: #cfe0ff;
  font-size: 13px;
  font-weight: 700;
}
.pro-banner-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: min(100%, 600px);
  margin: 0 auto;
}
.pro-banner-plan {
  position: relative;
  padding: 18px 14px;
  border: 1px solid #ffffff26;
  border-radius: 14px;
  background: #ffffff0a;
}
.pro-banner-plan .price {
  font-size: 24px;
}
.pro-banner-plan .page-action {
  width: 100%;
  margin-top: 10px;
}
.pro-banner-save {
  position: absolute;
  top: -11px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #1a9e5c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
@media (max-width: 560px) {
  .pro-banner-plans {
    grid-template-columns: 1fr;
  }
}
.faq {
  padding: 26px !important;
}
.faq details {
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff04;
}
.faq details + details {
  margin-top: 9px;
}
.faq summary {
  position: relative;
  padding: 17px 30px 17px 0;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}
.faq summary:after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--violet);
  font-size: 22px;
}
.faq details[open] summary:after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0;
  padding: 0 25px 17px 0;
  color: var(--muted);
}
.help-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 2px;
}
.help-contact p {
  color: var(--muted);
}
.mix-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 72px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff05;
}
.mix-row small,
.mix-row b {
  display: block;
}
.mix-row small {
  color: var(--muted);
}
.trash {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ef9da650;
  border-radius: 9px;
  background: #ff59610c;
  color: #ff9ca5;
}
.trash svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.noctara-loader {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  background: #050d1df5;
  transition: 0.35s;
}
.noctara-loader.done {
  opacity: 0;
  visibility: hidden;
}
.loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  color: var(--gold);
  font:
    58px Georgia,
    serif;
}
.loader-mark:before,
.loader-mark:after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid #8d7cf46b;
  border-radius: 50%;
  animation: pulse 1.7s ease-in-out infinite;
}
.loader-mark:after {
  inset: -15px;
  border-color: #61d5cd3d;
  animation-delay: 0.5s;
}
.pro-diamond {
  position: fixed;
  z-index: 45;
  right: 20px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border: 0;
  background: transparent;
  color: #a99cff;
}
.pro-diamond:before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid #8d7cf4;
  border-radius: 8px;
  transform: rotate(45deg);
  box-shadow: 0 0 18px #8d7cf45c;
  animation: diamond 1.8s ease-in-out infinite;
}
.pro-diamond span {
  position: relative;
  font-size: 10px;
  font-weight: 900;
}
.pro-modal-wrap {
  position: fixed;
  z-index: 260;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #020714bb;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}
.pro-modal-wrap.open {
  opacity: 1;
  visibility: visible;
}
.pro-modal {
  position: relative;
  width: min(500px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0c1931;
  color: #fff;
  box-shadow: 0 30px 90px #000;
}
.pro-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
}
.pro-modal ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}
.pro-modal li {
  display: list-item;
  border: 0;
  padding: 0;
}
.pro-modal-trial {
  margin: 16px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: #ffffff14;
  color: #cfe0ff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.pro-modal-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.pro-modal-plans .page-action {
  position: relative;
  width: 100%;
}
.pro-modal-save {
  position: absolute;
  top: -10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #1a9e5c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
@media (max-width: 520px) {
  .pro-modal-plans {
    grid-template-columns: 1fr;
  }
}
@keyframes pulse {
  50% {
    transform: scale(1.13);
    opacity: 0.35;
  }
}
@keyframes diamond {
  50% {
    transform: rotate(45deg) scale(1.1);
  }
}
@keyframes toast {
  0% {
    opacity: 0;
    transform: translateX(25px);
  }
  12%,
  85% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateX(25px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  main > * {
    animation: rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .page-card,
  .directory-tile,
  .page-action,
  .sound-art,
  .mix-row {
    transition:
      transform 0.23s,
      box-shadow 0.23s,
      border-color 0.23s;
  }
  .page-card:hover,
  .directory-tile:hover,
  .mix-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 60px #0005;
  }
  .page-action:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
  }
  details > p {
    animation: rise 0.3s both;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 900px) {
  .settings-shell,
  .account-dashboard {
    grid-template-columns: 1fr;
  }
  .profile-card,
  .account-hero,
  .pro-banner {
    grid-column: auto;
  }
  .settings-fields {
    grid-template-columns: 1fr;
  }
  .profile-row {
    grid-template-columns: 1fr;
  }
  .pro-banner ul {
    grid-template-columns: 1fr;
  }
  .pro-diamond {
    bottom: 82px;
  }
  .help-contact {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-main {
    padding-bottom: 100px !important;
  }
}
@media (max-width: 520px) {
  .account-actions {
    display: grid;
  }
  .account-actions > * {
    width: 100%;
  }
  .faq {
    padding: 18px !important;
  }
}
body[data-page="account"] > .page-main > .account-panel {
  display: none !important;
}
.user-drawer-overlay {
  position: fixed;
  z-index: 180;
  inset: 0;
  background: #0207148c;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}
.user-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.user-drawer {
  position: fixed;
  z-index: 190;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(390px, 100%);
  padding: 24px;
  background: #071329;
  color: #fff;
  box-shadow: -25px 0 70px #0008;
  transform: translateX(105%);
  transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.user-drawer.open {
  transform: none;
}
.user-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.user-drawer-head button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 25px;
}
.user-drawer-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff07;
}
.user-drawer-profile b,
.user-drawer-profile small,
.user-drawer-profile em {
  display: block;
}
.user-drawer-profile small {
  color: var(--muted);
}
.user-drawer-profile em {
  color: var(--teal);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.user-drawer nav {
  display: grid;
  gap: 8px;
}
.user-drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
}
.user-drawer nav a:hover {
  background: #8d7cf416;
  border-color: #8d7cf45c;
}
.user-drawer-signout {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 12px;
  border: 1px solid #ff9ca53d;
  border-radius: 10px;
  background: #ff59610b;
  color: #ffabb1;
}
.user-menu-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
}
.user-menu-trigger .user-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}
.user-menu-trigger small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
@media (max-width: 900px) {
  .user-drawer,
  .user-drawer-overlay {
    display: none;
  }
}
