.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 1.1rem 0.9rem max(5.8rem, 1.25rem);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.1rem;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #151021 0%, #0f0b16 45%, #120e1a 100%);
  box-shadow: inset -1px 0 0 rgba(167, 139, 215, 0.1);
  backdrop-filter: none;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 2px 12px;
  text-align: center;
}

.brand-logo {
  display: inline-flex;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(250, 204, 21, 0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.brand-logo img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 22px;
  animation: brandLogoPulse 3.6s ease-in-out infinite;
}

.sidebar-brand:hover .brand-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 2px 12px rgba(250, 204, 21, 0.55));
}

.sidebar-brand:hover .brand-logo img {
  animation-play-state: paused;
}

@keyframes brandLogoPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(250, 204, 21, 0));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.45));
  }
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.25), rgba(202, 138, 4, 0.2));
  border: 1px solid rgba(250, 204, 21, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 4px 16px rgba(250, 204, 21, 0.15);
  display: grid;
  place-items: center;
  color: #fde047;
}

.brand-title {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand-title--gradient {
  font-family: "Bebas Neue", "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.72rem;
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: #ffffff;
}

.brand-word {
  color: #f8f4ff;
  text-shadow:
    0 0 14px rgba(232, 121, 249, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.45);
}

.brand-word--accent {
  color: #ff9ec4;
  text-shadow:
    0 0 16px rgba(255, 107, 129, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.45);
}

.brand-sub {
  font-size: 0.72rem;
  color: rgba(196, 181, 253, 0.72);
  margin-top: 0.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo img {
    animation: none;
  }
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #7c3aed, #a855f7);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.sidebar-user-email {
  font-size: 0.72rem;
  color: var(--muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.62rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translate(-12px, -50%) scaleY(0.4);
  width: 3px;
  height: 60%;
  border-radius: 3px;
  background: linear-gradient(180deg, #fef9c3, #facc15, #ca8a04);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(60% 80% at 0% 50%, rgba(250, 204, 21, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-label {
  flex: 1;
  position: relative;
  z-index: 1;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
}

.nav-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  background: linear-gradient(100deg, var(--suno-orange), var(--suno-pink));
  color: #fff;
}

.nav-item:hover {
  color: #fef3c7;
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.08), rgba(202, 138, 4, 0.05));
  border-color: rgba(250, 204, 21, 0.28);
  transform: translateX(2px);
}

.nav-item:hover::after {
  opacity: 1;
}

.nav-item:hover .nav-icon {
  color: #fef3c7;
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.12);
}

.nav-item:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.55);
  outline-offset: 2px;
}

.nav-item--active {
  color: #1a1300;
  border-color: rgba(253, 224, 71, 0.55);
  background: linear-gradient(135deg, #ffb347 0%, #ff6b81 40%, #e056fd 75%, #9b59f6 100%);
  box-shadow:
    0 8px 28px -10px rgba(224, 86, 253, 0.45),
    0 0 26px rgba(255, 107, 129, 0.18),
    inset 0 0 18px rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
}

.nav-item--active::before {
  transform: translate(0, -50%) scaleY(1);
  opacity: 1;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.7);
}

.nav-item--active::after {
  opacity: 1;
}

.nav-item--active .nav-icon {
  color: #1a1300;
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.18);
}

.nav-item--active .nav-label {
  color: #1a1300;
  font-weight: 800;
}

.nav-item--settings {
  color: #cbd5e1;
}

.nav-item--settings:hover {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.06);
}

.nav-item--settings:hover .nav-icon {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.1);
}

.sidebar-qris {
  margin-top: auto;
  padding: 0.7rem 0.65rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.08), rgba(0, 0, 0, 0.35));
  text-align: center;
}

.sidebar-qris__title {
  margin: 0 0 0.28rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fde047;
}

.sidebar-qris__lead {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(253, 224, 71, 0.72);
}

.sidebar-qris__img {
  display: block;
  width: 100%;
  max-width: 188px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  background: #fff;
}

.qris-welcome-card {
  width: min(360px, calc(100vw - 32px));
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.98), rgba(6, 6, 6, 0.99));
  border: 1px solid rgba(250, 204, 21, 0.38);
  border-radius: 22px;
  padding: 22px 20px 18px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(250, 204, 21, 0.16);
  text-align: center;
}

.qris-welcome-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fde047;
}

.qris-welcome-lead {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(253, 224, 71, 0.78);
}

.qris-welcome-img {
  display: block;
  width: min(260px, 72vw);
  height: auto;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: #fff;
}

.qris-welcome-btn {
  width: 100%;
  background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
  color: #1a1300;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.qris-welcome-btn:hover {
  filter: brightness(1.05);
}

@media (min-width: 961px) {
  .qris-welcome {
    display: none;
  }
}

.sidebar-status {
  margin-top: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52525b;
  flex-shrink: 0;
}

.status-dot--on {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
}

.status-text {
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.status-main {
  color: #e2e8f0;
  font-weight: 700;
}

.status-sub {
  color: var(--muted);
  font-size: 0.74rem;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  border-radius: 8px;
}

.footer-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.footer-meta {
  font-size: 0.72rem;
  color: var(--muted);
  padding-left: 0.5rem;
}

.main {
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.6rem 1rem 0 0.65rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse 100% 80% at 0% 0%, rgba(59, 130, 246, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 15%, var(--violet-glow), transparent 50%),
    linear-gradient(180deg, #060608 0%, #000000 55%);
}

/* Tab Create: lebih rapat ke atas (semacam workspace Suno) */
.main.main--generate {
  padding-top: 0.15rem;
}

/* Area konten tab saja yang di-scroll; main-header (judul) tetap di atas. */
.main__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2rem;
}

.main__scroll--focus-results {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-bottom: max(0.15rem, calc(3.95rem + env(safe-area-inset-bottom, 0px) + var(--mobile-nav-h)));
}

.main--with-player .main__scroll {
  padding-bottom: max(0.15rem, calc(3.95rem + env(safe-area-inset-bottom, 0px) + var(--mobile-nav-h)));
}

.main-header {
  margin-bottom: 1rem;
}

.main-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.main-topbar-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #e5e7eb;
  font-size: 0.82rem;
}

.main-topbar-brand > strong {
  font-size: 0.9rem;
  color: #fff;
}

.main-topbar-brand > span {
  color: #94a3b8;
}

.main-topbar-credit {
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(7, 10, 18, 0.9);
}

.main-topbar-nav {
  display: inline-flex;
  gap: 0.45rem;
}

.top-nav-item {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(7, 10, 18, 0.9);
  color: #cbd5e1;
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.top-nav-item--active {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25);
}

.page-title {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(120deg, #ffffff 0%, #d4d4d8 45%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 56ch;
  line-height: 1.55;
}

.env-banner {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: #fde68a;
  font-size: 0.85rem;
}

.main.main--generate .env-banner {
  margin-top: 0.45rem;
}

.env-banner code {
  font-size: 0.8em;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.playground-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) minmax(280px, 340px);
  gap: 1rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.playground-grid > * {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

/* Responsif laptop / layar menengah: lebih lapang baca, sidebar lebih ramping */
@media (max-width: 1400px) {
  html {
    --sidebar-w: 236px;
  }

  .playground-grid {
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) minmax(240px, 300px);
  }

  .main {
    padding-left: 0.55rem;
    padding-right: 0.75rem;
  }

  .zu-detail-text {
    font-size: 0.84rem;
    line-height: 1.52;
  }

  .zu-recent-name {
    font-size: 0.84rem;
  }

  .zu-recent-meta {
    font-size: 0.72rem;
    line-height: 1.45;
  }
}

@media (max-width: 1240px) {
  html {
    --sidebar-w: 212px;
  }

  .sidebar {
    padding: 0.85rem 0.65rem max(5.8rem, 1rem);
    gap: 0.85rem;
  }

  .brand-title--gradient {
    font-size: 1.45rem;
  }

  .nav-item {
    padding: 0.52rem 0.55rem;
  }

  .playground-grid {
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px) minmax(220px, 280px);
  }

  .zu-compose-head .panel-title {
    font-size: 0.95rem;
  }

  .zu-right-col .panel-title {
    font-size: 0.98rem;
  }

  .zu-panel-eyebrow {
    font-size: 0.58rem;
  }

  .zu-detail-title {
    font-size: 0.95rem;
  }
}

/* Dua kolom atas + panel detail lebar penuh di bawah */
@media (max-width: 1160px) {
  html {
    --sidebar-w: 200px;
  }

  .playground-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, min(36vw, 340px));
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .playground-grid > form.playground-form {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
  }

  .playground-grid > .zu-right-col {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
  }

  .playground-grid > .zu-detail-col {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: min(42vh, 380px);
    min-height: 0;
  }

  .zu-detail-col .panel-right {
    max-height: inherit;
  }

  .zu-detail-body {
    max-height: min(36vh, 340px);
  }
}

@media (max-width: 1040px) {
  html {
    --sidebar-w: 188px;
  }

  .sidebar-status .status-sub {
    font-size: 0.68rem;
  }
}

