:root {
  --primary-rgb: 255, 0, 128;
  --secondary-rgb: 0, 240, 255;
  --accent-rgb: 255, 215, 0;
  --bg-dark: #07060d;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  background-color: var(--bg-dark);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Animated Disco RGB Background Mesh */
.rgb-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 0, 128, 0.25), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.25), transparent 40%),
              radial-gradient(circle at 50% 80%, rgba(157, 0, 255, 0.25), transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(255, 215, 0, 0.2), transparent 40%);
  filter: blur(60px);
  animation: rgbMeshShift 10s infinite alternate ease-in-out;
}

@keyframes rgbMeshShift {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Interactive Canvas */
#discoCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Main Container - Expanded Width */
.main-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1350px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Header Banner */
.hero-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 2.5rem 2rem;
  text-align: center;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, transparent, #ff007f, #00f0ff, #ffd700, transparent);
  animation: rgbBorder 3s linear infinite;
}

@keyframes rgbBorder {
  0% { left: -100%; }
  100% { left: 100%; }
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
  margin-bottom: 1.2rem;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

h1.birthday-title {
  font-family: 'Fredoka', cursive;
  font-size: clamp(2.3rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 20%, #ff0080 50%, #00f0ff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(255, 0, 128, 0.4);
  animation: titlePulse 2s ease-in-out infinite alternate;
}

@keyframes titlePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

.subtitle-family {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.love-tag {
  font-size: 1.1rem;
  color: #e0e0e0;
  font-style: italic;
  letter-spacing: 1px;
}

/* =========================================================
   NEW BIRTHDAY MP3 PLAYER WIDGET
========================================================= */
.birthday-player-card {
  margin: 2rem auto 0 auto;
  max-width: 650px;
  width: 100%;
  background: linear-gradient(145deg, rgba(18, 12, 35, 0.85), rgba(8, 6, 18, 0.9));
  border: 1px solid rgba(255, 0, 128, 0.4);
  border-radius: 26px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(255, 0, 128, 0.25), inset 0 0 20px rgba(0, 240, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: left;
}

/* Spinning Vinyl Disc */
.vinyl-container {
  flex-shrink: 0;
}

.vinyl-disc {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 20%, #111 60%, #000 100%);
  border: 4px solid #333;
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.5s ease;
}

.vinyl-groove {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.vinyl-center {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff007f, #ffd700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 0.75rem;
  z-index: 2;
}

.vinyl-disc.spinning {
  animation: spinVinyl 4s linear infinite;
}

@keyframes spinVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.track-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow: hidden;
}

.track-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00f0ff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.track-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-status {
  font-size: 0.85rem;
  color: #ffd700;
  font-weight: 500;
}

.autoplay-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 0, 128, 0.25);
  border: 1px solid #ff007f;
  color: #ffb8e0;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}

/* Seek / Progress Bar */
.player-progress-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}

.time-stamp {
  font-size: 0.8rem;
  color: #a0a0c0;
  font-weight: 600;
  min-width: 35px;
}

.seek-bar {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
  cursor: pointer;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.player-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.btn-play {
  background: linear-gradient(135deg, #ff007f, #7928ca);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.5);
}

.btn-play:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.8);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #00f0ff;
  font-size: 1rem;
}

.volume-container i {
  cursor: pointer;
}

.volume-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffd700;
  cursor: pointer;
}

/* Action Controls Inside Player */
.action-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn {
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.btn-fb {
  background: linear-gradient(135deg, #1877f2, #00d2ff);
  color: white;
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.btn-fb:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 35px rgba(24, 119, 242, 0.7);
}

.btn-wish {
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #000;
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.btn-wish:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.7);
}

/* Section Header */
.section-header {
  text-align: center;
}

.section-header h2 {
  font-family: 'Fredoka', cursive;
  font-size: 2.2rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.section-header p {
  color: #b0b0d0;
  font-size: 1rem;
  margin-top: 0.3rem;
}

/* EXPANDED SLIDER SECTION */
.slider-card {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.slider-viewport {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 480px;
  max-height: 850px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
}

.slider-image-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95) rotate(-1deg);
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  filter: brightness(0.9);
}

.slider-img.active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: brightness(1);
}

/* Star Sparkle Overlay */
.star-flash-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 0, 128, 0.3) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 3;
}

.star-flash-overlay.active {
  animation: flashBurst 0.6s ease-out;
}

@keyframes flashBurst {
  0% { opacity: 0.9; transform: scale(0.8); }
  50% { opacity: 0.6; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.2); }
}

/* Slider Overlays */
.slider-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 215, 0, 0.6);
  color: #ffd700;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}



.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
}

