/* ============================================================
   USHA FRIENDSHIP WEBSITE v2 — style.css
   Enhanced: Login screen, Upload progress, Loading states,
   improved 3D gallery cards, toast notifications
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --bg:           #130919;
  --bg2:          #1e0d2a;
  --bg3:          #250f33;
  --pink:         #f4a8c6;
  --deep-pink:    #e8619a;
  --lavender:     #c9b4e8;
  --peach:        #ffd6b0;
  --gold:         #ffd38a;
  --cream:        rgba(255,240,248,0.88);
  --glass:        rgba(255,255,255,0.06);
  --glass-b:      rgba(255,255,255,0.13);
  --shadow-pink:  rgba(232,97,154,0.28);
  --ui-font:      'Outfit', sans-serif;
  --serif-font:   'Cormorant Garamond', serif;
  --display-font: 'Great Vibes', cursive;
  --ease:         cubic-bezier(0.23,1,0.32,1);
  --trans:        0.4s var(--ease);
}

/* ===== RESET ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ui-font);
  background: var(--bg);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Only hide default cursor inside main site */
#main-site { cursor: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--deep-pink); border-radius: 10px; }

/* ===== CANVAS ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  filter: blur(20px);
}

#bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* =========================================
   🌈 GLOBAL ANIMATED GRADIENT BACKGROUND
========================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;

  background:
    radial-gradient(circle at 20% 30%, rgba(244,168,198,0.12), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(201,180,232,0.12), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(255,214,176,0.08), transparent 70%);

  animation: bgMove 18s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Smooth slow movement */
@keyframes bgMove {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  50% {
    transform: translate(-30px, 20px) scale(1.05);
  }
  100% {
    transform: translate(20px, -30px) scale(1.08);
  }
}

/* ============================================================
   LOGIN SCREEN
   ============================================================ */
#login-screen {
  position: fixed; inset: 0;
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
#login-canvas {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
#login-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 32px;
  padding: 52px 52px 44px;
  max-width: 420px; width: 90%;
  text-align: center;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    0 0 0 1px rgba(244,168,198,0.08),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: loginCardIn 0.7s var(--ease) both;
}
@keyframes loginCardIn {
  from { opacity:0; transform: translateY(40px) scale(0.96); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.login-logo {
  font-size: 52px;
  animation: heartBeat 2s ease infinite;
  display: block; margin-bottom: 16px;
}
.login-title {
  font-family: var(--display-font);
  font-size: 52px;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(244,168,198,0.4));
  margin-bottom: 8px;
}
.login-hint {
  font-size: 13px; color: rgba(255,220,240,0.55);
  font-style: italic; margin-bottom: 28px;
  font-family: var(--serif-font);
}
.login-field-wrap {
  display: flex; gap: 10px;
}
#login-password {
  flex: 1;
  padding: 13px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(244,168,198,0.2);
  border-radius: 14px;
  color: #fff; font-size: 15px;
  font-family: var(--ui-font);
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}
#login-password:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(244,168,198,0.12);
}
#login-btn {
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--deep-pink), var(--lavender));
  border: none; border-radius: 14px;
  color: #fff; font-size: 14px; font-weight: 600;
  font-family: var(--ui-font);
  cursor: pointer; white-space: nowrap;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--shadow-pink);
}
#login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--shadow-pink); }
.login-error {
  margin-top: 14px; font-size: 13px;
  color: #f47e7e; min-height: 18px;
  transition: opacity 0.3s;
}
.login-footer {
  margin-top: 24px; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(244,168,198,0.35);
}

/* Login exit animation */
#login-screen.exit {
  animation: loginExit 0.6s var(--ease) forwards;
}
@keyframes loginExit {
  to { opacity: 0; transform: scale(1.04); pointer-events: none; }
}

/* ============================================================
   CUSTOM CURSOR (inside main-site only)
   ============================================================ */
#cursor {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pink);
  position: fixed; top: 0; left: 0;
  transform: translate(-50%,-50%);
  pointer-events: none; z-index: 9999;
  mix-blend-mode: screen;
  transition: transform 0.08s linear;
  box-shadow: 0 0 16px var(--pink), 0 0 32px rgba(244,168,198,0.5);
}
#cursor-glow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(244,168,198,0.25);
  position: fixed; top: 0; left: 0;
  transform: translate(-50%,-50%);
  pointer-events: none; z-index: 9998;
  transition: transform 0.22s ease, width 0.2s, height 0.2s;
}

