*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Lato',sans-serif;min-height:100vh;background:linear-gradient(135deg,#fdf2f8 0%,#fce7f3 25%,#fef3c7 100%);background-attachment:fixed;position:relative;overflow-x:hidden}
body::before{content:'';position:fixed;top:0;left:0;right:0;bottom:0;background-image:url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f43f5e' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E");background-repeat:repeat;pointer-events:none;z-index:1}
.container{position:relative;z-index:10;min-height:100vh;display:flex;flex-direction:column;padding:1rem}
.wedding-illustration{text-align:center;padding:2rem 0;position:relative;margin-bottom:2rem}
.couple-container{position:relative;display:inline-block;margin-bottom:1.5rem}
.couple-figures{display:flex;align-items:end;justify-content:center;gap:1rem;margin-bottom:1rem}
.bride,.groom{position:relative}
.bride-figure{width:4rem;height:5rem;background:linear-gradient(to bottom,#fda4af,#fb7185);border-radius:2rem 2rem 0 0;position:relative}
.bride-dress{position:absolute;bottom:-0.5rem;left:50%;transform:translateX(-50%);width:5rem;height:3rem;background:linear-gradient(to bottom,#ffffff,#fdf2f8);border-radius:0 0 2.5rem 2.5rem}
.bride-veil{position:absolute;top:-0.5rem;left:-0.5rem;width:5rem;height:4rem;background:rgba(255,255,255,.6);border-radius:50%;opacity:.8}
.bouquet{position:absolute;bottom:-.25rem;right:-.5rem;width:1.5rem;height:1.5rem;border-radius:50%;background:linear-gradient(135deg,#f9a8d4,#fb7185)}
.groom-figure{width:3.5rem;height:5rem;background:linear-gradient(to bottom,#374151,#1f2937);border-radius:2rem 2rem 0 0;position:relative}
.groom-suit{position:absolute;bottom:-.5rem;left:50%;transform:translateX(-50%);width:4rem;height:3rem;background:linear-gradient(to bottom,#1f2937,#111827);border-radius:0 0 .5rem .5rem}
.bow-tie{position:absolute;top:2rem;left:50%;transform:translateX(-50%);width:.75rem;height:.5rem;background:#fbbf24;border-radius:.125rem}
.wedding-rings{display:flex;justify-content:center;gap:.5rem;margin-bottom:1rem}
.ring{width:.75rem;height:.75rem;border:2px solid #fbbf24;border-radius:50%}
.couple-names{background:rgba(255,255,255,.8);backdrop-filter:blur(10px);border-radius:2rem;padding:.75rem 1.5rem;display:inline-block;box-shadow:0 4px 6px rgba(0,0,0,.1)}
.couple-names h2{color:#be185d;font-weight:700;font-size:1.125rem;margin-bottom:.25rem}
.wedding-date{color:#fb7185;font-size:.875rem}
.decorative-hearts{position:absolute}
.heart-1{top:1rem;left:1rem;color:#fda4af;font-size:1.5rem;animation:pulse 2s infinite}
.heart-2{top:1.5rem;right:1.5rem;color:#fcd34d;font-size:1rem;animation:pulse 2s infinite .5s}
.heart-3{bottom:1rem;left:2rem;color:#f9a8d4;font-size:.75rem;animation:pulse 2s infinite 1s}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.1)}}
.main-title{text-align:center;margin-bottom:3rem;padding:0 1rem}
.main-title h1{font-size:2.5rem;font-weight:900;color:#be185d;line-height:1.2;margin-bottom:1rem}
.main-title .highlight{background:linear-gradient(135deg,#ec4899,#f59e0b);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.main-title p{color:#ec4899;font-size:1.125rem;max-width:28rem;margin:0 auto;line-height:1.6}
.hero{max-width:32rem;margin:0 auto;width:100%}
.form{background:rgba(255,255,255,.6);backdrop-filter:blur(10px);border-radius:1.5rem;padding:2rem;box-shadow:0 20px 25px -5px rgba(0,0,0,.1);border:1px solid rgba(255,255,255,.4);margin-bottom:2rem}
#files{display:none}
.file-upload-area{border:2px dashed #fda4af;border-radius:1rem;padding:2rem;text-align:center;transition:all .3s ease;cursor:pointer;margin-bottom:1.5rem;background:rgba(255,255,255,.7)}
.file-upload-area:hover{border-color:#fb7185;background:rgba(254,242,248,.8)}
.file-upload-area.dragover{border-color:#fbbf24;background:rgba(254,243,199,.8)}
.upload-icon{width:3rem;height:3rem;margin:0 auto 1rem;background:#fb7185;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.5rem}
.label{display:block;font-size:1.125rem;font-weight:600;color:#be185d;margin-bottom:.5rem;cursor:pointer}
.file-info{font-size:.875rem;color:#ec4899}
.selected-files{background:rgba(255,255,255,.8);border-radius:.5rem;padding:1rem;margin:1rem 0;font-size:.875rem;color:#be185d;min-height:1rem;border:1px solid #fda4af}
.button-container{display:flex;flex-direction:column;gap:1rem;margin-top:2rem}
.button{background:linear-gradient(135deg,#ec4899,#f97316);color:#fff;border:none;border-radius:1rem;padding:1rem 2rem;font-size:1.125rem;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 10px 15px -3px rgba(0,0,0,.1);display:flex;align-items:center;justify-content:center;gap:.75rem}
.button:hover{transform:translateY(-2px);box-shadow:0 20px 25px -5px rgba(0,0,0,.2)}
.button:disabled{background:linear-gradient(135deg,#d1d5db,#9ca3af);cursor:not-allowed;transform:none}
.select-button{background:linear-gradient(135deg,#fbbf24,#f59e0b)}
.select-button:hover{background:linear-gradient(135deg,#f59e0b,#d97706)}
.progress{display:none;background:#fda4af;border-radius:.5rem;height:.75rem;margin:1rem 0;overflow:hidden}
.progress-bar{background:linear-gradient(135deg,#fbbf24,#f59e0b);height:100%;width:0%;transition:width .3s ease;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;color:#fff}
.success-message,.error-message{display:none;padding:1rem;border-radius:.5rem;margin:1rem 0;text-align:center;font-weight:600}
.success-message{background:rgba(34,197,94,.1);color:#15803d;border:1px solid rgba(34,197,94,.3)}
.error-message{background:rgba(239,68,68,.1);color:#dc2626;border:1px solid rgba(239,68,68,.3)}
.mini-gallery{background:rgba(255,255,255,.6);backdrop-filter:blur(10px);border-radius:1.5rem;padding:2rem;box-shadow:0 20px 25px -5px rgba(0,0,0,.1);border:1px solid rgba(255,255,255,.4);max-width:32rem;margin:2rem auto;width:100%}
.mini-gallery h2{text-align:center;color:#be185d;font-size:1.5rem;font-weight:700;margin-bottom:1.5rem}
.mini-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem;margin-bottom:1.5rem}
.mini-cell{aspect-ratio:1;border-radius:.75rem;overflow:hidden;box-shadow:0 4px 6px rgba(0,0,0,.1);background:#fff;transition:transform .3s ease}
.mini-cell:hover{transform:scale(1.05)}
.mini-cell img,.mini-cell video{width:100%;height:100%;object-fit:cover}
.mini-gallery-link{display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.8);border:2px solid #fda4af;border-radius:2rem;padding:.75rem 1.5rem;color:#ec4899;text-decoration:none;font-weight:600;transition:all .3s ease;margin:0 auto;display:block;text-align:center;max-width:fit-content}
.mini-gallery-link:hover{background:#fff;border-color:#fb7185;transform:scale(1.05)}
.footer{text-align:center;padding:2rem 1rem;color:#fb7185;font-size:.875rem;margin-top:auto}
@media (min-width:640px){
  .container{padding:2rem}
  .main-title h1{font-size:3rem}
  .main-title p{font-size:1.25rem}
  .form{padding:2.5rem}
  .button-container{flex-direction:row}
  .mini-grid{grid-template-columns:repeat(3,1fr);gap:1.5rem}
}
@media (min-width:768px){
  .main-title h1{font-size:3.5rem}
  .couple-names h2{font-size:1.25rem}
}
@media (min-width:1024px){
  .container{padding:3rem}
  .main-title h1{font-size:4rem}
}

.pair-image{
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;        /* centers above the title */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
@media (min-width: 640px){
  .pair-image{ width: 180px; height: 180px; margin-bottom: 22px; }
}

.couple-pill{
  display:inline-block;
  margin: 10px auto 24px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  text-align: center;
}
.couple-pill h2{
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #be185d; /* same pink as the heading */
}
.couple-pill .wedding-date{
  margin-top: 4px;
  font-size: 14px;
  color: #f43f5e; /* softer pink */
  opacity: 0.85;
}

/* ===== Language switcher (flags + pills) ===== */
.lang-switcher{
  position: absolute;        /* stays at the top, does not follow scroll */
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 1000;             /* above container (yours is z-index:10) */
}

.lang-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;     /* pill */
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font: 700 0.875rem/1 'Lato', sans-serif;
  letter-spacing: 0.3px;
  color: #111827;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lang-btn img{
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06) inset;
}

.lang-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.lang-btn:active{
  transform: translateY(0);
}

.lang-btn[data-active="true"]{
  color: #fff;
  background: #111827;       /* slate-900 */
  border-color: transparent;
}

/* Dark mode polish */
@media (prefers-color-scheme: dark){
  .lang-btn{
    background: rgba(17,24,39,0.7);
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.12);
  }
  .lang-btn[data-active="true"]{
    background: #f43f5e;     /* rose-500 */
    color: #fff;
  }
}

/* ===== Social Proof ===== */
.social-proof {
  text-align: center;
  font-size: 0.95rem;
  margin: 20px auto 0;
  max-width: 90%;
  background: rgba(254, 243, 199, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 12px 18px;
  color: #be185d;
  font-weight: 600;
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-proof:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  background: rgba(254, 243, 199, 0.65);
}

@media (min-width: 640px) {
  .social-proof {
    max-width: 28rem;
  }
}

/* ===== First Upload Success Modal ===== */
.first-upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.first-upload-content {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(254,242,248,0.95));
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  padding: 3rem 2rem;
  max-width: 28rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: slideUp 0.4s ease;
  position: relative;
}

@keyframes slideUp {
  from { 
    transform: translateY(20px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

.first-upload-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: heartBeat 1.5s ease infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20% { transform: scale(1.05); }
}

.first-upload-title {
  font-size: 2rem;
  font-weight: 900;
  color: #be185d;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.first-upload-message {
  font-size: 1.125rem;
  color: #ec4899;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.first-upload-divider {
  width: 4rem;
  height: 2px;
  background: linear-gradient(to right, transparent, #fda4af, transparent);
  margin: 1.5rem auto;
}

.first-upload-invitation {
  font-size: 1rem;
  color: #fb7185;
  line-height: 1.5;
  margin-bottom: 2rem;
  font-style: italic;
}

.first-upload-close-btn {
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.first-upload-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.first-upload-close-btn:active {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .first-upload-content {
    padding: 3.5rem 3rem;
  }
  
  .first-upload-emoji {
    font-size: 5rem;
  }
  
  .first-upload-title {
    font-size: 2.5rem;
  }
}