:root {
  --iftar-bg: #08161a;
  --iftar-bg-soft: #0d3339;
  --iftar-gold: #e39d5d;
  --iftar-gold-deep: #8c361b;
  --iftar-gold-light: #f9d06e;
  --iftar-gold-mid: #d88447;
  --iftar-gold-shadow: #562a1d;
  --iftar-gold-border-gradient: linear-gradient(
    132deg,
    var(--iftar-gold-light) 0%,
    var(--iftar-gold-mid) 46%,
    var(--iftar-gold-shadow) 100%
  );
  --iftar-red: #c86a3b;
  --iftar-ink: #f6e7cd;
  --iftar-muted: #d2b997;
  --iftar-surface: rgba(10, 27, 31, 0.88);
  --iftar-surface-soft: rgba(13, 34, 38, 0.8);
  --iftar-border-soft: rgba(227, 157, 93, 0.42);
  --iftar-border-strong: rgba(249, 208, 110, 0.68);
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--iftar-ink);
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at 14% -12%, rgba(249, 208, 110, 0.2) 0%, rgba(249, 208, 110, 0) 45%),
    radial-gradient(circle at 84% 4%, rgba(16, 93, 80, 0.26) 0%, rgba(16, 93, 80, 0) 50%),
    linear-gradient(132deg, rgba(4, 14, 17, 0.88) 0%, rgba(8, 39, 45, 0.78) 60%, rgba(5, 20, 24, 0.88) 100%),
    url("images/theme.jpg") center / cover fixed no-repeat;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  opacity: 0.34;
  background:
    repeating-linear-gradient(
      35deg,
      rgba(249, 208, 110, 0.08) 0 1px,
      rgba(249, 208, 110, 0) 1px 18px
    ),
    repeating-linear-gradient(
      -35deg,
      rgba(86, 42, 29, 0.24) 0 1px,
      rgba(86, 42, 29, 0) 1px 14px
    );
}

body::after {
  z-index: 0;
  opacity: 0.5;
  background:
    radial-gradient(circle at 8% 26%, rgba(249, 208, 110, 0.34), rgba(249, 208, 110, 0) 32%),
    radial-gradient(circle at 82% 72%, rgba(227, 157, 93, 0.22), rgba(227, 157, 93, 0) 34%),
    radial-gradient(circle at 28% 84%, rgba(16, 93, 80, 0.18), rgba(16, 93, 80, 0) 30%);
}

.ramadan-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.46;
  background:
    radial-gradient(circle at 0 0, rgba(227, 157, 93, 0.22) 0, rgba(227, 157, 93, 0) 42%),
    radial-gradient(circle at 100% 100%, rgba(249, 208, 110, 0.18) 0, rgba(249, 208, 110, 0) 42%),
    repeating-radial-gradient(
      circle at 50% 50%,
      rgba(227, 157, 93, 0.09) 0 2px,
      rgba(227, 157, 93, 0) 2px 22px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(249, 208, 110, 0.04) 0 1px,
      rgba(249, 208, 110, 0) 1px 34px
    );
}

.floating-star {
  position: fixed;
  z-index: 3;
  width: 8px;
  height: 8px;
  background: var(--iftar-gold);
  transform: rotate(45deg);
  opacity: 0.55;
  animation: starPulse 3.2s ease-in-out infinite;
}

.star-a {
  top: 22%;
  left: 8%;
}

.star-b {
  top: 15%;
  right: 7%;
  animation-delay: 1s;
}

.star-c {
  bottom: 24%;
  right: 12%;
  animation-delay: 2s;
}

@keyframes starPulse {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: rotate(45deg) scale(1.35);
    opacity: 0.9;
  }
}

.topbar {
  padding: 1.1rem 0 0.6rem;
  position: relative;
  z-index: 2;
}