/* ============================================================
   SECTIONS & LAYOUT
   ============================================================ */
section {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 100px 24px 80px;
}
/* Tablet */
@media (max-width: 1024px) {
  section {
    padding: 80px 20px 70px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  section {
    padding: 70px 16px 60px;
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.label-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--pink); opacity: 0.7; margin-bottom: 14px;
  font-family: var(--ui-font);
}
.section-title {
  font-family: var(--display-font);
  font-size: clamp(52px, 9vw, 88px);
  background: linear-gradient(135deg, var(--pink) 0%, var(--lavender) 50%, var(--peach) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
  filter: drop-shadow(0 0 24px rgba(244,168,198,0.35));
}
.title-line {
  width: 72px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  margin: 20px auto 0; border-radius: 2px;
}

/* ===== GLASSMORPHISM CARD ===== */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-b);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative; overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  pointer-events: none;
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
#hero {
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(52,15,70,0.9) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(40,10,60,0.7) 0%, transparent 60%),
    var(--bg);
}
.hero-inner {
  text-align: center; max-width: 820px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.name-wrapper { position: relative; display: inline-block; margin-bottom: 12px; }
.name-ring {
  position: absolute; inset: -24px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(244,168,198,0.18) 0%, transparent 65%);
  animation: pulseRing 3.5s ease-in-out infinite; pointer-events: none;
}
@keyframes pulseRing {
  0%,100% { transform:scale(1); opacity:0.5; }
  50%      { transform:scale(1.18); opacity:1; }
}
.name-3d {
  font-family: var(--display-font);
  font-size: clamp(90px, 20vw, 200px);
  line-height: 1; letter-spacing: 4px; display: inline-block;
  background: linear-gradient(135deg, #ffd6b0 0%, #f4a8c6 30%, #c9b4e8 65%, #ffd38a 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: nameFloat 4.5s ease-in-out infinite, shimmer 6s ease infinite;
  filter: drop-shadow(0 0 40px rgba(244,168,198,0.55)) drop-shadow(0 0 80px rgba(201,180,232,0.3));
}
@keyframes nameFloat {
  0%,100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  33%      { transform: translateY(-18px) rotateX(6deg) rotateY(2deg); }
  66%      { transform: translateY(-10px) rotateX(-3deg) rotateY(-2deg); }
}
@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-tagline {
  font-family: var(--serif-font);
  font-size: clamp(18px, 3.5vw, 26px);
  font-style: italic; color: var(--peach);
  line-height: 1.7; margin: 20px 0 36px;
  animation: fadeUp 1s ease 0.8s both;
}
.shayari-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(244,168,198,0.15);
  border-radius: 24px; padding: 36px 42px;
  max-width: 680px; text-align: left;
  margin-bottom: 44px;
  animation: fadeUp 1s ease 1.2s both;
  box-shadow: 0 12px 50px rgba(0,0,0,0.25);
}
.shayari-deco {
  font-size: 48px; color: var(--pink); opacity: 0.25;
  line-height: 1; margin-bottom: 8px; font-family: serif;
}
.shayari-text {
  font-family: var(--serif-font);
  font-size: clamp(14px, 2.2vw, 17px);
  font-style: italic; line-height: 2.1;
  color: rgba(255,235,245,0.88);
}
.shayari-divider {
  width:100%; height:1px;
  background: linear-gradient(90deg, transparent, rgba(244,168,198,0.2), transparent);
  margin: 24px 0;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 44px;
  background: linear-gradient(135deg, var(--deep-pink), var(--lavender));
  border-radius: 50px; font-family: var(--ui-font);
  font-size: 15px; font-weight: 500;
  color: #fff; text-decoration: none;
  transition: all var(--trans);
  animation: fadeUp 1s ease 1.6s both, heroCTAPulse 3s ease 2.6s infinite;
  box-shadow: 0 8px 32px var(--shadow-pink);
  position: relative; overflow: hidden;
}
.hero-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
}
.hero-cta:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 20px 56px var(--shadow-pink); }
@keyframes heroCTAPulse {
  0%,100% { box-shadow: 0 8px 32px var(--shadow-pink), 0 0 0 0 rgba(232,97,154,0.4); }
  50%      { box-shadow: 0 8px 40px var(--shadow-pink), 0 0 0 14px rgba(232,97,154,0); }
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ============================================================
   SECTION 2: ABOUT
   ============================================================ */
#about {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}
.about-card { max-width: 700px; width: 100%; padding: 52px 56px; }
.quote-mark { font-size: 32px; margin-bottom: 20px; display: block; }
.about-text {
  font-family: var(--serif-font);
  font-size: clamp(16px, 2.4vw, 20px);
  font-style: italic; line-height: 2.1;
  color: rgba(255,235,245,0.87);
}
.typing-cursor {
  display: inline-block; width: 2px; height: 1.2em;
  background: var(--pink); vertical-align: middle;
  margin-left: 2px; animation: blink 0.75s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   SECTION 3: MEMORIES
   ============================================================ */
#memories {
  background: linear-gradient(160deg, var(--bg2) 0%, var(--bg3) 50%, var(--bg2) 100%);
}

/* Upload zone */
.upload-zone {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 16px;
}
.upload-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(244,168,198,0.4);
  border-radius: 50px; font-size: 13px;
  color: var(--pink); cursor: pointer;
  transition: all 0.3s; font-family: var(--ui-font);
}
.upload-pill:hover {
  background: rgba(244,168,198,0.1);
  border-color: var(--pink);
  box-shadow: 0 0 22px rgba(244,168,198,0.2);
}

