/* =========================================
   NOXIASOUNDS — Categories, Playlist, Account
   ========================================= */

/* ── Shared view wrapper ── */
.categories-view,
.playlist-view,
.account-view {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

.cat-heading-wrap,
.playlist-heading-wrap {
  padding-top: 8px;
  margin-bottom: 22px;
}

/* ══════════════════════════════════════════
   CATEGORIES
══════════════════════════════════════════ */

/* Featured card */
.cat-featured-wrap {
  margin-bottom: 24px;
}

.cat-featured-card {
  display: block;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  height: 200px;
  transition: transform 0.30s ease, box-shadow 0.30s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);

  opacity: 0;
  animation: cardIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}

.cat-featured-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 30px var(--cat-glow, rgba(124,58,237,0.35)), 0 12px 40px rgba(0,0,0,0.5);
}

.cat-featured-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.cat-featured-card:hover .cat-featured-img {
  transform: scale(1.04);
}

.cat-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(8,3,20,0.10) 0%, rgba(8,3,20,0.70) 100%);
}

.cat-featured-content {
  position: absolute; inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-featured-badge {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  padding: 4px 12px;
}

.cat-featured-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.1;
}

.cat-featured-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.70);
  font-weight: 300;
  margin-bottom: 8px;
}

.cat-featured-count {
  font-size: 0.70rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  font-weight: 400;
}

/* Section label */
.cat-section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Categories grid */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.cat-card {
  display: block;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  border-color: rgba(255,255,255,0.07) !important;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s ease, border-color 0.22s ease;
  opacity: 0;
  animation: cardIn 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}

.cat-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--cat-color) !important;
  box-shadow: 0 0 22px var(--cat-glow), 0 8px 28px rgba(0,0,0,0.5);
}

.cat-card-img-wrap {
  position: relative;
  height: 90px;
  overflow: hidden;
}

.cat-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-card:hover .cat-card-img { transform: scale(1.06); }

.cat-card-img-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,3,20,0.80) 100%);
}

.cat-card-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 14px;
}

.cat-card-emoji {
  font-size: 1.3rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.cat-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cat-card-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-card-count {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 300;
}

.cat-card-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.cat-card:hover .cat-card-arrow {
  background: var(--cat-color);
  border-color: var(--cat-color);
  color: #fff;
  box-shadow: 0 0 10px var(--cat-glow);
}


/* ══════════════════════════════════════════
   LOGIN GATE (Playlist + Account shared)
══════════════════════════════════════════ */

.playlist-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 8px 32px;
  animation: viewIn 0.45s cubic-bezier(0.22,1,0.36,1) both;
}

.gate-icon {
  width: 72px; height: 72px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(192,132,252,0.10));
  border: 1px solid rgba(157,92,255,0.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose-warm);
  margin-bottom: 22px;
  box-shadow: 0 0 32px rgba(124,58,237,0.20);
}

.gate-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.gate-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 28px;
}

.gate-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  align-self: stretch;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 18px 20px;
}

.gate-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 300;
  text-align: left;
}

.gate-benefit-icon {
  color: var(--rose-warm);
  font-size: 0.70rem;
  flex-shrink: 0;
}

.gate-signin-btn {
  width: 100%;
  max-width: 280px;
  padding: 15px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  margin-bottom: 14px;
  border-radius: 999px;
}

.gate-register-link {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gate-register-link a {
  color: var(--rose-warm);
  text-decoration: none;
}


/* ══════════════════════════════════════════
   PLAYLIST PAGE (logged in)
══════════════════════════════════════════ */

.playlist-new-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(157,92,255,0.30) !important;
  background: rgba(124,58,237,0.06) !important;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.90rem;
  font-weight: 400;
  cursor: pointer;
  margin-bottom: 18px;
  transition: all 0.25s ease;
}

.playlist-new-btn:hover {
  border-color: rgba(157,92,255,0.55) !important;
  background: rgba(124,58,237,0.12) !important;
  color: var(--text-primary);
}

.playlist-new-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(124,58,237,0.20);
  border: 1px solid rgba(157,92,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose-warm);
  flex-shrink: 0;
}

.playlist-list { display: flex; flex-direction: column; gap: 12px; }

.plist-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border-color: rgba(255,255,255,0.06) !important;
  transition: all 0.25s ease;
  opacity: 0;
  animation: cardIn 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}

