:root {
  --primary: #1a2744;
  --primary-light: #2a3d66;
  --accent: #c5a46d;
  --accent-light: #d4bb8a;
  --accent-glow: rgba(197, 164, 109, 0.4);
  --text: #2c2c2c;
  --text-light: #ffffff;
  --bg-start: #0f1a2e;
  --bg-end: #1a2744;
  --magenta: #a8396b;
  --magenta-glow: rgba(168, 57, 107, 0.25);
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(197, 164, 109, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end), #1a1230, #0d1525);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

/* --- Intro Overlay (Cake + Beer crack open) --- */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  pointer-events: none;
}

.intro-half {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #0a1220, #152038);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1),
              opacity 0.6s ease 0.8s;
  will-change: transform;
}

.intro-left {
  left: 0;
  clip-path: polygon(0 0, 52% 0, 54% 8%, 50% 16%, 53% 24%, 49% 32%, 52% 40%, 48% 48%, 51% 56%, 49% 64%, 52% 72%, 48% 80%, 51% 88%, 50% 100%, 0 100%);
}

.intro-right {
  right: 0;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 48% 100%, 51% 88%, 48% 80%, 52% 72%, 49% 64%, 51% 56%, 48% 48%, 52% 40%, 49% 32%, 53% 24%, 50% 16%, 54% 8%, 52% 0);
}

.intro-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-emoji {
  font-size: clamp(200px, 45vw, 400px);
  display: inline-block;
}

.intro-cake {
  animation: introWobble 0.6s ease 0.8s 3;
}

.intro-beer {
  animation: introWobble 0.6s ease 1s 3;
}

@keyframes introWobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.05); }
}

/* --- Realistic star --- */
.intro-star {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 3;
}

.star-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffe8a0 40%, var(--accent) 100%);
  box-shadow: 0 0 30px 10px rgba(255, 232, 160, 0.9),
              0 0 80px 30px rgba(197, 164, 109, 0.6),
              0 0 140px 60px rgba(197, 164, 109, 0.3);
}

.star-flare {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
}

.star-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
}

.star-ray-h {
  width: 280px;
  height: 3px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 232, 160, 0.1) 15%, rgba(255, 255, 255, 0.9) 45%, #fff 50%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 232, 160, 0.1) 85%, transparent 100%);
}

.star-ray-v {
  width: 3px;
  height: 280px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, transparent 0%, rgba(255, 232, 160, 0.1) 15%, rgba(255, 255, 255, 0.9) 45%, #fff 50%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 232, 160, 0.1) 85%, transparent 100%);
}

.star-ray-d1 {
  width: 200px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 232, 160, 0.05) 20%, rgba(197, 164, 109, 0.7) 48%, var(--accent) 50%, rgba(197, 164, 109, 0.7) 52%, rgba(255, 232, 160, 0.05) 80%, transparent 100%);
}

.star-ray-d2 {
  width: 200px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 232, 160, 0.05) 20%, rgba(197, 164, 109, 0.7) 48%, var(--accent) 50%, rgba(197, 164, 109, 0.7) 52%, rgba(255, 232, 160, 0.05) 80%, transparent 100%);
}

.intro-star-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), rgba(197, 164, 109, 0.3) 40%, transparent 70%);
  opacity: 0;
  z-index: 2;
}

.intro-overlay.cracking .intro-star {
  animation: starAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.intro-overlay.cracking .star-core {
  animation: corePulse 0.8s ease 0.8s 2;
}

.intro-overlay.cracking .star-ray {
  animation: rayGlow 0.8s ease 0.8s 2;
}

.intro-overlay.cracking .intro-star-burst {
  animation: burstGrow 1.2s ease 0.5s forwards;
}

@keyframes starAppear {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(-90deg); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(10deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

@keyframes corePulse {
  0%, 100% {
    box-shadow: 0 0 30px 10px rgba(255, 232, 160, 0.9),
                0 0 80px 30px rgba(197, 164, 109, 0.6),
                0 0 140px 60px rgba(197, 164, 109, 0.3);
  }
  50% {
    box-shadow: 0 0 50px 20px rgba(255, 232, 160, 1),
                0 0 120px 50px rgba(197, 164, 109, 0.8),
                0 0 200px 90px rgba(197, 164, 109, 0.5);
  }
}

@keyframes rayGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 1; filter: brightness(1.8); }
}

@keyframes burstGrow {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); width: 10px; height: 10px; }
  50% { opacity: 0.8; }
  100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); width: 300vw; height: 300vh; }
}