@media (max-width: 600px) {
  .upload-pill,
  .pill-btn,
  .gallery-actions button {
    padding: 12px 18px;
    font-size: 14px;
  }
}

input[type="file"] { display: none; }

/* Caption input */
.caption-input-zone { margin-bottom: 28px; width: 100%; max-width: 560px; }
.caption-input {
  width: 100%; padding: 14px 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(244,168,198,0.2);
  border-radius: 50px;
  color: rgba(255,235,245,0.85);
  font-size: 14px; font-style: italic;
  font-family: var(--serif-font);
  outline: none; transition: border 0.3s, box-shadow 0.3s;
  text-align: center;
}
.caption-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(244,168,198,0.12);
}
.caption-input::placeholder { color: rgba(244,168,198,0.4); }

/* Upload progress */
.upload-progress {
  width: 100%; max-width: 480px;
  margin-bottom: 24px; text-align: center;
}
.progress-bar-wrap {
  height: 6px; border-radius: 6px;
  background: rgba(255,255,255,0.08);
  overflow: hidden; margin-bottom: 8px;
}
.progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--deep-pink), var(--lavender));
  border-radius: 6px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(244,168,198,0.5);
}
.progress-label {
  font-size: 12px; color: rgba(244,168,198,0.7);
  font-style: italic;
}

/* Loading spinner */
.gallery-loader {
  text-align: center; padding: 40px;
  color: rgba(244,168,198,0.6);
  font-style: italic;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(244,168,198,0.15);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error state */
.gallery-error {
  padding: 24px 32px;
  background: rgba(244,100,100,0.08);
  border: 1px solid rgba(244,100,100,0.2);
  border-radius: 16px; color: #f4a0a0;
  font-size: 14px; text-align: center;
  margin-bottom: 24px;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Tablet */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.gallery-empty {
  grid-column: 1/-1;
  text-align: center; padding: 60px 20px;
  font-family: var(--serif-font);
  font-style: italic;
  color: rgba(244,168,198,0.4);
  font-size: 18px;
}

/* ===== GALLERY CARD — enhanced 3D ===== */
.gallery-card {
  position: relative;
  border-radius: 22px; overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 4/3; cursor: pointer;
  transform-style: preserve-3d;
  /* CSS-only base; JS adds perspective transform on hover */
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}
.gallery-card:hover {
  box-shadow:
    0 28px 70px rgba(232,97,154,0.35),
    0 0 0 1px rgba(244,168,198,0.25),
    inset 0 1px 0 rgba(255,255,255,0.12);
  border-color: rgba(244,168,198,0.3);
}
/* Shimmer stripe on hover */
.gallery-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0) 100%
  );
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.gallery-card:hover::after { opacity: 1; }

.gallery-card img,
.gallery-card video {
  width:100%; height:100%; object-fit:cover;
  display:block; pointer-events:none;
  /* Lazy loading handled via attribute in JS */
  transition: transform 0.5s var(--ease);
}
.gallery-card:hover img,
.gallery-card:hover video {
  transform: scale(1.04);
}

