﻿.logo {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--accent-violet), #f04d72, #ff9c35);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo span,
.logo i {
  font-style: normal;
}

.auth-stack {
  display: grid;
  gap: 10px;
}

.auth-card {
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    #17181d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-card__head strong {
  font-size: 1rem;
}

.auth-card__head span {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.auth-btn--yandex {
  width: 100%;
  background: linear-gradient(90deg, #ff6f2c, #ff4f67);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 98, 48, 0.22);
}

.auth-btn--vk {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-btn:hover,
.social-pill:hover {
  transform: translateY(-1px);
}

.auth-text {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social-pill {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 14px;
  background: #222228;
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-pill--mail {
  background: linear-gradient(180deg, rgba(56, 138, 255, 0.28), rgba(56, 138, 255, 0.12));
}

.social-pill--ok {
  background: linear-gradient(180deg, rgba(255, 149, 0, 0.28), rgba(255, 149, 0, 0.12));
}

.social-pill--telegram {
  background: linear-gradient(180deg, rgba(64, 166, 245, 0.28), rgba(64, 166, 245, 0.12));
}

.sidebar-nav {
  display: grid;
  gap: 18px;
}

.sidebar-nav a,
.sidebar-footer a {
  color: #9f9fab;
  font-size: 0.96rem;
}

.sidebar-nav a::before,
.sidebar-footer a::before {
  content: "○";
  margin-right: 8px;
  color: #666673;
}

.sidebar-nav a.is-active {
  color: #fff;
  font-weight: 700;
}

.sidebar-nav a.is-muted,
.sidebar-footer a.is-muted {
  opacity: 0.72;
}

.quick-start {
  margin-top: auto;
  max-width: 176px;
  padding: 22px 16px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(125, 60, 255, 0.92), rgba(255, 105, 88, 0.84)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 38%);
  box-shadow: var(--shadow);
}

.quick-start h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.quick-start p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.sidebar-footer {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.sidebar-footer a.sidebar-social-button,
.sidebar-footer a.sidebar-support-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  color: #f2f2f4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer a.sidebar-social-button::before,
.sidebar-footer a.sidebar-support-link::before {
  display: none;
}

.sidebar-social-button {
  justify-content: flex-start;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.sidebar-social-button:hover,
.sidebar-support-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

.sidebar-social-button--max {
  background: linear-gradient(180deg, rgba(96, 74, 255, 0.2), rgba(96, 74, 255, 0.08));
}

.sidebar-social-button--telegram-link {
  background: linear-gradient(180deg, rgba(47, 154, 255, 0.18), rgba(47, 154, 255, 0.08));
}

.sidebar-support-link {
  color: #c9cad4;
}

.sidebar-social-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-social-button__icon--max {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #7d4bff, #4f62ff);
}

.sidebar-social-button__icon--telegram {
  font-size: 0.95rem;
  background: linear-gradient(135deg, #2e92ff, #34c4ff);
}

.account-dock {
  position: relative;
  margin-top: 10px;
}

.account-trigger {
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.account-trigger__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.account-trigger__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-trigger__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.account-trigger__meta strong {
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-trigger__meta span {
  color: #ff9f43;
  font-size: 0.9rem;
  font-weight: 700;
}

.account-trigger__arrow {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
}

.account-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 30;
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(39, 39, 46, 0.98), rgba(28, 28, 34, 0.98)),
    rgba(26, 27, 33, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.account-menu__balance {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.account-menu__balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  font-weight: 700;
}

.account-menu__balance-row span:last-child {
  color: #68e38c;
}

.account-menu__topup {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f16e39, #eb4e78);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(241, 110, 57, 0.2);
}

.account-menu__id {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.92rem;
}

.account-menu__id-icon,
.account-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: rgba(255, 255, 255, 0.54);
  flex-shrink: 0;
}

.account-menu__divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.08);
}

.account-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0;
  color: rgba(255, 255, 255, 0.64);
  text-align: left;
  font-size: 0.98rem;
}

.account-menu__item span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu__item:hover {
  color: #fff;
}

.account-menu__item--danger {
  color: rgba(255, 255, 255, 0.72);
}

.topup-modal-open {
  overflow: hidden;
}

.topup-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
}

.topup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 14, 0.72);
  backdrop-filter: blur(10px);
}

.topup-modal__card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 24px));
  margin: 9vh auto 0;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 110, 73, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(35, 35, 44, 0.98), rgba(20, 20, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.topup-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
}

.topup-modal__head h3 {
  margin: 8px 0 10px;
  font-size: 2rem;
}

.topup-modal__head p,
.topup-modal__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.topup-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffbf9b;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topup-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 18px;
}

.topup-amount-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topup-amount-card strong {
  font-size: 1.4rem;
}

.topup-amount-card span {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.45;
}

.topup-amount-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.topup-amount-card:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.payments-panel {
  min-height: calc(100vh - 36px);
}

.payments-panel__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.payments-panel__head h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.payments-panel__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
}

