/* ============================================================
   Profile Page Styles
   ============================================================ */

.profile-heading {
  text-align: center;
  padding: 24px 0 8px;
}
.profile-heading__title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
}
.profile-heading__subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 16px;
  color: var(--color-ink);
}
.profile-heading__subtitle .dot,
.profile-heading__dot {
  color: var(--color-amber);
}

/* User info card */
.profile-user {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--color-cream-card);
  border: 1.5px solid rgba(26, 13, 8, 0.08);
  border-radius: 4px;
  margin-bottom: 16px;
}
.profile-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-parch);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; color: var(--color-ink-muted);
  letter-spacing: 0.04em; flex-shrink: 0;
}
.profile-user__info { flex: 1; }
.profile-user__email {
  font-size: 14px; font-weight: 500; color: var(--color-ink);
}
.profile-user__plan {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--color-mint); text-transform: uppercase; margin-top: 2px;
}
.profile-user__credits {
  text-align: right;
}
.profile-user__credits-num {
  font-family: var(--font-display); font-size: 28px; color: var(--color-ink);
  line-height: 1;
}
.profile-user__credits-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--color-ink-muted); text-transform: uppercase;
}

/* Section headers */
.profile-section {
  margin-bottom: 20px;
}
.profile-section__header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(26, 13, 8, 0.06);
}
.profile-section__title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--color-ink);
}
.profile-section__badge {
  font-size: 8px; font-weight: 600; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 3px;
  text-transform: uppercase;
}
.profile-section__badge--new {
  background: rgba(26, 95, 255, 0.1); color: var(--color-electric);
}
.profile-section__badge--earn {
  background: var(--color-mint-light);
  color: var(--color-mint);
}

/* Stubbed list items */
.profile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: var(--color-cream-card);
  border: 1px solid rgba(26, 13, 8, 0.06);
  border-radius: 4px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.profile-link:hover { background: var(--color-parch); }
.profile-link__label {
  font-size: 13px; font-weight: 500; color: var(--color-ink);
}
.profile-link__value {
  font-size: 12px; color: var(--color-ink-muted);
}
.profile-link__value--mint {
  color: var(--color-mint);
  font-weight: 600;
}
.profile-link__arrow {
  font-size: 13px; color: var(--color-ink-muted); opacity: 0.4;
}
.profile-link--danger .profile-link__label { color: var(--color-red); }

/* Optional leading icon slot (used by the Invite Friends row) */
.profile-link__icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
}
.profile-link__icon--mint {
  background: var(--color-mint-light);
  color: var(--color-mint);
}

/* When a profile-link has a leading icon + value + arrow, push the value to the right */
.profile-link--invite {
  /* Reset native button styling so it lays out like an <a class="profile-link"> */
  width: 100%;
  font-family: inherit;
  text-align: left;
  appearance: none;
}
.profile-link--invite .profile-link__value {
  margin-left: auto;
  margin-right: 8px;
}

/* ============================================================
   IDENTIFICATION SOUNDS
   ============================================================ */

.sound-section {
  margin-bottom: 24px;
}

.sound-section__intro {
  font-size: 12px; color: var(--color-ink-2); line-height: 1.6;
  margin-bottom: 14px;
}

.sound-grid {
  display: flex; flex-direction: column; gap: 8px;
}

.sound-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--color-cream-card);
  border: 1.5px solid rgba(26, 13, 8, 0.06);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
}
.sound-card:hover {
  border-color: rgba(26, 13, 8, 0.12);
  background: #FEFBF4;
}
.sound-card--selected {
  border-color: var(--color-red);
  background: #FEFBF4;
  box-shadow: 0 0 0 1px var(--color-red);
}

/* Radio circle */
.sound-card__radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(26, 13, 8, 0.2);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s;
}
.sound-card--selected .sound-card__radio {
  border-color: var(--color-red);
}
.sound-card__radio-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}
.sound-card--selected .sound-card__radio-dot {
  background: var(--color-red);
}

/* Content */
.sound-card__content { flex: 1; min-width: 0; }
.sound-card__name {
  font-size: 13px; font-weight: 600; color: var(--color-ink);
  margin-bottom: 2px;
}
.sound-card__desc {
  font-size: 10px; color: var(--color-ink-muted); line-height: 1.5;
}
.sound-card__vibe {
  font-size: 9px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--color-amber); text-transform: uppercase;
  margin-bottom: 2px;
}

/* Preview button */
.sound-card__preview {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-parch);
  border: 1.5px solid rgba(26, 13, 8, 0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.sound-card__preview:hover {
  background: var(--color-parch-2);
  border-color: rgba(26, 13, 8, 0.15);
}
.sound-card__preview--playing {
  background: var(--color-amber);
  border-color: var(--color-amber);
}
.sound-card__preview--playing svg { stroke: var(--color-ivory); }

/* Playing indicator — animated bars */
.sound-card__playing-bars {
  display: none;
  gap: 2px; align-items: flex-end; height: 14px;
}
.sound-card.is-playing .sound-card__playing-bars { display: flex; }
.sound-card.is-playing .sound-card__preview-icon { display: none; }
.sound-bar {
  width: 3px; background: var(--color-amber); border-radius: 1px;
  animation: soundbar 0.8s ease-in-out infinite alternate;
}
.sound-bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.sound-bar:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.sound-bar:nth-child(3) { height: 4px; animation-delay: 0.3s; }
.sound-bar:nth-child(4) { height: 8px; animation-delay: 0.1s; }
@keyframes soundbar {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Default badge */
.sound-card__default {
  position: absolute; top: -1px; right: 12px;
  font-size: 8px; font-weight: 600; letter-spacing: 0.06em;
  padding: 2px 8px 3px; border-radius: 0 0 3px 3px;
  background: var(--color-electric); color: var(--color-ivory);
  text-transform: uppercase;
}

/* Mute toggle at bottom */
.sound-toggles {
  margin-top: 12px;
  border: 1px solid rgba(26, 13, 8, 0.04);
  border-radius: 4px;
  overflow: hidden;
}
.sound-mute {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(26, 13, 8, 0.02);
}
.sound-mute + .sound-mute {
  border-top: 1px solid rgba(26, 13, 8, 0.04);
}
.sound-mute__label {
  font-size: 12px; font-weight: 500; color: var(--color-ink); flex: 1;
}
.sound-mute__sublabel {
  font-size: 10px; color: var(--color-ink-muted); margin-top: 1px;
}

/* Toggle switch */
.toggle {
  width: 40px; height: 22px; border-radius: 11px;
  background: var(--color-mint); cursor: pointer;
  position: relative; flex-shrink: 0;
  transition: background 0.2s;
  padding: 0;
}
.toggle--off { background: var(--color-parch-2); }
.toggle::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: white; top: 2px; left: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: left 0.2s;
}
.toggle--off::after { left: 2px; }