/* Overlay gradient */
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,3,25,0.95) 0%, rgba(15,3,25,0.3) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  opacity: 0; transition: opacity 0.35s;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }

@media (max-width: 768px) {
  .gallery-card:hover {
    box-shadow: none;
    border-color: rgba(255,255,255,0.08);
  }

  .gallery-card:hover img,
  .gallery-card:hover video {
    transform: none;
  }

  .gallery-overlay {
    opacity: 1; /* Always visible on mobile */
  }
}

.gallery-caption {
  font-family: var(--serif-font);
  font-size: 14px; font-style: italic;
  color: rgba(255,225,240,0.92);
  margin-bottom: 12px; line-height: 1.5;
}
.gallery-actions { display: flex; gap: 8px; }
.gallery-actions button {
  padding: 6px 14px;
  border: none !important; border-radius: 20px;
  font-size: 11px; cursor: pointer;
  font-family: var(--ui-font); font-weight: 500;
  transition: all 0.25s;
}
.btn-edit {
  background: rgba(244,168,198,0.2);
  color: var(--pink);
  border: 1px solid rgba(244,168,198,0.3) !important;
}
.btn-edit:hover { background: rgba(244,168,198,0.35); }
.btn-delete {
  background: rgba(248,100,100,0.15);
  color: #f78080;
  border: 1px solid rgba(248,100,100,0.25) !important;
}
.btn-delete:hover { background: rgba(248,100,100,0.3); }

/* Type badge (image / video) */
.media-type-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  border-radius: 20px; font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,220,240,0.8);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ===== PILL BUTTON ===== */
.pill-btn {
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--deep-pink), var(--lavender));
  border: none; border-radius: 50px;
  color: #fff; font-size: 13px; font-weight: 500;
  font-family: var(--ui-font);
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 20px var(--shadow-pink);
}
.pill-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--shadow-pink); }
.pill-btn.ghost {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: none;
}
.pill-btn.ghost:hover { background: rgba(255,255,255,0.12); }

/* ============================================================
   SECTION 4: FUTURE
   ============================================================ */
#future { background: linear-gradient(160deg, var(--bg3) 0%, var(--bg) 100%); }
.future-card { max-width: 640px; width:100%; padding: 52px 56px; text-align:center; }
.future-text {
  font-family: var(--serif-font);
  font-size: clamp(17px, 2.8vw, 22px);
  font-style: italic; line-height: 2.2;
  color: rgba(255,230,245,0.85);
}
.future-text em { color: var(--pink); }
.glow-word { color: var(--lavender); text-shadow: 0 0 20px rgba(201,180,232,0.55); }

/* ============================================================
   SECTION 5: SURPRISE
   ============================================================ */
#surprise { background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%); }
.surprise-btn {
  padding: 20px 56px;
  background: linear-gradient(135deg, var(--peach), var(--pink), var(--lavender));
  border: none; border-radius: 50px;
  font-family: var(--serif-font);
  font-size: clamp(18px, 3vw, 24px);
  font-style: italic; font-weight: 600;
  color: #2a0a36; cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 10px 44px rgba(244,168,198,0.35);
  position: relative; overflow: hidden;
  margin-bottom: 48px;
}
.surprise-btn::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, transparent 60%);
}
.surprise-btn:hover { transform: scale(1.07) translateY(-4px); box-shadow: 0 24px 60px rgba(244,168,198,0.5); }
.surprise-msg {
  display:none; max-width:560px; width:100%;
  padding: 44px 48px; text-align:center;
  animation: fadeUp 0.8s ease forwards;
}
.surprise-msg.visible { display:block; }
.surprise-emoji { font-size:52px; margin-bottom:20px; animation: heartBeat 1.2s ease infinite; }
@keyframes heartBeat {
  0%,100%{ transform:scale(1); }
  14%    { transform:scale(1.18); }
  28%    { transform:scale(1); }
  42%    { transform:scale(1.14); }
  70%    { transform:scale(1); }
}
.surprise-msg p {
  font-family: var(--serif-font);
  font-size: clamp(17px,2.8vw,22px);
  font-style:italic; color:var(--peach); line-height:1.9;
}

/* ============================================================
   SECTION 6: ENDING
   ============================================================ */
