:root {
  --navy: #0b1730;
  --navy-soft: #1d2a43;
  --gold: #c28b2b;
  --gold-light: #f6d98c;
  --gold-pale: #fff7df;
  --line: rgba(194, 139, 43, 0.19);
  --white: #ffffff;
}

* { box-sizing: border-box; }

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

body {
  min-width: 320px;
  overflow: hidden;
  color: var(--navy);
  background: #f7f9fc;
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.offer-page {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 246, 217, 0.8), transparent 31%),
    linear-gradient(142deg, #f6f8fc 0%, #fff 50%, #f4f7fb 100%);
}

.offer-page::before,
.offer-page::after {
  position: absolute;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(194, 139, 43, 0.1);
  border-radius: 50%;
}

.offer-page::before { width: 390px; height: 390px; transform: translate(49%, -40%); }
.offer-page::after { width: 280px; height: 280px; transform: translate(-67%, 73%); }

.ambient { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.5; pointer-events: none; }
.ambient-one { width: 120px; height: 120px; top: 13%; left: -75px; background: rgba(244, 210, 137, 0.27); }
.ambient-two { width: 90px; height: 90px; right: -50px; bottom: 18%; background: rgba(202, 218, 237, 0.48); }

.offer-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 430px);
  height: 100dvh;
  max-height: 900px;
  padding: max(22px, env(safe-area-inset-top)) 22px max(17px, env(safe-area-inset-bottom));
}

