/* ═══════════════════════════════════════════════════════════════
   Zuka & Mike Wedding – Main Stylesheet
   Aesthetic: Refined luxury editorial — champagne, cream, gold
═══════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --gold:        #c9a84c;
  --gold-light:  #e2c47a;
  --gold-pale:   #f5e8c0;
  --cream:       #faf8f3;
  --cream-dark:  #ede9df;
  --cream-mid:   #f0ebe0;
  --ivory:       #fcfaf6;
  --champagne:   #f7f0e3;
  --text:        #2a2118;
  --text-muted:  #8a7a64;
  --text-light:  #b5a48a;
  --shadow:      rgba(42,33,24,.08);
  --shadow-md:   rgba(42,33,24,.14);
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-body:   'Jost', system-ui, sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }
img, video { max-width: 100%; display: block; }

/* ── Grain overlay ── */
.grain-overlay {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .5;
}

/* ── Nav ── */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--cream-dark);
  background: var(--ivory);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--gold);
}
.nav-back {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-back:hover { color: var(--gold); }
.nav-count { font-size: .75rem; color: var(--text-muted); }

/* ════════════════════════════════════════════
   HOME / LANDING
════════════════════════════════════════════ */
.home-page { overflow-x: hidden; }

.petal-layer {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.petal {
  position: absolute;
  color: var(--gold-pale);
  font-size: 1.2rem;
  animation: floatPetal 14s ease-in-out infinite;
  opacity: .6;
}
.p1 { left: 10%; top: 15%; animation-delay: 0s; font-size: .9rem; }
.p2 { left: 80%; top: 8%;  animation-delay: 3s; }
.p3 { left: 5%;  top: 60%; animation-delay: 6s; font-size: .7rem; }
.p4 { left: 90%; top: 55%; animation-delay: 2s; font-size: .8rem; }
.p5 { left: 50%; top: 5%;  animation-delay: 8s; font-size: .65rem; }
.p6 { left: 70%; top: 85%; animation-delay: 4s; }

@keyframes floatPetal {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(12deg); }
  66%       { transform: translateY(10px) rotate(-8deg); }
}

.home-main {
  position: relative; z-index: 1;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px 40px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px 48px;
  animation: fadeUp .8s ease both;
}
.ornament {
  font-family: var(--font-serif);
  color: var(--gold);
  letter-spacing: .3em;
  font-size: .9rem;
  margin-bottom: 14px;
}
.bottom-ornament { margin-top: 14px; margin-bottom: 18px; }
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap;
}
.name {
  font-size: clamp(3rem, 14vw, 5.5rem);
  color: var(--text);
  animation: fadeUp .9s ease both;
}
.name.bride { animation-delay: .1s; }
.name.groom { animation-delay: .2s; }
.ampersand {
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
  animation: fadeUp .9s ease .15s both;
}
.hero-subtitle {
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeUp .9s ease .35s both;
}

/* Action grid */
.action-grid {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeUp .9s ease .4s both;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--ivory);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all var(--transition);
  box-shadow: 0 2px 12px var(--shadow);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.action-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-pale) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.action-card:hover, .action-card:active {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  box-shadow: 0 6px 24px var(--shadow-md);
}
.action-card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  background: var(--champagne);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  transition: background var(--transition);
}
.action-card:hover .card-icon { background: var(--gold-pale); }
.card-icon svg { width: 26px; height: 26px; }

.card-label {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  display: block;
  position: relative;
}
.card-hint {
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
  position: relative;
}

.gallery-card { 
  background: linear-gradient(135deg, var(--champagne), var(--ivory));
}
.gallery-card .card-icon { background: var(--gold-pale); }

.home-footer {
  margin-top: auto;
  padding-top: 36px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: .9rem;
  animation: fadeUp 1s ease .6s both;
}

/* ════════════════════════════════════════════
   SHARED PAGE CHROME
════════════════════════════════════════════ */
main { min-height: calc(100dvh - 64px); padding-bottom: 60px; }