.payments-status,
.payments-empty {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

.payments-status--error {
  color: #ffb3b3;
  border: 1px solid rgba(255, 87, 87, 0.22);
}

.payments-list {
  display: grid;
  gap: 12px;
}

.payment-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 120px 130px;
  gap: 16px;
  align-items: center;
  min-height: 66px;
  padding: 0 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.payment-row__date,
.payment-row__reason,
.payment-row__amount,
.payment-row__type {
  font-size: 0.98rem;
}

.payment-row__reason {
  font-weight: 700;
  color: #fff;
}

.payment-row__amount {
  text-align: right;
  font-weight: 800;
}

.payment-row__amount--credit {
  color: #ffffff;
}

.payment-row__amount--charge {
  color: #ffffff;
}

.payment-row__type {
  text-align: right;
  font-weight: 700;
}

.payment-row__type--credit {
  color: #38e07b;
}

.payment-row__type--charge {
  color: #ff4c4c;
}

.payments-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.payments-page {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.payments-page.is-active {
  background: linear-gradient(90deg, #f16e39, #eb4e78);
  color: #fff;
  box-shadow: 0 14px 26px rgba(241, 110, 57, 0.22);
}

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  margin-bottom: 120px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(1, 8, 16, 0.9) 0%, rgba(3, 8, 15, 0.42) 55%, rgba(2, 4, 10, 0.88) 100%),
    radial-gradient(circle at 65% 30%, rgba(91, 159, 255, 0.24), transparent 24%),
    linear-gradient(135deg, #0b1320, #091118 45%, #06070a);
  box-shadow: inset 0 -80px 100px rgba(0, 0, 0, 0.45);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(69, 123, 255, 0.18) 58% 62%, transparent 62% 100%),
    linear-gradient(120deg, transparent 0 68%, rgba(69, 123, 255, 0.12) 68% 72%, transparent 72% 100%);
  opacity: 0.8;
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: 14%;
  top: 12%;
  width: 34%;
  height: 50%;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #4a5b7f, #161d28);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(-2deg);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 42px 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9db4d5;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-banner h1 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 460px;
  margin: 0 0 32px;
  color: #efeff5;
  font-size: 1.05rem;
  line-height: 1.45;
}

.primary-btn,
.secondary-btn,
.select-field,
.pill-btn {
  border-radius: 999px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 38px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  color: white;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(217, 62, 120, 0.22);
}

.primary-btn--wide,
.secondary-btn {
  width: 100%;
}

.secondary-btn {
  min-height: 40px;
  background: #3a3a3d;
  font-weight: 700;
}

.hero-slides {
  position: absolute;
  right: 28px;
  bottom: 22px;
  display: flex;
  gap: 14px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-dot--active {
  background: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 52px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 182px;
  padding: 30px 32px;
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(180deg, #202025, #1a1a1f);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 48%, rgba(255, 255, 255, 0.06) 48% 52%, transparent 52% 100%);
  opacity: 0.55;
}

.feature-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 48px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.price-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f6f6f7;
  font-weight: 700;
}

.feature-visual {
  position: relative;
  z-index: 1;
  flex: 0 0 170px;
  border-radius: 32px;
}

.feature-visual--headphones,
.feature-visual--lens,
.feature-visual--brush {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.35), transparent 24%),
    linear-gradient(145deg, rgba(130, 80, 255, 0.92), rgba(255, 102, 77, 0.86));
  filter: saturate(1.2);
}

.feature-visual--headphones::before {
  content: "";
  position: absolute;
  inset: 18px 32px 22px;
  border: 10px solid rgba(255, 255, 255, 0.55);
  border-bottom: 0;
  border-radius: 80px 80px 20px 20px;
}

.feature-visual--headphones::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 16px;
  height: 54px;
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.46),
    -54px 0 0 0 rgba(255, 255, 255, 0.46),
    54px 0 0 0 rgba(255, 255, 255, 0.46);
}

.feature-visual--lens::before {
  content: "";
  position: absolute;
  inset: 36px 30px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.38);
  transform: rotate(18deg);
}

.feature-visual--lens::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  right: 26px;
  top: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.5);
}

.feature-visual--brush::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 124px;
  right: 74px;
  top: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  transform: rotate(28deg);
}

.feature-visual--brush::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  right: 18px;
  top: 8px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.72), transparent 28%);
}

.collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.collection-column h3 {
  margin: 0 0 24px;
  font-size: 1.5rem;
}

.track-card {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.cover-art {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--cover-gradient, linear-gradient(135deg, #7538ff, #ff5b77));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.track-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.track-info p {
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.track-meta {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 140, 55, 0.18);
  color: #ffab63;
  font-size: 0.78rem;
  white-space: nowrap;
}

.tab-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.tab-switch__item {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 700;
}

.tab-switch__item--active {
  background: #4b4b51;
}

.select-row,
.double-select {
  display: flex;
  gap: 10px;
}

.select-field {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #f2f2f4;
}

.select-field::after {
  content: "▾";
  margin-left: 10px;
  color: var(--text-soft);
}

.select-field--wide {
  width: 100%;
}

.creation-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 8px;
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.prompt-box {
  position: relative;
  border-radius: 26px;
  background: #1d1d22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.prompt-box textarea {
  width: 100%;
  min-height: 160px;
  padding: 18px 66px 42px 18px;
  resize: none;
  color: var(--text-soft);
}

.prompt-box--photo textarea {
  min-height: 112px;
}

.prompt-tools {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  gap: 10px;
}

.icon-btn,
.star-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #d8d8de;
}

.prompt-footer {
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: #75757f;
  font-size: 0.86rem;
}

.pill-row {
  display: flex;
  gap: 8px;
}

.pill-btn {
  min-height: 42px;
  padding: 0 16px;
  background: #26262c;
  font-weight: 700;
}

.separator-text {
  text-align: center;
  color: #8c8c95;
  font-weight: 700;
}

.results-toolbar {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.lyrics-drawer {
  margin-bottom: 18px;
  padding: 18px 18px 20px;
  border-radius: 28px;
  background: #17181d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateX(18px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.lyrics-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
}

.lyrics-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lyrics-drawer__title {
  font-size: 1rem;
}

.lyrics-drawer__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.lyrics-drawer__status {
  color: var(--text-soft);
  margin-bottom: 14px;
}

.lyrics-drawer__loading {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.lyrics-drawer__loading[hidden] {
  display: none;
}

.lyrics-drawer__loading span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ff6d35;
  animation: lyricsPulse 1s infinite ease-in-out;
}

.lyrics-drawer__loading span:nth-child(2) {
  animation-delay: 0.15s;
}

.lyrics-drawer__loading span:nth-child(3) {
  animation-delay: 0.3s;
}

.lyrics-drawer__content {
  min-height: 180px;
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.6;
}

.lyrics-drawer__content[hidden] {
  display: none;
}

.lyrics-drawer__variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lyrics-drawer__variants[hidden] {
  display: none;
}

.lyrics-variant {
  display: grid;
  gap: 14px;
}

.lyrics-variant__choose {
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  color: #fff;
  font-weight: 800;
  padding: 0 18px;
}

.lyrics-variant__text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.55;
}

@keyframes lyricsPulse {
  0%, 80%, 100% {
    transform: scale(0.85);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.search-field {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #1d1d21;
}

.search-field input {
  width: 100%;
  min-height: 38px;
}

.track-list {
  display: grid;
  gap: 18px;
}

.track-row {
  display: grid;
  grid-template-columns: 62px 1fr auto auto;
  gap: 20px;
  align-items: center;
}

.track-row__actions {
  display: flex;
  gap: 18px;
  color: var(--text-soft);
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.upload-tile {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 24px;
  background: #1d1d22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #d6d6db;
  font-weight: 700;
}

.upload-tile::before {
  content: "+";
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

@media (max-width: 1200px) {
  .collections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-overlay {
    padding: 28px 22px;
  }

  .hero-banner {
    min-height: 320px;
    margin-bottom: 44px;
  }

  .feature-card {
    min-height: 160px;
    padding: 24px;
  }

  .track-row {
    grid-template-columns: 62px 1fr;
  }

  .track-row__actions,
  .track-row > .badge {
    display: none;
  }

  .lyrics-drawer__variants {
    grid-template-columns: 1fr;
  }
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.music-form {
  display: grid;
  gap: 14px;
  overflow: visible;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid--double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #1b1b20;
  color: #f2f2f4;
}

.form-field textarea {
  min-height: 144px;
  resize: vertical;
}

.toggle-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-select {
  position: relative;
}

.compact-select select {
  width: 100%;
  min-height: 52px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #16161b;
  color: #fff;
  appearance: none;
}

.compact-select::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}

.compact-select--model {
  min-width: 134px;
}

.custom-dropdown {
  position: relative;
  overflow: visible;
}

.custom-dropdown__trigger {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #16161b;
  color: #fff;
  text-align: left;
}

.custom-dropdown__trigger::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
}

.custom-dropdown__trigger--chip {
  min-height: 42px;
  border-radius: 999px;
  background: #2a2a30;
}

.custom-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: max(100%, 240px);
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  z-index: 2000;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #4a4a54;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.custom-dropdown.is-open .custom-dropdown__menu {
  display: block;
}

.custom-dropdown__menu--tall {
  max-height: 420px;
}

.custom-dropdown.custom-dropdown--block {
  z-index: 10;
}

.custom-dropdown.custom-dropdown--block.is-open {
  z-index: 2200;
}

.custom-dropdown__option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  text-align: left;
  white-space: nowrap;
}

.custom-dropdown__option:hover,
.custom-dropdown__option.is-active {
  background: #2f6ccc;
}

.custom-dropdown__option-group {
  padding: 8px 12px 4px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.compact-title-wrap {
  position: relative;
}

.compact-title-input {
  width: 100%;
  min-height: 44px;
  padding: 0 62px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #1e1e23;
  color: #fff;
}

.compact-title-counter {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #74747c;
  font-size: 0.85rem;
}

.prompt-composer {
  border-radius: 28px;
  background: #1b1b20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.prompt-composer__body {
  position: relative;
  min-height: 238px;
  padding: 18px 18px 0;
}

.prompt-composer__body textarea {
  width: 100%;
  min-height: 180px;
  padding: 8px 52px 36px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  resize: none;
}

.composer-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 14px 16px;
}

.chip-select,
.composer-chip,
.ghost-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: #2a2a30;
  color: white;
  font-weight: 700;
}

.composer-toolbar > .composer-chip,
.composer-toolbar > .custom-dropdown {
  flex: 1 1 0;
  min-width: 0;
}

.composer-chip {
  background: #24242a;
}

.composer-chip.is-active {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
}

.audio-upload-panel {
  padding: 14px;
  border-radius: 26px;
  background: #1b1b20;
}

.audio-upload-box {
  display: flex;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 107, 45, 0.85);
  border-radius: 24px;
}

