/* ═══ THEMES ═══ */
:root {
  --gold: #c9a84c;
  --gold-light: #f0d080;
  --cream: #fdf6e3;
  --rose: #c17b5a;
  --bg1: #0d1b2a;
  --bg2: #1a3a4a;
  --bg3: #1a2a1a;
  --card-bg: rgba(13, 27, 42, 0.78);
  --card-border: rgba(201, 168, 76, 0.3);
  --heading: #c9a84c;
  --text: #fdf6e3;
  --sub: rgba(240, 208, 128, 0.6);
  --p1: #c9a84c;
  --p2: #c17b5a;
}

body.theme-rose {
  --bg1: #1a0a0f;
  --bg2: #3a1520;
  --bg3: #2a0d15;
  --card-bg: rgba(26, 10, 15, 0.82);
  --card-border: rgba(220, 120, 140, 0.35);
  --heading: #e8a0b0;
  --text: #fff0f3;
  --sub: rgba(220, 160, 175, 0.65);
  --gold: #e8a0b0;
  --gold-light: #ffb3c6;
  --p1: #e8a0b0;
  --p2: #c96080;
}

body.theme-emerald {
  --bg1: #071810;
  --bg2: #0d3020;
  --bg3: #0a2015;
  --card-bg: rgba(7, 24, 16, 0.82);
  --card-border: rgba(80, 200, 120, 0.3);
  --heading: #70d4a0;
  --text: #f0fff5;
  --sub: rgba(100, 210, 150, 0.6);
  --gold: #70d4a0;
  --gold-light: #a0e8c0;
  --p1: #70d4a0;
  --p2: #c9a84c;
}

body.theme-purple {
  --bg1: #0e0a1c;
  --bg2: #1e1040;
  --bg3: #160d30;
  --card-bg: rgba(14, 10, 28, 0.84);
  --card-border: rgba(160, 120, 240, 0.35);
  --heading: #b090f0;
  --text: #f5f0ff;
  --sub: rgba(180, 150, 255, 0.6);
  --gold: #b090f0;
  --gold-light: #d4b8ff;
  --p1: #b090f0;
  --p2: #c9a84c;
}

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

body {
  background: var(--bg1);
  font-family: "Crimson Pro", serif;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.6s;
}

/* ═══ STARS ═══ */
#stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-light);
  animation: twinkle var(--d, 3s) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: var(--o, 0.7);
    transform: scale(1.6);
  }
}

.shoot {
  position: absolute;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold-light),
    transparent
  );
  animation: shootAnim var(--dur, 3s) linear infinite;
  opacity: 0;
}

@keyframes shootAnim {
  0% {
    transform: translateX(-200px) translateY(0) rotate(var(--a, -25deg));
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  85% {
    opacity: 0.2;
  }

  100% {
    transform: translateX(120vw) translateY(var(--dy, 100px))
      rotate(var(--a, -25deg));
    opacity: 0;
  }
}

/* ═══ SETUP ═══ */
#setup {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

#setup::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, var(--bg2) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, var(--bg3) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.top-banner {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeDown 0.8s ease both;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }

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

.banner-arabic {
  font-family: "Amiri", serif;
  font-size: 2.8rem;
  color: var(--heading);
  text-shadow: 0 0 40px currentColor;
  line-height: 1;
}

.banner-sub {
  font-family: "Playfair Display", serif;
  font-size: 0.82rem;
  color: var(--sub);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.theme-bar {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.4rem;
  animation: fadeDown 0.8s 0.1s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.tdot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.tdot:hover {
  transform: scale(1.2);
}

.tdot.active {
  border-color: #fff;
  transform: scale(1.15);
}

.tdot[data-t="night"] {
  background: radial-gradient(circle at 40% 40%, #2a7090, #0d1b2a);
}

.tdot[data-t="rose"] {
  background: radial-gradient(circle at 40% 40%, #c96080, #1a0a0f);
}

.tdot[data-t="emerald"] {
  background: radial-gradient(circle at 40% 40%, #50b488, #071810);
}

.tdot[data-t="purple"] {
  background: radial-gradient(circle at 40% 40%, #8060c0, #0e0a1c);
}

.setup-card {
  background: rgba(255, 245, 220, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  padding: 2.8rem 3.2rem;
  max-width: 520px;
  width: 100%;
  backdrop-filter: blur(16px);
  position: relative;
  animation: fadeUp 0.8s 0.15s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.4);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

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

.setup-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--heading);
  border-left: 2px solid var(--heading);
  border-radius: 2px 0 0 0;
}

.setup-card::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid var(--heading);
  border-right: 2px solid var(--heading);
  border-radius: 0 0 2px 0;
}

.card-title {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  color: var(--sub);
  text-align: center;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.1rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--card-border),
    transparent
  );
}

.divider span {
  color: var(--heading);
  font-size: 0.9rem;
  opacity: 0.7;
}

label {
  display: block;
  color: var(--sub);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  margin-top: 1.2rem;
}

input,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  color: var(--text);
  font-family: "Crimson Pro", serif;
  font-size: 1.05rem;
  padding: 0.72rem 1rem;
  outline: none;
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
  resize: none;
}

input:focus,
textarea:focus {
  border-color: var(--heading);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

textarea {
  height: 95px;
}

input.error {
  border-color: #e05555 !important;
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-7px);
  }

  75% {
    transform: translateX(7px);
  }
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chip {
  font-size: 0.71rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: var(--sub);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  font-family: "Crimson Pro", serif;
}

.chip:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--heading);
  border-color: var(--heading);
}

