/* ==========================================================================
   QR ETKİNLİK SİSTEMİ - ULTRA-MODERN FESTİVAL & DÜĞÜN UI/UX
   Dinamik Mesh Gradient, Glassmorphism, Neon Parıltılar & Akıcı Animasyonlar
   Renk Paleti: Canlı Pembe (#FF007F, #FF1493), Fuşya (#E0218A), 
                Güneş Sarısı (#FFB703, #FFC300) & Sıcak Altın (#FF9E00)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Renk Paleti - Canlı Neon & Festival Işıltısı */
  --pink-primary: #FF007F;
  --pink-vivid: #FF1493;
  --pink-deep: #D80064;
  --pink-light: #FF5EA8;
  --pink-glow: rgba(255, 0, 127, 0.45);
  --pink-soft: rgba(255, 0, 127, 0.08);

  --yellow-primary: #FFB703;
  --yellow-warm: #FF9E00;
  --yellow-bright: #FFD166;
  --yellow-gold: #FFC300;
  --yellow-glow: rgba(255, 183, 3, 0.45);
  --yellow-soft: rgba(255, 183, 3, 0.12);

  --coral-accent: #FF5E36;
  --fuchsia-accent: #E0218A;

  /* İkonik Degradeler */
  --grad-sunset: linear-gradient(135deg, #FF0844 0%, #FF1493 35%, #FF8A00 80%, #FFA500 100%);
  --grad-fest: linear-gradient(135deg, #FF007F 0%, #FF5E36 50%, #FFB703 100%);
  --grad-fest-hover: linear-gradient(135deg, #FF1A8C 0%, #FF7043 50%, #FFC300 100%);
  --grad-gold: linear-gradient(135deg, #FFD166 0%, #FF9E00 100%);
  --grad-card-header: linear-gradient(135deg, #FF0844 0%, #FF1493 30%, #FF5E36 70%, #FFA500 100%);

  /* Ultra-Glassmorphism Zemin & Kenarlar */
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-hover: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-border-color: rgba(255, 0, 127, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.95);

  --bg-page: #FFFDF9;
  --text-dark: #1A121F;
  --text-muted: #6C5E78;
  --text-light: #9B8EA6;

  /* Neon & Derinlik Gölgeleri */
  --shadow-sm: 0 4px 14px rgba(255, 0, 127, 0.08);
  --shadow-md: 0 14px 35px rgba(255, 0, 127, 0.12), 0 4px 12px rgba(255, 165, 0, 0.08);
  --shadow-lg: 0 30px 60px rgba(255, 0, 127, 0.14), 0 10px 30px rgba(255, 165, 0, 0.12);
  --shadow-fest: 0 10px 28px rgba(255, 0, 127, 0.38), 0 4px 12px rgba(255, 158, 0, 0.28);
  --shadow-neon: 0 0 25px rgba(255, 0, 127, 0.35), 0 0 50px rgba(255, 183, 3, 0.2);

  /* Köşe Yuvarlatma */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-full: 9999px;

  /* Tipografi */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Akıcı Geçiş */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.35s var(--ease-spring);
}

/* ==========================================================================
   SIFIRLAMA & TEMEL YAPI
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. RENKLİ & IŞIKLI HAREKETLİ ARKA PLAN (Mesh Gradient & Particles)
   ========================================================================== */
.mesh-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #FFFDF9 0%, #FFF5FA 100%);
}

/* Devasa, Yumuşak, Dönen ve Yer Değiştiren Gradient Bloblar */
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
  will-change: transform, opacity;
  pointer-events: none;
}

.mesh-blob-1,
.blob-pink {
  top: -15%;
  left: -15%;
  width: 65vw;
  height: 65vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(255, 140, 186, 0.7), rgba(255, 182, 193, 0.4));
  opacity: 0.5;
  animation: floatBlob1 28s ease-in-out infinite alternate;
}

.mesh-blob-2 {
  top: 10%;
  right: -20%;
  width: 70vw;
  height: 70vw;
  max-width: 750px;
  max-height: 750px;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.6) 0%, rgba(255, 209, 102, 0.35) 45%, rgba(255, 183, 3, 0) 70%);
  opacity: 0.55;
  animation: floatBlob2 32s ease-in-out infinite alternate;
}

