:root {
  --maroon-950: #3f001b;
  --maroon-900: #570424;
  --maroon-800: #751033;
  --maroon-700: #921a43;
  --rose-500: #ca4169;
  --rose-300: #ef8ba4;
  --gold-700: #a86b25;
  --gold-500: #d9a557;
  --gold-300: #f1d99a;
  --gold-100: #fff4cd;
  --paper: #fffaf5;
  --paper-2: #fff2eb;
  --ink: #4b1730;
  --muted: #806171;
  --line: rgba(112, 25, 61, 0.15);
  --shadow: 0 28px 80px rgba(61, 0, 24, 0.26);
  font-family: "Geeza Pro", "SF Arabic", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--maroon-800);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: #fff;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 143, 162, 0.74), transparent 26rem),
    radial-gradient(circle at 84% 40%, rgba(231, 72, 116, 0.55), transparent 30rem),
    linear-gradient(145deg, #9e1b49 0%, #720b35 48%, #4e0424 100%);
  overflow-x: hidden;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

[hidden], .screen--hidden { display: none !important; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(5px);
  animation: breathe 10s ease-in-out infinite alternate;
}

.ambient__glow--one {
  width: 38rem;
  height: 38rem;
  left: -24rem;
  top: -14rem;
  background: radial-gradient(circle, rgba(255, 180, 188, 0.55), transparent 68%);
}

.ambient__glow--two {
  width: 40rem;
  height: 40rem;
  right: -27rem;
  bottom: -19rem;
  background: radial-gradient(circle, rgba(244, 94, 133, 0.4), transparent 68%);
  animation-delay: -4s;
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.ambient__line {
  position: absolute;
  height: 1px;
  width: 100vw;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 169, 0.46), transparent);
  transform-origin: center;
}

.ambient__line--one { top: 24%; left: -38%; transform: rotate(-28deg); }
.ambient__line--two { bottom: 14%; right: -36%; transform: rotate(31deg); }

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  animation: screenIn 700ms cubic-bezier(.2,.75,.2,1) both;
}

.gate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: center;
  direction: ltr;
}

.brand__copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand__copy strong { font-size: 19px; font-weight: 600; letter-spacing: .4px; }
.brand__copy small { margin-top: 5px; font: 500 7px/1 Arial, sans-serif; letter-spacing: 1.2px; opacity: .72; }

.brand__mark {
  width: 37px;
  height: 37px;
  position: relative;
  display: block;
  animation: slowSpin 24s linear infinite;
}

.brand__mark i {
  position: absolute;
  left: 15px;
  top: 2px;
  width: 7px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 6px 6px 1px 1px;
  transform-origin: 3.5px 16.5px;
}

.brand__mark i:nth-child(2) { transform: rotate(45deg); }
.brand__mark i:nth-child(3) { transform: rotate(90deg); }
.brand__mark i:nth-child(4) { transform: rotate(135deg); }
.brand__mark i:nth-child(5) { transform: rotate(180deg); }
.brand__mark i:nth-child(6) { transform: rotate(225deg); }
.brand__mark i:nth-child(7) { transform: rotate(270deg); }
.brand__mark i:nth-child(8) { transform: rotate(315deg); }

.brand--light { color: rgba(255,255,255,.94); }
.brand--compact { margin-inline-start: auto; transform: scale(.82); transform-origin: right center; }
.brand--compact .brand__mark { display: none; }

.gate__content { margin-block: auto; padding-block: 34px; }
.eyebrow { margin: 0 0 19px; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: rgba(255,255,255,.68); }
.eyebrow--maroon { color: var(--maroon-700); }