.plist-card:hover {
  border-color: var(--pl-color) !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.plist-thumb {
  width: 56px; height: 56px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.plist-info { flex: 1; min-width: 0; }

.plist-name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.plist-count {
  font-size: 0.70rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.plist-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.plist-track-name,
.plist-track-more {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  padding: 2px 8px;
}

.plist-play-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-warm), var(--purple-mid));
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  padding-left: 2px;
  box-shadow: 0 0 14px rgba(124,58,237,0.35);
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.plist-play-btn:hover {
  transform: scale(1.10);
  box-shadow: 0 0 22px rgba(124,58,237,0.55);
}


/* ══════════════════════════════════════════
   ACCOUNT PAGE (logged in)
══════════════════════════════════════════ */

.account-view { padding-top: 8px; }

.acct-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  margin-bottom: 16px;
  border-color: rgba(157,92,255,0.18) !important;
  animation: viewIn 0.4s ease 0.05s both;
}

.acct-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-warm), var(--purple-mid));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  box-shadow: 0 0 20px rgba(124,58,237,0.40);
  flex-shrink: 0;
}

.acct-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.acct-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.acct-email {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 4px 10px;
  flex-shrink: 0;
}

/* Stats */
.acct-stats-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.acct-stat {
  padding: 14px 10px;
  border-radius: 16px;
  text-align: center;
  border-color: rgba(255,255,255,0.06) !important;
  animation: viewIn 0.4s ease 0.1s both;
}

.acct-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.acct-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Subscription card */
.acct-sub-card {
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 16px;
  border-color: rgba(157,92,255,0.18) !important;
  animation: viewIn 0.4s ease 0.15s both;
}

.acct-sub-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.acct-sub-plan {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.acct-sub-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 300;
  margin: 0;
}

.acct-upgrade-btn {
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 999px !important;
}

.acct-sub-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.acct-sub-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.80rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.acct-sub-feature svg {
  color: var(--rose-warm);
  flex-shrink: 0;
}

.acct-sub-price {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 300;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Settings list */
.acct-settings-list {
  border-radius: 20px;
  overflow: hidden;
  padding: 4px 0;
  margin-bottom: 32px;
  border-color: rgba(255,255,255,0.07) !important;
  animation: viewIn 0.4s ease 0.20s both;
}

.acct-setting-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  transition: all 0.20s ease;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.acct-setting-item:last-child { border-bottom: none; }

.acct-setting-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}

.acct-setting-item svg:first-child {
  color: var(--text-muted);
  flex-shrink: 0;
}

.acct-setting-item span { flex: 1; }

.acct-chevron { color: var(--text-muted); flex-shrink: 0; }

.acct-logout {
  color: rgba(244,63,94,0.70) !important;
}
.acct-logout svg:first-child { color: rgba(244,63,94,0.70) !important; }
.acct-logout:hover { color: rgb(244,63,94) !important; }

/* ══════════════════════════════════════════
   PLAYLIST EMPTY STATE
══════════════════════════════════════════ */
.playlist-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.playlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px 32px;
  animation: viewIn 0.45s ease both;
}

.playlist-empty-icon {
  width: 76px; height: 76px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(192,132,252,0.10));
  border: 1px solid rgba(157,92,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose-warm);
  margin-bottom: 22px;
  box-shadow: 0 0 28px rgba(124,58,237,0.15);
}

.playlist-empty-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.playlist-empty-sub {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 28px;
}

/* Playlist card actions */
.plist-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.plist-delete-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.20);
  display: flex; align-items: center; justify-content: center;
  color: rgba(239,68,68,0.65);
  cursor: pointer;
  transition: all 0.22s ease;
}

.plist-delete-btn:hover {
  background: rgba(239,68,68,0.20);
  color: #f87171;
}

/* Picker item hover */
.pl-picker-item:hover {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(157,92,255,0.25) !important;
}

/* ══════════════════════════════════════════
   PLAYLIST DETAIL VIEW
══════════════════════════════════════════ */

.plist-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 20px;
}

.plist-detail-cover {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,58,237,0.35), rgba(192,132,252,0.18));
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.40);
}

.plist-detail-info { flex: 1; min-width: 0; }

.plist-detail-name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.plist-detail-meta {
  font-size: 0.76rem; color: var(--text-muted); font-weight: 300;
}

/* Action bar under header */
.plist-detail-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.plist-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}

.plist-action-btn:hover {
  background: rgba(255,255,255,0.10);
  color: var(--text-primary);
}

