:root {
  --bg: #f7f1e7;
  --bg-2: #efe4d2;
  --paper: #fdfaf4;
  --ink: #3b2a1e;
  --muted: #8b7560;
  --rust: #a9532b;
  --rust-deep: #7a3b1e;
  --ochre: #c38d3b;
  --gold-deep: #8a6424;
  --line: rgba(122, 59, 30, .16);
  --shadow: 0 20px 50px -28px rgba(90, 45, 15, .35);
  --display: "Playfair Display", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; }
svg { display: block; }

/* ================= KONVERT ================= */
.intro {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #fdf9f2 0%, #f1e6d3 55%, #e2cfb0 100%);
  transition: opacity 1.1s ease, visibility 1.1s;
  overflow: hidden;
}
.intro.gone { opacity: 0; visibility: hidden; }

.env-stage {
  display: grid; justify-items: center;
  transition: transform 1.1s cubic-bezier(.4, 0, .2, 1);
}
.intro.gone .env-stage { transform: translateY(-14px) scale(1.06); }

.envelope {
  position: relative; width: min(440px, 82vw); aspect-ratio: 1.42;
  cursor: pointer; outline: none;
  animation: float 5.5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-.5deg); }
  50% { transform: translateY(-10px) rotate(.5deg); }
}
.env-shadow {
  width: 78%; height: 26px; margin-top: 26px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(80, 40, 15, .32) 0%, rgba(80, 40, 15, 0) 70%);
  animation: shadow 5.5s ease-in-out infinite;
}
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.88); opacity: .7; } }