#ending { background: radial-gradient(ellipse at center, #2e1044 0%, var(--bg) 70%); }
.ending-inner { text-align:center; }
.ending-text {
  font-family: var(--serif-font);
  font-size: clamp(18px,3vw,25px);
  font-style:italic; color:rgba(255,230,245,0.85);
  line-height:2.2; max-width:580px;
}
.ending-text em { color: var(--pink); }
.ending-from {
  font-size:11px; letter-spacing:4px; text-transform:uppercase;
  color:var(--pink); opacity:0.6; margin-bottom:10px;
}
.signature {
  font-family: var(--display-font);
  font-size: clamp(48px,9vw,88px);
  background: linear-gradient(135deg, var(--gold), var(--pink), var(--lavender));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  animation: nameFloat 4.5s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(244,168,198,0.5));
  margin-top:8px;
}

/* ============================================================
   ENHANCED BACKGROUND — overlay + particle canvas
   ============================================================ */
#bg-overlay {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(80,20,100,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(100,30,120,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(40,10,60,0.08) 0%, transparent 70%);
}
#particle-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

/* ============================================================
   MUSIC PLAYER — Full redesign (v3)
   ============================================================ */
#music-player {
  position: fixed; bottom: 24px; right: 22px;
  z-index: 1000;
  display: flex; flex-direction: column; align-items: flex-end;
}

/* ── Toggle bubble ── */
#music-toggle {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(30,10,45,0.85);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(244,168,198,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  box-shadow: 0 0 22px rgba(244,168,198,0.22), 0 8px 24px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  font-size: 22px;
  user-select: none;
}
#music-toggle:hover {
  border-color: var(--pink);
  box-shadow: 0 0 36px rgba(244,168,198,0.45), 0 8px 30px rgba(0,0,0,0.5);
  transform: scale(1.08);
}
/* Vinyl-spin ring — visible only when playing */
#music-ring {
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--pink);
  border-right-color: var(--lavender);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
#music-ring.spinning {
  opacity: 1;
  animation: vinylSpin 2s linear infinite;
}
@keyframes vinylSpin { to { transform: rotate(360deg); } }

/* ── Panel ── */
#music-panel {
  display: none;
  position: absolute; bottom: 64px; right: 0;
  width: 290px;
  background: rgba(15,5,28,0.94);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(244,168,198,0.15);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(0,0,0,0.55),
    0 0 0 1px rgba(244,168,198,0.06),
    inset 0 1px 0 rgba(255,255,255,0.07);
  animation: mpSlideIn 0.3s cubic-bezier(0.23,1,0.32,1);
}
#music-panel.open { display: block; }

@keyframes mpSlideIn {
  from { opacity:0; transform: translateY(12px) scale(0.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* Header strip */
.mp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 0;
  margin-bottom: 12px;
}
.music-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--pink); opacity: 0.7; font-family: var(--ui-font);
}
.mp-icon-btn {
  background: none; border: none;
  color: rgba(244,168,198,0.5); font-size: 14px;
  cursor: pointer; transition: color 0.2s;
  line-height: 1; padding: 2px 4px;
}
.mp-icon-btn:hover { color: var(--pink); }

/* Album art + meta */
.mp-art-wrap {
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px 14px;
}
.mp-art {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(244,168,198,0.15), rgba(201,180,232,0.15));
  border: 1px solid rgba(244,168,198,0.2);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  box-shadow: 0 0 18px rgba(244,168,198,0.18);
}
.mp-art-inner { font-size: 22px; z-index: 1; }
.mp-art-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(244,168,198,0.18);
  border-top-color: transparent;
  animation: none;
}
.mp-art.rotating .mp-art-ring {
  animation: vinylSpin 3s linear infinite;
  border-top-color: var(--lavender);
}
.mp-track-meta { flex: 1; overflow: hidden; }
.mp-track-name {
  display: block;
  font-family: var(--ui-font); font-size: 13px; font-weight: 500;
  color: rgba(255,240,248,0.9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.mp-track-count {
  display: block;
  font-size: 11px; color: rgba(244,168,198,0.45);
  font-family: var(--ui-font);
}

/* Progress bar */
.mp-progress-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px 12px;
}
.mp-time { font-size: 10px; color: rgba(244,168,198,0.45); font-family: var(--ui-font); flex-shrink:0; }
.mp-prog-bar {
  flex: 1; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.08);
  position: relative; cursor: pointer;
}
.mp-prog-fill {
  height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--deep-pink), var(--lavender));
  pointer-events: none;
  box-shadow: 0 0 8px rgba(244,168,198,0.4);
}
.mp-prog-thumb {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  position: absolute; top: 50%; left: 0%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 6px rgba(244,168,198,0.6);
  opacity: 0; transition: opacity 0.2s;
}
.mp-prog-bar:hover .mp-prog-thumb { opacity: 1; }