.ghost-chip {
  min-width: 138px;
  background: #212127;
}

.ghost-chip--file {
  cursor: pointer;
}

.audio-upload-note {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.audio-upload-panel.is-hidden + .source-track-card:not(.is-hidden) {
  margin-top: -4px;
}

.source-track-card {
  padding: 14px;
  border-radius: 26px;
  background: #1b1b20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.source-track-card__head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.source-track-card__mini-cover {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    linear-gradient(135deg, #35576f, #f17e56);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.source-track-card__mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.source-track-card__action .custom-dropdown__trigger {
  min-height: 38px;
  border-radius: 14px;
}

.source-track-card__remove {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.source-track-card__waveform {
  position: relative;
  overflow: hidden;
  min-height: 106px;
  border: 1px solid rgba(255, 107, 45, 0.92);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 124, 54, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    #17171b;
}

.source-track-card__waveform::before {
  content: "";
  position: absolute;
  inset: 12px 16px;
  background:
    linear-gradient(90deg,
      transparent 0 2%,
      rgba(255, 109, 53, 0.88) 2% 2.6%,
      transparent 2.6% 4%,
      rgba(255, 109, 53, 0.82) 4% 4.4%,
      transparent 4.4% 5.2%,
      rgba(255, 109, 53, 0.9) 5.2% 6%,
      transparent 6% 7%,
      rgba(255, 109, 53, 0.76) 7% 7.5%,
      transparent 7.5% 8.6%,
      rgba(255, 109, 53, 0.94) 8.6% 9.2%,
      transparent 9.2% 10.2%,
      rgba(255, 109, 53, 0.82) 10.2% 11%,
      transparent 11% 12.6%,
      rgba(255, 109, 53, 0.88) 12.6% 13.1%,
      transparent 13.1% 14.8%,
      rgba(255, 109, 53, 0.72) 14.8% 15.5%,
      transparent 15.5% 17.1%,
      rgba(255, 109, 53, 0.92) 17.1% 17.6%,
      transparent 17.6% 19.2%,
      rgba(255, 109, 53, 0.83) 19.2% 20%,
      transparent 20% 21.5%,
      rgba(255, 109, 53, 0.97) 21.5% 22.2%,
      transparent 22.2% 23.5%,
      rgba(255, 109, 53, 0.75) 23.5% 24.1%,
      transparent 24.1% 26%,
      rgba(255, 109, 53, 0.92) 26% 26.7%,
      transparent 26.7% 28.1%,
      rgba(255, 109, 53, 0.88) 28.1% 29%,
      transparent 29% 30.4%,
      rgba(255, 109, 53, 0.82) 30.4% 31.1%,
      transparent 31.1% 33%,
      rgba(255, 109, 53, 0.95) 33% 33.9%,
      transparent 33.9% 35.2%,
      rgba(255, 109, 53, 0.78) 35.2% 36%,
      transparent 36% 37.4%,
      rgba(255, 109, 53, 0.9) 37.4% 38.2%,
      transparent 38.2% 40%,
      rgba(255, 109, 53, 0.82) 40% 40.6%,
      transparent 40.6% 42.3%,
      rgba(255, 109, 53, 0.95) 42.3% 43.2%,
      transparent 43.2% 44.7%,
      rgba(255, 109, 53, 0.74) 44.7% 45.2%,
      transparent 45.2% 47%,
      rgba(255, 109, 53, 0.92) 47% 47.8%,
      transparent 47.8% 49.3%,
      rgba(255, 109, 53, 0.79) 49.3% 50.1%,
      transparent 50.1% 52%,
      rgba(255, 109, 53, 0.94) 52% 52.8%,
      transparent 52.8% 54.2%,
      rgba(255, 109, 53, 0.76) 54.2% 54.8%,
      transparent 54.8% 56.6%,
      rgba(255, 109, 53, 0.92) 56.6% 57.5%,
      transparent 57.5% 59.4%,
      rgba(255, 109, 53, 0.84) 59.4% 60.1%,
      transparent 60.1% 62%,
      rgba(255, 109, 53, 0.97) 62% 62.9%,
      transparent 62.9% 64.5%,
      rgba(255, 109, 53, 0.78) 64.5% 65.1%,
      transparent 65.1% 67%,
      rgba(255, 109, 53, 0.9) 67% 67.9%,
      transparent 67.9% 69.4%,
      rgba(255, 109, 53, 0.82) 69.4% 70.2%,
      transparent 70.2% 72.4%,
      rgba(255, 109, 53, 0.94) 72.4% 73.1%,
      transparent 73.1% 75.2%,
      rgba(255, 109, 53, 0.74) 75.2% 75.8%,
      transparent 75.8% 77.6%,
      rgba(255, 109, 53, 0.91) 77.6% 78.4%,
      transparent 78.4% 80.2%,
      rgba(255, 109, 53, 0.8) 80.2% 81%,
      transparent 81% 82.8%,
      rgba(255, 109, 53, 0.95) 82.8% 83.7%,
      transparent 83.7% 85.4%,
      rgba(255, 109, 53, 0.77) 85.4% 86.2%,
      transparent 86.2% 88.2%,
      rgba(255, 109, 53, 0.92) 88.2% 89.1%,
      transparent 89.1% 90.8%,
      rgba(255, 109, 53, 0.83) 90.8% 91.5%,
      transparent 91.5% 93.4%,
      rgba(255, 109, 53, 0.96) 93.4% 94.2%,
      transparent 94.2% 100%);
  opacity: 0.96;
  clip-path: polygon(0 52%, 3% 48%, 6% 66%, 9% 35%, 12% 72%, 15% 42%, 18% 61%, 21% 24%, 24% 69%, 27% 39%, 30% 62%, 33% 18%, 36% 77%, 39% 43%, 42% 58%, 45% 25%, 48% 71%, 51% 33%, 54% 63%, 57% 40%, 60% 68%, 63% 29%, 66% 75%, 69% 42%, 72% 60%, 75% 23%, 78% 71%, 81% 37%, 84% 65%, 87% 31%, 90% 73%, 93% 41%, 96% 59%, 100% 50%, 100% 50%, 96% 41%, 93% 63%, 90% 27%, 87% 72%, 84% 33%, 81% 66%, 78% 38%, 75% 71%, 72% 22%, 69% 58%, 66% 41%, 63% 77%, 60% 30%, 57% 69%, 54% 36%, 51% 61%, 48% 28%, 45% 74%, 42% 34%, 39% 57%, 36% 20%, 33% 70%, 30% 40%, 27% 60%, 24% 31%, 21% 76%, 18% 26%, 15% 63%, 12% 39%, 9% 73%, 6% 31%, 3% 57%, 0 48%);
}

.source-track-card__meta {
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.45;
  word-break: break-word;
  font-size: 0.92rem;
}

.style-composer {
  border-radius: 28px;
  background: #1b1b20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.style-composer__body {
  position: relative;
  min-height: 148px;
  padding: 18px 18px 0;
}

.style-composer__body textarea {
  width: 100%;
  min-height: 108px;
  padding: 8px 52px 36px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  resize: none;
}

.prompt-tools--style {
  top: 18px;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 16px;
  overflow: visible;
}

.advanced-tuning {
  margin-top: -2px;
}

.advanced-grid {
  display: none;
}

.creation-panel.is-pro .advanced-grid {
  display: grid;
}

.creation-panel.is-pro .basic-only {
  display: none;
}

.creation-panel.is-pro .form-help {
  order: 99;
}

.toggle-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #1b1b20;
  color: #f2f2f4;
}

.toggle-card input {
  accent-color: #ff6b2d;
}

.form-help {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  line-height: 1.45;
}

.is-hidden {
  display: none;
}

.results-toolbar--stack {
  grid-template-columns: 1fr;
}

.results-toolbar--library {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

.results-toolbar--photo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.results-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.08;
  max-width: 100%;
}

.results-subtitle {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.results-retention-note {
  margin: 8px 0 0;
  color: rgba(255, 194, 130, 0.92);
  font-size: 0.95rem;
}

.status-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #f2f2f4;
}

.status-banner--error {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
}

.task-list {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.library-tools {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.favorite-filter,
.library-clear,
.player-btn,
.player-close,
.composition-card__icon,
.composition-card__menu,
.composition-card__star,
.composition-card__rename {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.favorite-filter.is-active,
.composition-card__star.is-active {
  background: linear-gradient(180deg, #8d38ff, #6120d0);
}

.library-search {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #232327;
}

.library-search__icon {
  color: var(--text-soft);
}

.library-search input {
  min-width: 0;
  min-height: 40px;
  color: var(--text);
}

.processing-list,
.composition-list {
  display: grid;
  gap: 12px;
}

.processing-list {
  margin-bottom: 18px;
}

.processing-card {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 18px;
  background: #363638;
}

.processing-card__bar {
  position: absolute;
  inset: 10px 12px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 109, 53, 0.94), rgba(242, 76, 115, 0.9)),
    radial-gradient(circle at 20% 50%, rgba(255, 210, 92, 0.35), transparent 20%),
    radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.18), transparent 16%);
  opacity: 0.96;
  transform-origin: left center;
  animation: processingSlide 2.1s linear infinite;
}

.processing-card__text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
}

