/* ===================================
   MARIANA 16 ANOS - BAILE DE MÃSCARAS
   Style Sheet
   =================================== */

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

/* ---- CSS Variables ---- */
:root {
  /* â”€â”€ Fundo / Base â”€â”€ */
  --bg-deep:        #0d0000;
  --bg-dark:        #1a0005;
  --bg-mid:         #2b0009;

  /* â”€â”€ Vinho / Bordeaux â”€â”€ */
  --wine-deep:      #3d0010;
  --wine-dark:      #5c0018;
  --wine-mid:       #8b0023;
  --wine-bright:    #b0002c;
  --wine-glow:      #c8003a;

  /* â”€â”€ Dourado â”€â”€ */
  --gold:           #d4a017;
  --gold-light:     #f0c84a;
  --gold-bright:    #fde27a;
  --gold-dark:      #9a6f00;
  --gold-warm:      #e8b84b;

  /* â”€â”€ Rosa Vinho / Accent â”€â”€ */
  --rose:           #8b0a2e;
  --rose-light:     #d4547a;
  --rose-bright:    #ff8fa3;

  /* â”€â”€ Brancos e transparÃªncias â”€â”€ */
  --white:          #ffffff;
  --white-80:       rgba(255,255,255,0.82);
  --white-50:       rgba(255,255,255,0.5);
  --white-20:       rgba(255,255,255,0.18);
  --white-10:       rgba(255,255,255,0.07);

  /* â”€â”€ Tipografia â”€â”€ */
  --font-display:   'Cinzel Decorative', serif;
  --font-serif:     'Playfair Display', serif;
  --font-sans:      'Raleway', sans-serif;

  /* â”€â”€ Sombras e bordas â”€â”€ */
  --shadow-gold:    0 0 30px rgba(212,160,23,0.45);
  --shadow-wine:    0 0 40px rgba(140,0,35,0.55);
  --border-gold:    1px solid rgba(212,160,23,0.35);
  --border-glass:   1px solid rgba(255,255,255,0.12);
  --border-wine:    1px solid rgba(176,0,44,0.4);
}


/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- Particles Canvas ---- */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- Petals Container ---- */
.petals-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -40px;
  font-size: clamp(12px, 2vw, 22px);
  animation: fall linear infinite;
  opacity: 0.7;
  user-select: none;
}

@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0.7; }
  50%  { transform: translateY(50vh) rotate(180deg) translateX(30px); }
  100% { transform: translateY(110vh) rotate(360deg) translateX(-20px); opacity: 0; }
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 20px 120px;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('img/masquerade_bg.png') center center / cover no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,0,0,0.50) 0%,
    rgba(29,0,8,0.25) 35%,
    rgba(29,0,8,0.65) 75%,
    rgba(13,0,0,1) 100%
  );
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* Mask */
.mask-wrapper {
  position: relative;
  width: clamp(200px, 35vw, 380px);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-18px) rotate(2deg); }
}

.hero-mask {
  width: 100%;
  filter: drop-shadow(0 0 40px rgba(176,0,44,0.7)) drop-shadow(0 0 80px rgba(212,160,23,0.4));
  display: block;
}

.mask-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse, rgba(212,160,23,0.35) 0%, rgba(176,0,44,0.2) 50%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.1); }
}

/* Badge 16 */
.badge-16 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine-dark), var(--wine-mid), var(--wine-dark));
  border: 3px solid var(--gold-light);
  box-shadow: 0 0 30px rgba(176,0,44,0.7), 0 0 60px rgba(212,160,23,0.4), inset 0 1px 0 rgba(212,160,23,0.3);
  animation: badge-spin 8s linear infinite, badge-pulse 2s ease-in-out infinite;
  margin-top: -60px;
  position: relative;
  z-index: 5;
}

@keyframes badge-spin {
  0%   { box-shadow: 0 0 30px rgba(176,0,44,0.7), 0 0 60px rgba(212,160,23,0.35); }
  50%  { box-shadow: 0 0 50px rgba(176,0,44,0.9), 0 0 90px rgba(212,160,23,0.55), 0 0 120px rgba(212,160,23,0.3); }
  100% { box-shadow: 0 0 30px rgba(176,0,44,0.7), 0 0 60px rgba(212,160,23,0.35); }
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

.badge-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--gold-bright);
  line-height: 1;
}