@media (max-width: 960px) {
  html {
    --sidebar-w: 260px;
    --mobile-nav-h: calc(52px + env(safe-area-inset-bottom, 0px));
  }

  /* Scroll vertikal satu halaman — jangan kunci konten Generate */
  .main__scroll--focus-results {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .playground-grid > form.playground-form,
  .playground-grid > .zu-right-col,
  .playground-grid > .zu-detail-col {
    grid-column: unset;
    grid-row: unset;
    max-height: none;
  }

  .zu-detail-body {
    max-height: none;
    overflow-y: visible;
  }

  .zu-right-col .panel-right,
  .zu-detail-col .panel-right {
    height: auto;
  }

  /* Composer mengikuti tinggi konten */
  .playground-form--suno.zu-compose-panel {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  /* Area library scroll internal — sama dengan Kampung Lagu */
  .zu-recent-list--scroll {
    flex: 0 1 auto;
    min-height: 140px;
    max-height: min(50vh, 420px);
  }

  .layout {
    flex-direction: column;
  }

  /* Sidebar: satu kolom rapi (tablet + HP), bukan baris berantakan */
  .sidebar {
    width: 100%;
    flex-shrink: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0.55rem 0.75rem 0.65rem;
    gap: 0.55rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .sidebar-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    padding: 0.2rem 0.1rem;
    text-align: left;
  }

  .sidebar-brand .brand-logo img {
    width: 42px;
    height: 42px;
    animation: none;
  }

  .sidebar-brand .brand-title--gradient {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    margin: 0 0 2px;
  }

  .sidebar-brand .brand-word {
    color: #f5f0ff;
  }

  .sidebar-brand .brand-word--accent {
    color: #ff9ec4;
  }

  .sidebar-brand .brand-sub {
    display: block;
    font-size: 0.65rem;
    color: rgba(196, 181, 253, 0.65);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .brand-text-wrap {
    align-items: flex-start;
  }

  /* Create / Settings ada di mobile-bottom-nav */
  .sidebar-nav {
    display: none;
  }

  .sidebar-qris {
    display: none;
  }

  .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.45rem 0.35rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.035);
  }

  .nav-label {
    font-size: 0.78rem;
    font-weight: 600;
  }

  .sidebar-status {
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .playground-grid {
    grid-template-columns: 1fr;
    flex: none;
    width: 100%;
    gap: 1.1rem;
  }

  .zu-right-col,
  .zu-detail-col {
    width: 100%;
    min-width: 0;
  }

  .zu-right-col {
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .zu-detail-col {
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .card--side.panel-right {
    width: 100%;
    box-sizing: border-box;
  }

  /* Type: batasi lebar di tablet agar tidak meregang melebihi proporsi */
  .zu-compose-type-block {
    max-width: min(22rem, 100%);
  }

  .zu-vocal-gender-compact {
    max-width: min(22rem, 100%);
  }
}

/* Telepon: header kompak, tab tiga kolom, konten rapat */
@media (max-width: 640px) {
  .sidebar {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 0.5rem 0.6rem 0.55rem;
    gap: 0.45rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar-brand {
    flex-direction: row;
    align-items: center;
    min-width: 0;
    padding: 0.15rem 0;
    gap: 0.55rem;
    text-align: left;
  }

  .sidebar-brand .brand-logo img {
    width: 36px;
    height: 36px;
    animation: none;
  }

  .sidebar-brand .brand-title--gradient {
    font-size: 1rem;
    letter-spacing: 0.06em;
    margin: 0 0 1px;
  }

  .sidebar-brand .brand-sub {
    display: block;
    font-size: 0.6rem;
    color: rgba(196, 181, 253, 0.6);
    letter-spacing: 0.1em;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .sidebar-nav {
    display: none;
  }

  .nav-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.45rem 0.2rem 0.5rem;
    min-height: 3.1rem;
    position: relative;
  }

  .nav-icon {
    opacity: 1;
  }

  .nav-icon svg {
    width: 19px;
    height: 19px;
  }

  .nav-label {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.1;
  }

  .nav-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.15rem;
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: 0.6rem;
    padding: 0 0.2rem;
  }

  .nav-item--active {
    box-shadow: none;
    border: 1px solid rgba(250, 204, 21, 0.45);
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
  }

  .sidebar-qris {
    display: none;
  }

  .sidebar-status {
    margin-top: 0.2rem;
    padding: 0.35rem 0.45rem;
    font-size: 0.7rem;
    width: 100%;
    box-sizing: border-box;
  }

  .status-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.22;
  }

  .main {
    padding: 0.7rem 0.75rem 0;
  }

  .main__scroll {
    padding-bottom: 1.25rem;
  }

  .main-header {
    margin-bottom: 0.65rem;
  }

  /* Judul kecil = label konteks; deskripsi = teks utama (hindari duplikasi tebal dengan menu) */
  .page-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a3a3a3;
    margin: 0 0 0.2rem;
    background: none;
    -webkit-text-fill-color: #a3a3a3;
  }

  .page-desc {
    font-size: 0.9rem;
    color: #f5f5f5;
    font-weight: 500;
    line-height: 1.45;
    max-width: none;
    margin: 0;
  }

  .env-banner {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    padding: 0.55rem 0.7rem;
  }

  .card {
    padding: 1rem 0.9rem;
    border-radius: 14px;
  }

  .settings-zu-card {
    padding: 1rem 0.9rem;
  }
}

.card {
  position: relative;
  background: linear-gradient(165deg, var(--card-elevated) 0%, var(--card) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card--compose {
  background: linear-gradient(155deg, rgba(20, 20, 28, 0.98) 0%, var(--card) 55%, #0a0a0c 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card--compose::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, #3b82f6, #8b5cf6 45%, #ec4899);
  opacity: 0.9;
  pointer-events: none;
}

.card--side {
  background: linear-gradient(175deg, rgba(18, 18, 24, 0.98) 0%, rgba(12, 12, 16, 0.99) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  padding: 1.15rem 1.25rem 1.2rem;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.card--side::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.35), transparent);
  pointer-events: none;
  opacity: 0.7;
}

.playground-form {
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
}

.zu-form-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -0.2rem;
}

.zu-segment {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}

.zu-segment-btn {
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.zu-segment-btn--on {
  color: #fff;
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.9), rgba(217, 70, 239, 0.8));
}

.zu-segment--suno {
  width: 100%;
  max-width: 100%;
  padding: 0.26rem;
  border-radius: 10px;
  background: #14161f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
}

.zu-segment--suno .zu-segment-btn {
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.36rem 0.28rem;
}

.zu-segment--suno .zu-segment-btn--on {
  color: #fff;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.55), rgba(99, 102, 241, 0.45));
  box-shadow:
    0 2px 12px rgba(59, 130, 246, 0.22),
    inset 0 0 0 1px rgba(147, 197, 253, 0.35);
}

.zu-segment--suno .zu-segment-btn:hover:not(.zu-segment-btn--on) {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.05);
}

.zu-form-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0;
}

.zu-form-header-row > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
}

.zu-form-header-row--adv-only {
  justify-content: flex-end;
}

.zu-form-header-row--adv-only > div:first-child {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .zu-form-header-meta {
    width: 100%;
    align-self: stretch;
  }

  .zu-model-wrap {
    width: 100%;
    align-items: stretch;
  }

  .zu-model-select {
    max-width: none;
    width: 100%;
  }
}

.zu-form-header-row .zu-form-label {
  margin-bottom: 0.2rem;
}

.zu-form-header-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 0;
}

.zu-model-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
}

.zu-model-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.zu-meta-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: #fce7f3;
  background: rgba(236, 72, 153, 0.22);
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.zu-model-select {
  min-width: 5.5rem;
  max-width: 11rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.22rem 1.4rem 0.22rem 0.48rem;
  border-radius: 8px;
  color: #f1f5f9;
  -webkit-text-fill-color: #f1f5f9;
  background-color: #161922;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2393c5fd' d='M1.4 0h9.2L6 5.2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 10px 7px;
  border: 1px solid rgba(120, 130, 180, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.zu-model-select:hover {
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 3px 12px rgba(59, 130, 246, 0.12);
}

.zu-model-select option {
  color: #e2e8f0;
  background: #0f172a;
}

.zu-model-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45);
  border-color: rgba(59, 130, 246, 0.5);
}

.zu-sounds-hint {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Kolom composer: tanpa chrome kartu — selaras kolom Library (flat, menyatu dengan grid). */
.playground-form--suno.zu-compose-panel {
  position: relative;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding: 0.2rem 0.7rem 0.2rem 0.45rem;
  gap: 0.48rem;
  border: none;
  background: transparent;
  box-shadow: none;
  /* Ruang scroll di bawah konten; selaras dengan clearance player supaya CTA tidak “mengambang” */
  padding-bottom: 0.2rem;
}

.zu-compose-head {
  margin-bottom: 0.38rem;
  flex-shrink: 0;
}

.zu-compose-head .panel-title {
  margin: 0;
}

.zu-top-sticky {
  position: relative;
  z-index: 9;
  margin: 0 0 0.32rem;
  padding: 0.38rem 0.5rem 0.42rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #0e1017;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 22px rgba(0, 0, 0, 0.38);
}

@media (min-width: 961px) {
  .zu-top-sticky {
    position: sticky;
    top: 0;
  }
}

.zu-compose-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.35rem 0.55rem;
}