.page-header {
  text-align: center;
  padding: 36px 20px 28px;
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}
.page-sub {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(201,168,76,.35);
  cursor: pointer;
  text-decoration: none;
}
.btn-gold:hover { background: #b8913e; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,.45); }
.btn-gold:active { transform: none; }
.btn-gold.full-width { width: 100%; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--cream-dark);
  border-radius: 50px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ════════════════════════════════════════════
   CAMERA PAGE
════════════════════════════════════════════ */
.camera-wrap { max-width: 480px; margin: 0 auto; padding: 0 16px 40px; }

.mode-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.mode-btn {
  background: var(--ivory);
  border: 1px solid var(--cream-dark);
  border-radius: 50px;
  padding: 9px 22px;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--text-muted);
  transition: all var(--transition);
}
.mode-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.viewfinder-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #111;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
#cameraFeed {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.vf-overlay {
  position: absolute; inset: 0; pointer-events: none;
}
.vf-corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--gold);
  border-style: solid;
  opacity: .7;
}
.vf-corner.tl { top: 16px; left: 16px; border-width: 2px 0 0 2px; }
.vf-corner.tr { top: 16px; right: 16px; border-width: 2px 2px 0 0; }
.vf-corner.bl { bottom: 16px; left: 16px; border-width: 0 0 2px 2px; }
.vf-corner.br { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; }
.rec-badge {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(200,50,50,.85);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .12em;
  padding: 4px 10px;
  border-radius: 50px;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.camera-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
}
.ctrl-btn {
  width: 48px; height: 48px;
  background: var(--ivory);
  border: 1px solid var(--cream-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  color: var(--text-muted);
}
.ctrl-btn svg { width: 20px; height: 20px; }
.ctrl-btn:hover { border-color: var(--gold); color: var(--gold); }
.ctrl-btn.placeholder { visibility: hidden; }

.shutter-btn {
  width: 72px; height: 72px;
  background: none; border: none;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition);
}
.shutter-btn:active { transform: scale(.93); }
.shutter-ring {
  position: absolute; inset: 0;
  border: 3px solid var(--gold);
  border-radius: 50%;
}
.shutter-dot {
  width: 54px; height: 54px;
  background: var(--gold);
  border-radius: 50%;
  transition: background var(--transition), transform var(--transition);
}
.shutter-btn.recording .shutter-dot {
  background: #d94040;
  border-radius: 8px;
  transform: scale(.7);
}

.camera-status {
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  min-height: 20px;
  letter-spacing: .06em;
}

/* Preview */
.preview-section { margin-top: 24px; }
.preview-ornament {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 14px;
  letter-spacing: .1em;
}
.preview-media-wrap img,
.preview-media-wrap video {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  background: #111;
}
.preview-actions {
  display: flex; gap: 12px; margin-top: 16px;
}
.preview-actions .btn-outline,
.preview-actions .btn-gold { flex: 1; }

.upload-progress { margin-top: 16px; }
.progress-bar {
  background: var(--cream-dark);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 50px;
  transition: width .3s ease;
  width: 0%;
}
#progressLabel { font-size: .78rem; color: var(--text-muted); text-align: center; display: block; }

.success-banner {
  background: linear-gradient(135deg, var(--gold-pale), var(--champagne));
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold);
  margin-top: 16px;
}
.success-link {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.permission-error {
  text-align: center;
  padding: 32px 20px;
  background: var(--ivory);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-dark);
}
.perm-hint { font-size: .8rem; color: var(--text-muted); margin: 8px 0 20px; }

/* ════════════════════════════════════════════
   UPLOAD PAGE
════════════════════════════════════════════ */
.upload-wrap { max-width: 520px; margin: 0 auto; padding: 0 16px 60px; }

.drop-zone {
  border: 2px dashed var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  background: var(--ivory);
  transition: all var(--transition);
  cursor: pointer;
}
.drop-zone.drag-over {
  border-color: var(--gold);
  background: var(--champagne);
}
.drop-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  color: var(--gold-light);
}
.drop-icon svg { width: 100%; height: 100%; }
.drop-headline {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 4px;
}
.drop-or { font-size: .8rem; color: var(--text-muted); margin: 10px 0; }
.drop-formats { font-size: .72rem; color: var(--text-light); margin-top: 14px; letter-spacing: .06em; }