.badge-text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Hero Text */
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: 4px;
  color: var(--gold-light);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.title-line {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 400;
  color: var(--white);
  text-shadow: 0 0 30px rgba(176,0,44,0.6);
  letter-spacing: 4px;
}

.title-line.small {
  font-size: clamp(20px, 4vw, 42px);
  opacity: 0.85;
}

.title-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 12vw, 120px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-light), var(--gold-warm), var(--gold-bright));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
  text-shadow: none;
  line-height: 1;
}

.title-surname {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--gold-light);
  opacity: 0.9;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(212,160,23,0.5);
  margin-top: -8px;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

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

/* Date Card */
.hero-date-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white-10);
  backdrop-filter: blur(20px);
  border: var(--border-glass);
  border-radius: 20px;
  padding: 16px 28px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
  flex-wrap: wrap;
  justify-content: center;
}

.date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
}

.date-icon { font-size: 20px; }

.date-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}

.date-value {
  font-family: var(--font-serif);
  font-size: clamp(13px, 2vw, 16px);
  color: var(--white);
}

.date-divider {
  width: 1px;
  height: 40px;
  background: var(--white-20);
}

/* Hero Button */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-warm));
  color: var(--bg-deep);
  text-decoration: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 30px rgba(212,160,23,0.5), 0 0 60px rgba(176,0,44,0.3);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1s ease 1.2s forwards;
}

.btn-hero svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(212,160,23,0.7), 0 0 80px rgba(176,0,44,0.4);
}

.btn-hero:hover svg { transform: translateY(4px); }

/* ---- Countdown ---- */
.countdown-wrapper {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.countdown-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.8;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white-10);
  backdrop-filter: blur(10px);
  border: var(--border-gold);
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 60px;
}

.count-block span {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.count-block label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-80);
  margin-top: 4px;
}

.count-sep {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ==============================
   FLOATING NAV
   ============================== */
.floating-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  background: rgba(13,0,0,0.9);
  backdrop-filter: blur(20px);
  border: var(--border-wine);
  border-radius: 50px;
  padding: 8px 12px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(212,160,23,0.15);
  transition: all 0.3s ease;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 20px;
  border-radius: 40px;
  text-decoration: none;
  color: var(--white-50);
  transition: all 0.3s ease;
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-icon { font-size: 18px; }
.nav-label { font-size: 10px; letter-spacing: 1px; }

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  background: linear-gradient(135deg, rgba(92,0,24,0.7), rgba(139,0,35,0.4));
}

/* ==============================
   QUOTE SECTION
   ============================== */
.quote-section {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-container {
  max-width: 700px;
  text-align: center;
  position: relative;
}

.quote-marks {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--gold);
  opacity: 0.4;
  line-height: 0.5;
  display: block;
}

.quote-marks.closing {
  line-height: 1.2;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(18px, 3vw, 28px);
  font-style: italic;
  color: var(--white-80);
  line-height: 1.6;
  padding: 20px 0;
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-top: 16px;
}

/* ==============================
   SECTION SHARED STYLES
   ============================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(92,0,24,0.6), rgba(139,0,35,0.4));
  border: var(--border-gold);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--rose-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-family: var(--font-serif);
  font-size: clamp(15px, 2vw, 18px);
  font-style: italic;
  color: var(--white-50);
}

/* ==============================
   FOTOS / GALLERY SECTION
   ============================== */
.fotos-section {
  position: relative;
  z-index: 2;
  padding: 80px 20px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--white-10);
  border: var(--border-glass);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(176,0,44,0.4);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(29,0,8,0.92) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-heart { font-size: 28px; animation: heartbeat 1s ease infinite; }

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}

.gallery-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--white);
  margin-top: 8px;
}

/* ---- Contest Banner Card ---- */
.contest-banner-card { cursor: default; }
.contest-banner-card:hover img { transform: scale(1.03); }