.diamonds { display: flex; align-items: center; justify-content: center; gap: 18px; }
.diamonds i, .header-diamonds i, .processing__mark i, .success-seal__diamonds i {
  display: block;
  width: 13px;
  height: 13px;
  background: linear-gradient(135deg, #fff4cd 0%, #e9bd6a 50%, #b9762f 100%);
  transform: rotate(45deg);
  box-shadow: 0 8px 14px rgba(53, 0, 19, .28), inset 1px 1px 0 rgba(255,255,255,.7);
}

.diamonds--hero i { animation: diamondFloat 2.7s ease-in-out infinite; }
.diamonds--hero i:nth-child(2) { animation-delay: .22s; }
.diamonds--hero i:nth-child(3) { animation-delay: .44s; }

.event-title {
  margin: 24px 0 5px;
  font-family: "Arabic Typesetting", "Geeza Pro", serif;
  font-size: clamp(55px, 15vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -2px;
  color: transparent;
  background: linear-gradient(180deg, #fff2c1 0%, #e4b15a 52%, #f2d791 76%, #a96922 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 10px 12px rgba(48,0,18,.33));
}

.event-slogan { margin: 15px 0 0; font-size: 19px; font-weight: 500; letter-spacing: .4px; }
.fine-rule { display: block; width: 42px; height: 1px; margin: 25px auto; background: linear-gradient(90deg, transparent, var(--gold-300), transparent); }
.event-intro { margin: 0; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.85; }

.gate__bottom { display: grid; gap: 23px; }
.primary-button {
  min-height: 58px;
  width: 100%;
  border: 0;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.primary-button:active { transform: scale(.985); }
.primary-button:disabled { opacity: .72; cursor: wait; }
.primary-button--gold { color: var(--maroon-950); background: linear-gradient(135deg, #fff1bf, #d8a14d 58%, #f1d794); box-shadow: 0 16px 40px rgba(58,0,21,.25), inset 0 1px 0 #fff9df; }
.primary-button--maroon { color: #fff; background: linear-gradient(135deg, var(--maroon-700), #b82d59); box-shadow: 0 16px 34px rgba(107,12,48,.25), inset 0 1px 0 rgba(255,255,255,.18); }
.button-arrow { font-size: 24px; font-weight: 400; transition: transform .25s ease; }
.primary-button:hover .button-arrow { transform: translateX(-4px); }

.event-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 11px; letter-spacing: .3px; }
.event-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .45; }
.event-meta--light { color: rgba(255,255,255,.67); }

.compact-header { min-height: 54px; display: flex; align-items: center; margin-bottom: 19px; }
.icon-button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); cursor: pointer; font-size: 22px; }
.header-diamonds { display: flex; gap: 6px; margin-inline-start: 8px; }
.header-diamonds i { width: 6px; height: 6px; box-shadow: none; }

.light-card {
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(239,139,164,.18), transparent 17rem),
    linear-gradient(145deg, rgba(255,250,245,.97), rgba(255,241,234,.95));
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 30px;
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px);
}

.form-card { padding: 31px 24px 25px; }
.form-card h2, .success-card h2 { margin: 0; font-family: "Arabic Typesetting", "Geeza Pro", serif; font-size: 42px; line-height: 1; color: var(--maroon-800); }
.card-lead { margin: 13px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.8; }

.form-field { margin-bottom: 19px; }
.form-field > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; color: #5b273e; }
.form-field > small { display: block; margin-top: 7px; font-size: 10px; color: #9b7b89; }
.input-shell { min-height: 55px; display: flex; align-items: center; gap: 11px; padding: 0 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.72); transition: border-color .2s, box-shadow .2s, background .2s; }
.input-shell:focus-within { background: #fff; border-color: rgba(146,26,67,.47); box-shadow: 0 0 0 4px rgba(146,26,67,.07); }
.input-shell > span { color: var(--gold-700); font-size: 15px; }
.input-shell input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; }
.input-shell input::placeholder { color: #b79eaa; }
.input-shell--ltr { direction: ltr; }
.input-shell--ltr input { direction: ltr; text-align: left; }

.count-picker { height: 56px; display: grid; grid-template-columns: 1fr 1.3fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.72); }
.count-picker button { border: 0; background: transparent; color: var(--maroon-700); font-size: 24px; cursor: pointer; }
.count-picker button:active { background: rgba(146,26,67,.07); }
.count-picker output { display: grid; place-items: center; border-inline: 1px solid var(--line); font-size: 21px; font-weight: 800; }

.form-message { min-height: 20px; margin: 0 0 10px; color: #a61943; font-size: 12px; line-height: 1.6; }
.privacy-note { margin: 13px 0 0; text-align: center; color: #9b7b89; font-size: 10px; }
.trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.button-loader { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .button-label { display: none; }
.is-loading .button-loader { display: block; }

.processing { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.processing__mark { display: flex; gap: 24px; margin-bottom: 32px; }
.processing__mark i { width: 18px; height: 18px; animation: processingWave 1.3s ease-in-out infinite; }
.processing__mark i:nth-child(2) { animation-delay: .14s; }
.processing__mark i:nth-child(3) { animation-delay: .28s; }
.processing p { margin: 0 0 8px; font-family: "Arabic Typesetting", "Geeza Pro", serif; font-size: 34px; }
.processing small { color: rgba(255,255,255,.65); font-size: 12px; }

.success-card { position: relative; margin-top: 31px; padding: 65px 23px 25px; text-align: center; }
.success-seal { position: absolute; left: 50%; top: -48px; width: 96px; height: 96px; transform: translateX(-50%); display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #fff8df, #d9a557); box-shadow: 0 18px 40px rgba(66,0,25,.28), inset 0 1px 0 #fff; }
.success-seal__ring { position: absolute; inset: 8px; border: 1px solid rgba(87,4,36,.25); border-radius: 50%; }
.success-seal__diamonds { display: flex; gap: 7px; }
.success-seal__diamonds i { width: 9px; height: 9px; background: var(--maroon-700); box-shadow: none; }
.success-card h2 { font-size: 48px; }
.guest-name { margin: 12px 0 5px; font-size: 18px; font-weight: 800; color: var(--maroon-700); }
.success-phrase { max-width: 300px; margin: 17px auto 23px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.confirmation-code { margin: 0 auto 22px; padding: 14px 18px; border: 1px dashed rgba(168,107,37,.4); border-radius: 15px; background: rgba(255,255,255,.58); }
.confirmation-code small { display: block; margin-bottom: 5px; color: #9b7b89; font-size: 9px; }
.confirmation-code strong { display: block; color: var(--maroon-800); font: 800 19px/1.2 Arial, sans-serif; letter-spacing: 2px; }
.success-details { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 21px; padding-block: 16px; border-block: 1px solid var(--line); }
.success-details div { min-width: 0; padding-inline: 6px; }
.success-details div + div { border-inline-start: 1px solid var(--line); }
.success-details small { display: block; margin-bottom: 7px; color: #9b7b89; font-size: 9px; }
.success-details strong { display: block; font-size: 12px; color: #5e2c42; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.secondary-button { min-height: 48px; display: grid; place-items: center; padding: 10px; border: 1px solid rgba(117,16,51,.18); border-radius: 14px; color: var(--maroon-700); background: rgba(255,255,255,.58); text-decoration: none; font-size: 12px; font-weight: 800; cursor: pointer; }
.success-footnote { margin: 18px 0 0; text-align: center; color: rgba(255,255,255,.64); font-size: 10px; }

noscript { position: fixed; inset: 20px; z-index: 10; display: grid; place-items: center; padding: 24px; border-radius: 20px; color: var(--ink); background: var(--paper); text-align: center; }

@keyframes screenIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes breathe { from { transform: scale(.92); opacity: .65; } to { transform: scale(1.08); opacity: 1; } }
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes diamondFloat { 0%,100% { transform: rotate(45deg) translate(0,0); } 50% { transform: rotate(45deg) translate(-4px,-4px); } }
@keyframes processingWave { 0%,100% { transform: rotate(45deg) scale(.72); opacity: .45; } 50% { transform: rotate(45deg) scale(1.18); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 600px) {
  body { padding-block: 22px; }
  .app-shell { min-height: calc(100vh - 44px); border-radius: 38px; overflow: hidden; box-shadow: 0 35px 90px rgba(55,0,23,.35); }
  .screen { min-height: calc(100vh - 44px); max-height: 920px; }
}

@media (max-height: 700px) {
  .gate__content { padding-block: 16px; }
  .event-title { font-size: 55px; }
  .event-slogan { margin-top: 9px; }
  .fine-rule { margin-block: 17px; }
  .form-card { padding-top: 24px; }
  .form-field { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