/* Queue */
.file-queue { margin-top: 20px; }
.queue-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  font-size: .8rem;
  color: var(--text-muted);
}
.clear-btn {
  background: none; border: none;
  color: var(--text-light);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition);
}
.clear-btn:hover { color: #c0392b; }
.queue-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.queue-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--ivory);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color var(--transition);
}
.queue-item.done { border-color: var(--gold-light); }
.queue-item.error { border-color: #e8a0a0; }
.queue-thumb {
  width: 42px; height: 42px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cream-dark);
  flex-shrink: 0;
}
.queue-thumb-video {
  width: 42px; height: 42px;
  background: var(--champagne);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.queue-info { flex: 1; min-width: 0; }
.queue-name {
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.queue-meta { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.queue-status { font-size: .72rem; margin-top: 4px; }
.queue-status.uploading { color: var(--gold); }
.queue-status.done { color: #5a9e5a; }
.queue-status.error { color: #c0392b; }
.queue-remove {
  background: none; border: none;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1;
  padding: 4px;
  transition: color var(--transition);
}
.queue-remove:hover { color: #c0392b; }

.upload-all-btn { width: 100%; margin-top: 18px; }

.overall-progress { margin-top: 20px; }
.progress-bar.large { height: 8px; margin-bottom: 10px; }
#overallLabel { text-align: center; font-size: .82rem; color: var(--text-muted); }

.batch-success {
  text-align: center;
  padding: 40px 24px;
  margin-top: 20px;
}
.success-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 16px;
  animation: sparkle 1s ease;
}
@keyframes sparkle { 0%{transform:scale(0) rotate(-30deg)} 60%{transform:scale(1.2) rotate(10deg)} 100%{transform:scale(1) rotate(0)} }
.batch-success h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 8px;
}
.batch-success p { color: var(--text-muted); font-size: .85rem; margin-bottom: 24px; }
.success-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════
   GALLERY LOCK
════════════════════════════════════════════ */
.lock-wrap {
  min-height: calc(100dvh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px;
}
.lock-card {
  width: 100%; max-width: 380px;
  background: var(--ivory);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 8px 40px var(--shadow);
  animation: fadeUp .6s ease both;
}
.lock-ornament {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.lock-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 10px;
}
.lock-sub {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.lock-error {
  background: #fdf0f0;
  border: 1px solid #f0c0c0;
  color: #c0392b;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: .82rem;
  margin-bottom: 18px;
}
.lock-form { display: flex; flex-direction: column; gap: 14px; }
.code-input {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: .24em;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.code-input:focus { border-color: var(--gold); }
.lock-hint {
  font-size: .74rem;
  color: var(--text-light);
  margin-top: 14px;
  letter-spacing: .06em;
}

/* ════════════════════════════════════════════
   GALLERY
════════════════════════════════════════════ */
.gallery-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: .85rem;
}
.loading-ring {
  width: 36px; height: 36px;
  border: 2px solid var(--cream-dark);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
}
@media (min-width: 520px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
}

.gallery-item {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--cream-dark);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-badge {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .6rem;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .06em;
  pointer-events: none;
}
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,.08); }

.gallery-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
}
.load-more-wrap { text-align: center; padding: 28px 20px; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,16,10,.95);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease both;
}
@keyframes fadeIn { from{opacity:0} }
.lb-inner {
  max-width: min(90vw, 900px);
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lb-inner img { max-height: 80dvh; border-radius: 8px; }
.lb-inner video { max-height: 80dvh; width: 100%; border-radius: 8px; }
.lb-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: .73rem;
  color: rgba(255,255,255,.4);
  justify-content: center;
  margin-bottom: 10px;
}
.lb-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.lb-btn-download, .lb-btn-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 30px;
  font-size: .75rem;
  font-family: var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .22s;
  text-decoration: none;
  font-weight: 400;
}
.lb-btn-download {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.85);
}
.lb-btn-download:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.lb-btn-delete {
  background: transparent;
  border: 1px solid rgba(220, 60, 60, .6);
  color: rgba(220, 60, 60, .9);
}
.lb-btn-delete:hover {
  background: rgba(200, 40, 40, .85);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 14px rgba(200,40,40,.35);
}
.lb-btn-delete:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 1001;
}
.lb-close { top: 16px; right: 16px; font-size: .85rem; }
.lb-prev  { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }

/* ── Slideshow ── */
.slideshow {
  position: fixed; inset: 0; z-index: 1100;
  background: #0a0806;
  display: flex; align-items: center; justify-content: center;
}
.slideshow img {
  max-width: 100%; max-height: 100dvh;
  object-fit: contain;
  animation: ssIn .8s ease both;
}
@keyframes ssIn { from{opacity:0;transform:scale(.97)} }
.ss-close {
  position: fixed; top: 20px; right: 20px;
  background: rgba(255,255,255,.12);
  border: none; color: #fff;
  border-radius: 50px;
  padding: 8px 16px; font-size: .78rem;
  letter-spacing: .1em;
  cursor: pointer;
  z-index: 1101;
}
.ss-progress {
  position: fixed; bottom: 0; left: 0;
  height: 3px; background: var(--gold);
  transition: width .1s linear;
}

/* ════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   MOBILE OVERRIDES
════════════════════════════════════════════ */
@media (max-width: 420px) {
  .hero { padding: 44px 16px 36px; }
  .action-card { padding: 16px 18px; gap: 14px; }
  .card-icon { width: 44px; height: 44px; }
  .card-icon svg { width: 22px; height: 22px; }
}


/* ── Decorative SVG layer ── */
.deco-layer { position:fixed; inset:0; pointer-events:none; overflow:hidden; z-index:0; }
.deco-rose { position:absolute; }
.deco-tl { top:0; left:0; width:200px; height:240px; }
.deco-tr { top:0; right:0; width:200px; height:240px; }
.deco-bl { bottom:0; left:0; width:160px; height:120px; }
.deco-br { bottom:0; right:0; width:160px; height:120px; }
.deco-bird { position:absolute; animation:birdFly 28s linear infinite; opacity:0; }
.bird-1 { top:22%; width:70px; animation-delay:2s; animation-duration:26s; }
.bird-2 { top:42%; width:50px; animation-delay:10s; animation-duration:32s; }
.bird-3 { top:65%; width:60px; animation-delay:19s; animation-duration:29s; }
@keyframes birdFly {
  0% { transform:translateX(-120px); opacity:0; }
  5% { opacity:1; } 92% { opacity:1; }
  100% { transform:translateX(calc(100vw + 120px)); opacity:0; }
}
.hero-divider { display:flex; align-items:center; justify-content:center; gap:12px; margin:20px 0 16px; animation:fadeUp .9s .3s ease both; }
.hero-divider-line { width:60px; height:1px; background:linear-gradient(to right, transparent, var(--gold-light)); }
.hero-divider-line:last-child { background:linear-gradient(to left, transparent, var(--gold-light)); }
.hero-divider-icon { width:18px; height:18px; color:var(--gold); animation:heartPulse 3s ease-in-out infinite; }
@keyframes heartPulse { 0%,100% { transform:scale(1); opacity:.85; } 50% { transform:scale(1.15); opacity:1; } }

.btn-my-memories {
  display:flex; align-items:center; justify-content:center; gap:9px;
  margin:24px auto 0; padding:13px 28px;
  border:1px solid var(--gold-pale); border-radius:40px;
  font-family:var(--font-body); font-size:.82rem; font-weight:400;
  letter-spacing:.1em; text-transform:uppercase;
  color:var(--gold); text-decoration:none; transition:all .25s;
  animation:fadeUp 1s ease .45s both; max-width:280px;
}
.btn-my-memories svg { width:16px; height:16px; flex-shrink:0; }
.btn-my-memories:hover { background:var(--gold); color:#fff; border-color:var(--gold); }

.privacy-note {
  margin-top:20px; text-align:center;
  font-family:var(--font-serif); font-style:italic;
  font-size:.88rem; color:var(--text-muted);
  line-height:1.7; letter-spacing:.02em;
  animation:fadeUp 1s ease .5s both;
}

.signature-wrap { display:flex; flex-direction:column; align-items:center; margin-top:18px; gap:2px; }
.signature-by { font-family:var(--font-serif); font-style:italic; font-size:.72rem; letter-spacing:.22em; color:var(--text-light); text-transform:lowercase; }
.home-signature { display:block; width:160px; opacity:.55; mix-blend-mode:multiply; }
/* ── File input label (mobile-safe) ── */
.choose-files-label {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.file-input-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