.mesh-blob-3 {
  bottom: -20%;
  left: 10%;
  width: 60vw;
  height: 60vw;
  max-width: 650px;
  max-height: 650px;
  background: radial-gradient(circle, rgba(255, 160, 200, 0.6) 0%, rgba(255, 190, 170, 0.35) 50%, rgba(255, 182, 193, 0) 70%);
  opacity: 0.5;
  animation: floatBlob3 30s ease-in-out infinite alternate;
}

.mesh-blob-4 {
  top: 45%;
  left: 35%;
  width: 50vw;
  height: 50vw;
  max-width: 550px;
  max-height: 550px;
  background: radial-gradient(circle, #FFD166 0%, #FF0844 45%, rgba(255, 209, 102, 0) 70%);
  opacity: 0.45;
  animation: floatBlob4 26s ease-in-out infinite alternate;
}

@keyframes floatBlob1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(15vw, 12vh) scale(1.15) rotate(120deg);
  }

  100% {
    transform: translate(5vw, 25vh) scale(0.95) rotate(240deg);
  }
}

@keyframes floatBlob2 {
  0% {
    transform: translate(0, 0) scale(1.1) rotate(0deg);
  }

  50% {
    transform: translate(-18vw, 15vh) scale(0.9) rotate(-140deg);
  }

  100% {
    transform: translate(-10vw, 30vh) scale(1.05) rotate(-280deg);
  }
}

@keyframes floatBlob3 {
  0% {
    transform: translate(0, 0) scale(0.95) rotate(0deg);
  }

  50% {
    transform: translate(12vw, -18vh) scale(1.2) rotate(160deg);
  }

  100% {
    transform: translate(-8vw, -10vh) scale(1) rotate(320deg);
  }
}

@keyframes floatBlob4 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(-15vw, -12vh) scale(1.18) rotate(180deg);
  }

  100% {
    transform: translate(10vw, 14vh) scale(0.9) rotate(360deg);
  }
}

/* Süzülen Parçacıklar & Yıldızlar (Floating Particles) */
.floating-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  animation: particleRise linear infinite;
}

.particle.star {
  border-radius: 0;
  background: transparent !important;
  color: #FFB703;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.p1 {
  left: 8%;
  width: 10px;
  height: 10px;
  background: rgba(255, 0, 127, 0.45);
  animation-duration: 16s;
  animation-delay: 0s;
}

.p2 {
  left: 22%;
  font-size: 16px;
  animation-duration: 19s;
  animation-delay: 3s;
}

.p3 {
  left: 35%;
  width: 14px;
  height: 14px;
  background: rgba(255, 183, 3, 0.45);
  animation-duration: 22s;
  animation-delay: 1.5s;
}

.p4 {
  left: 52%;
  width: 8px;
  height: 8px;
  background: rgba(255, 94, 54, 0.4);
  animation-duration: 15s;
  animation-delay: 5s;
}

.p5 {
  left: 68%;
  font-size: 18px;
  animation-duration: 21s;
  animation-delay: 2s;
}

.p6 {
  left: 82%;
  width: 12px;
  height: 12px;
  background: rgba(255, 0, 127, 0.4);
  animation-duration: 18s;
  animation-delay: 4.5s;
}

.p7 {
  left: 93%;
  width: 9px;
  height: 9px;
  background: rgba(255, 209, 102, 0.5);
  animation-duration: 24s;
  animation-delay: 7s;
}

.p8 {
  left: 15%;
  width: 6px;
  height: 6px;
  background: rgba(224, 33, 138, 0.4);
  animation-duration: 14s;
  animation-delay: 8s;
}

.p9 {
  left: 45%;
  font-size: 12px;
  animation-duration: 20s;
  animation-delay: 9s;
}

.p10 {
  left: 75%;
  width: 11px;
  height: 11px;
  background: rgba(255, 183, 3, 0.4);
  animation-duration: 17s;
  animation-delay: 6s;
}