.contest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,0,0,0.50) 0%,
    rgba(61,0,16,0.65) 50%,
    rgba(13,0,0,0.85) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.contest-ribbon {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-warm), var(--gold-dark));
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: clamp(11px, 1.5vw, 14px);
  font-weight: 900;
  letter-spacing: 4px;
  padding: 6px 22px;
  border-radius: 30px;
  box-shadow: 0 0 20px rgba(212,160,23,0.6);
  animation: badge-pulse 2s ease-in-out infinite;
}

.contest-prize-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.prize-camera {
  font-size: clamp(32px, 5vw, 56px);
  animation: float 3s ease-in-out infinite;
  display: block;
}

.prize-line1,
.prize-line2,
.prize-line3 {
  display: block;
  font-family: var(--font-sans);
  color: var(--white);
  line-height: 1.4;
}

.prize-line1 {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 400;
  opacity: 0.95;
}

.prize-line1 strong,
.prize-line2 strong { font-weight: 700; }

.prize-line2 {
  font-size: clamp(16px, 2.5vw, 24px);
}

.prize-value {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--rose-light));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 2.5s ease infinite;
  display: inline-block;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(212,160,23,0.7));
}

.prize-line3 {
  font-size: clamp(13px, 1.8vw, 17px);
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 1px;
}

.contest-cta {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.6vw, 15px);
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--white-80);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 8px 20px;
  animation: pulse-glow 2s ease-in-out infinite;
  backdrop-filter: blur(6px);
}

/* Add Photo FAB Button */
.add-photo-btn-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.add-photo-fab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--wine-dark), var(--wine-mid), var(--wine-bright), var(--wine-mid));
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  border: 2px solid var(--gold-light);
  border-radius: 50px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(176,0,44,0.5), 0 0 60px rgba(212,160,23,0.2), 0 8px 25px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.add-photo-fab:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 50px rgba(176,0,44,0.7), 0 0 80px rgba(212,160,23,0.3), 0 12px 35px rgba(0,0,0,0.6);
}

.fab-icon { font-size: 22px; }

/* ==============================
   PHOTO MODAL
   ============================== */
.photo-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,0,20,0.85);
  backdrop-filter: blur(8px);
  z-index: 9100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.photo-modal-backdrop.open { display: flex; }

.photo-modal {
  background: linear-gradient(160deg, rgba(45,0,14,0.97), rgba(13,0,0,0.99));
  border: var(--border-gold);
  border-radius: 28px;
  width: 100%;
  max-width: 480px;
  padding: 32px 28px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 60px rgba(176,0,44,0.35), 0 0 120px rgba(212,160,23,0.15);
  position: relative;
  animation: slideInUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(60px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Header */
.pm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.pm-mask { font-size: 28px; }

.pm-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-light);
  letter-spacing: 2px;
  flex: 1;
}

.pm-close {
  background: var(--white-10);
  border: var(--border-glass);
  color: var(--white-80);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}

.pm-close:hover { background: var(--wine-mid); color: white; }

/* Step Indicators */
.pm-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.pm-step {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white-10);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--white-50);
  transition: all 0.4s ease;
}

.pm-step.active {
  background: linear-gradient(135deg, var(--wine-mid), var(--wine-glow));
  border-color: var(--gold-light);
  color: var(--gold-light);
  box-shadow: 0 0 16px rgba(176,0,44,0.6);
}

.pm-step.done {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-color: var(--gold);
  color: var(--bg-deep);
}

.pm-step-line {
  flex: 1;
  height: 2px;
  max-width: 60px;
  background: rgba(255,255,255,0.12);
  transition: background 0.4s;
}

.pm-step-line.done { background: var(--gold); }

/* Step Content */
.pm-step-content { display: flex; flex-direction: column; gap: 16px; }
.pm-step-content.hidden { display: none; }

.pm-step-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 3vw, 20px);
  color: var(--white);
  text-align: center;
}

.pm-step-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--white-50);
  text-align: center;
  margin-top: -8px;
}

