/* ===========================================================
   TIKTOK VINTAGE MUSIC THEME — EXTRAVAGANT EDITION
   Gold • Glow • Warm Beige • Animated Symbols • No Textures
=========================================================== */

/* -----------------------------------------------------------
   COLOR PALETTE
----------------------------------------------------------- */
:root {
  --paper: #f7e9d2;
  --paper-light: #fff7e7;
  --paper-dark: #edd7b8;

  --ink-strong: #3a2615;
  --ink-medium: #6c533f;
  --ink-light: #a48770;

  --gold-1: #d4b06a;
  --gold-2: #f3d18d;
  --gold-3: #b88d4a;

  --ruby: #b85d5d;
  --forest: #48583f;
  --olive: #8f9b66;

  --shadow-strong: 0 25px 70px rgba(30,15,0,0.35);
  --shadow-soft: 0 14px 40px rgba(40,20,0,0.18);
  --shadow-gold-glow: 0 0 20px rgba(243,210,141,0.45);

  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 12px;
}

/* -----------------------------------------------------------
   GLOBAL + BACKGROUND
----------------------------------------------------------- */
html, body {
  margin: 0;
  padding: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink-strong);
  min-height: 100vh;
  overflow-x: hidden;
}


/* Vignette + center glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center,
      rgba(255,240,210,0.85) 0%,
      rgba(247,233,210,0.55) 40%,
      rgba(227,204,172,0.35) 70%,
      rgba(150,120,90,0.25) 100%);
  z-index: -2;
}

/* Subtle animated floating notes */
body::after {
  content: "♪ 𝄞 ♫";
  position: fixed;
  font-size: 90px;
  color: rgba(120,90,60,0.14);
  animation: floatNotes 18s infinite linear;
  pointer-events: none;
  z-index: -1;
}

@keyframes floatNotes {
  0%   { transform: translate(-10vw, 110vh) rotate(0deg);}
  25%  { transform: translate(20vw, 60vh) rotate(12deg);}
  50%  { transform: translate(50vw, 20vh) rotate(-8deg);}
  75%  { transform: translate(80vw, 60vh) rotate(4deg);}
  100% { transform: translate(110vw, 110vh) rotate(0deg);}
}

/* ============================================================
   TOP NAVBAR — TikTok Gold
============================================================ */
#top-navbar {
  width: 100%;
  height: 70px;
  background: linear-gradient(90deg, #e6d3b2, #d9c29a, #e6d3b2);
  border-bottom: 2px solid #c9ae85;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  color: #6d512f;
  letter-spacing: 0.06em;
}

.nav-center {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 16px;
  color: #5a452c;
  text-decoration: none;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover {
  color: #3d2b16;
}

/* Gold underline hover */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #c9a065;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.user-pill {
  background: rgba(241,228,204,0.95);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #ccb894;
  color: #614b32;
  font-size: 13px;
}

