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

:root {
  --primary: #ff5e8a;
  --secondary: #ffb347;
  --bg-dark: #1a1035;
}

html, body {
  font-family: 'Cairo', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  color: #fff;
  background: var(--bg-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ========== شاشة الباسورد ========== */
.unlock-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2b1a55 50%, var(--bg-dark) 100%);
}

.unlock-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,94,138,.25), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,179,71,.2), transparent 40%);
  animation: bgFloat 8s ease-in-out infinite alternate;
}

@keyframes bgFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-20px) scale(1.05); }
}

.unlock-card {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  padding: 32px 26px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  animation: cardIn .6s ease;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.unlock-gift-icon {
  font-size: 64px;
  margin-bottom: 8px;
  animation: bounceGift 2s ease infinite;
}

@keyframes bounceGift {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.unlock-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.unlock-sub {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,.85);
  margin-bottom: 20px;
}

.error-box {
  background: rgba(255,80,80,.18);
  border: 1px solid rgba(255,80,80,.5);
  color: #ffb3b3;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.unlock-form { text-align: right; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(255,255,255,.9);
}

.field select,
.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border .2s;
}

.field select option { color: #222; }

.field input::placeholder { color: rgba(255,255,255,.45); }

.field select:focus, .field input:focus {
  border-color: var(--primary);
}

.btn-unlock {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: transform .15s, box-shadow .15s;
}

.btn-unlock:active { transform: scale(.97); }

/* ========== صفحة الاهداء ========== */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

#startOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #1a1035, #2b1a55, #1a1035);
}

.start-card {
  text-align: center;
  animation: cardIn .6s ease;
}

.start-gift {
  font-size: 90px;
  animation: bounceGift 1.6s ease infinite;
  filter: drop-shadow(0 10px 30px rgba(255,94,138,.4));
}

.start-title {
  font-size: 30px;
  font-weight: 800;
  margin: 18px 0 8px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.start-sub {
  color: rgba(255,255,255,.75);
  margin-bottom: 26px;
  font-size: 16px;
}

.btn-start {
  padding: 15px 52px;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: pulse 1.6s ease infinite;
  transition: transform .15s;
}

.btn-start:active { transform: scale(.95); }

@keyframes pulse {
  0%,100% { box-shadow: 0 10px 30px rgba(0,0,0,.4); transform: scale(1); }
  50% { box-shadow: 0 10px 40px rgba(255,94,138,.6); transform: scale(1.04); }
}

#giftContent {
  position: relative;
  z-index: 10;
  padding-bottom: 40px;
}

/* الهيرو */
.hero {
  text-align: center;
  padding: 56px 20px 28px;
  position: relative;
  animation: fadeInUp 1s ease;
  background:
    radial-gradient(circle at 18% 30%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 60%),
    radial-gradient(circle at 82% 65%, color-mix(in srgb, var(--secondary) 22%, transparent), transparent 60%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}

.hero-emoji {
  font-size: 84px;
  animation: bounceGift 2s ease infinite;
  display: inline-block;
  filter: drop-shadow(0 10px 25px rgba(255,255,255,.25));
}

.hero-badge {
  display: inline-block;
  margin: 18px auto 10px;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

.hero-name {
  font-size: clamp(30px, 9vw, 46px);
  font-weight: 800;
  margin: 8px 0 4px;
  text-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.hero-sub {
  color: rgba(255,255,255,.85);
  font-size: 17px;
}

/* المعرض */
.gallery {
  padding: 10px 18px 0;
  animation: fadeInUp 1s ease .2s backwards;
}

.gallery-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 14px rgba(0,0,0,.3);
}

.slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,.05);
}

.slides {
  display: flex;
  height: 100%;
  transition: transform .45s ease;
  touch-action: pan-y;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  backdrop-filter: blur(4px);
}

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

.slider-arrow:active { background: rgba(0,0,0,.7); }

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.gallery-caption {
  max-width: 560px;
  margin: 12px auto 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 30px;
  line-height: 1.7;
}

/* سيناريو "قصة": صورة لوحدها بالنزول */
.story-gallery {
  max-width: 520px;
  margin: 0 auto;
  padding: 6px 18px;
}