.pm-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: all 0.3s;
  text-align: center;
}

.pm-input::placeholder { color: var(--white-50); }
.pm-input:focus {
  outline: none;
  border-color: var(--wine-glow);
  box-shadow: 0 0 0 3px rgba(176,0,44,0.2);
  background: rgba(255,255,255,0.1);
}

/* Method Grid */
.pm-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pm-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.pm-method-btn:hover {
  background: linear-gradient(135deg, rgba(92,0,24,0.6), rgba(139,0,35,0.4));
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(176,0,44,0.4), 0 0 20px rgba(212,160,23,0.2);
}

.pm-method-icon { font-size: 38px; }

.pm-method-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.pm-method-label small {
  display: block;
  font-size: 11px;
  opacity: 0.6;
  font-weight: 400;
  margin-top: 2px;
}

.pm-hidden-input { display: none; }

/* Camera Area */
.pm-camera-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

#pm-video {
  width: 100%;
  border-radius: 16px;
  border: 2px solid rgba(176,0,44,0.4);
  background: #000;
  box-shadow: 0 0 30px rgba(176,0,44,0.3);
  max-height: 240px;
  object-fit: cover;
}

.pm-shutter {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 4px solid var(--white-80);
  background: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.pm-shutter:hover { transform: scale(1.08); box-shadow: 0 0 30px rgba(255,255,255,0.6); }
.pm-shutter:active { transform: scale(0.92); }

.pm-shutter-inner {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine-mid), var(--wine-glow));
  display: block;
}

.pm-cancel-camera {
  background: none;
  border: none;
  color: var(--white-50);
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 1px;
  padding: 4px 10px;
  transition: color 0.2s;
}
.pm-cancel-camera:hover { color: var(--rose-light); }

/* Preview */
.pm-preview-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(176,0,44,0.4);
  box-shadow: 0 0 30px rgba(176,0,44,0.3);
}

#pm-preview-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.pm-preview-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(13,0,0,0.85);
  backdrop-filter: blur(8px);
  border: var(--border-gold);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
}

.pm-confirm-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

/* Buttons */
.pm-btn-next {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--wine-dark), var(--wine-mid), var(--wine-bright));
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 14px;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(176,0,44,0.4);
  letter-spacing: 1px;
}

.pm-btn-next:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(176,0,44,0.6), 0 0 30px rgba(212,160,23,0.2); }

.pm-btn-back {
  padding: 12px 18px;
  background: var(--white-10);
  border: var(--border-glass);
  border-radius: 12px;
  color: var(--white-50);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.pm-btn-back:hover { background: var(--white-20); color: var(--white); }

.pm-btn-submit {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-warm));
  border: none;
  border-radius: 14px;
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(212,160,23,0.5);
  letter-spacing: 0.5px;
}

.pm-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(212,160,23,0.7); }

/* Dynamic photo card in gallery */
.dynamic-photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--white-10);
  border: var(--border-glass);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.dynamic-photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.dynamic-photo-card:hover img { transform: scale(1.06); }

.dynamic-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(176,0,44,0.4);
}

.dynamic-photo-card .gallery-overlay { opacity: 0; transition: opacity 0.3s; }
.dynamic-photo-card:hover .gallery-overlay { opacity: 1; }



/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.lightbox.open { display: flex; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--white-20);
  border: none;
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-close:hover { background: var(--wine-mid); }

.lightbox #lightbox-img {
  max-width: min(90vw, 800px);
  max-height: 75vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(176,0,44,0.5);
}

.lightbox-caption {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--white-80);
  font-size: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==============================
   RECADOS SECTION
   ============================== */
.recados-section {
  position: relative;
  z-index: 2;
  padding: 80px 20px 100px;
  background: linear-gradient(180deg, transparent, rgba(45,0,14,0.55) 30%, rgba(45,0,14,0.55) 70%, transparent);
}

.recados-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

/* Form Card */
.recado-form-card {
  background: rgba(45,0,14,0.6);
  backdrop-filter: blur(20px);
  border: var(--border-gold);
  border-radius: 28px;
  padding: 40px 32px;
  position: sticky;
  top: 100px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(176,0,44,0.15);
}