.zu-compose-type-block {
  flex: 1 1 200px;
  min-width: 0;
}

.zu-compose-type-block .zu-form-label {
  color: #a8b0c4;
  margin-bottom: 0.12rem;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.zu-model-wrap--toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
  flex: 0 0 auto;
}

.zu-top-sticky .zu-model-label {
  color: #8b92a8;
}

.zu-segment-btn:hover {
  color: #f4f4f5;
}

.zu-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
}

.zu-type-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-height: 28px;
  padding: 0.2rem 0.38rem;
  background: #15171f;
  color: #d4d4d8;
  font-weight: 600;
  font-size: 0.69rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s, background 0.15s;
}

.zu-type-btn:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.zu-type-btn--on {
  color: #f8fafc;
  border-color: rgba(139, 154, 212, 0.95);
  background: #232946;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(79, 107, 214, 0.32),
    0 2px 12px rgba(15, 23, 42, 0.65);
}

.zu-type-btn--on:hover {
  border-color: rgba(165, 180, 252, 0.95);
}

.zu-gender-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
}

.zu-gender-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-height: 28px;
  padding: 0.2rem 0.38rem;
  font-size: 0.69rem;
  font-weight: 600;
  background: #15171f;
  color: #d4d4d8;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s, background 0.15s;
}

.zu-gender-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.zu-gender-btn--on {
  color: #fff;
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(244, 114, 182, 0.24),
    0 2px 10px rgba(236, 72, 153, 0.14);
  background: linear-gradient(165deg, rgba(157, 23, 77, 0.38), rgba(91, 33, 73, 0.18));
}

.zu-vocal-gender-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.45rem;
  margin-bottom: 0.08rem;
}

.zu-vocal-gender-compact .zu-form-label {
  width: 100%;
  margin: 0 0 0.04rem;
  color: #a8b0c4;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.zu-vocal-gender-compact .zu-gender-grid {
  flex: 1 1 160px;
  min-width: 0;
  max-width: min(100%, 280px);
}

.zu-vocal-gender-compact .zu-gender-reset {
  flex: 0 0 auto;
  margin: 0;
  margin-top: 0;
  padding: 0.1rem 0.2rem;
  font-size: 0.62rem;
  align-self: center;
}

.zu-gender-reset {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  width: fit-content;
  padding: 0.05rem 0.15rem;
  margin-top: 0.15rem;
  cursor: pointer;
}

.zu-gender-reset:hover {
  color: var(--text);
}

.zu-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.zu-model-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.12rem;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: #d4d4d8;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.zu-model-btn:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.zu-model-btn--on {
  color: #fff;
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.35);
  background: linear-gradient(180deg, rgba(80, 20, 50, 0.35), rgba(255, 255, 255, 0.02));
}

.zu-model-name {
  font-size: 0.96rem;
  font-weight: 700;
}

.zu-model-desc {
  font-size: 0.67rem;
  color: var(--muted);
}

.zu-model-badge {
  position: absolute;
  top: 7px;
  left: 8px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #fdf4ff;
  background: rgba(217, 70, 239, 0.35);
  border: 1px solid rgba(217, 70, 239, 0.45);
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
}

.zu-gen-status {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.08);
}

.zu-gen-status-head {
  font-size: 0.78rem;
  color: #fef3c7;
  margin-bottom: 0.45rem;
}

.zu-gen-status-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.zu-gen-status-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #fde047, #facc15);
  transition: width 0.2s ease;
}

.zu-right-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 0;
  height: 100%;
}

.zu-detail-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 0;
  height: 100%;
}

.zu-right-col .panel-right,
.zu-detail-col .panel-right {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.zu-preset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  background: linear-gradient(145deg, rgba(22, 22, 30, 0.9) 0%, rgba(0, 0, 0, 0.32) 100%);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.zu-preset-item:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.zu-preset-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.zu-preset-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.zu-preset-meta {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.zu-load-btn {
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.2);
  color: #f5f3ff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.zu-delete-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fca5a5;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.zu-delete-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.36);
}

.zu-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.zu-recent-list--scroll {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 0.2rem;
}

.zu-side-search-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin: 0;
}

.zu-library-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin: 0 0 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.zu-side-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.zu-side-search-field {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 16, 0.88);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.zu-side-search-field:focus-within {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.zu-library-like-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3px;
  padding: 3px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.32);
}

.zu-library-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
  align-items: center;
}

.zu-library-bulk-bar .tiny-btn {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
}

.zu-recent-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background: rgba(10, 14, 24, 0.82);
  border: 1px solid rgba(96, 165, 250, 0.45);
  cursor: pointer;
}

.zu-recent-check input {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  accent-color: #60a5fa;
  cursor: pointer;
}

.zu-recent-item--checked {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25);
}

.zu-like-filter-btn {
  min-width: 0;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 0.38rem 0.28rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    color 0.15s,
    background 0.15s;
}

.zu-like-filter-btn:hover:not(:disabled) {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.zu-like-filter-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.zu-like-filter-btn--on {
  color: #1a1300;
  background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
  box-shadow: none;
  font-weight: 800;
}

.zu-side-search {
  flex: 1;
  min-width: 0;
  width: auto;
  color: #f8fafc;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.46rem 0.7rem;
  min-height: 2.3rem;
}

.zu-side-search:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.zu-side-search::placeholder {
  color: #8b95a5;
}

.zu-side-search-count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.4rem;
  margin-right: 0.4rem;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 700;
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(59, 130, 246, 0.12);
  border-radius: 999px;
  padding: 0 0.38rem;
}

.zu-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
  flex-wrap: nowrap;
  position: relative;
  z-index: 4;
}

.zu-library-delete-all-btn {
  flex-shrink: 0;
  align-self: center;
  margin-top: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.26rem 0.5rem;
  border-radius: 8px;
}

.zu-library-delete-all-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.zu-panel-head-tools { display: none; }

.zu-panel-clear-all {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.32rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.zu-panel-clear-all:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fff;
}

.zu-panel-head-text {
  min-width: 0;
  flex: 1;
}

.zu-panel-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.2rem;
}

.zu-panel-head-text .panel-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.zu-panel-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.zu-panel-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.zu-recent-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(135deg, rgba(24, 24, 32, 0.65) 0%, rgba(8, 8, 12, 0.85) 100%);
  border-radius: 10px;
  color: var(--text);
  text-align: left;
  padding: 0.42rem 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
}

.zu-recent-item:hover {
  border-color: rgba(250, 204, 21, 0.25);
  background: linear-gradient(135deg, rgba(30, 28, 18, 0.88) 0%, rgba(10, 10, 12, 0.95) 100%);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
  transform: translateY(-1px);
}

.zu-recent-item--active {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.22) inset;
}

.zu-recent-item--liked {
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow:
    0 4px 22px rgba(250, 204, 21, 0.2),
    0 0 0 1px rgba(250, 204, 21, 0.15) inset;
}

.zu-recent-item--liked:hover {
  border-color: rgba(253, 224, 71, 0.5);
  box-shadow:
    0 6px 28px rgba(250, 204, 21, 0.28),
    0 0 0 1px rgba(250, 204, 21, 0.22) inset;
}

.zu-recent-item--active.zu-recent-item--liked {
  border-color: rgba(253, 224, 71, 0.65);
  box-shadow:
    0 4px 22px rgba(250, 204, 21, 0.28),
    0 0 0 1px rgba(253, 224, 71, 0.38) inset;
}

.zu-like-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted-2);
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.zu-like-btn:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.22);
}

.zu-like-btn--on {
  color: #fde047;
  border-color: rgba(250, 204, 21, 0.55);
  background: rgba(250, 204, 21, 0.12);
  box-shadow:
    0 0 18px rgba(250, 204, 21, 0.4),
    0 0 10px rgba(250, 204, 21, 0.15) inset;
}

.zu-like-btn--on:hover {
  color: #fef9c3;
  border-color: rgba(253, 224, 71, 0.65);
}

.zu-like-btn__icon {
  display: block;
}

.zu-like-btn--detail {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.zu-like-btn--detail .zu-like-btn__icon {
  width: 20px;
  height: 20px;
}

.zu-recent-body {
  flex: 1;
  min-width: 0;
}

.zu-recent-art {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #6366f1, #a855f7 50%, #ec4899);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  color: #fff;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(99, 102, 241, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.zu-recent-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: #f8fafc;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zu-recent-meta {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.68rem;
  color: #cbd5e1;
  line-height: 1.3;
}

.zu-recent-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem;
}

.zu-recent-tags .pill {
  font-size: 0.58rem;
  padding: 0.1rem 0.28rem;
  border-radius: 5px;
}

.zu-recent-task-chip {
  margin: 0;
  padding: 0.12rem 0.32rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  max-width: 100%;
}

.zu-recent-task-chip:hover {
  border-color: rgba(96, 165, 250, 0.45);
  color: #e2e8f0;
}

.zu-recent-actions {
  margin-top: 0.28rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
}

.zu-recent-actions .zu-recent-act {
  flex: 1 1 calc(33.33% - 0.22rem);
  min-width: 0;
  text-align: center;
  padding: 0.22rem 0.2rem;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.15;
  min-height: 0;
  border-radius: 7px;
}