.story-item {
  margin-bottom: 46px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(70px);
  transition: opacity .9s ease, transform .95s cubic-bezier(.22,.9,.35,1);
}

.story-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 46px rgba(0,0,0,.5);
}

.story-img {
  width: 100%;
  display: block;
  max-height: 78vh;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 1.7s cubic-bezier(.22,.9,.35,1);
  user-select: none;
  -webkit-user-drag: none;
}

.story-item.visible .story-img {
  transform: scale(1);
}

.story-num {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  padding: 4px 11px;
  border-radius: 30px;
  z-index: 2;
}

.story-cap {
  text-align: center;
  margin-top: 14px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  line-height: 1.9;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
  padding: 0 6px;
}

.story-cap::before {
  content: '❝ ';
  color: var(--primary);
  font-weight: 800;
}

.story-cap::after {
  content: ' ❞';
  color: var(--primary);
  font-weight: 800;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: all .3s;
}

.dot.active {
  width: 24px;
  border-radius: 8px;
  background: var(--primary);
}

/* صورة واحدة */
.single-photo {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  padding: 12px 12px 16px;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
  cursor: pointer;
  animation: polaroidIn .8s cubic-bezier(.26,1.4,.45,1) backwards;
  transform: rotate(-1deg);
}

.single-photo img {
  width: 100%;
  display: block;
  max-height: 70vh;
  object-fit: cover;
}

.single-photo:hover { transform: rotate(0) scale(1.02); }

/* حائط البولارويد */
.polaroid-wall {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  padding: 8px 4px;
}

.polaroid {
  --tilt: 0deg;
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f6f3ef);
  padding: 10px 10px 14px;
  border-radius: 5px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  cursor: pointer;
  transform: rotate(var(--tilt));
  transition: transform .4s cubic-bezier(.22,.9,.35,1), box-shadow .4s;
  animation: polaroidIn .7s cubic-bezier(.26,1.4,.45,1) backwards;
  opacity: 0;
}

.polaroid:nth-child(3n+1) { --tilt: 2.2deg; }
.polaroid:nth-child(3n+2) { --tilt: -2.4deg; }
.polaroid:nth-child(3n+3) { --tilt: 1.2deg; }

.polaroid::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 78px;
  height: 22px;
  background: rgba(255,255,255,.5);
  box-shadow: 0 2px 5px rgba(0,0,0,.12);
  border-radius: 2px;
  z-index: 3;
  backdrop-filter: blur(2px);
}

.polaroid::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) rotate(-12deg) scale(0);
  width: 26px;
  height: 26px;
  z-index: 4;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,.35), transparent),
              radial-gradient(circle at 50% 70%, rgba(255,255,255,.4), transparent),
              radial-gradient(circle, var(--primary), var(--secondary));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: transform .45s cubic-bezier(.26,1.4,.45,1);
}

.polaroid:hover { transform: rotate(0) scale(1.05); box-shadow: 0 18px 44px rgba(0,0,0,.5); z-index: 5; }
.polaroid:hover::after { transform: translate(-50%,-50%) rotate(0) scale(1); }

.polaroid-img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 3px;
  background: #e8e4df;
  transition: transform .5s cubic-bezier(.22,.9,.35,1);
}

.polaroid:hover .polaroid-img { transform: scale(1.03); }

.polaroid-cap {
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  text-align: center;
  padding: 10px 4px 2px;
  line-height: 1.7;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 16px;
}

.single-cap { font-size: 15px; }

@keyframes polaroidIn {
  from { opacity: 0; transform: rotate(var(--tilt)) scale(.55) translateY(46px); }
  to { opacity: 1; transform: rotate(var(--tilt)) scale(1) translateY(0); }
}

@media (max-width: 420px) {
  .polaroid-wall { gap: 14px 10px; }
}

/* العرض المتحرك التلقائي */
.auto-show {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  cursor: pointer;
  background: rgba(255,255,255,.05);
}

.auto-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

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

.auto-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auto-slide.kb img {
  animation: kenburns 7.5s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1) translate(0,0); }
  to { transform: scale(1.18) translate(1.5%, -1.5%); }
}

.auto-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,.25);
}