.home-link {
  color: var(--iftar-gold-light);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-link:hover,
.home-link:focus-visible {
  color: var(--iftar-gold);
}

.top-brand {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.top-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-kicker {
  color: var(--iftar-muted);
  font-size: 0.92rem;
}

.top-brand h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  color: var(--iftar-ink);
}

main {
  position: relative;
  z-index: 2;
}

.showcase {
  position: relative;
  padding-bottom: 1.1rem;
  z-index: 2;
}

.showcase-frame {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  text-align: center;
  border-radius: 30px;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(8, 24, 28, 0.92) 0%, rgba(12, 33, 38, 0.88) 100%) padding-box,
    var(--iftar-gold-border-gradient) border-box;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.42),
    inset 0 0 0 10px rgba(249, 208, 110, 0.08);
}

.showcase-frame::before,
.showcase-frame::after {
  content: "";
  position: absolute;
  border: 2px solid var(--iftar-border-strong);
  width: 68px;
  height: 68px;
  border-radius: 0 0 54px 0;
}

.showcase-frame::before {
  top: 18px;
  left: 18px;
  border-top: 0;
  border-left: 0;
}

.showcase-frame::after {
  right: 18px;
  bottom: 18px;
  border-right: 0;
  border-bottom: 0;
  transform: rotate(180deg);
}

.lantern {
  position: absolute;
  top: -32px;
  width: 34px;
  height: 62px;
  border: 2px solid var(--iftar-border-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(249, 208, 110, 0.74), rgba(249, 208, 110, 0.18));
  box-shadow: 0 9px 18px rgba(227, 157, 93, 0.35);
}

.lantern::before,
.lantern::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.lantern::before {
  top: -36px;
  width: 2px;
  height: 34px;
  background: rgba(249, 208, 110, 0.72);
}

.lantern::after {
  bottom: -7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(227, 157, 93, 0.72);
}

.lantern-left {
  left: 22%;
}

.lantern-right {
  right: 22%;
}

.invite-line {
  margin-top: 1.2rem;
  color: var(--iftar-muted);
  font-family: "Cinzel", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.2vw, 1.06rem);
}

.showcase h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--iftar-red);
  font-size: clamp(1.6rem, 5vw, 3.6rem);
  letter-spacing: 0.03em;
}

.showcase h1 span {
  color: var(--iftar-gold);
}