.plist-action-btn.btn-play {
  background: linear-gradient(135deg, var(--purple-warm), #5b21b6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(124,58,237,0.40);
}

.plist-action-btn.btn-play:hover {
  box-shadow: 0 0 28px rgba(124,58,237,0.65);
  transform: translateY(-1px);
}

.plist-action-btn.btn-danger {
  border-color: rgba(239,68,68,0.25);
  color: rgba(239,68,68,0.75);
  background: rgba(239,68,68,0.08);
}

.plist-action-btn.btn-danger:hover {
  background: rgba(239,68,68,0.16);
  color: #f87171;
  border-color: rgba(239,68,68,0.40);
}

/* Sound row in playlist detail */
.plist-sound-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 10px;
  transition: all 0.22s ease;
  opacity: 0;
  animation: cardIn 0.40s cubic-bezier(0.34,1.56,0.64,1) both;
}

.plist-sound-row:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(157,92,255,0.22);
}

.plist-sound-thumb {
  width: 48px; height: 48px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: rgba(124,58,237,0.20);
  flex-shrink: 0;
}

.plist-sound-info { flex: 1; min-width: 0; }

.plist-sound-name {
  font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}

.plist-sound-cat {
  font-size: 0.70rem; color: var(--text-muted); font-weight: 300;
}

.plist-sound-play {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(124,58,237,0.20);
  border: 1px solid rgba(157,92,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose-warm); cursor: pointer; flex-shrink: 0;
  padding-left: 2px;
  transition: all 0.22s ease;
}

.plist-sound-play:hover {
  background: var(--purple-warm);
  border-color: var(--purple-warm);
  color: #fff;
  box-shadow: 0 0 14px rgba(124,58,237,0.45);
}

.plist-sound-remove {
  width: 30px; height: 30px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(239,68,68,0.20);
  display: flex; align-items: center; justify-content: center;
  color: rgba(239,68,68,0.55); cursor: pointer; flex-shrink: 0;
  transition: all 0.22s ease;
}

.plist-sound-remove:hover {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border-color: rgba(239,68,68,0.40);
}

.plist-empty-sounds {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.65;
}

/* ── Custom confirm modal ── */
.custom-confirm-overlay {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.custom-confirm-bd {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.custom-confirm-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 340px;
  border-radius: 24px;
  padding: 28px 24px 24px;
  background: rgba(12,5,28,0.97);
  border: 1px solid rgba(157,92,255,0.22);
  box-shadow: 0 24px 64px rgba(0,0,0,0.60);
  animation: viewIn 0.30s cubic-bezier(0.34,1.56,0.64,1) both;
  text-align: center;
}

.custom-confirm-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(239,68,68,0.14);
  border: 1px solid rgba(239,68,68,0.28);
  display: flex; align-items: center; justify-content: center;
  color: #f87171; margin: 0 auto 16px;
}

.custom-confirm-title {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 400;
  color: var(--text-primary); margin-bottom: 8px;
}

.custom-confirm-msg {
  font-size: 0.84rem; color: var(--text-muted);
  font-weight: 300; line-height: 1.6; margin-bottom: 22px;
}

.custom-confirm-btns {
  display: flex; gap: 10px;
}

.custom-confirm-cancel {
  flex: 1; padding: 12px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-secondary);
  font-family: var(--font-body); font-size: 0.88rem;
  cursor: pointer; transition: all 0.20s ease;
}

.custom-confirm-cancel:hover {
  background: rgba(255,255,255,0.12); color: var(--text-primary);
}

.custom-confirm-ok {
  flex: 1; padding: 12px; border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: none; color: #fff;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(220,38,38,0.35);
  transition: all 0.22s ease;
}

.custom-confirm-ok:hover {
  box-shadow: 0 0 28px rgba(220,38,38,0.55);
  transform: translateY(-1px);
}

/* ── Sheet / picker padding fix ── */
.noxia-sheet {
  position: fixed; inset: 0; z-index: 800;
  display: flex; align-items: flex-end; justify-content: center;
}

.noxia-sheet-bd {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.noxia-sheet-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  border-radius: 28px 28px 0 0;
  padding: 28px 22px;
  /* Key: proper bottom padding for notch phones */
  padding-bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 28px));
  background: rgba(10,4,28,0.97);
  border: 1px solid rgba(157,92,255,0.22);
  border-bottom: none;
  box-shadow: 0 -12px 48px rgba(0,0,0,0.60);
  animation: paywallSlideUp 0.38s cubic-bezier(0.32,0.72,0,1) both;
  /* Prevent content from being hidden under navigation */
  margin-bottom: 0;
  box-sizing: border-box;
  max-height: 85vh;
  overflow-y: auto;
}