.logout-pill {
  margin-left: 10px;
  background: linear-gradient(135deg, #cf8f7d, #f0b3a2);
  padding: 6px 14px;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.logout-pill:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Hide mobile toggle for now */
#top-nav-mobile-toggle {
  display: none;
}

main {
  min-height: calc(100vh - 70px); /* navbar height */
  padding-top: 90px;              /* visual breathing room */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ============================================================
   MAIN CONTAINER — floating card
============================================================ */
.container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto 60px;   /* clears navbar + centers */
  padding: 40px 38px 50px;

  background: linear-gradient(
    145deg,
    var(--paper-light),
    var(--paper) 55%,
    var(--paper-dark)
  );

  border-radius: var(--radius-xl);
  border: 1px solid rgba(120,90,60,0.32);
  box-shadow: var(--shadow-strong);

  position: relative;
  animation: fadeUpMain 0.8s ease forwards;
  transform-origin: center;
}

@keyframes fadeUpMain {
  0% { opacity: 0; transform: translateY(24px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* -----------------------------------------------------------
   HEADER
----------------------------------------------------------- */
header h1 {
  font-family: "Playfair Display", serif;
  font-size: 44px;
  text-align: center;
  margin: 0 0 10px;

  background: linear-gradient(
    100deg,
    var(--gold-3),
    var(--gold-2),
    var(--gold-1)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: var(--shadow-gold-glow);
  letter-spacing: 0.10em;
}

/* optional subtitle: if you ever add <p> in header */
header p {
  text-align: center;
  font-size: 14px;
  color: var(--ink-medium);
  margin: 0 0 8px;
}

/* ============================================================
   SECTION CARDS
============================================================ */
.section {
  padding: 26px;
  margin: 30px 0;
  background: var(--paper-light);
  border: 1px solid rgba(120,90,60,0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;

  animation: fadeSection 0.6s ease forwards;
  opacity: 0;
  transform-origin: center;
}

@keyframes fadeSection {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Lift + glow on hover */
.section:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.20);
  border-color: rgba(212,176,106,0.75);
}
.section {
  position: relative;
  z-index: 2;
}




.section h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--ink-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   INPUTS & TEXTAREAS
============================================================ */
input,
select,
textarea {
  width: 100%;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(120,90,60,0.28);
  background: linear-gradient(120deg, #fffdf9, #fff6eb);
  transition: 0.2s ease;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-1);
  box-shadow: 0 0 12px rgba(212,176,106,0.45);
  outline: none;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

/* Range slider */
input[type="range"] {
  appearance: none;
  background: rgba(150,110,70,0.25);
  height: 4px;
  border-radius: 999px;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fffaf3;
  border: 2px solid #8e6b44;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

/* Labels + checkboxes */
.section label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
  font-size: 14px;
  color: var(--ink-medium);
}

.section label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* ============================================================
   BUTTONS — Main CTA glow
============================================================ */
button {
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: white;

  background: linear-gradient(135deg, var(--forest), var(--olive));
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);

  transition: 0.22s ease;
  position: relative;
  overflow: hidden;
}

/* animated inner shimmer */
button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  height: 100%;
  width: 40%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transform: skewX(-20deg);
  opacity: 0;
}

button:hover::after {
  animation: shimmer 0.9s forwards;
}

@keyframes shimmer {
  0% { opacity: 1; transform: translateX(0) skewX(-20deg); }
  100% { opacity: 0; transform: translateX(200%) skewX(-20deg); }
}

button:hover {
  transform: translateY(-4px);
  filter: brightness(1.08);
  box-shadow: 0 16px 32px rgba(0,0,0,0.24);
}

button:active {
  transform: translateY(1px) scale(0.97);
}

/* ============================================================
   PROGRESS BAR
============================================================ */
.progress {
  width: 100%;
  height: 7px;
  background: rgba(150,110,70,0.18);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  transition: width 0.3s ease-out;
}

/* ============================================================
   METADATA LIST
============================================================ */
.metadata-panel ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.metadata-panel li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-medium);
}

/* ============================================================
   LIVE OUTPUT + MIC METER
============================================================ */
#live-output {
  background: #fbf1de;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid rgba(140,110,80,0.25);
  max-height: 160px;
  overflow-y: auto;
  font-size: 14px;
}

#live-output p {
  margin: 2px 0;
}

/* Simple horizontal meter */
#mic-meter {
  width: 0%;
  height: 8px;
  background: linear-gradient(90deg, #7aa96c, #d2e28a);
  border-radius: 999px;
  margin-top: 6px;
}

/* ============================================================
   AUDIO PLAYER
============================================================ */
audio {
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
  background: #f5ebd9;
}

/* ============================================================
   EXPORT LINKS
============================================================ */
.section a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
}

.section a:hover {
  text-decoration: underline;
}

/* ============================================================
   SCORE CONTAINER (OSMD)
============================================================ */
#osmd-container {
  background: #fffdf9;
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid rgba(140,110,80,0.25);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-light);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  #top-navbar {
    padding: 0 18px;
  }

  .nav-center {
    gap: 16px;
  }

  .container {
    margin: 90px 14px 40px;
    padding: 26px 20px 32px;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 30px;
    letter-spacing: 0.08em;
  }

  .section {
    padding: 22px;
    margin: 24px 0;
  }

  .nav-center {
    display: none; /* simple mobile: keep logo + user */
  }

  .user-pill {
    display: none;
  }
}
/* ============================================================
   EXTRA TIKTOK-VINTAGE ENHANCEMENTS PACK
============================================================ */