@keyframes particleRise {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(0.6);
    opacity: 0;
  }

  15% {
    opacity: 0.85;
  }

  85% {
    opacity: 0.85;
  }

  100% {
    transform: translateY(-115vh) translateX(40px) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* ==========================================================================
   ANA KONTEYNER (App Container)
   ========================================================================== */
.app-container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 18px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   2. ULTRA-MODERN GLASSMORPHISM & DERİNLİK KARTI
   ========================================================================== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(190%);
  -webkit-backdrop-filter: blur(16px) saturate(190%);
  border: 1px solid var(--glass-border);
  outline: 1px solid var(--glass-border-color);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  box-shadow:
    0 30px 60px rgba(255, 0, 127, 0.08),
    0 12px 30px rgba(255, 165, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  will-change: transform, box-shadow;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

/* ==========================================================================
   3. BAŞLIK VE "HEADER" TASARIMI (Işıltılı & Parıltılı Yıldızlar)
   ========================================================================== */
.event-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 34px 24px 28px;
  background: var(--grad-card-header);
  background-size: 200% 200%;
  animation: headerGradientFlow 12s ease infinite;
  border-radius: var(--radius-xl);
  color: #FFFFFF;
  box-shadow: var(--shadow-fest), var(--shadow-neon);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

@keyframes headerGradientFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Üst Başlık Işık Parlaması */
.event-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseLight 4s ease-in-out infinite alternate;
}

@keyframes pulseLight {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Parıltılı Yıldız İkonları (Floating Stars) */
.sparkle-star {
  position: absolute;
  pointer-events: none;
  color: #FFE680;
  filter: drop-shadow(0 0 8px rgba(255, 230, 128, 0.85));
  will-change: transform, opacity;
  animation: starTwinkle 3s ease-in-out infinite alternate;
}

.sparkle-star-1 {
  top: 18px;
  left: 20px;
  animation-delay: 0.2s;
}

.sparkle-star-2 {
  top: 22px;
  right: 22px;
  animation-delay: 1.2s;
}

.sparkle-star-3 {
  bottom: 16px;
  right: 28px;
  animation-delay: 0.8s;
  opacity: 0.75;
}

@keyframes starTwinkle {
  0% {
    transform: scale(0.85) rotate(-10deg);
    opacity: 0.65;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
  }

  50% {
    transform: scale(1.25) rotate(15deg);
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(255, 235, 130, 0.95));
  }

  100% {
    transform: scale(0.95) rotate(-5deg);
    opacity: 0.75;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
  }
}

.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: badgeFloat 4s ease-in-out infinite alternate;
}

@keyframes badgeFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-3px);
  }
}

.event-title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #FFFFFF;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.event-subtitle {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 400;
}

/* ==========================================================================
   4. İSİM & TEBRİK NOTU ALANLARI (Input & Textarea)
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
}

label,
.form-label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #3d2b3d;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

label span,
.form-label span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #e05286;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
  margin-left: 4px;
}

/* Başlık etiketleri için şık mürdüm ve modern font */
.custom-form-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #4a2840 !important;
  /* Asil mürdüm rengi */
  margin-bottom: 8px !important;
  letter-spacing: -0.2px !important;
}

/* İsteğe bağlı rozeti: zarif şeftali/pembe hap stili */
.optional-badge {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #d84577 !important;
  background: rgba(255, 140, 186, 0.15) !important;
  border: 1px solid rgba(255, 140, 186, 0.3) !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
  letter-spacing: 0 !important;
}

/* Kutucukların içindeki yazı tipi ve placeholder */
.custom-form-title+input,
.custom-form-title+textarea,
.form-control,
input[type="text"],
textarea {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: #331d2c !important;
  font-weight: 500 !important;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: #3d2b3d;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 182, 193, 0.4);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.35s var(--ease-spring);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(255, 140, 186, 0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #bfa3b5;
  font-size: 0.9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
}