.library-empty {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.library-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.library-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.library-pagination__nav,
.library-pagination__page {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.library-pagination__page.is-active {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  border-color: transparent;
  color: #fff;
}

.library-pagination__nav:disabled {
  opacity: 0.42;
  cursor: default;
}

.composition-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #2f2f33;
}

.composition-card.is-playing {
  box-shadow: inset 0 0 0 1px rgba(255, 109, 53, 0.5);
}

.composition-card__cover {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--cover-gradient, linear-gradient(135deg, #3a4361, #f85a70));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.composition-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.composition-card__duration {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.75rem;
}

.composition-card__body {
  min-width: 0;
}

.composition-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.composition-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.composition-card__desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.composition-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f2f2f4;
  font-size: 0.8rem;
  white-space: nowrap;
}

.chip-badge--accent {
  background: rgba(255, 255, 255, 0.16);
}

.composition-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.composition-card__action-pill {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.composition-card__icon {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.composition-menu {
  position: fixed;
  z-index: 80;
  min-width: 260px;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  padding: 12px;
  border-radius: 24px;
  background: #343438;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
}

.composition-menu[hidden] {
  display: none;
}

.composition-menu__item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  text-align: left;
}

.composition-menu__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.composition-menu__item--danger {
  color: #ffc1c1;
}

.composition-menu__divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.12);
}