.slider-nav-btn:hover {
  background: #ff007f;
  border-color: #ff007f;
  box-shadow: 0 0 25px rgba(255, 0, 128, 0.9);
  transform: translateY(-50%) scale(1.15);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #00f0ff;
  box-shadow: 0 0 12px #00f0ff;
  transform: scale(1.3);
  width: 32px;
  border-radius: 10px;
}

/* FAMILY MESSAGES CONTAINER & DYNAMIC STYLED CARDS */
.family-messages-wrapper {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 2.2rem;
  position: relative;
}

.messages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.messages-header h3 {
  font-family: 'Fredoka', cursive;
  font-size: 2rem;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.messages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.msg-card {
  background: rgba(15, 12, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 1.8rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.msg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(255, 0, 128, 0.3);
}

.font-style-1 {
  border-color: #ff007f;
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.15), rgba(121, 40, 202, 0.2));
}
.font-style-1 .msg-body { font-family: 'Dancing Script', cursive; font-size: 1.6rem; color: #ffb8e0; line-height: 1.3; }
.font-style-1 .msg-header { font-family: 'Fredoka', cursive; color: #ff007f; }

.font-style-2 {
  border-color: #00f0ff;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 80, 255, 0.2));
}
.font-style-2 .msg-body { font-family: 'Righteous', cursive; font-size: 1.25rem; color: #a1f4ff; letter-spacing: 0.5px; }
.font-style-2 .msg-header { font-family: 'Fredoka', cursive; color: #00f0ff; }

.font-style-3 {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 100, 0, 0.2));
}
.font-style-3 .msg-body { font-family: 'Cinzel', serif; font-size: 1.15rem; color: #ffe89e; font-weight: 700; line-height: 1.5; }
.font-style-3 .msg-header { font-family: 'Cinzel', serif; color: #ffd700; }

.font-style-4 {
  border-color: #00ff66;
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.15), rgba(0, 150, 100, 0.2));
}
.font-style-4 .msg-body { font-family: 'Caveat', cursive; font-size: 1.7rem; color: #b8ffda; }
.font-style-4 .msg-header { font-family: 'Fredoka', cursive; color: #00ff66; }

.font-style-5 {
  border-color: #ff5500;
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.15), rgba(255, 0, 100, 0.2));
}
.font-style-5 .msg-body { font-family: 'Pacifico', cursive; font-size: 1.25rem; color: #ffd1b8; }
.font-style-5 .msg-header { font-family: 'Fredoka', cursive; color: #ff5500; }

.font-style-6 {
  border-color: #9d00ff;
  background: linear-gradient(135deg, rgba(157, 0, 255, 0.15), rgba(50, 0, 150, 0.2));
}
.font-style-6 .msg-body { font-family: 'Satisfy', cursive; font-size: 1.5rem; color: #e1b8ff; }
.font-style-6 .msg-header { font-family: 'Monoton', cursive; color: #9d00ff; font-size: 1.2rem; }

.msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.msg-body {
  margin-bottom: 1.2rem;
  word-break: break-word;
}

.msg-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #a0a0c0;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 0.8rem;
}

.msg-from {
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* FLOATING BUTTON */
.floating-add-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-add-btn:hover {
  transform: scale(1.15) rotate(90deg);
  background: rgba(255, 0, 128, 0.3);
  border-color: #ff007f;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(255, 0, 128, 0.7);
}

/* MODAL BOX */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-body {
  background: var(--bg-dark);
  border: 2px solid rgba(0, 240, 255, 0.5);
  border-radius: 30px;
  padding: 2.2rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-body {
  transform: scale(1);
}

.modal-body h2 {
  font-family: 'Fredoka', cursive;
  color: #ffd700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-body p.modal-desc {
  color: #b0b0d0;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #00f0ff;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #ff007f;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.4);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-submit {
  flex: 1;
  background: linear-gradient(135deg, #00f0ff, #0050ff);
  color: white;
}

.btn-close {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Cobong Banner */
.family-banner {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.15), rgba(0, 240, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 2.2rem;
  text-align: center;
  position: relative;
}

.family-banner h3 {
  font-family: 'Fredoka', cursive;
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 1rem;
}

.family-banner p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.7;
  color: #e2e8f0;
}

.quote-box {
  display: inline-block;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.9rem 1.8rem;
  border-radius: 18px;
  border-left: 4px solid #ff007f;
  font-style: italic;
  color: #00f0ff;
  font-weight: 500;
}

@media (max-width: 768px) {
  .slider-viewport { height: 50vh; min-height: 350px; }
  .hero-card { padding: 1.8rem 1rem; }
  .action-controls { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .messages-grid { grid-template-columns: 1fr; }
  .floating-add-btn { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 1.4rem; }
  .player-header { flex-direction: column; text-align: center; }
  .track-details { align-items: center; }
}
