:root {
  --bg: #160a10;
  --bg-2: #24101c;
  --ink: #ffeaf1;
  --muted: #c79aae;
  --rose: #ff5f83;
  --rose-soft: #ff9fb4;
  --gold: #f6d3a8;
  --line: rgba(255, 159, 180, 0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  background: radial-gradient(120% 90% at 50% -10%, var(--bg-2) 0%, var(--bg) 55%, #0e050a 100%);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* soft ambient glow */
.glow {
  position: fixed;
  inset: -20% 0 auto 50%;
  translate: -50% 0;
  width: min(900px, 130vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 95, 131, 0.22) 0%, transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

/* floating hearts / lips */
.drift {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.drift span {
  position: absolute;
  bottom: -8vh;
  font-size: 1rem;
  opacity: 0;
  animation: rise linear infinite;
  filter: saturate(0.8);
}
@keyframes rise {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  12%  { opacity: 0.5; }
  85%  { opacity: 0.28; }
  100% { transform: translateY(-115svh) rotate(24deg); opacity: 0; }
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 4rem) 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 7vw, 3rem);
}

/* ---------- header ---------- */
.head { text-align: center; }

.lip {
  width: 68px;
  margin: 0 auto 1.5rem;
  animation: beat 2.4s ease-in-out infinite;
}
.lip svg { width: 100%; display: block; }
.lip svg {
  filter: drop-shadow(0 6px 20px rgba(255, 95, 131, 0.4));
}
.lip path { fill: var(--rose); }
.lip path:last-child { fill: var(--rose-soft); }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.13); }
  28% { transform: scale(1); }
  42% { transform: scale(1.07); }
  56% { transform: scale(1); }
}

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 9vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 20%, var(--rose-soft) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.isim {
  display: block;
  font-size: 0.56em;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  margin-bottom: 0.15em;
}
.isim:empty { display: none; }

/* ---------- balance card ---------- */
.card {
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
}

.label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.amount {
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.number {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(4.5rem, 24vw, 7rem);
  line-height: 0.9;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(246, 211, 168, 0.28);
  font-variant-numeric: tabular-nums;
}
.number.tick { animation: pop 0.4s ease; }
@keyframes pop {
  50% { transform: scale(1.06); }
}

.unit {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-soft);
}

.pay {
  margin-top: 1.9rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: #2b0713;
  background: linear-gradient(135deg, var(--rose-soft), var(--rose));
  box-shadow: 0 12px 30px -12px rgba(255, 95, 131, 0.75);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pay:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(255, 95, 131, 0.9); }
.pay:active { transform: translateY(0) scale(0.985); }

.toast {
  margin: 0.85rem 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--rose-soft);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.on { opacity: 1; transform: translateY(0); }

/* ---------- footer ---------- */
.foot {
  margin-top: auto;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}
.foot p { margin: 0.35rem 0; }
.sig { letter-spacing: 0.1em; }
.sig span { color: var(--rose); }

/* ---------- kiss rain ---------- */
.kiss {
  position: fixed;
  top: -6vh;
  font-size: 1.6rem;
  pointer-events: none;
  z-index: 5;
  animation: fall linear forwards;
}
@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(112svh) rotate(320deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