.brand-bar { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); text-decoration: none; }
.brand-mark { position: relative; display: grid; width: 25px; height: 25px; place-items: center; border: 1.5px solid var(--gold); border-radius: 8px 8px 8px 2px; transform: rotate(-15deg); }
.brand-mark::before, .brand-mark::after, .brand-mark span { position: absolute; content: ""; width: 11px; height: 1.5px; background: var(--gold); transform: rotate(45deg); }
.brand-mark::after { transform: rotate(-45deg); }
.brand-mark span { width: 8px; transform: rotate(90deg); }
.brand-name { font-family: Manrope, sans-serif; font-size: 14px; font-weight: 800; letter-spacing: 0.21em; }
.brand-name span { color: var(--gold); }
.brand-status { display: flex; align-items: center; gap: 6px; color: #677184; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-status i { width: 6px; height: 6px; border-radius: 50%; background: #75ad78; box-shadow: 0 0 0 3px rgba(117, 173, 120, 0.13); }

.offer-content { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; padding: 9px 0 7px; text-align: center; }
.live-offer-badge { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 6px 11px; border: 1px solid rgba(194, 139, 43, 0.28); border-radius: 999px; color: #856323; background: rgba(255, 249, 231, 0.76); box-shadow: 0 5px 14px rgba(194, 139, 43, 0.1); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; }
.live-offer-badge i { width: 6px; height: 6px; border-radius: 50%; background: #70a874; box-shadow: 0 0 0 3px rgba(112, 168, 116, 0.15); animation: live-pulse 1.8s ease-in-out infinite; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.eyebrow span { width: 20px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow span:last-child { transform: rotate(180deg); }
h1 { margin: 0; color: var(--navy-soft); font-family: Manrope, sans-serif; font-size: clamp(19px, 5.4vw, 24px); font-weight: 700; letter-spacing: 0.19em; line-height: 1.15; }
h1 strong { color: var(--gold); font-weight: 800; }

.amount-wrap { position: relative; margin-top: 12px; padding: 8px 13px 9px; }
.amount-glow { position: absolute; z-index: -1; inset: 18% -13% 0; background: rgba(241, 192, 77, 0.2); border-radius: 50%; filter: blur(26px); }
.amount-label, .bonus-label { margin: 0; color: #8f7342; font-size: 9px; font-weight: 700; letter-spacing: 0.29em; }
.amount { margin: 0; color: var(--navy); font-family: Manrope, sans-serif; font-size: clamp(62px, 18.5vw, 82px); font-weight: 800; letter-spacing: -0.065em; line-height: 0.98; text-shadow: 0 6px 22px rgba(11, 23, 48, 0.09); }
.amount span { margin-right: 2px; color: var(--gold); font-size: 0.58em; vertical-align: 0.13em; }
.bonus-label { margin-top: 7px; color: var(--navy-soft); letter-spacing: 0.17em; }
.supporting-copy { margin: 8px 0 0; color: #536073; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }

.gift-stage { position: relative; width: 165px; height: 108px; margin: 7px 0 7px; }
.gift-shadow { position: absolute; bottom: 3px; left: 29px; width: 108px; height: 17px; border-radius: 50%; background: rgba(20, 33, 55, 0.22); filter: blur(10px); }
.gift-box { position: absolute; bottom: 15px; left: 37px; width: 91px; height: 64px; filter: drop-shadow(0 9px 9px rgba(95, 62, 14, 0.19)); transform: perspective(220px) rotateX(4deg) rotateY(-8deg) rotateZ(-2deg); }
.gift-body { position: absolute; right: 0; bottom: 0; width: 86px; height: 51px; border-radius: 2px 3px 9px 5px; background: linear-gradient(122deg, #dba63d 0%, #f9dd8d 27%, #b8781c 100%); }
.gift-body::after { position: absolute; content: ""; inset: 6px 7px 7px 5px; border: 1px solid rgba(255,255,255,0.29); border-radius: 2px 3px 7px 4px; }
.gift-lid { position: absolute; z-index: 2; top: 5px; left: -4px; width: 99px; height: 17px; border-radius: 4px 5px 3px 4px; background: linear-gradient(112deg, #c78923 2%, #f8d87e 35%, #e9bd57 69%, #a96713 100%); transform: skewX(-10deg); }
.gift-ribbon-v { position: absolute; z-index: 3; top: 5px; left: 43px; width: 13px; height: 58px; background: linear-gradient(90deg, #a96d16, #f8d781 45%, #b87a1d); }
.gift-ribbon-h { position: absolute; z-index: 4; top: 29px; left: 3px; width: 89px; height: 10px; background: linear-gradient(90deg, #a96d16, #ffe49a 50%, #b87a1d); transform: skewX(-10deg); }
.gift-bow { position: absolute; z-index: 5; top: -8px; width: 29px; height: 18px; border: 5px solid #d2962b; background: linear-gradient(135deg, #fce39b, #b87518); }
.bow-left { left: 33px; border-radius: 100% 10% 70% 20%; transform: rotate(25deg); }
.bow-right { left: 48px; border-radius: 10% 100% 20% 70%; transform: rotate(-25deg); }
.sparkle { position: absolute; color: var(--gold); font-size: 17px; animation: twinkle 2.6s ease-in-out infinite; }
.sparkle-a { top: 12px; left: 12px; }
.sparkle-b { right: 9px; top: 33px; font-size: 11px; animation-delay: -1.2s; }

.action-area { width: 100%; max-width: 360px; }
.countdown { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 8px; color: #8b6a2d; font-size: 9px; font-weight: 700; letter-spacing: 0.16em; }
.countdown-label { opacity: 0.82; }
.countdown-time { min-width: 46px; padding: 4px 7px; border: 1px solid rgba(194, 139, 43, 0.3); border-radius: 6px; color: var(--navy); background: rgba(255, 248, 229, 0.8); font-family: Manrope, sans-serif; font-size: 13px; letter-spacing: 0.08em; line-height: 1; box-shadow: 0 3px 10px rgba(194, 139, 43, 0.1); }
.cta-button { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: center; gap: 16px; border: 0; border-radius: 13px; color: #2c1d08; background: linear-gradient(105deg, #bc8120 0%, #f5d47e 46%, #c78923 100%); box-shadow: 0 10px 25px rgba(190, 133, 34, 0.29), inset 0 1px rgba(255, 255, 255, 0.7); font-family: Manrope, sans-serif; font-size: 14px; font-weight: 800; letter-spacing: 0.11em; text-decoration: none; animation: pulse 3s ease-in-out infinite; transition: transform 150ms ease, box-shadow 150ms ease; }
.cta-button:hover { box-shadow: 0 13px 29px rgba(190, 133, 34, 0.39), inset 0 1px rgba(255,255,255,.7); }
.cta-button.is-processing { cursor: wait; }
.cta-button.is-processing .cta-arrow { opacity: 0.55; }
.cta-button:active { transform: scale(0.975); box-shadow: 0 5px 11px rgba(190, 133, 34, 0.22); }
.cta-arrow { font-size: 22px; font-weight: 500; line-height: 0; }
.terms { margin: 9px 0 0; color: #8290a1; font-size: 10px; letter-spacing: 0.02em; }

.trust-strip { display: flex; flex: 0 0 auto; justify-content: center; gap: clamp(8px, 3vw, 16px); padding-top: 13px; border-top: 1px solid var(--line); color: #647187; font-size: 9px; font-weight: 600; white-space: nowrap; }
.trust-strip span { display: inline-flex; align-items: center; gap: 4px; }
.trust-strip b { color: var(--gold); font-size: 11px; }

@keyframes pulse { 0%, 100% { box-shadow: 0 10px 25px rgba(190, 133, 34, 0.29), inset 0 1px rgba(255,255,255,.7); } 50% { box-shadow: 0 10px 31px rgba(190, 133, 34, 0.45), 0 0 0 4px rgba(232, 184, 76, 0.1), inset 0 1px rgba(255,255,255,.7); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.85) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(112, 168, 116, 0.15); } 50% { box-shadow: 0 0 0 5px rgba(112, 168, 116, 0.06); } }

@media (max-height: 680px) {
  .offer-shell { padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .offer-content { padding-top: 4px; }
  .eyebrow { margin-bottom: 6px; }
  .amount-wrap { margin-top: 7px; }
  .gift-stage { height: 85px; margin-top: 2px; margin-bottom: 3px; transform: scale(.88); }
  .supporting-copy { margin-top: 4px; }
}

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