.form-input:focus,
.form-textarea:focus {
  background: #FFFFFF;
  border-color: #ff8cb6;
  box-shadow:
    0 0 0 3px rgba(255, 140, 186, 0.15),
    0 0 12px rgba(255, 140, 186, 0.3);
  transform: translateY(-2px);
}

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

/* ==========================================================================
   5. CANLI "FOTOĞRAF SEÇ & KAMERA AÇ" DROPZONE ALANI
   Animasyonlu Degrade Kenarlık & Kamera Işık Dairesi
   ========================================================================== */
.dropzone {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease-spring);
  will-change: transform, box-shadow;
  overflow: hidden;
  z-index: 1;
}

/* Dönen & Dans Eden Degrade Kenarlık (Animated Gradient Border) */
.dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2.5px;
  background: linear-gradient(135deg, #FF007F, #FFB703, #FF1493, #FF9E00, #FF007F);
  background-size: 300% 300%;
  animation: borderDance 6s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes borderDance {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.dropzone:hover,
.dropzone.dragover {
  transform: translateY(-4px) scale(1.015);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 36px rgba(255, 0, 127, 0.2), 0 6px 18px rgba(255, 183, 3, 0.15);
}

.dropzone.dragover::before {
  animation-duration: 2s;
  padding: 3.5px;
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 5;
}

/* Kamera İkonu & Büyüyüp Küçülen Işık Dairesi (Pulse Effect) */
.dropzone-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad-fest);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-fest);
  transition: transform 0.4s var(--ease-spring);
  z-index: 2;
}

/* Yavaşça Büyüyen Dairesel Işık Dalgaları */
.dropzone-icon-wrap::before,
.dropzone-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.4;
  z-index: -1;
  animation: iconPulseWave 3s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.dropzone-icon-wrap::after {
  animation-delay: 1.5s;
  inset: -12px;
  opacity: 0.25;
}

@keyframes iconPulseWave {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.dropzone:hover .dropzone-icon-wrap {
  transform: scale(1.15) rotate(8deg);
}

.dropzone-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.dropzone-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.45;
}

/* ==========================================================================
   ÖNİZLEME LİSTESİ (Preview Grid)
   ========================================================================== */
.preview-container {
  display: none;
  margin-bottom: 24px;
  animation: fadeInDown 0.4s var(--ease-spring);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preview-container.active {
  display: block;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.preview-count {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--pink-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-clear-all {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #DC2626;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.preview-clear-all:hover {
  background: #DC2626;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.preview-card,
.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2.5px solid var(--pink-primary);
  background: #FFFFFF;
  box-shadow: 0 6px 16px rgba(255, 0, 127, 0.18);
  transition: transform 0.3s var(--ease-spring);
  animation: previewPopIn 0.35s var(--ease-spring);
}

@keyframes previewPopIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.preview-card:hover,
.preview-item:hover {
  transform: translateY(-3px) scale(1.04);
}

.preview-card img,
.preview-item img,
.preview-card video,
.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-indicator-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

.remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease-spring);
}

.remove-btn:hover {
  transform: scale(1.2) rotate(90deg);
}

.file-size-badge {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   İLERLEME ÇUBUĞU (Progress Section)
   ========================================================================== */
.progress-section {
  display: none;
  margin-bottom: 22px;
  background: rgba(255, 0, 127, 0.06);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 0, 127, 0.2);
  backdrop-filter: blur(8px);
}

.progress-section.active {
  display: block;
  animation: fadeInDown 0.35s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 10px;
  font-weight: 800;
  color: var(--pink-primary);
}

.progress-bar-bg {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #FF007F 0%, #FFB703 100%);
  border-radius: var(--radius-full);
  transition: width 0.25s ease-out;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

/* ==========================================================================
   6. "FOTOĞRAFLARI GÖNDER" & AKSİYON BUTONLARI (Glow Shimmer Effect)
   ========================================================================== */
.btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--grad-fest);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-fest);
  transition: all 0.4s var(--ease-spring);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  will-change: transform, box-shadow;
}