.form-mask-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

.form-title {
  font-family: var(--font-display);
  font-size: 22px;
  text-align: center;
  color: var(--gold-light);
  margin-bottom: 28px;
  letter-spacing: 2px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: all 0.3s ease;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--white-50); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--wine-glow);
  box-shadow: 0 0 0 3px rgba(176,0,44,0.2);
  background: rgba(255,255,255,0.1);
}

.char-count {
  display: block;
  text-align: right;
  font-size: 11px;
  color: var(--white-50);
  margin-top: 6px;
}

/* Emoji Picker */
.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emoji-btn {
  background: var(--white-10);
  border: 1px solid var(--white-20);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.emoji-btn:hover,
.emoji-btn.active {
  background: linear-gradient(135deg, rgba(139,0,35,0.5), rgba(176,0,44,0.3));
  border-color: var(--wine-glow);
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(176,0,44,0.4);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--wine-dark), var(--wine-mid), var(--wine-bright));
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 14px;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(176,0,44,0.4);
  letter-spacing: 1px;
  margin-top: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(176,0,44,0.6), 0 0 30px rgba(212,160,23,0.2);
}

.btn-submit:active { transform: scale(0.98); }

/* Wall */
.recados-wall {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wall-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-light);
  letter-spacing: 2px;
  padding-bottom: 16px;
  border-bottom: var(--border-gold);
}

.recados-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--wine-mid) transparent;
}

.recados-list::-webkit-scrollbar { width: 4px; }
.recados-list::-webkit-scrollbar-track { background: transparent; }
.recados-list::-webkit-scrollbar-thumb { background: var(--wine-mid); border-radius: 4px; }

/* Recado Card */
.recado-card {
  background: rgba(45,0,14,0.5);
  backdrop-filter: blur(12px);
  border: var(--border-wine);
  border-radius: 20px;
  padding: 20px 24px;
  transition: all 0.3s ease;
  animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.recado-card:hover {
  border-color: rgba(212,160,23,0.45);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px rgba(212,160,23,0.12);
  transform: translateY(-2px);
}

.recado-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.recado-emoji { font-size: 24px; }

.recado-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  flex: 1;
}

.recado-time {
  font-size: 11px;
  color: var(--white-50);
  letter-spacing: 1px;
}

.recado-text {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--white-80);
  line-height: 1.6;
  font-style: italic;
}

.recado-hearts {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.heart-btn {
  background: rgba(139,0,35,0.25);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 20px;
  padding: 5px 14px;
  color: var(--gold-light);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.heart-btn:hover {
  background: rgba(176,0,44,0.3);
  border-color: var(--gold-light);
  transform: scale(1.05);
}

.heart-btn.liked {
  background: rgba(212,84,122,0.25);
  border-color: var(--rose);
  animation: pop 0.3s ease;
}

@keyframes pop {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.3); }
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px 100px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-mask {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.footer-text {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--white-80);
  font-style: italic;
  margin-bottom: 8px;
}

.heart-beat { display: inline-block; animation: heartbeat 1.2s ease-in-out infinite; }

.footer-sub {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.7;
  margin-bottom: 16px;
}

.footer-sparkles {
  font-size: 20px;
  letter-spacing: 10px;
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ==============================
   TOAST NOTIFICATION
   ============================== */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--wine-mid), var(--wine-glow));
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(176,0,44,0.6);
  white-space: nowrap;
}

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

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

  .gallery-item.featured {
    grid-column: span 2;
    min-height: 250px;
  }

  .recados-container {
    grid-template-columns: 1fr;
  }

  .recado-form-card {
    position: static;
  }

  .hero-date-card {
    padding: 12px 16px;
    gap: 0;
  }

  .date-item { padding: 0 12px; }
  .date-divider { display: none; }

  .countdown-wrapper {
    bottom: 16px;
  }

  .count-block { min-width: 50px; padding: 8px 10px; }
  .count-block span { font-size: 22px; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.featured {
    grid-column: span 1;
  }
}

