:root {
  --radius: 34px;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --stroke: rgba(255, 255, 255, 0.18);
  --field-bg: rgba(10, 10, 10, 0.35);
  --field-bg-focus: rgba(10, 10, 10, 0.52);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: #000;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  /* background: linear-gradient(
    180deg,
    rgba(245, 217, 40, 0.95) 0%,
    rgba(245, 217, 40, 0.95) 33.3%,
    rgba(247, 212, 107, 0) 100%
  ); */
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

/* container */
.screen {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
  max-width: 430px;
  margin: 0 auto;
}

/* top food slider section */
.hero {
  position: relative;
  height: 300px;
  background: #000;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  /* height: 99%; */
  object-fit: cover;
  opacity: 0;
  transition: opacity 2500ms ease;
  transform: none;
  display: block;
  will-change: opacity;
}

.hero__img.is-active {
  opacity: 1;
}

/* optional vignette for readability; does NOT affect content section */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.6) 45%,
      rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.logo {
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  height: 34px;
  padding-top: 3px;
  /* width: min(44%, 320px); */
  z-index: 2;
}

.main-content {
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.7) 40%,
      rgba(0, 0, 0, 0.2) 100%),
    url("assets/images/main-bg-4.png") center bottom / cover no-repeat;
  background-color: #090807;
}

.main {
  /* margin-top: 250px; */
  min-height: 100px;
}

/* content starts AFTER the hero */
.content {
  padding: 18px 18px 22px;
  position: relative;
  padding-top: 0;
}

.content>* {
  position: relative;
  z-index: 1;
}

.title {
  text-align: center;
  font-size: 34px;
  line-height: 1.05;
  margin: 6px 0 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: linear-gradient(180deg, #fff1b8 0%, #f3c35a 45%, #b67817 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}

.subtitle {
  text-align: center;
  margin: 10px auto 18px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

form {
  margin-top: 30px;
}

.field {
  margin: 14px 0;
}

.float-field {
  position: relative;
}

.input {
  width: 100%;
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--field-bg);
  color: rgba(255, 255, 255, 0.92);
  padding: 18px 16px 8px;
  outline: none;
  font-size: 16px;
  transition: background 160ms ease, border-color 160ms ease;
}

.input::placeholder {
  color: transparent;
}

.input:focus {
  background: var(--field-bg-focus);
  border-color: rgba(255, 255, 255, 0.35);
}

.float-field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  letter-spacing: 0.2px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  padding: 0 6px;
  border-radius: 6px;
  pointer-events: none;
  transition: all 160ms ease;
}

.input:focus+label,
.input:not(:placeholder-shown)+label {
  top: 0;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.input:focus+label {
  background: var(--field-bg-focus);
}

#promo_code {
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}

/* country selector */
.country {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--field-bg);
  padding: 0 12px;
  min-width: 0;
}

.flag {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.dial {
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92);
  flex: 0 0 auto;
}

.country select {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  text-shadow: 0 0 0 transparent;
  opacity: 0;
  outline: none;
  cursor: pointer;
}

.country select option {
  color: #111;
}

.chev {
  margin-left: auto;
  opacity: 0.85;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

/* CTA */
.cta {
  margin: 18px auto 14px;
  width: 70%;
  height: 50px;
  display: block;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #2a1b00;
  background: url("assets/images/btn-new-bg-2.png") center  no-repeat;
  /* box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); */
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.cta:active {
  transform: translateY(1px) scale(0.995);
}

.cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.cta:disabled {
  cursor: not-allowed;
  filter: grayscale(0.15) brightness(0.9);
}

.fineprint {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  margin-top: 10px;
}

.fineprint a {
  color: #e3c07b;
  text-decoration: underline;
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 920ms ease;
}

.modal.is-open {
  display: flex;
  opacity: 1;
}

.modal__panel {
  width: min(92vw, 360px);
  background: #14110c;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  padding: 18px 18px 16px;
  text-align: center;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 920ms ease, opacity 920ms ease;
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  color: #f4d48d;
}

.modal__text {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.4;
}

.modal__btn {
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe08a 0%, #f1b437 52%, #c88712 100%);
  color: #2a1b00;
  font-weight: 700;
  cursor: pointer;
}

.spinner {
  width: 42px;
  height: 42px;
  margin: 6px auto 14px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #f4d48d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@media (min-width: 420px) {
  .hero {
    height: 330px;
  }
}

/* Redeem page */
.redeem-page {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  background: radial-gradient(circle at top, #2a1c00 0%, #050505 55%, #000 100%);
  color: #f9f2d0;
}

.redeem-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 48px;
  max-width: 430px;
  margin: 0 auto;
}

.redeem-card {
  width: min(560px, 100%);
  background: #0a0a0a;
  border-radius: 28px;
  padding: 28px 24px 34px;
  border: 1px solid rgba(255, 209, 102, 0.2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.redeem-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 194, 64, 0.2), transparent 55%);
  pointer-events: none;
}

.redeem-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.redeem-brand img {
  width: 120px;
  height: auto;
}

.redeem-brand-tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 227, 156, 0.9);
}

.redeem-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  position: relative;
  z-index: 1;
}

.redeem-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d058, #1a8f3e);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
}

.redeem-eyebrow {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.redeem-title {
  margin: 6px 0 4px;
  font-size: 28px;
  font-weight: 700;
  color: #ffe39c;
}

.redeem-subtitle {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.redeem-alert {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.reward-banner {
  margin: 18px auto 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 120, 0.45);
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffe39c;
  position: relative;
  z-index: 1;
}

.reward-frame {
  border-radius: 22px;
  border: 1px solid rgba(255, 210, 120, 0.3);
  padding: 20px 18px;
  background: linear-gradient(180deg, rgba(26, 18, 0, 0.85) 0%, rgba(10, 10, 10, 0.9) 100%);
  position: relative;
  z-index: 1;
}

.reward-details {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 210, 120, 0.2);
  background: rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 1;
}

.reward-hero h2 {
  margin: 0;
  font-size: 24px;
  color: #ffe4a3;
}

.reward-title {
  margin: 6px 0 14px;
  font-size: 14px;
  color: rgba(255, 241, 197, 0.75);
}

.reward-image {
  display: flex;
  justify-content: center;
  margin: 12px 0 16px;
}

.reward-media {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.reward-qr-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.qr-instruction {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.reward-image img {
  width: min(320px, 92%);
  border-radius: 16px;
  padding: 10px;
  /* box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); */
  border: 1px solid rgba(255, 219, 141, 0.15);
}

.redeem-qr-box {
  width: 176px;
  height: 176px;
  padding: 6px;
  border-radius: 0;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.redeem-qr-box--small {
  width: 143px;
  height: 143px;
  padding: 0;
  border-radius: 0;
}

.reward-section {
  margin: 14px 0;
}

.reward-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 221, 130, 0.9);
}

.reward-section ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.reward-text {
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.redeem-note {
  margin: 18px 0 12px;
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}


.redeem-cta {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #1b1500;
  background: linear-gradient(135deg, #ffdf7a, #f5b844);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.redeem-footer {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