.noxia-sheet-card::before {
  content: '';
  position: absolute; top: 0; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157,92,255,0.50), transparent);
}

.noxia-sheet-card::after {
  content: '';
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.13);
}

.noxia-sheet-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 4px; padding-top: 8px;
}

.noxia-sheet-sub {
  font-size: 0.78rem; color: var(--text-muted);
  font-weight: 300; margin-bottom: 18px;
}

/* ══════════════════════════════════════════
   ACCOUNT PAGE
══════════════════════════════════════════ */

.account-view {
  padding-bottom: 32px;
}

/* ── Hero section ── */
.acct-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 0 24px;
}

.acct-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.acct-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-warm), #5b21b6);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 300;
  color: #fff;
  box-shadow: 0 0 28px rgba(124,58,237,0.45);
  position: relative; z-index: 1;
}

.acct-avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%);
  z-index: 0;
}

.acct-hero-info { flex: 1; min-width: 0; }

.acct-name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.acct-email {
  font-size: 0.78rem; color: var(--text-muted);
  font-weight: 300; margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.acct-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.70rem; font-weight: 500;
  letter-spacing: 0.06em;
}

.acct-badge-premium {
  background: linear-gradient(135deg, rgba(124,58,237,0.30), rgba(192,132,252,0.15));
  border: 1px solid rgba(157,92,255,0.35);
  color: var(--rose-warm);
}

.acct-badge-free {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-muted);
}

/* ── Stats row ── */
.acct-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.acct-stat {
  border-radius: 18px;
  padding: 14px 10px 12px;
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}

.acct-stat-val {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
}

.acct-stat-label {
  font-size: 0.65rem; color: var(--text-muted);
  font-weight: 400; letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Subscription card ── */
.acct-sub-card {
  border-radius: 20px;
  padding: 18px 18px 16px;
  margin-bottom: 16px;
}

.acct-sub-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.acct-sub-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.28), rgba(192,132,252,0.14));
  border: 1px solid rgba(157,92,255,0.30);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose-warm); flex-shrink: 0;
}

.acct-sub-plan {
  font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-primary);
}

.acct-sub-amount {
  font-size: 0.76rem; color: var(--text-muted);
  font-weight: 300; margin-top: 2px;
}

.acct-sub-status-badge {
  margin-left: auto;
  background: rgba(16,185,129,0.16);
  border: 1px solid rgba(16,185,129,0.28);
  color: #10b981;
  font-size: 0.70rem; font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px;
  flex-shrink: 0;
}

.acct-sub-billing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem; color: var(--text-secondary);
  font-weight: 300;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.07);
}

.acct-sub-billing svg { flex-shrink: 0; color: var(--rose-warm); }
.acct-sub-billing strong { color: var(--text-primary); font-weight: 500; }

.acct-sub-features {
  display: flex; flex-direction: column; gap: 8px;
}

.acct-sub-feature {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.80rem; color: var(--text-secondary); font-weight: 300;
}

.acct-upgrade-btn {
  width: 100%; padding: 14px 20px;
  border-radius: 999px;
  font-family: var(--font-body); font-size: 0.90rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--purple-warm), #5b21b6);
  box-shadow: 0 0 22px rgba(124,58,237,0.45);
  transition: all 0.28s ease;
}

.acct-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(124,58,237,0.65);
}

/* ── Settings list ── */
.acct-settings-list {
  border-radius: 20px;
  overflow: hidden;
  padding: 4px 0;
}

.acct-setting-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.20s ease;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 400;
}

.acct-setting-item:last-child { border-bottom: none; }

.acct-setting-item:hover {
  background: rgba(255,255,255,0.04);
}

.acct-setting-item:active {
  background: rgba(255,255,255,0.07);
}

.acct-setting-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.acct-setting-item span {
  flex: 1;
}

.acct-chevron {
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* ── Account section label ── */
.acct-section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 22px 0 8px 4px;
}

/* ══════════════════════════════════════════
   LEGAL PAGES (Terms, Privacy, EULA)
══════════════════════════════════════════ */

.legal-view {
  padding: 0 18px 40px;
}

.legal-header {
  text-align: center;
  padding: 8px 0 28px;
}