/* Buton Üzerinden Yavaşça Geçen Işıltılı Şerit (Glow Shimmer Effect) */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 100%);
  transform: skewX(-25deg);
  animation: btnShimmerSweep 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes btnShimmerSweep {
  0% {
    left: -120%;
  }

  35%,
  100% {
    left: 160%;
  }
}

.btn-primary:hover:not(:disabled) {
  background: var(--grad-fest-hover);
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 16px 36px rgba(255, 0, 127, 0.45),
    0 6px 18px rgba(255, 165, 0, 0.35),
    0 0 25px rgba(255, 0, 127, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98) translateY(0);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: grayscale(20%);
}

.btn-primary:disabled::after {
  display: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 2px solid var(--pink-primary);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--pink-primary);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.35s var(--ease-spring);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 0, 127, 0.08);
  will-change: transform;
}

.btn-secondary:hover {
  background: var(--pink-primary);
  color: #FFFFFF;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-fest);
}

.btn-yellow {
  background: var(--grad-gold);
  color: #1A121F;
  border: none;
  box-shadow: 0 8px 24px rgba(255, 158, 0, 0.35);
}

.btn-yellow:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px rgba(255, 158, 0, 0.5);
}

/* ==========================================================================
   BAŞARI / TEŞEKKÜR EKRANI
   ========================================================================== */
.success-screen {
  display: none;
  text-align: center;
  padding: 30px 16px;
  animation: zoomInSuccess 0.45s var(--ease-spring);
}

@keyframes zoomInSuccess {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-screen.active {
  display: block;
}

.success-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4), 0 0 25px rgba(16, 185, 129, 0.25);
  animation: bounceSuccess 1.5s infinite alternate;
}

@keyframes bounceSuccess {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

.success-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.success-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  line-height: 1.55;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   TOAST BİLDİRİM
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(26, 18, 31, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 0, 127, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  transition: all 0.4s var(--ease-spring);
  z-index: 9999;
  max-width: 90%;
  text-align: center;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast.error {
  background: rgba(220, 38, 38, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 36px rgba(220, 38, 38, 0.45);
}

@keyframes btnSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Alt Bilgi (Footer) */
.event-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
  padding: 24px 0 12px;
  opacity: 0.85;
}

/* Mobil İyileştirmeler */
@media (max-width: 480px) {
  .app-container {
    padding: 16px 14px 36px;
  }

  .card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  .event-header {
    padding: 28px 18px 24px;
    border-radius: var(--radius-lg);
  }

  .event-title {
    font-size: 1.8rem;
  }

  .dropzone {
    padding: 28px 14px;
  }

  .dropzone-icon-wrap {
    width: 64px;
    height: 64px;
  }

  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* ==========================================================================
   Boş Galeri Durumu (Empty Gallery State)
   ========================================================================== */
.empty-gallery,
.empty-gallery-state {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px dashed rgba(255, 182, 193, 0.5);
  border-radius: 28px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 48px 24px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.12) 0%, rgba(255, 183, 3, 0.15) 100%);
  color: var(--pink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px !important;
  box-shadow: 0 8px 24px rgba(255, 0, 127, 0.12);
}

.empty-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #421d37;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.empty-desc {
  margin-bottom: 24px !important;
  max-width: 480px !important;
  line-height: 1.6 !important;
  color: #7a586e !important;
  font-size: 0.95rem !important;
}

.empty-gallery .btn-primary,
.btn-empty-upload {
  margin-top: 12px !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  background: linear-gradient(135deg, #FF007F 0%, #FFB703 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(255, 0, 127, 0.35) !important;
  text-decoration: none !important;
  border: none !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.empty-gallery .btn-primary:hover,
.btn-empty-upload:hover {
  background: linear-gradient(135deg, #FF1A8C 0%, #FFC300 100%) !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 28px rgba(255, 0, 127, 0.45) !important;
}

/* ==========================================================================
   IPHONE HEIC / HEIF DÖNÜŞTÜRÜCÜ DURUM ROZETİ
   ========================================================================== */
.heic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.08), rgba(255, 183, 3, 0.12));
  border: 1px solid rgba(255, 0, 127, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dark, #2b2325);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 auto 20px auto;
  box-shadow: 0 6px 20px rgba(255, 0, 127, 0.12);
  animation: heicPulse 1.8s ease-in-out infinite alternate;
  transition: all 0.3s ease;
  width: fit-content;
}

@keyframes heicPulse {
  0% {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.1);
  }

  100% {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 0, 127, 0.22);
  }
}