.venue-line {
  font-family: "Cinzel", serif;
  color: var(--iftar-ink);
  font-size: clamp(1rem, 3vw, 1.55rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.datetime-line {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--iftar-ink);
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 1rem 0 1.2rem;
}

.tag-row span {
  background: rgba(227, 157, 93, 0.16);
  border: 1px solid rgba(227, 157, 93, 0.35);
  color: var(--iftar-gold-light);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-register {
  background: linear-gradient(145deg, #f0ab68, #9a4624);
  color: #24150f;
  border: 0;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(86, 42, 29, 0.34);
}

.btn-register:hover,
.btn-register:focus-visible {
  color: #150c08;
  background: linear-gradient(145deg, #f5bb7f, #87401f);
}

.btn-outline-details {
  border: 2px solid transparent;
  color: var(--iftar-gold-light);
  background:
    linear-gradient(rgba(7, 21, 25, 0.88), rgba(11, 29, 33, 0.88)) padding-box,
    var(--iftar-gold-border-gradient) border-box;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
}

.btn-outline-details:hover,
.btn-outline-details:focus-visible {
  color: #ffd98a;
  background:
    linear-gradient(rgba(12, 32, 36, 0.94), rgba(12, 32, 36, 0.94)) padding-box,
    var(--iftar-gold-border-gradient) border-box;
}

.btn-retrieve {
  border: 2px solid transparent;
  color: var(--iftar-gold-light);
  background:
    linear-gradient(rgba(11, 31, 36, 0.9), rgba(11, 31, 36, 0.9)) padding-box,
    linear-gradient(138deg, rgba(249, 208, 110, 0.9), rgba(227, 157, 93, 0.9), rgba(86, 42, 29, 0.92))
      border-box;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
}

.btn-retrieve:hover,
.btn-retrieve:focus-visible {
  color: #ffe6a6;
  background:
    linear-gradient(rgba(12, 34, 40, 0.95), rgba(12, 34, 40, 0.95)) padding-box,
    linear-gradient(138deg, rgba(249, 208, 110, 0.95), rgba(227, 157, 93, 0.95), rgba(86, 42, 29, 0.95))
      border-box;
}

.countdown-board {
  margin: 1.2rem auto 0.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(68px, 1fr));
  gap: 0.6rem;
  max-width: 460px;
}

.count-item {
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(rgba(8, 24, 28, 0.92), rgba(8, 24, 28, 0.92)) padding-box,
    var(--iftar-gold-border-gradient) border-box;
  padding: 0.45rem;
}

.count-item span {
  display: block;
  font-size: clamp(1.15rem, 4vw, 1.65rem);
  font-weight: 800;
  color: var(--iftar-gold-light);
  line-height: 1.1;
}

.count-item small {
  color: var(--iftar-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.countdown-state {
  color: var(--iftar-muted);
  font-weight: 600;
}

.event-panels {
  margin-top: 1.1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.panel {
  border-radius: 24px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, rgba(8, 24, 29, 0.93), rgba(11, 31, 35, 0.9)) padding-box,
    linear-gradient(132deg, rgba(249, 208, 110, 0.85), rgba(227, 157, 93, 0.85), rgba(86, 42, 29, 0.9))
      border-box;
  padding: 1.1rem 1rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.panel h3 {
  margin: 0 0 0.7rem;
  color: var(--iftar-gold-light);
  font-family: "Cinzel", serif;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.58rem;
}

.timeline-list li {
  border-left: 3px solid var(--iftar-border-strong);
  padding-left: 0.65rem;
  color: #f2dec0;
}

.timeline-list li span {
  display: block;
  color: var(--iftar-gold);
  font-weight: 700;
}

.feature-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr 1fr;
}

.feature-card {
  border-radius: 14px;
  padding: 0.68rem;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(11, 31, 36, 0.9), rgba(11, 31, 36, 0.9)) padding-box,
    linear-gradient(135deg, rgba(249, 208, 110, 0.78), rgba(227, 157, 93, 0.78), rgba(86, 42, 29, 0.88))
      border-box;
}

.feature-card h4 {
  margin: 0 0 0.3rem;
  color: var(--iftar-gold-light);
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: #e8d3b3;
}

.ramadan-note {
  margin-top: 1rem;
  border-radius: 24px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(90deg, rgba(9, 26, 30, 0.94), rgba(13, 35, 40, 0.9)) padding-box,
    var(--iftar-gold-border-gradient) border-box;
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.crescent-art {
  width: 96px;
  min-width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow:
    inset -18px -2px 0 4px rgba(249, 208, 110, 0.95),
    0 0 0 1px rgba(249, 208, 110, 0.3);
  position: relative;
  background: rgba(12, 32, 36, 0.8);
}

.crescent-art::before,
.crescent-art::after {
  content: "";
  position: absolute;
  background: var(--iftar-gold);
  transform: rotate(45deg);
}

.crescent-art::before {
  width: 10px;
  height: 10px;
  right: 8px;
  top: 8px;
}

.crescent-art::after {
  width: 6px;
  height: 6px;
  left: 12px;
  bottom: 12px;
}

.arabic-line {
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.35rem;
  color: var(--iftar-gold-light);
  margin-bottom: 0.2rem;
}

.ramadan-note h3 {
  margin-bottom: 0.25rem;
  color: var(--iftar-gold);
  font-family: "Cinzel", serif;
}

.ramadan-note p {
  color: #e5cfae;
}

.footer {
  text-align: center;
  color: var(--iftar-muted);
  padding: 1.1rem 0 2.3rem;
  position: relative;
  z-index: 2;
}

.footer-note {
  color: var(--iftar-gold-light);
  font-weight: 700;
}

.iftar-modal {
  border-radius: 20px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, rgba(8, 23, 28, 0.96), rgba(10, 29, 34, 0.96)) padding-box,
    var(--iftar-gold-border-gradient) border-box;
}

.modal-title {
  color: var(--iftar-gold-light);
  font-family: "Cinzel", serif;
  font-weight: 700;
}

.modal-note {
  color: var(--iftar-muted);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.duplicate-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(249, 208, 110, 0.34);
  background: rgba(11, 30, 35, 0.78);
  color: #e6ccaa;
}

.retrieve-inline {
  color: var(--iftar-muted);
}

.retrieve-link-btn {
  color: var(--iftar-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.retrieve-link-btn:hover,
.retrieve-link-btn:focus-visible {
  color: #ffe3a3;
}

.iftar-modal .btn-close {
  filter: invert(1) sepia(18%) saturate(320%) hue-rotate(338deg) brightness(108%);
  opacity: 0.82;
}

.iftar-modal .btn-close:hover,
.iftar-modal .btn-close:focus-visible {
  opacity: 1;
}

.form-label {
  color: #efd9b8;
  font-weight: 700;
}

.form-control,
.form-select {
  border-color: rgba(227, 157, 93, 0.45);
  background: rgba(7, 21, 25, 0.82);
  color: var(--iftar-ink);
}

.form-control::placeholder {
  color: rgba(210, 185, 151, 0.72);
}

.form-select option {
  background: #0c2328;
  color: var(--iftar-ink);
}

.form-text {
  color: #cbb28f;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(249, 208, 110, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(249, 208, 110, 0.16);
}

.section-divider {
  margin: 1rem 0 0.8rem;
  border-color: rgba(227, 157, 93, 0.5);
}

.guest-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.guest-badge {
  background: rgba(227, 157, 93, 0.22);
  color: var(--iftar-gold-light);
}

.guest-fields {
  display: grid;
  gap: 0.75rem;
}

.guest-card {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0.75rem;
  background:
    linear-gradient(rgba(8, 24, 28, 0.9), rgba(8, 24, 28, 0.9)) padding-box,
    var(--iftar-gold-border-gradient) border-box;
}

.guest-card h6 {
  color: var(--iftar-gold-light);
  margin-bottom: 0.5rem;
}

.ticket-card {
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(rgba(9, 26, 30, 0.9), rgba(9, 26, 30, 0.9)) padding-box,
    var(--iftar-gold-border-gradient) border-box;
  padding: 1rem;
  text-align: center;
}

.ticket-card h4 {
  color: var(--iftar-gold-light);
  font-family: "Cinzel", serif;
}

.ticket-name {
  color: #efd8b5;
  font-weight: 700;
}

.ticket-line {
  margin: 0 0 0.25rem;
  color: #e6ccaa;
}

.qr-wrap {
  margin: 0.8rem auto 0.6rem;
  width: 236px;
  min-height: 236px;
  border-radius: 14px;
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--iftar-gold-border-gradient) border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ticket-help {
  color: var(--iftar-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .lantern-left {
    left: 14%;
  }
  .lantern-right {
    right: 14%;
  }
}

@media (max-width: 767.98px) {
  .showcase-frame {
    border-radius: 24px;
    padding: 1rem 0.85rem 1.1rem;
  }

  .showcase-frame::before,
  .showcase-frame::after {
    width: 52px;
    height: 52px;
  }

  .lantern {
    display: none;
  }

  .countdown-board {
    grid-template-columns: repeat(2, minmax(96px, 1fr));
  }

  .event-panels {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .ramadan-note {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .duplicate-help {
    flex-direction: column;
    align-items: flex-start;
  }
}