.intro-overlay.split .intro-star {
  animation: starExplode 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-overlay.split .intro-star-burst {
  animation: burstFlash 1.5s ease forwards;
}

@keyframes starExplode {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(2.5) rotate(60deg); }
  60% { opacity: 0.7; transform: translate(-50%, -50%) scale(5) rotate(120deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(8) rotate(180deg); }
}

@keyframes burstFlash {
  0% { opacity: 0.4; }
  20% { opacity: 1; background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 232, 160, 0.3) 40%, transparent 70%); }
  100% { opacity: 0; }
}

.intro-overlay.split .intro-left {
  transform: translateX(-110%);
  opacity: 0;
}

.intro-overlay.split .intro-right {
  transform: translateX(110%);
  opacity: 0;
}

.intro-overlay.split .intro-crack {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.intro-overlay.split .intro-glow {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.intro-overlay.done {
  display: none;
}

/* --- Falling logo --- */
.falling-logo {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  animation: logoFall linear forwards;
  filter: brightness(0) invert(1);
}

@keyframes logoFall {
  0% {
    opacity: 0.9;
    transform: translateY(-60px) rotate(0deg);
  }
  80% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(var(--logo-rot, 720deg));
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.header {
  position: relative;
  z-index: 10;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(-30px);
  animation: slideDown 0.8s ease 5.5s forwards;
}

.header img {
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 20px;
}

.birthday-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 50px 40px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  animation: cardAscend 1s cubic-bezier(0.16, 1, 0.3, 1) 5.8s forwards;
  box-shadow:
    0 0 40px rgba(197, 164, 109, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 80px rgba(168, 57, 107, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.birthday-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(197, 164, 109, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(168, 57, 107, 0.05) 0%, transparent 45%);
  pointer-events: none;
}

@keyframes cardAscend {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cake-emoji {
  font-size: 64px;
  margin-bottom: 20px;
  display: inline-block;
  opacity: 0;
  transform: scale(0) rotate(-20deg);
  animation: emojiPop 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) 6.3s forwards;
}

@keyframes emojiPop {
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.birthday-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(20px);
  animation: textReveal 0.8s ease 6.5s forwards;
}

.birthday-title .name {
  color: var(--accent);
  display: block;
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-top: 4px;
  text-shadow: 0 0 30px var(--accent-glow);
}

.birthday-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 24px 0 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: textReveal 0.8s ease 6.8s forwards;
}

.birthday-greeting {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--accent-light);
  font-style: italic;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: textReveal 0.8s ease 7s forwards;
}

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.surprise-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary);
  border: none;
  padding: 16px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: textReveal 0.8s ease 7.2s forwards;
  letter-spacing: 0.5px;
}

.surprise-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px var(--accent-glow), 0 0 40px var(--magenta-glow);
}

.surprise-btn:active {
  transform: translateY(-1px) !important;
}

.surprise-btn .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  font-size: 24px;
  opacity: 0;
  animation: floatUp linear forwards;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(100vh) rotate(0deg) scale(0.5);
  }
  10% {
    opacity: 0.8;
    transform: translateY(90vh) rotate(20deg) scale(1);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) rotate(360deg) scale(0.8);
  }
}

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.link-generator {
  position: relative;
  z-index: 10;
  max-width: 500px;
  width: 100%;
  margin: 60px auto 40px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(40px);
  animation: textReveal 0.8s ease 7.5s forwards;
}

.link-generator-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 164, 109, 0.15);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 50px rgba(168, 57, 107, 0.04);
}

.link-generator-title {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ─── Generator-Modal: erscheint vor der Seite, wenn kein Name in URL ─── */
.generator-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end), #1a1230, #0d1525);
  display: flex;
  /* flex-start statt center, sonst springt die Karte hoch sobald der Link-Output sie wachsen lässt */
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 6vh, 80px) 24px 60px;
  overflow-y: auto;
  animation: modalBgFade 0.4s ease;
}
.generator-modal.hidden { display: none; }
@keyframes modalBgFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.generator-modal-card {
  max-width: 620px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(197, 164, 109, 0.28);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 60px rgba(168, 57, 107, 0.06);
  animation: modalCardSlideUp 0.55s cubic-bezier(0.16, 0.88, 0.32, 1);
}
@keyframes modalCardSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.generator-modal-header { text-align: center; margin-bottom: 26px; }
.generator-modal-emoji {
  display: inline-block;
  font-size: 3rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 14px rgba(197, 164, 109, 0.45));
}
.generator-modal-title {
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.generator-modal-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 440px;
  margin: 0 auto;
}
.generator-modal-footer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.btn-preview {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 9px 20px;
  border-radius: 10px;
  transition: all 0.2s;
  font-weight: 500;
}
.btn-preview:hover {
  color: var(--accent);
  border-color: rgba(197, 164, 109, 0.4);
}
body.modal-active { overflow: hidden; }