/* Orqa ichki qism — old qismdan biroz kiçik, çetlardan körinmaydi */
.env-back {
  position: absolute; inset: 0 1.5px 1.5px; z-index: 1; border-radius: 13px;
  background: linear-gradient(180deg, #8a4b2c 0%, #7c4126 45%, #6e3820 100%);
}
.env-letter {
  position: absolute; left: 4.5%; right: 4.5%; top: 6%; height: 88%; z-index: 2;
  background: linear-gradient(180deg, #fffcf6, #f8f1e4);
  border-radius: 10px;
  box-shadow: 0 -4px 18px -8px rgba(60, 30, 10, .35);
  display: flex; flex-direction: column; align-items: center; padding-top: 10%;
  transform: translateY(0);
  transition: transform 1.4s cubic-bezier(.22, .85, .25, 1) 1.2s;
}
.env-letter::before {
  content: ""; position: absolute; inset: 7px; border-radius: 7px;
  border: 1px solid rgba(180, 138, 66, .35); pointer-events: none;
}
.intro.opening .env-letter { transform: translateY(-50%); }
.monogram {
  display: flex; align-items: center; gap: .25em;
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(32px, 9.5vw, 54px); line-height: 1;
  background: linear-gradient(120deg, #e1bd72, #b0843a 55%, #8d6420);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.monogram svg { width: .4em; fill: none; stroke: #b48a42; stroke-width: 2; }
.letter-note { margin-top: 8px; font-family: var(--display); font-style: italic; font-size: clamp(11px, 3.2vw, 15px); color: #a8854a; }
.letter-orn { width: 70px; margin-top: 10px; color: #c7a15e; }

.env-front {
  position: absolute; inset: 0; z-index: 3; border-radius: 14px;
  background: linear-gradient(150deg, #b8774e 0%, #9a5a37 55%, #844a2c 100%);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
}
.env-front svg { width: 100%; height: 100%; }
.env-front path { fill: none; stroke: rgba(60, 25, 8, .2); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Qopqoq soyasi */
.flap-shade {
  position: absolute; left: 0; right: 0; top: 0; height: 59%; z-index: 4;
  filter: blur(4px); opacity: .9; transition: opacity .4s ease .4s;
}
.flap-shade i { position: absolute; inset: 0; background: rgba(55, 22, 6, .38); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.intro.opening .flap-shade { opacity: 0; }

/* Qopqoq — ikki tomonli */
.envelope { perspective: 1100px; }
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 57%; z-index: 5;
  transform-origin: 50% 0; transform-style: preserve-3d;
  transform: rotateX(0);
  transition: transform 1s cubic-bezier(.45, 0, .2, 1) .45s, z-index 0s .95s;
}
.env-flap i {
  position: absolute; inset: 0; border-radius: 14px 14px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.flap-out { background: linear-gradient(180deg, #c58a60 0%, #a8673f 100%); }
.flap-in {
  background: linear-gradient(180deg, #8e4e2d 0%, #74391f 100%); transform: rotateX(180deg);
  inset: -3px 0 0 0 !important; /* ilmoq joyida konvert bilan 3px ustma-ust tuşadi — oraliq qolmaydi */
  clip-path: polygon(0 100%, 100% 100%, 50% 0) !important; border-radius: 0 !important;
}
/* Oçilganda yuqori burçaklar tögri bölib, qopqoq bilan uzilişsiz tutaşadi */
.env-front, .env-back { transition: border-radius .35s ease .7s; }
.intro.opening .env-front { border-radius: 2px 2px 14px 14px; }
.intro.opening .env-back { border-radius: 2px 2px 13px 13px; }
.intro.opening .env-flap { transform: rotateX(180deg); z-index: 1; }

/* Muhr */
.seal {
  position: absolute; left: 50%; top: 57%; z-index: 6; width: 21%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 47% 53% 51% 49% / 53% 46% 54% 47%;
  background: radial-gradient(circle at 34% 28%, #fbeab6 0%, #e4bf6c 34%, #c19340 66%, #9b7128 100%);
  box-shadow: 0 5px 12px rgba(60, 30, 5, .4), inset 0 -3px 6px rgba(110, 70, 15, .45), inset 0 2px 4px rgba(255, 250, 225, .7);
  display: grid; place-items: center;
  animation: seal-breathe 3.2s ease-in-out infinite;
}
.seal::before {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f4d891, #d2a855 70%);
  box-shadow: inset 0 1px 3px rgba(110, 70, 15, .55), 0 1px 0 rgba(255, 245, 210, .7);
}
.seal::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  background-size: 250% 100%; animation: seal-shine 4.5s ease-in-out infinite;
}
.seal span {
  position: relative; z-index: 1;
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(12px, 3.4vw, 18px); letter-spacing: .02em; white-space: nowrap;
  color: #8f6826; text-shadow: 0 1px 0 rgba(255, 244, 205, .85), 0 -1px 0 rgba(100, 65, 15, .35);
}
.seal i { font-style: normal; font-size: .55em; margin: 0 .2em; vertical-align: .2em; }
@keyframes seal-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.045); } }
@keyframes seal-shine { 0%, 55% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.envelope:hover .seal { animation-duration: 1.6s; }
.intro.opening .seal { animation: seal-off .75s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes seal-off {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(.9); opacity: 1; }
  55% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
  100% { transform: translate(-50%, -62%) scale(.7) rotate(-12deg); opacity: 0; }
}

.intro-hint {
  position: absolute; bottom: max(9vh, 48px); left: 0; right: 0; text-align: center;
  font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: #a3876a;
  animation: hint 2.6s ease-in-out infinite; transition: opacity .4s;
}
.intro.opening .intro-hint { opacity: 0; animation: none; }
@keyframes hint { 50% { opacity: .35; } }

/* ================= BARGLAR (orqa fon) ================= */
#leaves { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
main { position: relative; z-index: 1; }
.leaf {
  position: absolute; top: -50px; width: var(--s); height: var(--s);
  animation: fall var(--d) linear var(--delay) infinite;
  will-change: transform;
}
.leaf svg { width: 100%; height: 100%; fill: var(--c); animation: sway calc(var(--d) / 3.2) ease-in-out infinite alternate; }
@keyframes fall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0); opacity: 0; }
  10% { opacity: var(--o); }
  90% { opacity: var(--o); }
  100% { transform: translate3d(var(--x), 108vh, 0) rotate(var(--r)); opacity: 0; }
}
@keyframes sway { from { transform: rotateY(0) rotateZ(-18deg); } to { transform: rotateY(150deg) rotateZ(22deg); } }

/* ================= MUSIQA ================= */
.music-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; box-shadow: 0 10px 28px -10px rgba(80, 40, 15, .4), 0 0 0 1px rgba(122, 59, 30, .06);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .5s, transform .5s;
}
.music-btn.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.music-btn[hidden] { display: none; }
.music-btn svg { width: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.music-btn .mute { display: none; }
.music-btn:not(.playing) .wave { display: none; }
.music-btn:not(.playing) .mute { display: block; }
.music-btn.playing::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(169, 83, 43, .35); animation: ring 2.2s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; padding: 90px 20px 120px; overflow: hidden;
}
.sprig { position: absolute; width: min(42vw, 270px); height: auto; }
.sprig-tl { left: -6px; top: -6px; transform-origin: 0 0; animation: sway-tl 9s ease-in-out infinite; }
.sprig-br { right: -6px; bottom: -6px; transform: rotate(180deg); animation: sway-br 10s ease-in-out infinite; }
@keyframes sway-tl { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(2.2deg); } }
@keyframes sway-br { 0%, 100% { transform: rotate(180deg); } 50% { transform: rotate(177.8deg); } }

.hero-content { position: relative; z-index: 2; max-width: 100%; }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .36em; text-transform: uppercase; color: #a98a68; }
.hero-title {
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(46px, 17vw, 132px); line-height: 1.05; color: var(--rust-deep);
  margin: 22px 0 18px; letter-spacing: -.01em;
}
.orn { width: 96px; height: auto; margin: 0 auto; color: #b58a5c; }
.hero-sub { margin-top: 26px; font-size: clamp(15px, 4vw, 18px); color: #6b5442; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px; text-decoration: none;
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: #a98a68;
}
.mouse { display: block; width: 24px; height: 38px; border: 1.4px solid #b59a7c; border-radius: 14px; position: relative; }
.mouse b { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #a98a68; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* Hero matnlari konvert ochilgandan keyin chiqadi */
.rise { opacity: 0; transform: translateY(22px); }
body.ready .rise { animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) forwards; }
body.ready .scroll-hint.rise { animation-name: rise-x; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-x { from { opacity: 0; transform: translate(-50%, 22px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ================= BÖLIMLAR ================= */
.section { max-width: 640px; margin: 0 auto; padding: 84px 20px; text-align: center; }
.title {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(36px, 9vw, 54px); line-height: 1.1; color: var(--rust-deep);
  margin: 14px 0 14px;
}
.section .orn { margin-bottom: 30px; }
.lead { color: #6b5442; font-size: 16px; max-width: 540px; margin: 0 auto 30px; }

/* Juftlik */
.couple { padding-top: 70px; }
.couple-names { display: grid; margin: 18px 0 34px; font-weight: 400; line-height: 1; }
.couple-names span { font-family: var(--script); font-size: clamp(50px, 17vw, 112px); color: var(--rust-deep); }
.couple-names em { font-family: var(--display); font-style: italic; font-size: clamp(26px, 6vw, 38px); color: var(--ochre); margin: 2px 0 6px; }
.date-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 420px; margin: 0 auto; }
.dr-side {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.dr-mid { display: grid; justify-items: center; }
.dr-mid b { font-family: var(--display); font-weight: 500; font-size: 64px; line-height: 1; color: var(--rust); }
.dr-mid small { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Taklif matni */
.letter { font-size: 17px; color: #5e4838; max-width: 520px; margin: 0 auto; }
.letter p + p { margin-top: 16px; }
.letter b { font-family: var(--display); font-style: italic; font-weight: 600; color: var(--rust-deep); font-size: 1.08em; }
.bismillah { font-family: serif; font-size: 24px; color: var(--gold-deep); margin-bottom: 20px !important; }
.sign { margin-top: 26px !important; font-family: var(--display); font-style: italic; color: var(--muted); }
.sign span { display: block; font-family: var(--script); font-style: normal; font-size: 38px; color: var(--rust); line-height: 1.3; }

/* Sanoq */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 460px; margin: 0 auto 46px; }
.countdown div { padding: 6px 0; position: relative; }
.countdown div + div::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.countdown b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(36px, 10vw, 52px); line-height: 1.1; color: var(--rust-deep); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

.calendar { max-width: 330px; margin: 0 auto; padding: 24px 22px 20px; border-radius: 20px; border: 1px solid var(--line); background: rgba(253, 250, 244, .18); }
.cal-month { font-family: var(--display); font-style: italic; font-size: 26px; color: var(--rust-deep); margin-bottom: 12px; }
.cal-month span { color: var(--ochre); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; isolation: isolate; }
.cal-head i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #a98a68; padding-bottom: 6px; }
.cal-grid span { aspect-ratio: 1; display: grid; place-items: center; font-size: 14px; color: #6b5442; position: relative; }
.cal-grid span.day { color: #fff; font-weight: 600; }
.cal-grid span.day::before {
  content: ""; position: absolute; inset: -5px; z-index: -1; background: var(--rust);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 90s-38-22-38-50a20 20 0 0 1 38-9 20 20 0 0 1 38 9c0 28-38 50-38 50z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 90s-38-22-38-50a20 20 0 0 1 38-9 20 20 0 0 1 38 9c0 28-38 50-38 50z'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: beat 1.6s ease-in-out infinite;
}
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }

/* Manzil */
.venue-name { font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(46px, 12vw, 64px); line-height: 1; color: var(--rust-deep); }
.venue-type { font-size: 12px; letter-spacing: .36em; text-transform: uppercase; color: var(--ochre); margin-top: 8px; }
.venue-meta { color: #6b5442; font-size: 15px; margin: 14px 0 26px; line-height: 1.7; }
.venue-meta span { color: var(--rust); font-weight: 500; }
.map-wrap { border-radius: 20px; overflow: hidden; height: 270px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: sepia(.3) saturate(1.05); }
.map-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* Tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 14px 20px; font-weight: 500; font-size: 15px; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.btn-line { border: 1px solid rgba(122, 59, 30, .3); color: var(--rust-deep); background: rgba(253, 250, 244, .8); }
.btn-line:hover { background: var(--rust-deep); color: #fff; }
.btn-fill { width: 100%; max-width: 440px; color: #fff; background: var(--rust-deep); box-shadow: 0 14px 30px -14px rgba(122, 59, 30, .8); font-size: 16px; padding: 16px 20px; }
.btn-fill:hover { background: var(--rust); }

/* Töyona kartasi */
.card-wrap { perspective: 1000px; max-width: 420px; margin: 0 auto 24px; }
.bank-card {
  --rx: 0deg; --ry: 0deg; --mx: 30%; --my: 20%; --lift: 0px;
  position: relative; aspect-ratio: 1.586; padding: 7% 8%;
  border-radius: 22px; overflow: hidden; text-align: left; cursor: pointer;
  background:
    radial-gradient(130% 120% at 0% 0%, #9a5532 0%, #6e331b 42%, #3f190b 100%);
  color: #f6e7c8;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s;
  box-shadow: 0 24px 46px -22px rgba(70, 25, 5, .75), 0 2px 0 rgba(255, 220, 160, .08) inset;
  -webkit-tap-highlight-color: transparent;
}
.bank-card.tilting { transition: transform .08s linear, box-shadow .4s; }
.bank-card:hover, .bank-card.tilting { --lift: -6px; box-shadow: 0 40px 60px -26px rgba(70, 25, 5, .8), 0 2px 0 rgba(255, 220, 160, .08) inset; }
.bank-card::before {
  content: ""; position: absolute; inset: 9px; border-radius: 15px; pointer-events: none;
  border: 1px solid rgba(231, 199, 122, .28);
}
.bc-sprig { position: absolute; right: -40px; bottom: -50px; width: 62%; color: rgba(231, 199, 122, .22); transform: rotate(180deg); pointer-events: none; }
.bc-shine {
  position: absolute; inset: -60%; pointer-events: none;
  background: linear-gradient(115deg, transparent 44%, rgba(255, 228, 170, .16) 50%, transparent 56%);
  animation: shine 7s ease-in-out infinite;
}
@keyframes shine { 0% { transform: translateX(-55%); } 55%, 100% { transform: translateX(55%); } }
.bc-glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 226, 170, .32), transparent 45%);
  mix-blend-mode: screen;
}
.bank-card:hover .bc-glare, .bank-card.tilting .bc-glare { opacity: 1; }

.bc-top { display: flex; align-items: center; justify-content: space-between; position: relative; transform: translateZ(20px); }
.chip {
  width: 44px; height: 33px; border-radius: 7px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f7e3a8 0%, #d8b261 45%, #b58a3c 100%);
  box-shadow: inset 0 0 0 1px rgba(110, 70, 20, .35);
}
.chip::before, .chip::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(110, 70, 20, .45); }
.chip::before { top: 11px; } .chip::after { top: 21px; }
.chip i { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(110, 70, 20, .45); }
.nfc { width: 22px; fill: none; stroke: #e2c07a; stroke-width: 1.7; stroke-linecap: round; transform: rotate(-90deg); opacity: .85; }
.bc-badge {
  font-family: var(--display); font-style: italic; font-size: 14px; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(231, 199, 122, .45); color: #e8c983;
}
.bc-num {
  position: relative; transform: translateZ(30px);
  font-size: clamp(19px, 5.8vw, 27px); font-weight: 500; letter-spacing: .11em; white-space: nowrap;
  text-align: center; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff3d6 0%, #e9c983 55%, #c8994a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35));
}
.bc-bottom { position: relative; display: flex; justify-content: space-between; align-items: flex-end; transform: translateZ(20px); }
.bc-bottom small { display: block; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 231, 200, .6); margin-bottom: 3px; }
.bc-bottom b { font-size: clamp(12px, 3.6vw, 15px); font-weight: 500; letter-spacing: .08em; color: #f6e7c8; }
.humo {
  font-weight: 700; font-style: italic; font-size: clamp(18px, 5vw, 23px); letter-spacing: .04em;
  background: linear-gradient(180deg, #fff0cc, #d7ad5e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bank-card.copied { animation: copied .5s ease; }
@keyframes copied { 40% { box-shadow: 0 0 0 6px rgba(195, 141, 59, .35), 0 30px 50px -24px rgba(70, 25, 5, .8); } }

/* Tilaklar & RSVP */
.wish-cta {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; text-decoration: none;
  padding: 18px 22px; border-radius: 22px; background: rgba(253, 250, 244, .85);
  border: 1px solid rgba(122, 59, 30, .28); transition: transform .2s, box-shadow .2s;
}
.wish-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.wc-icon { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(195, 141, 59, .14); }
.wc-icon svg { width: 24px; fill: none; stroke: var(--rust-deep); stroke-width: 1.5; stroke-linejoin: round; }
.wc-text { flex: 1; }
.wc-text b { display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 22px; color: var(--rust-deep); line-height: 1.2; }
.wc-text small { color: var(--muted); font-size: 13.5px; }
.wc-arrow { font-size: 24px; color: var(--ochre); transition: transform .2s; }
.wish-cta:hover .wc-arrow { transform: translateX(4px); }

.rsvp { margin-top: 16px; padding: 22px; border-radius: 22px; background: rgba(253, 250, 244, .85); border: 1px solid var(--line); }
.rsvp-title { font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #a98a68; margin-bottom: 14px; }
.rsvp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rsvp-btns[hidden] { display: none; }
.rsvp-btn { padding: 15px 6px; border-radius: 999px; border: 1px solid rgba(122, 59, 30, .25); background: #fff; font-weight: 500; font-size: 14px; white-space: nowrap; transition: all .2s; }
.rsvp-btn:hover { border-color: var(--rust); color: var(--rust-deep); }
.rsvp-done { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--rust-deep); }

/* Footer */
.footer { text-align: center; padding: 50px 20px 120px; }
.foot-text { margin-top: 18px; color: var(--muted); font-family: var(--display); font-style: italic; font-size: 18px; }
.foot-names { font-family: var(--script); font-size: 50px; color: var(--rust-deep); line-height: 1.3; }
.foot-names span { font-family: var(--display); font-style: italic; font-size: .5em; color: var(--ochre); }
.foot-date { letter-spacing: .34em; font-size: 12px; color: #a98a68; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(50, 25, 10, .45); backdrop-filter: blur(4px); animation: fade .3s; }
.modal-card {
  position: relative; width: 100%; max-width: 500px; background: var(--paper);
  border-radius: 26px 26px 0 0; padding: 30px 22px calc(26px + env(safe-area-inset-bottom));
  display: grid; gap: 14px; animation: up .35s cubic-bezier(.2, .9, .3, 1);
}
@media (min-width: 640px) { .modal { place-items: center; } .modal-card { border-radius: 26px; } }
.modal-card h3 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 28px; color: var(--rust-deep); text-align: center; }
.modal-x { position: absolute; right: 14px; top: 10px; font-size: 30px; color: var(--muted); width: 40px; height: 40px; }
.modal label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.modal label[hidden] { display: none; }
.modal input, .modal select {
  font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); outline: none;
}
.modal input:focus, .modal select:focus { border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(195, 141, 59, .2); }
.modal .btn-fill { max-width: none; }
.form-msg { text-align: center; font-size: 14px; min-height: 1em; color: var(--rust); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: 86px; z-index: 95; transform: translate(-50%, 20px);
  background: var(--rust-deep); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .35s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Paydo böliş */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 380px) {
  .bank-card { padding: 18px; }
  .date-row { gap: 10px; }
  .dr-side { font-size: 10px; letter-spacing: .16em; }
  .rsvp-btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .leaf, .envelope, .seal, .sprig, .bc-shine { animation: none !important; }
  .reveal, .rise { transition: none; opacity: 1; transform: none; }
}