.zu-detail-body {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 0.2rem;
}

.zu-detail-top {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.zu-detail-art {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.zu-detail-art__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zu-detail-top-text {
  min-width: 0;
}

.zu-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.zu-detail-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  color: #f8fafc;
}

.zu-detail-meta {
  margin: 0 0 0.8rem;
  color: #93c5fd;
  font-size: 0.78rem;
}

.zu-detail-section {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.zu-detail-headline {
  margin: 0.7rem 0 0.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.zu-detail-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
  color: #e2e8f0;
  font-size: 0.82rem;
}

.tiny-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 8px;
  padding: 0.24rem 0.5rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.tiny-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.tiny-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tiny-btn--primary {
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(99, 102, 241, 0.4));
  color: #f0f9ff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.tiny-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(99, 102, 241, 0.55));
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.tiny-btn--playing {
  background: linear-gradient(100deg, rgba(255, 107, 61, 0.4), rgba(255, 45, 139, 0.38)) !important;
  border-color: rgba(255, 120, 100, 0.5) !important;
  color: #fff;
  box-shadow: 0 2px 14px rgba(255, 100, 80, 0.3) !important;
}

.tiny-btn--danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.36);
}

.tiny-btn--danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.16);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tab {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.tab--on {
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(99, 102, 241, 0.35));
  box-shadow: 0 0 24px var(--accent-glow);
}

.row-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.toggle--block {
  width: fit-content;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-ui::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 4px;
  transition: transform 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.toggle input:checked + .toggle-ui {
  background: linear-gradient(90deg, var(--accent), #818cf8);
}

.toggle input:checked + .toggle-ui::after {
  transform: translateX(18px);
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.select-wrap {
  min-width: 120px;
}

.select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.15rem 0 0.5rem;
  line-height: 1.45;
}

.field-hint .settings-inline-code {
  font-size: 0.85em;
  padding: 0.1rem 0.28rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}

.field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.field-head label {
  margin-bottom: 0;
}

.field-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.zu-field-note {
  margin: 0.45rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.counter {
  font-size: 0.72rem;
  color: var(--muted);
}

.input,
.textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(161, 161, 170, 0.75);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.zu-side-search-field .zu-side-search:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.zu-side-search::-webkit-search-cancel-button,
.zu-side-search::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.textarea--tall {
  min-height: 180px;
}

.form-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0.55rem;
  padding-top: 0.25rem;
}

.zu-compose-panel .form-actions {
  margin: 0.1rem 0 0;
  padding: 0.45rem 0.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.zu-compose-panel .form-actions .btn-gradient--suno,
.zu-compose-panel .form-actions .zu-action-btn {
  min-height: 2.55rem;
  height: 2.55rem;
  border-radius: 12px;
  align-self: stretch;
  box-sizing: border-box;
}

.zu-compose-panel .form-actions .btn-gradient--suno {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.zu-compose-panel .form-actions .zu-action-btn {
  flex: 0 0 auto;
  min-width: 5.75rem;
  padding: 0 1.15rem;
}

.zu-compose-panel .form-actions .zu-action-btn--danger,
.zu-action-btn--danger {
  background: #dc2626;
  border-color: #f87171;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.38);
}

.zu-compose-panel .form-actions .zu-action-btn--danger:hover,
.zu-action-btn--danger:hover {
  background: #b91c1c;
  border-color: #fca5a5;
  color: #fff;
}

@media (min-width: 961px) {
  .zu-compose-panel .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    margin-top: auto;
    padding-bottom: 0.08rem;
  }
}

@media (max-width: 960px) {
  .zu-compose-panel .form-actions {
    margin-top: 0.55rem;
    padding: 0.55rem 0.15rem 0.2rem;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}


.btn-primary {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #9333ea, #6366f1);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.35);
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.45);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
}

.alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.alert--info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.32);
  color: #bfdbfe;
}

.panel-right {
  position: sticky;
  top: 1.5rem;
}

.panel-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.panel-text {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.result-box {
  min-height: 200px;
  max-height: 420px;
  overflow: auto;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem;
}

.result-pre {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #e4e4e7;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-placeholder {
  font-size: 0.82rem;
  color: var(--muted);
}

.zu-library-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 6.5rem;
  padding: 1.1rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #94a3b8;
}

.placeholder-card h2 {
  margin-top: 0;
}

.placeholder-card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* —— Pengaturan (localStorage) —— */

.settings-page {
  position: relative;
  max-width: 640px;
}

.settings-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fafafa;
  background: rgba(39, 39, 42, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-card {
  padding: 1.5rem 1.5rem 1.35rem;
}

.settings-card--key {
  border-color: rgba(168, 85, 247, 0.18);
  background: linear-gradient(165deg, rgba(168, 85, 247, 0.06), rgba(0, 0, 0, 0.2));
}

.settings-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.settings-section-desc,
.settings-page-sub {
  margin: 0 0 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.settings-page-title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.settings-page-sub {
  margin-bottom: 1.25rem;
}

.settings-card .field {
  margin-bottom: 0.85rem;
}

.settings-card .field:last-of-type {
  margin-bottom: 0;
}

.api-key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.api-key-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.api-key-input {
  padding-right: 3rem;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}

.api-key-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.api-key-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.settings-key-actions {
  margin-top: 1rem;
}

.btn-reset-key {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border: none;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  box-shadow: 0 6px 22px rgba(147, 51, 234, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn-reset-key:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(147, 51, 234, 0.45);
}

.settings-footer-actions {
  display: flex;
  gap: 0.75rem;
}

/* —— Zunox-style: gradient CTA, settings grid, library, player —— */

.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, #8b5cf6, #a855f7 40%, #d946ef);
  box-shadow: 0 10px 32px rgba(139, 92, 246, 0.38);
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}

.btn-gradient--suno {
  width: 100%;
  min-height: 2.9rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ffb347 0%, #ff6b81 38%, #e056fd 72%, #9b59f6 100%);
  box-shadow:
    0 8px 28px rgba(224, 86, 253, 0.35),
    0 4px 16px rgba(255, 107, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-gradient--suno:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 12px 36px rgba(224, 86, 253, 0.42),
    0 6px 20px rgba(255, 107, 129, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.playground-form .btn-gradient {
  flex: 1;
}

.zu-action-btn {
  min-width: 5.75rem;
}

.btn-gradient:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(217, 70, 239, 0.35);
}

.btn-gradient:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.settings-zu {
  position: relative;
  max-width: 1100px;
}

.settings-zu-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .settings-zu-grid {
    grid-template-columns: 1fr;
  }

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

.settings-zu-card {
  padding: 1.5rem;
}

.settings-zu-card-head {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.settings-zu-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.settings-zu-h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.settings-zu-lead {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.settings-steps {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
  color: #d4d4d8;
  font-size: 0.78rem;
  line-height: 1.5;
}

.settings-zu a,
.settings-steps a {
  color: #fde047;
}

.settings-inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.78em;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.textarea-keys {
  min-height: 160px;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}

.settings-zu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.stored-keys {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stored-keys-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.stored-keys-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stored-keys-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  min-width: 0;
  transition: transform 0.28s ease, background 0.2s ease, border-color 0.2s ease;
}

.stored-keys-idx {
  color: var(--muted);
  font-weight: 600;
  min-width: 1.75rem;
}

.stored-keys-mask {
  font-family: ui-monospace, monospace;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stored-keys-credits {
  font-size: 0.78rem;
}

.stored-keys-ok {
  color: #4ade80;
  font-weight: 600;
}

.stored-keys-checking {
  color: #86efac;
  font-weight: 600;
}

.stored-keys-err {
  color: #fca5a5;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.stored-keys-muted {
  color: var(--muted);
}

.stored-keys-copy,
.stored-keys-remove {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stored-keys-copy:hover {
  color: #fde047;
  background: rgba(250, 204, 21, 0.16);
}

.stored-keys-copy.is-copied,
.stored-keys-copy.is-copied:hover {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.16);
}

.stored-keys-remove:hover {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.15);
}

.settings-zu-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.settings-zu-head-copy {
  min-width: 0;
  flex: 1;
}

.settings-zu-title-row .settings-zu-h2 {
  margin: 0;
}

.settings-key-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(250, 204, 21, 0.12);
  color: #fef3c7;
  border: 1px solid rgba(250, 204, 21, 0.4);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  flex-shrink: 0;
}

.stored-keys-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.stored-keys-head-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stored-keys-head .stored-keys-title {
  margin: 0;
}

.settings-link {
  background: none;
  border: none;
  color: #fde047;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
}

.settings-link:hover {
  text-decoration: underline;
}

.settings-link:disabled {
  opacity: 0.65;
  cursor: wait;
}

.settings-link--danger {
  color: #f87171;
}

.settings-credit-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.settings-credit-refresh.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.settings-credit-refresh.is-loading svg {
  animation: keys-spin 1s linear infinite;
}

.settings-copy-all {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.settings-copy-all.is-copied {
  color: #4ade80;
}

@keyframes keys-spin {
  to {
    transform: rotate(360deg);
  }
}

.stored-keys-provider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(250, 204, 21, 0.15);
  color: #fde047;
}

.stored-keys-item.is-low {
  border-color: rgba(250, 204, 21, 0.45);
}

.stored-keys-ok.is-depleted {
  color: #fca5a5;
}

.stored-keys-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.stored-keys-hint svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.settings-empty-keys {
  margin: 0.25rem 0 0;
}

.settings-add-section {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-add-label {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.settings-add-label--small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.settings-add-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.settings-add-input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  min-height: 96px;
  resize: vertical;
}

.settings-add-input.is-masked {
  -webkit-text-security: disc;
}

.settings-add-error {
  margin: 0.5rem 0 0;
  color: #f87171;
  font-size: 0.84rem;
}

.settings-add-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.settings-import-hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  opacity: 0.88;
}

.settings-about-endpoint {
  word-break: break-all;
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .stored-keys-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-add-row {
    flex-wrap: wrap;
  }
}

.settings-zu .btn,
.modal-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.settings-zu .btn-ghost,
.modal-card .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.settings-zu .btn-ghost:hover:not(:disabled),
.modal-card .btn-ghost:hover:not(:disabled) {
  background: rgba(250, 204, 21, 0.08);
  border-color: rgba(250, 204, 21, 0.3);
}

.settings-zu .btn-primary,
.modal-card .btn-primary {
  background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
  color: #1a1300;
  box-shadow: 0 8px 28px rgba(250, 204, 21, 0.35);
}

.settings-zu .btn-primary:hover:not(:disabled),
.modal-card .btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(250, 204, 21, 0.45);
}

.btn-danger-strong {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: 1px solid rgba(252, 165, 165, 0.5);
  box-shadow:
    0 14px 36px -10px rgba(220, 38, 38, 0.6),
    0 0 24px rgba(248, 113, 113, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-danger-strong:hover:not(:disabled) {
  filter: brightness(1.08);
}

@keyframes modalScrimIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 2, 8, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modalScrimIn 0.18s ease-out;
}

.modal-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.96), rgba(6, 6, 6, 0.98));
  border: 1px solid rgba(250, 204, 21, 0.32);
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(250, 204, 21, 0.06) inset,
    0 0 40px rgba(250, 204, 21, 0.14);
  animation: modalCardIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
}

.modal-card--danger {
  border-color: rgba(248, 113, 113, 0.4);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 40px rgba(248, 113, 113, 0.22);
}

.modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.32), rgba(202, 138, 4, 0.28));
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #fde047;
}