.legal-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(192,132,252,0.12));
  border: 1px solid rgba(157,92,255,0.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose-warm);
  margin: 0 auto 18px;
  box-shadow: 0 0 24px rgba(124,58,237,0.18);
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.legal-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 300;
}

.legal-intro {
  font-family: var(--font-body);
  font-size: 0.90rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  padding: 16px 18px;
  background: rgba(157,92,255,0.08);
  border: 1px solid rgba(157,92,255,0.18);
  border-radius: 16px;
  margin-bottom: 24px;
}

.legal-body {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-weight: 300;
}

.legal-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(157,92,255,0.15);
}

.legal-section p {
  font-size: 0.86rem;
  line-height: 1.78;
  margin-bottom: 12px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  padding-left: 20px;
  margin: 10px 0 12px;
}

.legal-section ul li {
  font-size: 0.85rem;
  line-height: 1.70;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 500;
}

.legal-section a {
  color: var(--rose-warm);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.84rem;
  line-height: 1.80;
  color: var(--text-secondary);
  margin-top: 12px;
}

.legal-contact-card strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}


/* ══════════════════════════════════════════
   ACCOUNT TABS
══════════════════════════════════════════ */

.acct-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
}

.acct-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
}

.acct-tab:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}

.acct-tab.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(124,58,237,0.10));
  color: var(--text-primary);
  border: 1px solid rgba(157,92,255,0.25);
  box-shadow: 0 0 14px rgba(124,58,237,0.14);
}

.acct-tab.active svg {
  color: var(--rose-warm);
}

.acct-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(192,132,252,0.22);
  border: 1px solid rgba(192,132,252,0.30);
  color: var(--rose-warm);
  font-size: 0.66rem;
  font-weight: 600;
}

/* ══════════════════════════════════════════
   FAVOURITES TAB CONTENT
══════════════════════════════════════════ */

.fav-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 300;
}

.fav-spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(157,92,255,0.20);
  border-top-color: var(--rose-warm);
  animation: spin 0.9s linear infinite;
}

.fav-empty {
  text-align: center;
  padding: 48px 20px;
}

.fav-empty-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(124,58,237,0.10);
  border: 1px solid rgba(157,92,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  margin: 0 auto 16px;
}

.fav-empty-title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.fav-empty-sub {
  font-size: 0.82rem; font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 260px;
  margin: 0 auto;
}

.fav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fav-count {
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.fav-play-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-warm), #5b21b6);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(124,58,237,0.35);
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

.fav-play-all-btn:hover {
  box-shadow: 0 0 26px rgba(124,58,237,0.55);
  transform: translateY(-1px);
}

.fav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fav-sound-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.22s ease;
  opacity: 0;
  animation: cardIn 0.38s cubic-bezier(0.34,1.56,0.64,1) both;
}

.fav-sound-row:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(157,92,255,0.20);
}

.fav-sound-thumb {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(124,58,237,0.20);
  flex-shrink: 0;
}

.fav-sound-info { flex: 1; min-width: 0; }

.fav-sound-name {
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}

.fav-sound-cat {
  font-size: 0.70rem; color: var(--text-muted); font-weight: 300;
}

.fav-sound-play {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(124,58,237,0.20);
  border: 1px solid rgba(157,92,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose-warm); cursor: pointer; flex-shrink: 0;
  padding-left: 2px;
  transition: all 0.22s ease;
}

.fav-sound-play:hover {
  background: var(--purple-warm);
  color: #fff;
  box-shadow: 0 0 12px rgba(124,58,237,0.45);
}

.fav-sound-remove {
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(239,68,68,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(239,68,68,0.50); cursor: pointer; flex-shrink: 0;
  transition: all 0.22s ease;
}

.fav-sound-remove:hover {
  background: rgba(239,68,68,0.14);
  color: #f87171;
  border-color: rgba(239,68,68,0.38);
}

/* Heart button on player — filled when active */
.fp-fav-btn.is-fav {
  color: #f87171 !important;
  background: rgba(239,68,68,0.12) !important;
  border-color: rgba(239,68,68,0.28) !important;
  box-shadow: 0 0 14px rgba(239,68,68,0.28) !important;
}

.fp-fav-btn.is-fav svg path {
  fill: currentColor;
}

.fp-fav-btn {
  transition: color 0.22s ease, background 0.22s ease,
              border-color 0.22s ease, box-shadow 0.22s ease,
              transform 0.18s cubic-bezier(0.34,1.56,0.64,1) !important;
}