/* عارض ملء الشاشة (لايت بوكس) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5,3,12,.92);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
  display: flex;
  flex-direction: column;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lb-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.lb-arrow.prev { right: 14px; }
.lb-arrow.next { left: 14px; }

.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
}

.lb-stage img {
  max-width: 96%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.lb-stage img.lb-enter {
  animation: lbIn .45s cubic-bezier(.26,1.3,.4,1);
}

@keyframes lbIn {
  from { opacity: 0; transform: scale(.82); }
  to { opacity: 1; transform: scale(1); }
}

.lb-counter {
  position: absolute;
  top: 20px;
  right: 50%;
  transform: translateX(50%);
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
}

.lb-caption {
  text-align: center;
  color: rgba(255,255,255,.95);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 20px 2px;
  line-height: 1.8;
}

.lb-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px 18px;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}

.lb-thumbs img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: .5;
  border: 2px solid transparent;
  transition: all .25s;
  flex-shrink: 0;
}

.lb-thumbs img.active {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.06);
}

@media (max-width: 560px) {
  .lb-arrow { display: none; }
  .lb-thumbs { justify-content: flex-start; }
}

/* الجواب (الرسالة) */
.envelope-section {
  padding: 34px 18px 10px;
  text-align: center;
  animation: fadeInUp 1s ease .4s backwards;
}

.envelope-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.envelope {
  position: relative;
  width: 300px;
  height: 195px;
  margin: 20px auto 14px;
  cursor: pointer;
  perspective: 900px;
}

.env-pocket {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fbe9d8, #f2d8bf);
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(0,0,0,.35);
}

.env-pocket::before,
.env-pocket::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 100%;
}