.player-dock {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr minmax(180px, 240px) 42px;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  padding: 12px 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px 18px 0 0;
  background: rgba(15, 15, 18, 0.96);
  backdrop-filter: blur(12px);
}

.player-dock__track {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}

.player-dock__cover {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--cover-gradient, linear-gradient(135deg, #3a4361, #f85a70));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.player-dock__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-dock__meta strong {
  display: block;
  margin-bottom: 8px;
}

.player-dock__time {
  color: var(--text-soft);
}

.player-dock__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.player-btn--play {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1rem;
}

.player-btn.is-active {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
}

.player-dock__volume {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.player-dock__volume input,
.player-progress {
  width: 100%;
  accent-color: #f56b33;
}

.player-progress {
  grid-column: 1 / -1;
  cursor: pointer;
}

@keyframes processingSlide {
  0% {
    transform: scaleX(0.58);
    filter: saturate(0.95);
  }
  50% {
    transform: scaleX(0.9);
    filter: saturate(1.15);
  }
  100% {
    transform: scaleX(0.58);
    filter: saturate(0.95);
  }
}

.task-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #17171c;
}

.task-card--empty {
  color: var(--text-soft);
}

.task-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.task-card__head strong {
  display: block;
  margin-bottom: 6px;
}

.task-card__head p,
.task-card__note,
.task-card__empty {
  margin: 0;
  color: var(--text-soft);
}

.task-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

.generated-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.generated-item p {
  margin: 4px 0 0;
  color: var(--text-soft);
}

.generated-item__links {
  display: flex;
  gap: 10px;
}

.generated-item__links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.results-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 20px;
  color: var(--text-soft);
}

.results-divider::before,
.results-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .field-grid--double,
  .field-grid--triple,
  .toggle-row,
  .style-grid {
    grid-template-columns: 1fr;
  }

  .composer-toolbar,
  .audio-upload-box {
    flex-direction: column;
  }

  .generated-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .library-tools {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .library-clear {
    display: none;
  }

  .composition-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .composition-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .player-dock {
    grid-template-columns: 1fr;
  }

  .player-dock__volume {
    justify-content: flex-start;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-avatar-card {
    justify-items: center;
  }

  .profile-form-card {
    max-width: 100%;
  }
}

body[data-page="home"] .sidebar {
  background: linear-gradient(180deg, rgba(25, 14, 5, 0.86), rgba(5, 6, 10, 0.94));
}

body[data-page="home"] .logo {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

body[data-page="home"] .auth-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

body[data-page="home"] .auth-btn--yandex {
  background: linear-gradient(90deg, #ff8b1e, #ff5b6e);
  box-shadow: 0 0 30px rgba(255, 121, 48, 0.25);
}

body[data-page="home"] .auth-btn--vk {
  background: rgba(255, 255, 255, 0.05);
}

body[data-page="home"] .sidebar-nav a,
body[data-page="home"] .sidebar-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

body[data-page="home"] .sidebar-nav a:hover,
body[data-page="home"] .sidebar-footer a:hover,
body[data-page="home"] .sidebar-nav a.is-active {
  color: #fff;
}

body[data-page="home"] .sidebar-nav a::before,
body[data-page="home"] .sidebar-footer a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

body[data-page="home"] .sidebar-footer a.sidebar-social-button::before,
body[data-page="home"] .sidebar-footer a.sidebar-support-link::before {
  display: none;
  width: 0;
  height: 0;
  margin-right: 0;
  border: 0;
}

body[data-page="home"] .account-dock {
  margin-top: 4px;
}

body[data-page="home"] .account-trigger {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .account-menu {
  left: 0;
  right: auto;
  width: min(100%, 236px);
}

body[data-page="home"] .quick-start {
  max-width: 100%;
  padding: 24px 20px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(94, 9, 74, 0.65), rgba(110, 62, 216, 0.28), rgba(248, 178, 93, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

body[data-page="home"] .quick-start h3 {
  font-size: 1.75rem;
}

body[data-page="home"] .quick-start p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

body[data-page="home"] .hero-banner {
  position: relative;
  height: 430px;
  min-height: 430px;
  margin-bottom: 28px;
  padding: 44px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(90deg, rgba(4, 8, 18, 0.82), rgba(4, 8, 18, 0.28)),
    radial-gradient(circle at top left, rgba(255, 157, 0, 0.16), transparent 28%),
    radial-gradient(circle at top center, rgba(56, 103, 255, 0.2), transparent 30%),
    #060913;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page="home"] .hero-banner::after {
  display: none;
}

body[data-page="home"] .hero-overlay {
  position: relative;
  z-index: 2;
  width: min(100%, 700px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}

body[data-page="home"] .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body[data-page="home"] .hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 4, 12, 0.94) 0%, rgba(2, 4, 12, 0.72) 24%, rgba(2, 4, 12, 0.28) 54%, rgba(2, 4, 12, 0.58) 100%);
}

body[data-page="home"] .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 150, 32, 0.16), transparent 26%),
    radial-gradient(circle at 78% 20%, rgba(255, 64, 129, 0.18), transparent 22%),
    linear-gradient(180deg, transparent 0%, rgba(4, 7, 15, 0.08) 100%);
}

body[data-page="home"] .hero-media--music-studio {
  background-image:
    linear-gradient(90deg, rgba(8, 10, 18, 0.1), rgba(8, 10, 18, 0.1)),
    url("https://images.unsplash.com/photo-1619983081563-430f63602796?auto=format&fit=crop&w=1800&h=760&q=80");
}

body[data-page="home"] .hero-media--brand {
  background-image:
    linear-gradient(90deg, rgba(8, 10, 18, 0.16), rgba(8, 10, 18, 0.16)),
    linear-gradient(120deg, rgba(10, 18, 42, 0.94) 0 55%, rgba(26, 38, 82, 0.88) 55% 62%, rgba(8, 12, 26, 0.94) 62% 72%, rgba(16, 25, 52, 0.9) 72% 80%, rgba(8, 12, 26, 0.94) 80% 100%);
}

body[data-page="home"] .hero-media--brand::after {
  background:
    linear-gradient(90deg, rgba(3, 5, 15, 0.25), rgba(3, 5, 15, 0.1)),
    radial-gradient(circle at 76% 42%, rgba(161, 177, 215, 0.3), transparent 18%);
}

body[data-page="home"] .hero-media--brand::before {
  background:
    linear-gradient(90deg, rgba(2, 4, 12, 0.95) 0%, rgba(2, 4, 12, 0.74) 30%, rgba(2, 4, 12, 0.34) 56%, rgba(2, 4, 12, 0.42) 100%);
}

body[data-page="home"] .hero-media--brand {
  background-color: #070b18;
}

body[data-page="home"] .hero-media--brand::after {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body[data-page="home"] .hero-media--image {
  background-image:
    linear-gradient(90deg, rgba(8, 10, 18, 0.12), rgba(8, 10, 18, 0.12)),
    url("https://images.unsplash.com/photo-1545239351-1141bd82e8a6?auto=format&fit=crop&w=1800&h=760&q=80");
  background-position: center 34%;
}

body[data-page="home"] .hero-media--video {
  background-image:
    linear-gradient(90deg, rgba(8, 10, 18, 0.12), rgba(8, 10, 18, 0.12)),
    url("https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?auto=format&fit=crop&w=1800&h=760&q=80");
  background-position: center 46%;
}

body[data-page="home"] .hero-banner .primary-btn {
  position: relative;
  z-index: 2;
}

.creation-panel--photo,
.results-panel--photo {
  min-height: calc(100vh - 36px);
}

.results-panel--photo {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.panel-head--photo {
  margin-bottom: 14px;
}

.photo-field {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.photo-field__icon,
.photo-field__label {
  color: #fff;
  font-weight: 700;
}

.photo-native-select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
  appearance: auto;
  padding: 0 4px;
}

.photo-native-select option {
  color: #fff;
  background: #25252d;
}

.prompt-composer--photo {
  margin-bottom: 16px;
}

.photo-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 120px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  color: #f0f1f5;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
  overflow: hidden;
}

.photo-slot:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.photo-slot--disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.photo-slot__plus {
  font-size: 1.8rem;
  font-weight: 800;
  color: #f4f4f8;
}

.photo-slot__label {
  font-weight: 700;
}

.photo-slot__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.7);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-slot__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 14, 22, 0.72);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.photo-field--select,
.photo-pill-select {
  overflow: visible;
}