/* ------------------------------------------------------------
   🔥 GOLD SPARKLE PARTICLES AROUND MAIN CONTAINER
------------------------------------------------------------ */
.container::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: var(--radius-xl);
  pointer-events: none;
  background: radial-gradient(circle, rgba(243,210,141,0.23) 0%, transparent 70%);
  filter: blur(18px);
  opacity: 0.55;
  z-index: -1;
}

/* subtle random floating sparkles */
@keyframes sparkleFloat {
  0%   { transform: translate(0,0) scale(1); opacity: 0.7; }
  50%  { transform: translate(12px,-10px) scale(1.15); opacity: 0.35; }
  100% { transform: translate(-10px,10px) scale(1); opacity: 0.7; }
}

.container::after {
  content: "✦ ✧ ✦";
  position: absolute;
  right: -20px;
  top: -14px;
  font-size: 32px;
  color: rgba(212,176,106,0.35);
  animation: sparkleFloat 6s ease-in-out infinite;
}

/* ------------------------------------------------------------
   ✨ SECTION TITLE DROP CAPS — OVERSIZED BAROQUE LOOK
------------------------------------------------------------ */
.section h2::first-letter {
  font-size: 34px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-right: 4px;
  color: var(--gold-3);
  text-shadow: 0 0 8px rgba(212,176,106,0.55);
}

/* ------------------------------------------------------------
   🎗️ SECTION GOLDEN-RIBBON DIVIDER
------------------------------------------------------------ */
.section h2 {
  position: relative;
  padding-bottom: 6px;
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  border-radius: 99px;
}

/* ------------------------------------------------------------
   🪄 STAGGERED SCROLL-REVEAL MOTION
------------------------------------------------------------ */
.section {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.8s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.15s; }
.section:nth-child(2) { animation-delay: 0.25s; }
.section:nth-child(3) { animation-delay: 0.35s; }
.section:nth-child(4) { animation-delay: 0.45s; }
.section:nth-child(5) { animation-delay: 0.55s; }
.section:nth-child(6) { animation-delay: 0.65s; }
.section:nth-child(7) { animation-delay: 0.75s; }
.section:nth-child(8) { animation-delay: 0.85s; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(26px) scale(0.98); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
}

/* ------------------------------------------------------------
   🎧 LIVE MODE — PULSE BORDER WHEN ACTIVE
------------------------------------------------------------ */
#live-status[active="true"] {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(122, 169, 108, 0.2);
  border: 1px solid var(--forest);
  animation: pulseBorder 1.8s infinite ease-in-out;
}

@keyframes pulseBorder {
  0%   { box-shadow: 0 0 0 rgba(122,169,108,0.35); }
  50%  { box-shadow: 0 0 22px rgba(122,169,108,0.55); }
  100% { box-shadow: 0 0 0 rgba(122,169,108,0.35); }
}

/* ------------------------------------------------------------
   🖼️ SCORE PREVIEW — ANTIQUE FRAME EFFECT
------------------------------------------------------------ */
#osmd-container {
  border: 1px solid rgba(120,90,60,0.35);
  box-shadow: inset 0 0 16px rgba(80,60,40,0.25), 0 0 18px rgba(210,165,110,0.35);
  background: linear-gradient(180deg, #fffdf9, #fbf3e3);
  animation: frameGlow 4s ease-in-out infinite alternate;
}

@keyframes frameGlow {
  0%   { box-shadow: inset 0 0 16px rgba(80,60,40,0.25), 0 0 10px rgba(210,165,110,0.25); }
  100% { box-shadow: inset 0 0 14px rgba(80,60,40,0.28), 0 0 22px rgba(210,165,110,0.45); }
}

/* ------------------------------------------------------------
   ⬇️ EXPORT LINKS — GOLDEN BUTTON BADGES
------------------------------------------------------------ */
.section a {
  display: inline-block;
  padding: 6px 12px;
  margin: 6px 0;
  background: rgba(243,210,141,0.23);
  border-radius: 10px;
  border: 1px solid rgba(212,176,106,0.45);
  transition: 0.2s ease;
}

.section a:hover {
  background: rgba(243,210,141,0.33);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   🎹 MODEL DROPDOWN — LUXURY BORDER
------------------------------------------------------------ */
select#model-select {
  border: 2px solid rgba(212,176,106,0.55);
  background: linear-gradient(120deg, #fffdf9, #fff3de);
}

/* ------------------------------------------------------------
   🎚 RECORD BUTTON — UPGRADE SHIMMER LAYER
------------------------------------------------------------ */
#record-btn {
  background: linear-gradient(135deg, #4f6349, #97a873);
  position: relative;
  overflow: hidden;
}

#record-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  filter: blur(2px);
}