.btn {
  width: 100%;
  margin-top: 1.8rem;
  padding: 1.05rem;
  background: linear-gradient(135deg, var(--heading) 0%, var(--rose) 100%);
  border: none;
  border-radius: 2px;
  color: var(--bg1);
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(201, 168, 76, 0.3);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
}

/* ═══ LINK BOX (appears after generating) ═══ */
#linkBox {
  display: none;
  margin-top: 1.6rem;
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid var(--card-border);
  border-radius: 2px;
  padding: 1.2rem 1.4rem;
  animation: fadeUp 0.5s ease both;
}

.link-label {
  font-size: 0.72rem;
  color: var(--sub);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-label::before {
  content: "✦";
  color: var(--heading);
}

.link-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.link-url {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  color: rgba(253, 246, 227, 0.65);
  font-family: "Crimson Pro", serif;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
  outline: none;
  user-select: all;
}

.link-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.lbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  font-family: "Crimson Pro", serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--sub);
}

.lbtn:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--heading);
  color: var(--heading);
}

.lbtn.wa {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  font-weight: 600;
}

.lbtn.wa:hover {
  background: #1ebe5d;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.lbtn.copy-lbtn {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--heading);
  color: var(--heading);
}

.lbtn.copy-lbtn:hover {
  background: rgba(201, 168, 76, 0.22);
}

.new-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  color: var(--sub);
  font-family: "Crimson Pro", serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}

.new-btn:hover {
  border-color: var(--heading);
  color: var(--heading);
}

.link-note {
  font-size: 0.7rem;
  color: var(--sub);
  opacity: 0.6;
  margin-top: 0.6rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(13, 27, 42, 0.3);
  border-top-color: var(--bg1);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}

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

/* ═══ GREETING PAGE ═══ */
#greeting {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem 7rem;
  z-index: 10;
}

#greeting::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 15%, var(--bg2) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 85%, var(--bg3) 0%, transparent 50%),
    var(--bg1);
  z-index: -2;
}

#greeting::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M50 0L100 25L100 75L50 100L0 75L0 25Z' fill='none' stroke='%23C9A84C' stroke-width='.4' stroke-opacity='.06'/%3E%3Ccircle cx='50' cy='50' r='22' fill='none' stroke='%23C9A84C' stroke-width='.4' stroke-opacity='.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

.moon {
  position: fixed;
  top: 4%;
  right: 6%;
  width: 100px;
  height: 100px;
  animation: moonFloat 7s ease-in-out infinite;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.4));
}

@keyframes moonFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }

  50% {
    transform: translateY(-14px) rotate(4deg);
  }
}

.lantern {
  position: fixed;
  animation: sway var(--s, 4s) ease-in-out infinite;
  transform-origin: top center;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.3));
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(calc(var(--lean, -1) * 7deg));
  }

  50% {
    transform: rotate(calc(var(--lean, -1) * -7deg));
  }
}

.petal {
  position: fixed;
  animation: fall linear infinite;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

@keyframes fall {
  0% {
    transform: translateY(-40px) rotate(0deg) translateX(0);
    opacity: 0;
  }

  8% {
    opacity: 0.7;
  }

  88% {
    opacity: 0.25;
  }

  100% {
    transform: translateY(105vh) rotate(540deg) translateX(var(--drift, 40px));
    opacity: 0;
  }
}

/* Card */
.greeting-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  padding: 4rem 4.5rem 3.5rem;
  max-width: 660px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(24px);
  position: relative;
  z-index: 5;
  animation: cardIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(40px);
  }

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

.corner {
  position: absolute;
  color: var(--heading);
  font-size: 1.6rem;
  opacity: 0.42;
  line-height: 1;
}

.corner.tl {
  top: 12px;
  left: 14px;
}

.corner.tr {
  top: 12px;
  right: 14px;
  transform: scaleX(-1);
}

.corner.bl {
  bottom: 12px;
  left: 14px;
  transform: scaleY(-1);
}

.corner.br {
  bottom: 12px;
  right: 14px;
  transform: scale(-1, -1);
}

.sideline {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 1px;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--card-border),
    transparent
  );
}

.sideline.r {
  left: auto;
  right: 16px;
}