.photo-toolbar-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.photo-pill-select {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.photo-pill-select__icon {
  color: rgba(255, 255, 255, 0.74);
}

.photo-native-select--pill {
  font-weight: 700;
}

.photo-note {
  min-height: 22px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.photo-stage {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.photo-stage__card {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.photo-stage__card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
}

.photo-stage__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-stage__empty {
  width: 100%;
  max-width: none;
  min-height: 320px;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.photo-stage__empty h3 {
  margin: 0 0 14px;
  font-size: 2.05rem;
  line-height: 1.08;
  color: #f5f6ff;
  max-width: 12ch;
}

.photo-stage__empty p {
  margin: 0;
  line-height: 1.72;
  font-size: 1rem;
  max-width: 40rem;
}

.photo-history-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.photo-history-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.photo-history-panel__head h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #f3f4ff;
}

.photo-stage__card[hidden],
.photo-history-panel[hidden],
.photo-modal[hidden],
.results-panel--photo .library-empty[hidden] {
  display: none !important;
}

.photo-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
}

.photo-history-card {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.photo-history-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.photo-history-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 14, 0.92));
  text-align: left;
}

.photo-history-card__overlay strong,
.photo-history-card__overlay span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-modal-open {
  overflow: hidden;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.photo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 12, 0.76);
  backdrop-filter: blur(12px);
}

.photo-modal__card {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100vw - 40px));
  margin: 8vh auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 30, 34, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.photo-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.photo-modal__media {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.photo-modal__media img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.photo-modal__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.photo-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 42px;
}

.photo-modal__head h3 {
  margin: 0;
  font-size: 1.95rem;
}

.photo-modal__prompt {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.photo-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-modal__chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #edf0ff;
  font-weight: 700;
}

.photo-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-chip--icon {
  min-width: 46px;
  justify-content: center;
}

.ghost-chip--wide {
  width: 100%;
  justify-content: center;
}

.results-panel--photo .library-empty {
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .photo-modal__card {
    grid-template-columns: 1fr;
    width: min(720px, calc(100vw - 24px));
  }

  .photo-stage {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .photo-stage__card {
    width: min(100%, 280px);
  }

  .photo-stage__empty {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .photo-reference-grid,
  .photo-toolbar-row {
    grid-template-columns: 1fr 1fr;
  }

  .photo-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-modal__card {
    margin-top: 3vh;
    padding: 14px;
  }

  .photo-modal__head h3 {
    font-size: 1.5rem;
  }
}

body[data-page="home"] .hero-slides {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 12px;
}

body[data-page="home"] .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 18px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="home"] .eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff9a1f;
  box-shadow: 0 0 16px rgba(255, 154, 31, 0.8);
}