/* stronger shimmer */
#record-btn:hover::after {
  animation: shimmerStrong 0.9s forwards;
}

@keyframes shimmerStrong {
  0%   { opacity: 0.3; transform: translateX(0) skewX(-20deg); }
  100% { opacity: 0; transform: translateX(260%) skewX(-20deg); }
}

/* ------------------------------------------------------------
   🌙 Soft background motion on scroll
------------------------------------------------------------ */
body {
  background-attachment: fixed;
  transition: background-position 0.25s ease-out;
}

body:hover {
  background-position: 0px -12px;
}
/* ============================================================
   ✨ NEXT-LEVEL TIKTOK VINTAGE UPGRADE PACK
   Adds sparkles, motion, shimmer, ornaments, parallax
============================================================ */

/* ------------------------------------------------------------
   1️⃣ FLOATING PARTICLES AROUND NAVBAR
------------------------------------------------------------ */
#top-navbar::after {
  content: "✦ ✧ ✦ ✧";
  position: absolute;
  right: 40px;
  top: -14px;
  font-size: 22px;
  color: rgba(240,205,150,0.55);
  animation: navbarSparkles 7s linear infinite;
  pointer-events: none;
}

@keyframes navbarSparkles {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  50%  { transform: translateY(14px) rotate(12deg); opacity: 0.4; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
}


/* ------------------------------------------------------------
   2️⃣ NAVBAR SHIMMER EFFECT (subtle gold sweep)
------------------------------------------------------------ */
#top-navbar {
  position: relative;
  overflow: hidden;
}

#top-navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.55),
    transparent
  );
  transform: skewX(-20deg);
  animation: shimmerBar 6s infinite ease-in-out;
}

@keyframes shimmerBar {
  0%   { left: -120%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}


/* ------------------------------------------------------------
   3️⃣ TREBLE CLEF CORNER ORNAMENTS ON ALL SECTIONS
------------------------------------------------------------ */
.section::before {
  content: "𝄞";
  position: absolute;
  top: -18px;
  left: -18px;
  font-size: 40px;
  opacity: 0.08;
  color: var(--ink-light);
}

.section::after {
  content: "𝄢" !important;
  position: absolute !important;
  bottom: -12px !important;
  right: -12px !important;
  font-size: 44px !important;
  opacity: 0.25 !important;    /* visible */
  color: #6d512f !important;   /* strong gold/brown */
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.25)) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}



/* ------------------------------------------------------------
   4️⃣ SECTION TITLE HOVER ANIMATION
------------------------------------------------------------ */
.section h2 {
  transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.section h2:hover {
  transform: translateX(4px);
  letter-spacing: 0.5px;
}


/* ------------------------------------------------------------
   5️⃣ ANIMATED GOLD RIBBON DIVIDER UNDER TITLES
------------------------------------------------------------ */
.section h2::after {
  animation: goldRibbon 3s ease-in-out infinite;
}

@keyframes goldRibbon {
  0%   { width: 50px; opacity: 0.6; }
  50%  { width: 90px; opacity: 1; }
  100% { width: 50px; opacity: 0.6; }
}


/* ------------------------------------------------------------
   6️⃣ MOUSE-FOLLOW GOLD SPARKLES
------------------------------------------------------------ */
.sparkle {
  position: fixed;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #f3d18d, transparent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.9;
  z-index: 999999;
  animation: sparkleFade 0.9s ease forwards;
}

@keyframes sparkleFade {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.3); opacity: 0; }
}


/* ------------------------------------------------------------
   7️⃣ BACKGROUND PARALLAX DRIFT
------------------------------------------------------------ */
body {
  background-size: 120%;
  animation: bgDrift 24s ease-in-out infinite;
}

@keyframes bgDrift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 2% 3%; }
  100% { background-position: 0% 0%; }
}
#top-navbar {
    overflow: hidden !important;
}

/* ============================================================
   OPTION B — FLOATING MUSICAL NOTES RISING LIKE STEAM
============================================================ */

/* Container for animated notes */
#music-steam-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 3 !important;
}