.arabic-h {
  font-family: "Amiri", serif;
  font-size: 3.8rem;
  color: var(--heading);
  line-height: 1.1;
  text-shadow: 0 0 50px currentColor;
  animation: glow 3.5s ease-in-out infinite;
  margin-bottom: 0.2rem;
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 30px currentColor;
  }

  50% {
    text-shadow:
      0 0 70px currentColor,
      0 0 120px rgba(201, 168, 76, 0.15);
  }
}

.translit {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--sub);
  letter-spacing: 0.25em;
}

.eid-lbl {
  font-family: "Playfair Display", serif;
  font-size: 0.78rem;
  color: var(--sub);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  margin-bottom: 1.4rem;
  opacity: 0.7;
}

.to-lbl {
  font-size: 0.77rem;
  color: var(--sub);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.25rem;
}

.recip {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.15;
  animation: nameIn 1.4s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes nameIn {
  from {
    opacity: 0;
    transform: translateY(18px);
    letter-spacing: 0.3em;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: normal;
  }
}

.recip::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--heading),
    transparent
  );
  margin: 0.55rem auto 0;
}

.msg {
  font-size: 1.12rem;
  color: rgba(253, 246, 227, 0.82);
  line-height: 1.95;
  margin: 1.5rem 0 0;
  font-weight: 300;
  font-style: italic;
  animation: fadeUp 1s 0.55s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.dua {
  font-family: "Amiri", serif;
  font-size: 1.5rem;
  color: var(--heading);
  margin-top: 1.8rem;
  animation: fadeUp 1s 0.75s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.dua-t {
  font-size: 0.77rem;
  color: var(--sub);
  letter-spacing: 0.1em;
  margin-top: 0.35rem;
  opacity: 0.5;
  animation: fadeUp 1s 0.85s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.from-l {
  font-family: "Amiri", serif;
  font-size: 1.05rem;
  color: var(--sub);
  margin-top: 1.5rem;
  opacity: 0.6;
  animation: fadeUp 1s 0.95s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.from-l span {
  font-style: italic;
  color: var(--heading);
  opacity: 1;
}

/* Card action buttons (on greeting page) */
.card-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeUp 1s 1.1s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.cabtn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.3rem;
  border-radius: 2px;
  font-family: "Crimson Pro", serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--sub);
}

.cabtn:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--heading);
  color: var(--heading);
}

.cabtn.wa {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  font-weight: 600;
}

.cabtn.wa:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(37, 211, 102, 0.3);
}

/* Countdown */
.cdbar {
  animation: fadeUp 1s 1.2s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cd-lbl {
  font-size: 0.7rem;
  color: var(--sub);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  opacity: 0.6;
}

.cd-lbl.eid-now {
  font-size: 1.1rem;
  color: var(--heading);
  opacity: 1;
  letter-spacing: 0.15em;
}

.cd-boxes {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  align-items: flex-start;
}

.cd-box {
  text-align: center;
  min-width: 52px;
}

.cd-num {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  color: var(--heading);
  line-height: 1;
  font-weight: 700;
}

.cd-unit {
  font-size: 0.62rem;
  color: var(--sub);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 0.15rem;
}

.cd-sep {
  font-size: 1.4rem;
  color: var(--heading);
  opacity: 0.3;
  margin-top: 3px;
}

#fwCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

#toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(13, 27, 42, 0.96);
  border: 1px solid var(--heading);
  color: var(--heading);
  font-family: "Crimson Pro", serif;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  padding: 0.65rem 1.7rem;
  border-radius: 2px;
  opacity: 0;
  transition: all 0.35s;
  z-index: 100;
  pointer-events: none;
  white-space: nowrap;
}

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

/* Receiver badge */
.receiver-badge {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 27, 42, 0.9);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 0.4rem 1.2rem;
  font-size: 0.75rem;
  color: var(--sub);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 20;
  backdrop-filter: blur(10px);
  animation: fadeDown 0.8s ease both;
}

@media print {
  #fwCanvas,
  .card-actions,
  #toast,
  .moon,
  .lantern,
  #stars,
  #petals,
  .receiver-badge {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  #greeting {
    background: #fff !important;
    padding: 1rem !important;
  }

  .greeting-card {
    background: #fff !important;
    border: 2px solid #c9a84c !important;
    box-shadow: none !important;
    max-width: 100% !important;
  }

  .arabic-h,
  .recip {
    color: #c9a84c !important;
    text-shadow: none !important;
  }

  .msg,
  .from-l {
    color: #222 !important;
  }
}

@media (max-width: 600px) {
  .setup-card,
  .greeting-card {
    padding: 2rem 1.4rem;
  }

  .arabic-h {
    font-size: 2.5rem;
  }

  .recip {
    font-size: 2.1rem;
  }

  .moon {
    width: 65px;
    height: 65px;
  }

  .cd-num {
    font-size: 1.5rem;
  }

  .cd-boxes {
    gap: 0.5rem;
  }
}