body[data-page="home"] .hero-banner h1 {
  margin: 20px 0 18px;
  max-width: 640px;
  font-size: clamp(3.35rem, 4.6vw, 4.45rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 900;
}

body[data-page="home"] .hero-banner h1 br {
  display: block;
}

body[data-page="home"] .hero-banner[data-hero-variant="brand"] h1 {
  max-width: 600px;
  font-size: clamp(2.9rem, 4vw, 3.7rem);
  line-height: 0.94;
  margin: 18px 0 14px;
}

body[data-page="home"] .hero-banner[data-hero-variant="music"] h1 {
  max-width: 560px;
  font-size: clamp(3.15rem, 4.25vw, 4rem);
  line-height: 0.95;
  margin: 18px 0 14px;
}

body[data-page="home"] .hero-banner[data-hero-variant="image"] h1,
body[data-page="home"] .hero-banner[data-hero-variant="video"] h1 {
  max-width: 560px;
  font-size: clamp(3rem, 4.1vw, 3.85rem);
  line-height: 0.95;
  margin: 18px 0 14px;
}

body[data-page="home"] .hero-banner h1 .gradient-text,
body[data-page="home"] .gradient-text {
  display: block;
  background: linear-gradient(90deg, #ffb000, #ff7a00, #ffd36a, #77a2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-page="home"] .hero-text {
  max-width: 620px;
  margin: 0 0 20px;
  font-size: 1.22rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

body[data-page="home"] .hero-banner[data-hero-variant="brand"] .hero-text {
  max-width: 520px;
  font-size: 1.08rem;
  margin: 0 0 14px;
}

body[data-page="home"] .hero-banner[data-hero-variant="music"] .hero-text {
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.46;
  margin: 0 0 16px;
}

body[data-page="home"] .hero-banner[data-hero-variant="image"] .hero-text,
body[data-page="home"] .hero-banner[data-hero-variant="video"] .hero-text {
  max-width: 500px;
  font-size: 1.06rem;
  line-height: 1.45;
  margin: 0 0 16px;
}

body[data-page="home"] .primary-btn {
  align-self: flex-start;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff8a00, #ff5a3d);
  box-shadow: 0 14px 40px rgba(255, 122, 0, 0.34);
  font-size: 1.1rem;
}

body[data-page="home"] .hero-banner[data-hero-variant="brand"] .primary-btn {
  min-height: 54px;
  padding: 0 24px;
}

body[data-page="home"] .hero-banner[data-hero-variant="music"] .primary-btn {
  min-height: 54px;
  padding: 0 24px;
}

body[data-page="home"] .hero-banner[data-hero-variant="image"] .primary-btn,
body[data-page="home"] .hero-banner[data-hero-variant="video"] .primary-btn {
  min-height: 54px;
  padding: 0 24px;
}

body[data-page="home"] .hero-dot {
  border: 0;
  cursor: pointer;
  width: 32px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

body[data-page="home"] .hero-dot:hover {
  transform: translateY(-1px);
}

body[data-page="home"] .hero-dot--active {
  width: 56px;
  background: rgba(255, 255, 255, 0.92);
}

body[data-page="home"] .feature-grid {
  gap: 20px;
  margin-bottom: 28px;
}

body[data-page="home"] .feature-card {
  min-height: 170px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(255, 136, 0, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(70, 103, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.03);
}

body[data-page="home"] .feature-card h2 {
  margin: 8px 0 0;
  font-size: clamp(2.2rem, 3vw, 3.3rem);
  font-weight: 900;
}

body[data-page="home"] .feature-visual--emoji {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  filter: drop-shadow(0 16px 28px rgba(255, 122, 0, 0.18));
}

body[data-page="profile"] .sidebar {
  background: linear-gradient(180deg, rgba(11, 11, 16, 0.94), rgba(8, 8, 12, 0.98));
}

.profile-panel {
  max-width: 1380px;
  padding: 8px 20px 40px;
}

.profile-title {
  margin: 0 0 34px;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.profile-grid {
  display: grid;
  grid-template-columns: 280px minmax(560px, 1fr);
  gap: 68px;
  align-items: start;
}

.profile-avatar-card {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #3aa8df, #2f85d8);
  color: #fff;
  font-size: 4rem;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.profile-avatar.has-image {
  background: rgba(255, 255, 255, 0.04);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.profile-form-card {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.profile-status {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
}

.profile-status[data-state="success"] {
  background: rgba(88, 213, 136, 0.12);
  color: #aef1c3;
}

.profile-status[data-state="error"] {
  background: rgba(255, 93, 115, 0.12);
  color: #ffc2cb;
}

.profile-form {
  display: grid;
  gap: 26px;
}

.profile-field {
  display: grid;
  gap: 10px;
}

.profile-field > span {
  font-size: 1.02rem;
  font-weight: 800;
}

.profile-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 10px;
  background: #1d1d22;
  color: #f2f2f4;
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 1rem;
}

.profile-readonly {
  position: relative;
}

.profile-readonly input {
  padding-right: 52px;
  color: rgba(255, 255, 255, 0.48);
}

.profile-copy-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
}

.profile-save-btn {
  width: min(100%, 420px);
  min-height: 42px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f16e39, #eb4e78);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(241, 110, 57, 0.18);
}

.eyebrow--static {
  margin-bottom: 18px;
}

.page-content--legal {
  padding: 22px 28px 40px;
}

.legal-panel {
  max-width: 1200px;
  padding: 8px 12px 32px;
}

.legal-panel__head {
  margin-bottom: 28px;
}

.legal-title {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.legal-meta {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.legal-card {
  display: grid;
  gap: 16px;
  padding: 26px 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(17, 18, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.legal-card h2 {
  margin: 14px 0 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.legal-card p,
.legal-card li {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
  font-size: 1rem;
}

.legal-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.legal-card a {
  color: #ffb14d;
}

.legal-company {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 980px) {
  .page-content--legal {
    padding: 18px 16px 30px;
  }

  .legal-card {
    padding: 20px;
  }
}

@media (max-width: 760px) {
  .logo {
    font-size: 1.9rem;
  }

  .auth-card {
    padding: 14px;
    border-radius: 20px;
  }

  .auth-card__head {
    margin-bottom: 10px;
  }

  .auth-card__head span,
  .auth-text {
    font-size: 0.76rem;
  }

  .social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .social-pill {
    min-height: 36px;
    font-size: 0.74rem;
  }

  .sidebar-nav {
    gap: 14px;
  }

  .sidebar-nav a,
  .sidebar-footer a {
    font-size: 0.92rem;
  }

  .quick-start {
    max-width: none;
    padding: 18px 16px;
    border-radius: 22px;
  }

  .quick-start h3 {
    font-size: 1rem;
  }

  .hero-banner,
  body[data-page="home"] .hero-banner {
    height: auto;
    min-height: 360px;
    padding: 24px 20px;
    margin-bottom: 20px;
    border-radius: 24px;
  }

  body[data-page="home"] .hero-overlay {
    width: 100%;
    max-width: 100%;
  }

  .eyebrow,
  body[data-page="home"] .eyebrow {
    max-width: 100%;
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .hero-banner h1,
  body[data-page="home"] .hero-banner h1,
  body[data-page="home"] .hero-banner[data-hero-variant="brand"] h1,
  body[data-page="home"] .hero-banner[data-hero-variant="music"] h1,
  body[data-page="home"] .hero-banner[data-hero-variant="image"] h1,
  body[data-page="home"] .hero-banner[data-hero-variant="video"] h1 {
    max-width: 100%;
    margin: 16px 0 12px;
    font-size: clamp(2.3rem, 10vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  .hero-text,
  body[data-page="home"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="brand"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="music"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="image"] .hero-text,
  body[data-page="home"] .hero-banner[data-hero-variant="video"] .hero-text {
    max-width: 100%;
    margin: 0 0 14px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .primary-btn,
  .secondary-btn,
  body[data-page="home"] .primary-btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }

  body[data-page="home"] .hero-slides {
    right: 18px;
    bottom: 18px;
    gap: 8px;
  }

  body[data-page="home"] .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body[data-page="home"] .feature-card {
    min-height: 138px;
    padding: 20px;
    border-radius: 22px;
  }

  body[data-page="home"] .feature-card h2 {
    font-size: 2.4rem;
  }

  body[data-page="home"] .feature-visual {
    transform: scale(0.88);
    transform-origin: right center;
  }

  body[data-page="home"] .collections {
    gap: 18px;
  }

  body[data-page="home"] .collection-column h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .panel-head {
    gap: 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .tab-switch {
    width: 100%;
  }

  .tab-switch__item {
    flex: 1;
  }

  .custom-dropdown--compact {
    width: 100%;
  }

  .compact-title-wrap,
  .advanced-grid,
  .style-grid,
  .library-tools {
    gap: 12px;
  }

  .prompt-composer__body {
    min-height: 210px;
    padding: 16px 16px 0;
  }

  .prompt-composer__body textarea {
    min-height: 154px;
    padding-right: 46px;
  }

  .composer-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .composer-chip,
  .custom-dropdown__trigger--chip {
    width: 100%;
    justify-content: center;
  }

  .audio-upload-box {
    grid-template-columns: 1fr;
  }

  .source-track-card__head {
    grid-template-columns: 42px minmax(0, 1fr) 38px;
  }

  .source-track-card__waveform {
    min-height: 88px;
  }

  .results-toolbar--library {
    margin-bottom: 6px;
  }

  .results-title {
    font-size: 2rem;
  }

  .results-subtitle,
  .results-retention-note {
    font-size: 0.92rem;
  }

  .status-banner {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .library-tools {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .composition-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .composition-card__cover {
    width: 56px;
    height: 56px;
  }

  .composition-card__title-row {
    margin-bottom: 6px;
  }

  .composition-card__title {
    font-size: 0.98rem;
  }

  .composition-card__desc {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .composition-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .composition-card__action-pill {
    min-height: 32px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .composition-card__icon,
  .composition-card__menu,
  .composition-card__star,
  .composition-card__rename {
    width: 38px;
    height: 38px;
  }

  .player-dock {
    position: static;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .player-dock__track {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .player-dock__cover {
    width: 56px;
    height: 56px;
  }

  .player-dock__controls {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .player-dock__volume {
    justify-content: flex-start;
  }

  .composition-menu {
    min-width: min(300px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .profile-panel,
  .legal-panel {
    padding: 4px 0 24px;
  }

  .profile-title,
  .legal-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .profile-grid {
    gap: 22px;
  }

  .profile-avatar {
    width: 140px;
    height: 140px;
    font-size: 3rem;
  }

  .profile-form-card {
    max-width: 100%;
  }

  .profile-form {
    gap: 18px;
  }

  .profile-field input {
    min-height: 48px;
    padding: 0 16px;
  }

  .profile-save-btn {
    width: 100%;
  }

  .legal-card {
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
  }

  .legal-card p,
  .legal-card li {
    font-size: 0.96rem;
    line-height: 1.6;
  }
}

@media (max-width: 560px) {
  .logo {
    font-size: 1.7rem;
  }

  .auth-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .social-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .sidebar-nav a::before,
  .sidebar-footer a::before {
    margin-right: 6px;
  }

  body[data-page="home"] .hero-banner {
    min-height: 330px;
    padding: 20px 16px;
  }

  body[data-page="home"] .hero-slides {
    left: 16px;
    right: auto;
    bottom: 16px;
  }

  body[data-page="home"] .feature-card h2 {
    font-size: 2rem;
  }

  .results-title {
    font-size: 1.7rem;
  }

  .composer-toolbar {
    grid-template-columns: 1fr;
  }

  .style-grid {
    grid-template-columns: 1fr;
  }

  .library-pagination {
    gap: 10px;
  }

  .library-pagination__nav,
  .library-pagination__page {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .composition-card__meta {
    gap: 6px;
  }

  .chip-badge {
    font-size: 0.78rem;
  }

  .player-dock__meta strong {
    margin-bottom: 4px;
  }

  .player-dock__time {
    font-size: 0.92rem;
  }

  .profile-readonly input {
    padding-right: 46px;
  }

  .legal-company {
    padding: 14px 16px;
  }
}

body[data-page="home"] .price-pill {
  min-height: 34px;
  color: rgba(255, 255, 255, 0.84);
}

body[data-page="home"] .collections {
  gap: 26px;
}

body[data-page="home"] .collection-column h3 {
  margin: 0 0 18px;
  font-size: 2rem;
  font-weight: 900;
}

body[data-page="home"] .track-card {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body[data-page="home"] .cover-art {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

body[data-page="home"] .track-info strong {
  font-size: 1.2rem;
}

body[data-page="home"] .track-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

body[data-page="home"] .badge {
  background: rgba(255, 140, 55, 0.14);
}

@media (max-width: 960px) {
  body[data-page="home"] .hero-banner {
    padding: 28px;
    height: 380px;
    min-height: 380px;
  }

  body[data-page="home"] .hero-media::before {
    background:
      linear-gradient(180deg, rgba(2, 4, 12, 0.9) 0%, rgba(2, 4, 12, 0.72) 38%, rgba(2, 4, 12, 0.6) 100%);
  }

  body[data-page="home"] .hero-slides {
    right: 22px;
    bottom: 20px;
  }
}

.feature-card--link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.feature-card--link:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.feature-card--link:focus-visible {
  outline: 2px solid rgba(255, 153, 91, 0.9);
  outline-offset: 3px;
}

.feature-card--link .feature-visual {
  transition: transform 0.2s ease;
}

.feature-card--link:hover .feature-visual {
  transform: translateY(-4px) scale(1.05);
}

body[data-page="home"] .feature-card--link:hover {
  background:
    linear-gradient(120deg, rgba(117, 58, 255, 0.28), rgba(255, 83, 111, 0.22)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(255, 136, 0, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(70, 103, 255, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.04);
}

.video-coming-card {
  width: min(760px, 100%);
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 115, 84, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(112, 78, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(27, 28, 36, 0.98), rgba(16, 17, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.video-coming-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffb68d;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-coming-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.95;
}

.video-coming-card p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
  line-height: 1.65;
}

.video-coming-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