/* Controls row */
.mp-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 0 18px 14px;
}
.mp-ctrl-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,235,245,0.75); font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.22s ease; flex-shrink: 0;
}
.mp-ctrl-btn:hover {
  background: rgba(244,168,198,0.12);
  border-color: rgba(244,168,198,0.3);
  color: var(--pink);
  transform: scale(1.1);
}
/* Larger play button */
.mp-play-btn {
  width: 46px; height: 46px; font-size: 16px;
  background: linear-gradient(135deg, var(--deep-pink), var(--lavender));
  border: none; color: #fff;
  box-shadow: 0 4px 20px rgba(232,97,154,0.35);
}
.mp-play-btn:hover {
  background: linear-gradient(135deg, #f0769e, #d9bef8);
  box-shadow: 0 6px 28px rgba(232,97,154,0.5);
  transform: scale(1.12);
  color: #fff;
}

/* Volume */
.mp-volume-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px 14px;
}
.mp-vol-icon { font-size: 13px; opacity: 0.5; flex-shrink: 0; }
.mp-volume-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none; cursor: pointer;
  accent-color: var(--deep-pink);
}
.mp-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--pink);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(244,168,198,0.5);
}

/* Playlist */
.mp-playlist-wrap {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 10px 0 8px;
  max-height: 160px; overflow-y: auto;
}
.mp-playlist-wrap::-webkit-scrollbar { width: 3px; }
.mp-playlist-wrap::-webkit-scrollbar-thumb { background: rgba(244,168,198,0.25); border-radius:3px; }

.mp-playlist-header {
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px 6px;
}
.mp-pl-title {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(244,168,198,0.45); font-family: var(--ui-font);
}
.mp-pl-loader { display:flex; align-items:center; }
.mp-pl-spinner {
  width: 10px; height: 10px;
  border: 1.5px solid rgba(244,168,198,0.2);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.mp-playlist { list-style: none; padding: 0; margin: 0; }
.mp-playlist li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 18px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
  font-family: var(--ui-font); font-size: 12px;
  color: rgba(255,230,245,0.65);
}
.mp-playlist li:hover { background: rgba(244,168,198,0.07); color: rgba(255,230,245,0.9); }
.mp-playlist li.active {
  background: rgba(244,168,198,0.1);
  color: var(--pink);
}
.mp-pl-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-pl-dot { font-size: 8px; color: var(--pink); opacity: 0; flex-shrink: 0; }
.mp-playlist li.active .mp-pl-dot { opacity: 1; }
.mp-pl-del {
  background: none; border: none;
  color: rgba(248,130,130,0.4); font-size: 12px;
  cursor: pointer; padding: 0 2px;
  opacity: 0; transition: opacity 0.2s, color 0.2s;
  line-height: 1;
}
.mp-playlist li:hover .mp-pl-del { opacity: 1; }
.mp-pl-del:hover { color: #f78080; }

.mp-playlist-empty {
  padding: 12px 18px;
  font-size: 12px; font-style: italic;
  color: rgba(244,168,198,0.35);
  font-family: var(--serif-font);
}

/* Upload zone */
.upload-music-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 4px 16px 16px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(244,168,198,0.28);
  border-radius: 14px; font-size: 12px; color: rgba(244,168,198,0.7);
  cursor: pointer; transition: all 0.3s;
  font-family: var(--ui-font);
}
.upload-music-btn:hover {
  background: rgba(244,168,198,0.08);
  border-color: rgba(244,168,198,0.5);
  color: var(--pink);
}

/* Upload progress inside panel */
.mp-upload-progress {
  margin: 0 16px 14px; text-align: center;
}
.mp-up-bar-wrap {
  height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.06); overflow: hidden; margin-bottom: 6px;
}
.mp-up-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--deep-pink), var(--lavender));
  border-radius: 3px; transition: width 0.3s ease;
}
.mp-up-label { font-size: 11px; color: rgba(244,168,198,0.6); font-style: italic; }