/* Floating Action Button: Modal wieder öffnen, wenn Name in URL aktiv */
.fab-create {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary);
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(197, 164, 109, 0.4);
  z-index: 200;
  transition: all 0.25s;
  display: none;
  align-items: center;
  gap: 8px;
}
.fab-create.visible { display: inline-flex; }
.fab-create:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(197, 164, 109, 0.55);
}

/* Du/Sie-Toggle */
.form-toggle {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(197, 164, 109, 0.18);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 18px;
}
.form-toggle-btn {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.form-toggle-btn:hover { color: var(--accent-light); }
.form-toggle-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(197, 164, 109, 0.3), inset 0 1px 0 rgba(255,255,255,0.25);
}
.form-toggle-icon { font-size: 1rem; }

/* Glückwunschtext-Edit-Block */
.text-edit-block {
  margin: 18px 0 12px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(197, 164, 109, 0.18);
  border-radius: 14px;
}
.text-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.text-edit-header label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.text-edit-icon { font-size: 1rem; }
.text-reset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.74rem;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  font-weight: 500;
}
.text-reset-btn:hover {
  color: var(--accent);
  border-color: rgba(197, 164, 109, 0.5);
  background: rgba(197, 164, 109, 0.08);
}
.text-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-light);
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.55;
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
}
.text-input:focus { border-color: var(--accent); }
.text-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.text-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 7px;
  font-style: italic;
}

/* Großer Generate-Button am Modal-Ende */
.btn-generate-full {
  width: 100%;
  padding: 16px;
  margin-top: 6px;
  font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(197, 164, 109, 0.28);
}
.btn-generate-full:hover {
  box-shadow: 0 10px 30px rgba(197, 164, 109, 0.45);
}

/* Nachträglich-Checkbox */
.late-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 14px;
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.2s ease;
  user-select: none;
}
.late-checkbox:hover {
  border-color: rgba(197, 164, 109, 0.35);
  background: rgba(197, 164, 109, 0.05);
  color: var(--accent-light);
}
.late-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.late-icon { font-size: 1.05rem; }
.late-label { flex: 1; font-weight: 500; }
.late-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}
.late-checkbox:has(input:checked) {
  background: rgba(197, 164, 109, 0.1);
  border-color: rgba(197, 164, 109, 0.5);
  color: var(--accent);
}
.late-checkbox:has(input:checked) .late-hint { color: rgba(197, 164, 109, 0.7); }

.form-fields { animation: formFadeIn 0.25s ease; }
@keyframes formFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.input-group-sie {
  flex-wrap: wrap;
}
.input-group-sie .anrede-select {
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  flex: 0 0 110px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c5a46d'%3E%3Cpath d='M3.204 5l4.796 4.796L12.796 5H3.204z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}
.input-group-sie input[type=text] {
  flex: 1 1 200px;
  min-width: 0;
}
.input-group-sie .btn-generate {
  flex: 0 0 auto;
}
.input-group-sie .anrede-select:focus { border-color: var(--accent); }
.input-group-sie .anrede-select option { background: var(--bg-end); color: var(--text-light); }

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.input-group input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input-group input:focus {
  border-color: var(--accent);
}

.btn-generate {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-generate:hover {
  box-shadow: 0 4px 15px var(--accent-glow);
  transform: translateY(-2px);
}

.link-output {
  display: none;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  word-break: break-all;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.link-output.visible {
  display: block;
  animation: textReveal 0.4s ease forwards;
}

.btn-copy {
  display: none;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-copy.visible {
  display: block;
  animation: textReveal 0.4s ease 0.1s forwards;
  opacity: 0;
}

.btn-copy:hover {
  background: var(--accent);
  color: var(--primary);
}

.btn-copy.copied {
  background: #2ecc71;
  border-color: #2ecc71;
  color: #fff;
}

.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 30px 20px;
  opacity: 0;
  animation: textReveal 0.8s ease 8s forwards;
}

.footer p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer img {
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.2;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .birthday-card {
    padding: 36px 24px;
    border-radius: 20px;
  }

  .cake-emoji {
    font-size: 48px;
  }

  .input-group {
    flex-direction: column;
  }

  .header {
    padding: 16px 20px;
  }
}