.heic-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 0, 127, 0.25);
  border-top-color: var(--pink-primary, #FF007F);
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.heic-badge-text {
  letter-spacing: -0.01em;
  color: var(--text-dark, #2b2325);
}

/* Dijital Hatıra Damgası (Watermark) Rozeti */
.watermark-info-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.15) 0%, rgba(255, 209, 102, 0.22) 100%);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: #784800;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 14px rgba(255, 183, 3, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: fit-content;
  text-align: center;
  animation: fadeInDown 0.4s ease;
}

.watermark-info-pill strong {
  color: #553300;
  font-weight: 700;
}

/* ==========================================================================
   GLOBAL MOBİL TASARIM STANDARDI - GENEL STİLLER (style.css)
   Tüm mobil taşma, hizalama ve bozulma sorunlarını kalıcı olarak çözer.
   ========================================================================== */

/* ---- Tablet & Mobil (≤ 768px) ---- */
@media screen and (max-width: 768px) {

  /* 1. Genel Kapsayıcılar & Taşma Önleme */
  html {
    overflow-x: hidden !important;
  }

  body {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .app-container {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding: 18px 14px 40px !important;
  }

  /* 2. Kart & Başlık Alanı */
  .card {
    padding: 24px 16px !important;
    border-radius: 22px !important;
  }

  .event-header {
    padding: 28px 16px 24px !important;
    border-radius: 22px !important;
    text-align: center !important;
  }

  .event-title {
    font-size: 1.75rem !important;
  }

  .event-subtitle {
    font-size: 0.92rem !important;
    max-width: 100% !important;
  }

  .event-badge {
    font-size: 0.76rem !important;
    padding: 5px 14px !important;
  }

  /* 3. Form Alanları */
  .form-input,
  .form-textarea {
    padding: 12px 14px !important;
    font-size: 0.94rem !important;
  }

  .form-label,
  label {
    font-size: 0.9rem !important;
  }

  .custom-form-title {
    font-size: 0.98rem !important;
  }

  /* 4. Dropzone */
  .dropzone {
    padding: 26px 14px !important;
  }

  .dropzone-icon-wrap {
    width: 62px !important;
    height: 62px !important;
  }

  .dropzone-title {
    font-size: 1.05rem !important;
  }

  .dropzone-subtitle {
    font-size: 0.82rem !important;
  }

  /* 5. Önizleme Grid */
  .preview-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  /* 6. Butonlar */
  .btn-primary {
    padding: 14px 20px !important;
    font-size: 1rem !important;
  }

  .btn-secondary {
    padding: 12px 20px !important;
    font-size: 0.92rem !important;
  }

  /* 7. Başarı Ekranı */
  .success-screen {
    padding: 24px 14px !important;
  }

  .success-title {
    font-size: 1.5rem !important;
  }

  .success-desc {
    font-size: 0.92rem !important;
    max-width: 100% !important;
  }

  .success-icon-wrap {
    width: 76px !important;
    height: 76px !important;
  }

  /* 8. Toast Bildirimi */
  .toast {
    max-width: 92% !important;
    padding: 12px 20px !important;
    font-size: 0.88rem !important;
  }

  /* 9. HEIC & Watermark Rozetleri */
  .heic-badge {
    font-size: 0.84rem !important;
    padding: 8px 16px !important;
  }

  .watermark-info-pill {
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
  }

  /* 10. Boş Galeri */
  .empty-gallery,
  .empty-gallery-state {
    padding: 32px 16px !important;
    border-radius: 20px !important;
  }

  .empty-title {
    font-size: 1.3rem !important;
  }

  .empty-desc {
    font-size: 0.88rem !important;
  }
}