.modal-card--danger .modal-icon {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.35), rgba(244, 114, 182, 0.3));
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.modal-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #fef3c7;
}

.modal-message {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft, #d6d3d1);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-zu-danger {
  margin-top: 1rem;
}

.settings-zu-danger-hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted-2);
  line-height: 1.45;
}

.settings-about {
  padding: 1.35rem 1.5rem;
  position: sticky;
  top: 1rem;
}

.settings-about-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.settings-about-icon {
  color: #fde047;
  display: grid;
  place-items: center;
}

.settings-about-p {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.settings-about-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #e4e4e7;
  line-height: 1.6;
}

.settings-about-list--inset {
  margin: 0 0 0.75rem;
}

.settings-about-credit-box .settings-about-price-title {
  margin-top: 0.35rem;
}

.settings-about-price {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--text);
}

.settings-about-price-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-2);
}

.settings-about-meta {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.settings-about-meta dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.settings-about-meta dd {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  font-family: ui-monospace, monospace;
  word-break: break-all;
}

.settings-pwa-box {
  margin: 0 0 1.1rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
}

.settings-pwa-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.settings-pwa-p {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  text-align: left;
}

.settings-pwa-btn {
  width: 100%;
  justify-content: center;
}

.library-wrap {
  max-width: 900px;
}

.library-toolbar-card {
  margin-bottom: 1.1rem;
  padding: 1rem 1.15rem 1.05rem;
}

.library-toolbar-head {
  margin-bottom: 0.65rem;
}

.library-toolbar-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.library-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.library-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  align-items: center;
}

.library-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (min-width: 641px) {
  .library-toolbar-row {
    flex-wrap: wrap;
  }

  .library-toolbar-actions {
    flex: 0 0 auto;
  }
}

.library-toolbar-btn {
  font-size: 0.8rem;
  padding: 0.42rem 0.75rem;
}

.library-toolbar-btn--danger {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.library-toolbar-btn--danger:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
}

.library-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.library-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.library-search {
  padding-left: 2.25rem;
}

.library-count {
  font-size: 0.8rem;
  color: var(--muted);
}

.library-empty {
  padding: 1.5rem;
  color: var(--muted);
}

.library-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.library-card {
  position: relative;
  display: flex;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem 0.85rem;
  align-items: flex-start;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(24, 24, 32, 0.7) 0%, rgba(8, 8, 12, 0.9) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.library-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.25), transparent);
  pointer-events: none;
  opacity: 0.8;
}

.library-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.library-card-art {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #6366f1, #a855f7 50%, #ec4899);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(99, 102, 241, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.library-card-body {
  flex: 1;
  min-width: 0;
}

.library-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.library-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  min-width: 0;
}

@media (max-width: 600px) {
  .library-card-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .library-card-actions {
    justify-content: flex-start;
  }
}

.library-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
}

.library-poll-btn {
  font-size: 0.7rem;
  padding: 0.24rem 0.45rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
}

.icon-btn--playing {
  border-color: rgba(168, 85, 247, 0.55);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(217, 70, 239, 0.25));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.2);
}

.icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.icon-btn--download:hover {
  border-color: rgba(96, 165, 250, 0.4);
  color: #bfdbfe;
}

.icon-btn--danger:hover {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.library-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
  align-items: center;
}

.pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.pill--ok {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.pill--local {
  background: rgba(45, 212, 191, 0.2);
  color: #5eead4;
}

.pill--accent {
  background: rgba(168, 85, 247, 0.2);
  color: #e9d5ff;
}

.pill--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.pill--taskid {
  text-transform: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.64rem;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.library-style {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

.library-card-foot {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #86efac;
}

.library-card-foot--muted {
  color: var(--muted);
}

/* Toast — muncul sesaat untuk error / kredit, bukan alert statis */
.app-toast-host {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 220;
  display: flex;
  justify-content: center;
  pointer-events: none;
  /* Di atas player bar bawah (≈4rem) */
  padding: 1.25rem 1rem max(1.5rem, calc(0.5rem + env(safe-area-inset-bottom, 0px) + 4.25rem));
}

.app-toast {
  pointer-events: auto;
  max-width: min(440px, calc(100% - 2rem));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(28, 28, 40, 0.97) 0%, rgba(18, 18, 28, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 32px var(--app-toast-glow, rgba(0, 0, 0, 0.12));
  backdrop-filter: blur(10px);
  animation: app-toast-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-toast--error {
  --app-toast-glow: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.3);
}
.app-toast--success {
  --app-toast-glow: rgba(34, 197, 94, 0.22);
  border-color: rgba(74, 222, 128, 0.35);
}
.app-toast--warning {
  --app-toast-glow: rgba(245, 158, 11, 0.2);
  border-color: rgba(253, 186, 116, 0.35);
}

.app-toast-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.05rem 0.95rem 1rem;
}

.app-toast-ico {
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.95;
}
.app-toast--error .app-toast-ico {
  color: #f87171;
}
.app-toast--success .app-toast-ico {
  color: #4ade80;
}
.app-toast--warning .app-toast-ico {
  color: #fbbf24;
}

.app-toast-msg {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
  color: #f4f4f5;
  letter-spacing: 0.01em;
}
.app-toast--warning .app-toast-msg {
  color: #fef3c7;
}
.app-toast--success .app-toast-msg {
  color: #dcfce7;
}

@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-toast {
    animation: none;
  }

  .zu-preset-item:hover,
  .zu-recent-item:hover,
  .library-card:hover {
    transform: none;
  }
}

.confirm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 320;
  background: rgba(6, 8, 16, 0.68);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.confirm-modal {
  width: min(420px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: linear-gradient(160deg, rgba(24, 24, 36, 0.98), rgba(15, 15, 24, 0.98));
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.5);
  padding: 1.2rem 1.15rem;
}

.confirm-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.confirm-modal-text {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1rem;
}

.confirm-delete-btn {
  min-width: 110px;
}

.confirm-modal--fail {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 26px 55px rgba(127, 29, 29, 0.35);
}

.confirm-modal--fail .confirm-modal-title {
  color: #fecaca;
}

/* Bilah navigasi bawah (≤960px), pola Suno — ikon + FAB tengah */
.mobile-bottom-nav {
  display: none;
}

.mobile-gen-banner {
  display: none;
}

.pwa-install-banner {
  display: none;
}

@media (max-width: 960px) {
  .pwa-install-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(135deg, rgba(14, 11, 2, 0.97) 0%, rgba(8, 7, 1, 0.99) 100%);
    border-top: 1px solid rgba(250, 204, 21, 0.3);
    border-bottom: 1px solid rgba(250, 204, 21, 0.1);
    box-shadow: 0 -4px 20px rgba(250, 204, 21, 0.12);
    position: relative;
    z-index: 49;
    flex-shrink: 0;
  }

  .pwa-install-banner__icon img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: block;
  }

  .pwa-install-banner__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .pwa-install-banner__text strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fef3c7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pwa-install-banner__text span {
    font-size: 0.7rem;
    color: var(--muted-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pwa-install-banner__btn {
    flex-shrink: 0;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(110deg, #fde047, #facc15);
    color: #1a1300;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(250, 204, 21, 0.4);
  }

  .pwa-install-banner__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-2);
    cursor: pointer;
  }
}

@media (max-width: 960px) {
  .mobile-gen-banner {
    display: block;
    position: fixed;
    left: max(0.55rem, env(safe-area-inset-left, 0px));
    right: max(0.55rem, env(safe-area-inset-right, 0px));
    bottom: calc(var(--mobile-nav-h) + 0.45rem);
    z-index: 270;
    padding: 0.55rem 0.7rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(250, 204, 21, 0.35);
    background: rgba(12, 10, 2, 0.96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
  }

  .mobile-gen-banner--above-player {
    bottom: calc(var(--mobile-nav-h) + 7.1rem);
  }

  .mobile-gen-banner__text {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fef3c7;
    margin-bottom: 0.4rem;
  }

  .zu-compose-panel .zu-gen-status {
    display: none;
  }
}

@media (max-width: 960px) {
  .mobile-bottom-nav {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.08rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 260;
    padding: 0.2rem max(0.3rem, env(safe-area-inset-left, 0px)) env(safe-area-inset-bottom, 0px)
      max(0.3rem, env(safe-area-inset-right, 0px));
    padding-top: 0.42rem;
    min-height: var(--mobile-nav-h);
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.97), rgba(0, 0, 0, 0.99));
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(14px) saturate(1.15);
  }

  .mobile-bottom-nav__btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.1rem;
    min-width: 0;
    max-width: 76px;
    margin: 0;
    padding: 0.18rem 0.08rem 0.28rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #71717a;
    cursor: pointer;
    font: inherit;
    transition: color 0.15s, background 0.15s;
  }

  .mobile-bottom-nav__btn:hover,
  .mobile-bottom-nav__btn:focus-visible {
    color: #e4e4e7;
    background: rgba(255, 255, 255, 0.05);
    outline: none;
  }

  .mobile-bottom-nav__btn--active:not(.mobile-bottom-nav__btn--fab) {
    color: #fafafa;
  }

  .mobile-bottom-nav__btn--active:not(.mobile-bottom-nav__btn--fab) .mobile-bottom-nav__ico {
    color: var(--accent);
  }

  .mobile-bottom-nav__ico {
    display: grid;
    place-items: center;
    line-height: 0;
    color: inherit;
  }

  .mobile-bottom-nav__label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .mobile-bottom-nav__btn--fab {
    flex: 1.15;
    max-width: none;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    padding: 0 0 0.15rem;
    margin-bottom: 0.15rem;
    background: transparent;
    border-radius: 999px;
    color: inherit;
  }

  .mobile-bottom-nav__fab-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fde047, #facc15, #ca8a04);
    color: #1a1300;
    box-shadow:
      0 6px 22px rgba(250, 204, 21, 0.55),
      0 2px 8px rgba(0, 0, 0, 0.35),
      0 0 0 2px rgba(253, 224, 71, 0.3);
  }

  .mobile-bottom-nav__fab-spark {
    display: none;
  }

  .mobile-bottom-nav__btn--fab.mobile-bottom-nav__btn--active .mobile-bottom-nav__fab-inner {
    box-shadow:
      0 8px 28px rgba(250, 204, 21, 0.65),
      0 0 0 3px rgba(253, 224, 71, 0.45);
  }

  .mobile-bottom-nav__btn--fab:hover .mobile-bottom-nav__fab-inner,
  .mobile-bottom-nav__btn--fab:focus-visible .mobile-bottom-nav__fab-inner {
    filter: brightness(1.08);
  }
}

.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  isolation: isolate;
  padding: 0 max(0.85rem, env(safe-area-inset-right, 0px)) max(0.28rem, env(safe-area-inset-bottom, 0px))
    max(0.85rem, env(safe-area-inset-left, 0px));
  max-width: none;
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.92) 0%, rgba(0, 0, 0, 0.94) 100%);
  border-top: none;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(1.25);
}

.player-bar-inner {
  display: grid;
  grid-template-columns: minmax(0, min(38%, 320px)) minmax(200px, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0;
  width: 100%;
  max-width: min(1180px, calc(100vw - 1.6rem));
  min-width: 0;
  margin: 0 auto;
  padding: 0.28rem 0 0.12rem;
}

.player-bar::before {
  content: none;
}

.player-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.player-bar-center {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.player-bar-center-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.player-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .player-bar-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
    column-gap: 0.85rem;
  }
}

@media (max-width: 960px) {
  .player-bar-inner {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
    max-width: none;
  }

  .player-bar {
    bottom: var(--mobile-nav-h);
    padding: 0.45rem 0.8rem;
    align-items: stretch;
  }

  .player-bar-left {
    width: 100%;
    padding-right: 38px;
  }

  .player-bar-right {
    width: 100%;
    justify-content: space-between;
  }
}

.player-art {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.library-card-art__img,
.player-art__img,
.zu-recent-art__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.player-info {
  min-width: 0;
  flex: 1;
  max-width: 100%;
}

.player-title {
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sub {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-nav {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.player-nav--active {
  color: #e9d5ff;
  border-color: rgba(168, 85, 247, 0.55);
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.45), rgba(139, 92, 246, 0.2));
  box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.22) inset;
}

.player-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.player-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1;
  background: linear-gradient(145deg, #8b5cf6, #d946ef);
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.3);
}

.player-play--suno {
  background: #fff;
  color: #0a0a0a;
  font-size: 0.78rem;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

.player-play--suno:hover {
  filter: brightness(1.05);
}

.player-scrub {
  width: 100%;
  max-width: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.player-time {
  font-size: 0.62rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  width: 2.1rem;
  flex-shrink: 0;
  line-height: 1;
  opacity: 0.85;
}

.player-time--end {
  text-align: right;
}

.player-range {
  --seek-pct: 0%;
  flex: 1;
  min-width: 0;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  touch-action: pan-x;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.player-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    #facc15 0,
    #facc15 var(--seek-pct),
    rgba(255, 255, 255, 0.16) var(--seek-pct),
    rgba(255, 255, 255, 0.16) 100%
  );
}

.player-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0.9;
}

.player-range:hover::-webkit-slider-thumb,
.player-range:focus-visible::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  opacity: 1;
}

.player-range::-moz-range-track {
  height: 3px;
  border: none;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.player-range::-moz-range-progress {
  height: 3px;
  border-radius: 99px;
  background: #facc15;
}

.player-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.player-range:disabled {
  cursor: default;
  opacity: 0.45;
}

/* Desktop: seek tipis di atas bar, seperti sebelumnya */
@media (min-width: 961px) {
  .player-bar-inner {
    grid-template-areas:
      "scrub scrub scrub"
      "left center right";
    row-gap: 0;
  }

  .player-bar-center {
    display: contents;
  }

  .player-bar-left {
    grid-area: left;
  }

  .player-bar-center-row {
    grid-area: center;
  }

  .player-bar-right {
    grid-area: right;
  }

  .player-scrub {
    grid-area: scrub;
    width: calc(100% + 1.7rem);
    max-width: none;
    margin: 0 -0.85rem 0.05rem;
    padding: 0 0.75rem;
    height: 16px;
    gap: 0.4rem;
  }
}

.player-vol-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 2px 4px;
  border-radius: 10px;
}

.player-vol-ico {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font-size: 0.9rem;
  opacity: 0.95;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.player-vol-ico:hover {
  background: rgba(255, 255, 255, 0.09);
}

.player-vol-range {
  width: 100px;
  min-width: 64px;
  max-width: 120px;
  accent-color: #e879f9;
}

.player-download-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.14);
  color: #fef3c7;
  cursor: pointer;
  flex-shrink: 0;
}

.player-download-btn:hover {
  background: rgba(250, 204, 21, 0.24);
}

.player-close-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.player-close-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.player-close-btn--abs {
  display: none;
}