.env-pocket::before {
  left: 0;
  background: linear-gradient(135deg, transparent 49%, #e7c8a8 50%);
}

.env-pocket::after {
  right: 0;
  background: linear-gradient(225deg, transparent 49%, #e7c8a8 50%);
}

.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  border-left: 150px solid transparent;
  border-right: 150px solid transparent;
  border-bottom: 105px solid #f6e2cd;
  border-radius: 0 0 6px 6px;
  transform-origin: top center;
  transition: transform .65s cubic-bezier(.4,.2,.2,1);
  z-index: 5;
}

.env-seal {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9bb0, var(--primary) 55%, #d93c70);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
  z-index: 6;
  transition: transform .4s ease, opacity .4s ease;
}

.envelope:hover .env-seal {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 8px 22px rgba(0,0,0,.34);
}

.envelope.open .env-flap {
  transform: rotateX(175deg);
  z-index: 2;
}

.envelope.open .env-seal {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

/* الرسالة / الجواب: الورقة بتنزل تحت الظرف (مش مقطوعة، يطلع كل المحتوى) */
.env-letter {
  max-width: 300px;
  margin: 0 auto;
  background: #fffdf9;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(26px) scale(.92);
  transform-origin: top center;
  transition: opacity .35s ease, transform .85s cubic-bezier(.26,1.25,.4,1);
  text-align: center;
}

.envelope.open ~ .env-letter {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.envelope-hint {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  margin-top: 8px;
}

.message-text {
  font-size: 16px;
  line-height: 2;
  white-space: pre-line;
  color: #5a4a3d;
}

.message-sign {
  margin-top: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

.msg-img {
  margin: 14px auto 8px;
  text-align: center;
}

.msg-img img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  display: block;
  margin: 0 auto;
  border: 3px solid rgba(255,255,255,.9);
}

.msg-cap {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #8b6d57;
  text-align: center;
}

.message-text.typing::after {
  content: '|';
  color: var(--primary);
  font-weight: 700;
  animation: blink 1s step-end infinite;
  margin-right: 2px;
}

@keyframes blink { 50% { opacity: 0; } }

/* البالونات والقلوب العائمة */
.floating-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.float-item {
  position: absolute;
  bottom: -18%;
  animation: floatUp linear infinite;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
  user-select: none;
}

@keyframes floatUp {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  25% { transform: translateY(-28vh) translateX(22px) rotate(8deg); }
  50% { transform: translateY(-55vh) translateX(-16px) rotate(-7deg); }
  75% { transform: translateY(-82vh) translateX(20px) rotate(6deg); }
  100% { transform: translateY(-112vh) translateX(-12px) rotate(-4deg); opacity: 0; }
}

/* كيكة الشموع */
.cake-section {
  padding: 34px 18px 0;
  text-align: center;
  animation: fadeInUp 1s ease .5s backwards;
}

.cake-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 22px;
}

.cake-box {
  position: relative;
  width: 230px;
  height: 210px;
  margin: 0 auto 18px;
  cursor: pointer;
  user-select: none;
}

.candle-row {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 3;
}

.candle {
  position: relative;
  width: 11px;
  height: 48px;
  background: repeating-linear-gradient(45deg, var(--primary) 0 7px, #fff 7px 9px);
  border-radius: 3px;
  box-shadow: 0 3px 6px rgba(0,0,0,.25);
  cursor: pointer;
}

.candle::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  background: #d97706;
  border-radius: 2px;
}

.flame {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 21px;
  background: radial-gradient(circle at 50% 80%, #fff7cc, #ffd700 45%, #ff8c00 70%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  animation: flicker .22s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 7px rgba(255,180,50,.9));
  transition: all .35s ease;
  transform-origin: 50% 100%;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(1.12) rotate(2.5deg); }
}

.flame.blown {
  animation: none;
  opacity: 0;
  transform: translateX(-50%) scale(.05);
  filter: none;
}

.cake-body {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 74px;
  background: linear-gradient(180deg, #f9a8c8, #f472b6 60%, #ec4899);
  border-radius: 10px 10px 8px 8px;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
}

.cake-body::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  height: 26px;
  background: linear-gradient(180deg, #f9a8c8, #f472b6);
  border-radius: 0 0 10px 10px;
}

.drips {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 24px;
  background:
    radial-gradient(circle at 12px -2px, #fff 11px, transparent 12px),
    linear-gradient(#fff, #fff);
  background-size: 26px 20px, 100% 8px;
  background-repeat: repeat-x, no-repeat;
  background-position: 0 -2px, 0 4px;
  z-index: 3;
}

.cake-txt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  z-index: 4;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.cake-plate {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 20px;
  background: linear-gradient(180deg, #fdfcfb, #e8e2da);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  z-index: 1;
}

.mic-btn {
  padding: 13px 26px;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  transition: transform .15s;
}

.mic-btn:active { transform: scale(.96); }

.cake-hint {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

/* مشغل الاغاني */
.music-section {
  padding: 34px 18px 0;
  animation: fadeInUp 1s ease .6s backwards;
}

.music-title {
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
}

.player {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
}

.player-now {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.player-disc {
  font-size: 40px;
  animation: spin 6s linear infinite;
  animation-play-state: paused;
}

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

.song-name {
  display: block;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: right;
}

.song-count {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.progress-bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 14px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 6px;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.ctrl {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform .15s, background .2s;
}

.ctrl.big {
  width: 60px;
  height: 60px;
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.ctrl:active { transform: scale(.92); }
.ctrl:hover { background: rgba(255,255,255,.22); }

/* الفوتر */
.footer {
  text-align: center;
  padding: 40px 18px 10px;
  animation: fadeInUp 1s ease .8s backwards;
}

.footer-text {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  margin-bottom: 14px;
}

.share-btn {
  padding: 11px 28px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}

.share-btn:active { background: rgba(255,255,255,.2); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* زرار الموسيقى العائم */
.music-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 70;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(0,0,0,.4);
  animation: fadeInUp .6s ease;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.eq i {
  width: 4px;
  background: #fff;
  border-radius: 2px;
  height: 8px;
  animation: eqBounce 1s ease-in-out infinite;
}

.eq i:nth-child(2) { animation-delay: .2s; }
.eq i:nth-child(3) { animation-delay: .4s; }

.music-fab.paused .eq i { animation-play-state: paused; height: 6px; }

@keyframes eqBounce {
  0%,100% { height: 6px; }
  50% { height: 22px; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* رسالة لو مفيش صور */
.no-content {
  text-align: center;
  color: rgba(255,255,255,.5);
  padding: 40px 20px;
  font-size: 15px;
}