/* Notes */
.music-note {
  position: absolute;
  z-index: 3 !important;
  bottom: -40px;
  opacity: 0.85;
  color: rgba(120, 90, 60, 0.75);
  animation: riseNote 7s linear forwards;
  filter: drop-shadow(0 0 6px rgba(243, 210, 141, 0.8));
}

/* Float animation */
@keyframes riseNote {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  40% {
    transform: translateY(-40vh) translateX(-12px) rotate(12deg) scale(1.15);
    opacity: 1;
  }
  70% {
    transform: translateY(-75vh) translateX(14px) rotate(-8deg) scale(1.22);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-110vh) translateX(-6px) rotate(0deg) scale(1.28);
    opacity: 0;
  }
}

.badge-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all .3s ease;
    z-index: 9999;
}

.badge-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.badge-popup img {
    width: 48px;
    height: 48px;
}

.badges {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.badges img {
  width: 48px;
  height: 48px;
}

.xp-pill {
  background: linear-gradient(135deg, #6a5acd, #00c6ff);
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-right: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 🎯 Daily Challenge Cards */

.challenge-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.challenge-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.challenge-status {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Progress bar */

.challenge-bar {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.challenge-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00c6ff, #6a5acd);
  transition: width 0.6s ease;
}

/* Completed state */

.challenge-bar-fill.completed {
  background: linear-gradient(90deg, #00e676, #2ecc71);
}



/* 🎯 Daily Challenge – completed fade */
.challenge-card.completed {
  opacity: 0.7;
}

/* Subtle completion pop */
@keyframes challenge-complete-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.challenge-card.completed {
  animation: challenge-complete-pop 0.4s ease;
}

/* ===========================
   🎨 VIBE FINGERPRINT CARD
=========================== */

#vibe-content {
  background: linear-gradient(135deg, #1f2933, #111827);
  color: #e5e7eb;
  padding: 16px;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  white-space: pre-wrap;
  margin-bottom: 10px;
}

#share-vibe {
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}

#share-vibe:hover {
  background: #4338ca;
}


/* ===========================
   🏷️ LAST.FM TAG PILLS
=========================== */

#lastfm-tags span,
#lastfm-artists span {
  display: inline-block;
  background: #e5e7eb;
  color: #111827;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 4px 6px 0 0;
  font-size: 0.8rem;
}

#lastfm-artists span {
  background: #dbeafe;
}


/* ===========================
   💡 CLEANUP SUGGESTION
=========================== */

#cleanup-suggestion {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px;
}

#cleanup-suggestion h3 {
  margin-top: 0;
}

#apply-cleanup-suggestion {
  background: #f59e0b;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

#apply-cleanup-suggestion:hover {
  background: #d97706;
}

/* =========================================
   AUTH PAGE — RESPONSIVE WIDTH
========================================= */

.auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vw, 36px);
  padding-top: clamp(24px, 6vw, 48px);
  width: 100%;
}

.auth-card {
  width: 100%;
  max-width: clamp(320px, 85vw, 900px);
  padding: clamp(22px, 4vw, 36px);

  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
  background: var(--paper-light);
}

/* =========================================
   RECORDING FEEDBACK (USER PRESENCE)
========================================= */

#recording-status {
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
}

.recording-idle {
  background: rgba(120, 90, 60, 0.15);
  color: var(--ink-medium);
}

.recording-active {
  background: rgba(122, 169, 108, 0.25);
  color: var(--forest);
  border: 1px solid rgba(122,169,108,0.6);
  animation: pulseSoft 1.6s infinite;
}

@keyframes pulseSoft {
  0%   { box-shadow: 0 0 0 rgba(122,169,108,0.4); }
  50%  { box-shadow: 0 0 18px rgba(122,169,108,0.6); }
  100% { box-shadow: 0 0 0 rgba(122,169,108,0.4); }
}

/* Listening dots */
#listening-indicator {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

#listening-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-2);
  opacity: 0.6;
  animation: listenBounce 1.2s infinite ease-in-out;
}

#listening-indicator span:nth-child(2) { animation-delay: 0.15s; }
#listening-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes listenBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}


/* =========================================
   MIC-REACTIVE RECORD BUTTON PULSE
========================================= */

#record-btn.recording {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.star {
  font-size: 22px;
  cursor: pointer;
  user-select: none;
}
.star:hover {
  transform: scale(1.2);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