/* ========== Mobile polish: phone & safe area ========== */
@media (max-width: 640px) {
  .main {
    padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0;
    padding-left: max(0.55rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.55rem, env(safe-area-inset-right, 0px));
    background:
      radial-gradient(ellipse 95% 70% at 0% 0%, rgba(250, 204, 21, 0.08), transparent 52%),
      radial-gradient(ellipse 85% 55% at 100% 8%, rgba(202, 138, 4, 0.05), transparent 48%),
      linear-gradient(180deg, #08080a 0%, #000000 55%);
  }

  .main.main--generate {
    padding-top: max(0.38rem, env(safe-area-inset-top, 0px));
  }

  .main__scroll {
    padding-bottom: max(1.35rem, env(safe-area-inset-bottom, 0px));
  }

  .main--with-player .main__scroll {
    padding-bottom: max(1rem, calc(5.1rem + env(safe-area-inset-bottom, 0px) + var(--mobile-nav-h)));
  }

  .main-header {
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .page-title {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    color: #71717a;
    -webkit-text-fill-color: #71717a;
  }

  .page-desc {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .env-banner {
    border-radius: 12px;
    line-height: 1.5;
  }

  .sidebar {
    padding-top: max(0.4rem, env(safe-area-inset-top, 0px));
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
    background: linear-gradient(180deg, #0b0b10 0%, #000000 100%);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
  }

  .sidebar-brand {
    padding: 0.1rem 0.05rem 0.2rem;
  }

  .nav-item {
    border-radius: 13px;
    min-height: 3.4rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-item--active {
    border-color: rgba(250, 204, 21, 0.55);
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
    box-shadow: 0 4px 18px rgba(250, 204, 21, 0.3);
  }

  .sidebar-status {
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  .card--compose::before {
    width: 3px;
  }

  .card--side {
    border-radius: 16px;
  }

  .zu-right-col {
    gap: 0.7rem;
  }

  .zu-segment--suno .zu-segment-btn {
    min-height: 2.85rem;
    font-size: 0.78rem;
  }

  .zu-type-grid,
  .zu-gender-grid {
    gap: 0.3rem;
  }

  .zu-type-btn {
    min-height: 2.2rem;
    padding: 0.26rem 0.45rem;
    font-size: 0.76rem;
    border-radius: 9px;
  }

  .zu-type-btn--on {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 0 0 1px rgba(79, 107, 214, 0.32),
      0 2px 10px rgba(15, 23, 42, 0.65);
  }

  .zu-gender-btn {
    min-height: 2.2rem;
    padding: 0.26rem 0.4rem;
    font-size: 0.76rem;
    border-radius: 9px;
  }

  .zu-gender-btn--on {
    box-shadow:
      inset 0 0 0 1px rgba(244, 114, 182, 0.24),
      0 2px 10px rgba(236, 72, 153, 0.14);
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding-top: 0.4rem;
  }

  .zu-compose-panel .form-actions {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .form-actions .btn-gradient--suno,
  .form-actions .btn-secondary {
    width: 100%;
    min-height: 3.05rem;
    height: auto;
    justify-content: center;
  }

  .zu-action-btn {
    min-width: 0;
  }

  .zu-recent-item {
    padding: 0.48rem 0.55rem;
    border-radius: 12px;
  }

  .zu-recent-art {
    width: 42px;
    height: 42px;
  }

  .zu-recent-actions {
    gap: 0.24rem;
  }

  .zu-recent-actions .zu-recent-act {
    min-height: 1.85rem;
    padding: 0.26rem 0.22rem;
    font-size: 0.64rem;
  }

  .zu-panel-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 0.9rem;
  }

  .zu-panel-clear-all {
    min-height: 2.4rem;
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
  }

  .tiny-btn {
    min-height: 2.45rem;
    padding: 0.38rem 0.6rem;
    font-size: 0.78rem;
  }

  .library-toolbar-card {
    padding: 0.9rem 0.85rem 0.95rem;
  }

  .library-toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .library-count {
    text-align: center;
    font-size: 0.78rem;
  }

  .library-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .library-toolbar-actions .library-toolbar-btn {
    min-height: 2.8rem;
    width: 100%;
    justify-content: center;
  }

  .library-search {
    min-height: 2.9rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  /* Konten Create / Library / Detail di HP: kontras & jarak baca */
  .playground-form--suno.zu-compose-panel {
    gap: 0.75rem;
    padding-right: 0.28rem;
  }

  .zu-compose-head .panel-title {
    font-size: 1.02rem;
    letter-spacing: -0.02em;
  }

  .zu-panel-head-text .panel-title {
    font-size: 1.06rem;
  }

  .zu-panel-eyebrow {
    font-size: 0.62rem;
    color: #b8c0cd;
  }

  .zu-detail-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #e8edf5;
  }

  .zu-detail-title {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .zu-detail-meta {
    font-size: 0.78rem;
  }

  .zu-detail-section {
    font-size: 0.68rem;
    color: #cbd5e1;
  }

  .zu-recent-name {
    font-size: 0.88rem;
    font-weight: 650;
  }

  .zu-recent-meta {
    font-size: 0.74rem;
    color: #c8cdd6;
    line-height: 1.45;
  }

  .zu-side-search {
    font-size: 0.92rem;
    min-height: 2.5rem;
    padding: 0.48rem 0.72rem;
  }

  .zu-side-search-count {
    font-size: 0.68rem;
    height: 1.45rem;
    padding: 0 0.42rem;
  }

  .zu-like-filter-btn {
    font-size: 0.62rem;
    padding: 0.4rem 0.2rem;
  }

  .zu-top-sticky {
    padding: 0.34rem 0.45rem 0.4rem;
    margin-bottom: 0.32rem;
    border-radius: 10px;
  }

  .zu-compose-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.32rem;
  }

  /* Type (Instrumental / Vocal): jangan full-bleed — lebih rapat & proporsional di HP */
  .zu-compose-type-block {
    flex: 0 0 auto;
    align-self: flex-start;
    width: 100%;
    max-width: min(17rem, 100%);
  }

  .zu-vocal-gender-compact {
    align-self: flex-start;
    width: 100%;
    max-width: min(17rem, 100%);
  }

  .zu-model-wrap--toolbar {
    align-items: stretch;
    width: 100%;
  }

  .zu-compose-type-block .zu-form-label {
    margin-bottom: 0.12rem;
    font-size: 0.58rem;
  }

  .zu-model-wrap {
    gap: 0.1rem;
  }

  .zu-model-label {
    font-size: 0.52rem;
  }

  .zu-model-select {
    padding: 0.22rem 1.35rem 0.22rem 0.45rem;
    font-size: 0.66rem;
    min-height: 0;
    border-radius: 8px;
    max-width: none;
    width: 100%;
  }

  .zu-compose-head {
    margin-bottom: 0.36rem;
  }

  .zu-vocal-gender-compact .zu-gender-reset {
    width: 100%;
    text-align: left;
    margin-top: 0.06rem;
  }

  .pill {
    font-size: 0.68rem;
    padding: 0.18rem 0.42rem;
  }

  .settings-zu,
  .settings-page {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* Player bar mobile: pola Kampung Lagu — seek di tengah, di atas menu bawah */
@media (max-width: 960px) {
  .player-bar-inner {
    row-gap: 0.26rem;
  }

  .player-bar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
    width: 100%;
  }

  .player-bar {
    border-radius: 16px 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-right: none;
    padding-left: max(0.62rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.62rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(0.24rem, env(safe-area-inset-bottom, 0px));
    padding-top: 0.28rem;
    background: linear-gradient(180deg, rgba(16, 16, 24, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
  }

  .player-play--suno {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 0.84rem;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.45);
  }

  .player-nav {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .player-art {
    width: 36px;
    height: 36px;
  }

  .player-title {
    font-size: 0.8rem;
  }

  .player-sub {
    font-size: 0.66rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-time {
    font-size: 0.64rem;
    width: 1.95rem;
  }

  .player-range {
    min-height: 1.55rem;
  }

  .player-download-btn,
  .player-vol-ico {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 0.78rem;
  }

  .player-close-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
}

@media (max-width: 960px) {
  .player-close-btn--abs {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(20, 14, 0, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: rgba(253, 224, 71, 0.95);
    z-index: 10;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }

  .player-close-btn--abs:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(248, 113, 113, 0.6);
    color: #fecaca;
  }

  .player-bar-right .player-close-btn:not(.player-close-btn--abs) {
    display: none;
  }

  .player-vol-range {
    width: 64px;
    min-width: 54px;
    max-width: 76px;
  }

  .app-toast-host {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(0.75rem, calc(0.4rem + env(safe-area-inset-bottom, 0px) + 5rem + var(--mobile-nav-h)));
  }
}

@media (max-width: 640px) {
  .player-bar-inner {
    row-gap: 0.3rem;
  }

  .player-bar-left {
    gap: 0.48rem;
    align-items: flex-start;
  }

  .player-info {
    min-width: 0;
    flex: 1;
  }

  .player-title {
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .player-sub {
    font-size: 0.68rem;
    line-height: 1.28;
    color: #cbd5e1;
    white-space: nowrap;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-scrub {
    max-width: none;
  }

  .player-time {
    font-size: 0.68rem;
    width: 2.15rem;
  }

  .player-bar-center {
    width: 100%;
  }

  .player-bar-right {
    justify-content: space-between;
    gap: 0.35rem;
    padding-top: 0;
  }

  .player-vol-range {
    display: block;
    width: 58px;
    min-width: 50px;
    max-width: 68px;
  }

  .player-download-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .player-vol-ico {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.82rem;
  }

  .app-toast-host {
    padding-bottom: max(0.85rem, calc(0.45rem + env(safe-area-inset-bottom, 0px) + 6.25rem));
  }
}

/* Layar sempit: teks & modal */
@media (max-width: 380px) {
  .zu-segment--suno .zu-segment-btn {
    font-size: 0.72rem;
    padding: 0.45rem 0.2rem;
  }

  .confirm-modal {
    border-radius: 18px;
    margin: 0.25rem;
  }
}

.zu-compose-mode-row {
  margin: 0 0 0.85rem;
}

.zu-type-grid--mode {
  margin-top: 0.35rem;
}

.zu-cover-field {
  margin-bottom: 0.75rem;
}

.zu-cover-lead {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-mute, #8e8b85);
}

.zu-cover-lead--warn {
  margin-top: -0.35rem;
  margin-bottom: 0.55rem;
  color: var(--warning, #facc15);
  font-weight: 600;
}

.zu-cover-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 88px;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(96, 165, 250, 0.4);
  border-radius: var(--radius-sm, 10px);
  background: rgba(59, 130, 246, 0.06);
  color: var(--text-soft, #d6d3d1);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.zu-cover-drop:hover:not(:disabled) {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(59, 130, 246, 0.12);
}

.zu-cover-drop__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.zu-cover-note {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: var(--text-mute, #8e8b85);
}

.zu-cover-note--ok {
  color: var(--success, #4ade80);
}

.zu-cover-player {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm, 10px);
  background: rgba(255, 255, 255, 0.04);
}

.zu-cover-player--ready {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.05);
}

.zu-cover-player__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.zu-cover-player__icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.zu-cover-player__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.zu-cover-player__status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft, #d6d3d1);
}

.zu-cover-player--ready .zu-cover-player__status {
  color: var(--success, #4ade80);
}

.zu-cover-player__name {
  font-size: 0.72rem;
  color: var(--text-mute, #8e8b85);
  word-break: break-all;
}

.zu-cover-player__audio {
  width: 100%;
  height: 36px;
  border-radius: 6px;
}

.zu-ws-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.32rem;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.zu-ws-bar--dropdown {
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
  overflow: visible;
  width: 100%;
}

.zu-ws-picker {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 140px;
  min-width: 0;
}

.zu-ws-picker-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.zu-ws-select {
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 2rem 0.42rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(120, 130, 180, 0.45);
  color: #f8fafc;
  -webkit-text-fill-color: #f8fafc;
  background-color: #161922;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2393c5fd' d='M1.4 0h9.2L6 5.2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 10px 7px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
}

.zu-ws-select option {
  color: #f1f5f9;
  background: #0f172a;
}

.zu-ws-select:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.zu-ws-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.32rem;
  flex: 1 1 auto;
  padding-top: 1.05rem;
}

.zu-ws-new-btn {
  border-color: rgba(59, 130, 246, 0.45);
  color: #93c5fd;
}

.zu-ws-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  max-width: 160px;
}

.zu-ws-chip-btn {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zu-ws-chip--on {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.5);
  color: #dbeafe;
}

.zu-ws-chip--add {
  color: #93c5fd;
  border-style: dashed;
  border-color: rgba(59, 130, 246, 0.4);
}

.zu-ws-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  font-size: 0.9rem;
  line-height: 1;
  color: #fca5a5;
  flex-shrink: 0;
  cursor: pointer;
}

.zu-ws-chip-x:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
}

.zu-ws-add {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.zu-ws-add-input {
  width: 140px;
  padding: 0.28rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 8px;
}

.zu-ws-move-wrap {
  display: block;
  margin: 0.2rem 0 0.15rem;
}

.zu-ws-move {
  max-width: 100%;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 1.35rem 0.18rem 0.4rem;
  border-radius: 7px;
  border: 1px solid rgba(120, 130, 180, 0.4);
  background-color: #161922;
  color: #f1f5f9;
  -webkit-text-fill-color: #f1f5f9;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
}

.zu-ws-move option {
  color: #f1f5f9;
  background: #0f172a;
}

.zu-title-edit {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  margin-bottom: 0.1rem;
}

.zu-title-edit--detail {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  align-items: flex-start;
  gap: 0.4rem;
}

.zu-title-edit .zu-recent-name {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.zu-rename-btn {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  opacity: 0.72;
  transition: color 0.15s, background 0.15s, opacity 0.15s;
}

.zu-rename-btn:hover,
.zu-recent-item:hover .zu-rename-btn,
.zu-recent-item--active .zu-rename-btn {
  opacity: 1;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
}

.zu-rename-btn--detail {
  width: 26px;
  height: 26px;
  margin-top: 0.05rem;
  color: #cbd5e1;
}

.zu-rename-btn--detail:hover {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
}

.zu-title-edit-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(0, 0, 0, 0.45);
  color: #f8fafc;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  outline: none;
}

.zu-title-edit-input:focus {
  border-color: rgba(147, 197, 253, 0.75);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.zu-title-edit-input--detail {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
}

.tiny-select {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 8px;
  padding: 0.24rem 0.35rem;
  font-size: 0.72rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.tiny-select:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.tiny-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tiny-select option {
  background: var(--surface, #1e1e2e);
  color: var(--text);
}

.tiny-btn--cover {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(59, 130, 246, 0.16);
  color: #dbeafe;
}

.tiny-btn--cover:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(147, 197, 253, 0.75);
}

.tiny-btn--master {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(124, 58, 237, 0.22);
  color: #ede9fe;
}

.tiny-btn--master:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.34);
  border-color: rgba(196, 181, 253, 0.7);
}

.buy-token-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-left: 0.4rem;
}

.buy-page {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(880px 380px at 8% -8%, rgba(168, 85, 247, 0.22), transparent 62%),
    var(--bg);
  color: var(--text);
}

.buy-page__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1.25rem 1rem calc(2rem + env(safe-area-inset-bottom));
}

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

.buy-page__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  font-weight: 600;
}

.buy-page__hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.buy-page__hero h1 {
  align-self: flex-start;
  margin: 0.15rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.buy-stock {
  margin: 0;
  min-width: 168px;
  padding: 12px 22px;
  border-radius: 16px;
  border: 1px solid rgba(232, 121, 249, 0.5);
  background: rgba(232, 121, 249, 0.12);
  text-align: center;
}

.buy-stock span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.buy-stock strong {
  display: block;
  margin-top: 2px;
  font-size: 1.45rem;
  color: var(--text);
}

.buy-page__hero > p {
  margin-top: 0.65rem;
}

.buy-page__hero p,
.buy-about > p,
.buy-pay > p,
.buy-done p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.buy-about,
.buy-card {
  margin-top: 1rem;
  padding: 1.15rem 1.1rem 1.2rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--card-elevated) 0%, var(--card) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.buy-about h2,
.buy-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.buy-about h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
}

.buy-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1rem 0;
}

.buy-about ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
  line-height: 1.55;
}

.buy-about li + li {
  margin-top: 0.28rem;
}

.buy-price-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.buy-price-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.buy-price-list li.is-selected {
  border-color: rgba(232, 121, 249, 0.7);
  background: rgba(232, 121, 249, 0.12);
}

.buy-price-list li.is-soldout {
  opacity: 0.55;
}

.buy-about__note,
.buy-hint,
.buy-selected {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.buy-about__warn {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
  line-height: 1.5;
}

.buy-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.buy-form .buy-card {
  margin-top: 0;
}

.buy-card label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-weight: 600;
}

.buy-card input,
.buy-card select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #120e1a;
  color: var(--text);
}

.buy-card input[type="file"] {
  padding: 0.55rem 0.7rem;
}

.buy-qris {
  display: block;
  width: min(100%, 260px);
  margin: 0.85rem auto 0;
  border-radius: 12px;
  background: #fff;
}

.buy-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

.buy-agree input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 1.25rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: #c026d3;
}

.buy-error {
  margin: 0.8rem 0 0;
  color: #fecdd3;
}

.buy-submit,
.buy-done__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 0.9rem;
  text-decoration: none;
}

.buy-done h2 {
  color: #bbf7d0;
}

.buy-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  background: rgba(8, 6, 14, 0.78);
  backdrop-filter: blur(6px);
}

.buy-confirm {
  width: min(440px, 100%);
  max-height: min(92dvh, 640px);
  overflow: auto;
  padding: 1.25rem 1.15rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(196, 181, 253, 0.32);
  background: #1b1529;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.buy-confirm__kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9d5ff;
}

.buy-confirm h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  line-height: 1.25;
}

.buy-confirm > p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.buy-confirm__phone {
  margin: 0.9rem 0 0;
  padding: 0.9rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 121, 249, 0.45);
  background: #0c0812;
  text-align: center;
  font-size: clamp(1.25rem, 5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  word-break: break-word;
}

.buy-confirm__meta {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.buy-confirm__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.65rem;
  margin-top: 1.05rem;
}

.buy-confirm__cancel,
.buy-confirm__send {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 700;
}

.buy-confirm__cancel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--text);
}

.buy-confirm__cancel:disabled,
.buy-confirm__send:disabled {
  opacity: 0.65;
}

@media (min-width: 640px) {
  .buy-confirm {
    padding: 1.4rem 1.35rem 1.2rem;
  }

  .buy-confirm__actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .buy-confirm__cancel,
  .buy-confirm__send {
    width: auto;
    min-width: 128px;
  }
}

@media (min-width: 760px) {
  .buy-page__hero-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .buy-page__hero h1 {
    grid-column: 1;
    justify-self: start;
  }

  .buy-stock {
    grid-column: 2;
    justify-self: center;
  }

  .buy-page__scroll {
    padding: 1.75rem 1.5rem 2.5rem;
  }

  .buy-about,
  .buy-card {
    padding: 1.35rem 1.4rem 1.45rem;
  }

  .buy-about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .buy-price-list {
    grid-template-columns: 1fr 1fr;
  }

  .buy-form {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
  }
}