/* ── ctrl-btn legacy alias (still used by gallery action btns elsewhere) ── */
.ctrl-btn {
  width:36px; height:36px; border-radius:50%;
  background:linear-gradient(135deg, var(--deep-pink), var(--lavender));
  border:none; color:#fff; font-size:13px;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:transform 0.2s; flex-shrink:0;
}
.ctrl-btn:hover { transform:scale(1.12); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  display:none; position:fixed; inset:0; z-index:2000;
  background:rgba(10,3,20,0.95); backdrop-filter:blur(10px);
  align-items:center; justify-content:center; flex-direction:column;
}
#lightbox.open { display:flex; }
#lightbox-body {
  max-width:90vw; max-height:78vh;
  border-radius:16px; overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,0.6);
}
#lightbox-body img, #lightbox-body video { max-width:100%; max-height:78vh; display:block; }
#lightbox-caption {
  margin-top:18px;
  font-family:var(--serif-font); font-style:italic; font-size:16px;
  color:rgba(255,225,240,0.8); text-align:center; max-width:500px;
}
#lightbox-close {
  position:absolute; top:20px; right:28px;
  font-size:36px; background:none; border:none;
  color:var(--pink); cursor:pointer; transition:transform 0.2s;
}
#lightbox-close:hover { transform:rotate(90deg) scale(1.2); }

/* ============================================================
   EDIT MODAL
   ============================================================ */
#edit-modal {
  display:none; position:fixed; inset:0; z-index:3000;
  background:rgba(10,3,20,0.88); backdrop-filter:blur(8px);
  align-items:center; justify-content:center;
}
#edit-modal.open { display:flex; }
.modal-card { padding:40px 44px; width:100%; max-width:440px; text-align:center; }
.modal-card h3 {
  font-family:var(--display-font); font-size:36px;
  color:var(--pink); margin-bottom:24px;
}
.modal-card input {
  width:100%; padding:13px 20px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:12px; color:#fff; font-size:14px;
  font-family:var(--serif-font); font-style:italic;
  outline:none; margin-bottom:20px; transition:border 0.3s;
}
.modal-card input:focus { border-color:var(--pink); }
.modal-actions { display:flex; gap:12px; justify-content:center; }
.edit-status { margin-top:12px; font-size:13px; min-height:18px; }
.edit-status.ok  { color:#7ef4a0; }
.edit-status.err { color:#f47e7e; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
#toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(20,8,30,0.92); backdrop-filter:blur(12px);
  border:1px solid var(--glass-b); border-radius:50px;
  padding:12px 28px; font-size:14px; z-index:5000;
  color:rgba(255,235,245,0.9);
  box-shadow:0 8px 30px rgba(0,0,0,0.3);
  opacity:0; transition:opacity 0.3s ease, transform 0.3s ease;
  pointer-events:none; white-space:nowrap;
}
#toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ============================================================
   CONFETTI HEARTS
   ============================================================ */
.falling-heart {
  position:fixed; top:-40px; pointer-events:none; z-index:4000;
  font-size:20px; animation:fallDown linear forwards; user-select:none;
}
@keyframes fallDown {
  from { transform: translateY(0) rotate(0deg); opacity:1; }
  to   { transform: translateY(115vh) rotate(540deg); opacity:0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .shayari-card, .about-card, .future-card, .surprise-msg, .modal-card { padding:28px 22px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  #music-panel { width:210px; }
  #login-card { padding:36px 28px; }
  .login-field-wrap { flex-direction:column; }
  #login-btn { width:100%; }
}

@media (max-width: 600px) {
  #music-player {
    bottom: 16px;
    right: 12px;
  }

  #music-panel {
    width: 90vw;
    right: 0;
  }
}

@media (max-width: 768px) {
  #cursor,
  #cursor-glow {
    display: none;
  }

  #main-site {
    cursor: auto;
  }
}

@media (max-width: 600px) {
  .name-3d {
    font-size: 64px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .shayari-text {
    font-size: 14px;
    line-height: 1.8;
  }
}

@media (max-width: 768px) {
  #particle-canvas {
    display: none; /* heavy effect */
  }

  body::before {
    animation: none; /* stop heavy animation */
  }
}

@media (max-width: 600px) {
  #lightbox-body {
    max-width: 95vw;
    max-height: 70vh;
  }

  #lightbox-caption {
    font-size: 14px;
  }
}