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

html,
body {
  min-height: 100%;
  background: #000;
  line-height: 1.5;
}

#gift-vip-wrapper {
  --gold: #ffb6d5;
  --gold-2: #ff7fb5;
  --gold-3: #ffddee;
  --black: #050505;
  --panel: rgba(8, 8, 8, 0.58);
  --line: rgba(255, 211, 77, 0.75);
  --text: #fff7fb;

  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
  background-color: #000;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  overflow: hidden;
}

#gift-vip-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

#gift-vip-wrapper .video-overlay {
  position: absolute;
  inset: 0;
  background:
      radial-gradient(circle at 50% 20%, rgba(255,182,213,0.28), transparent 34%),
      linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.88));
  z-index: 2;
  pointer-events: none;
}

#gift-vip-wrapper .video-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,182,213,0.18) 45%, transparent 70%);
  animation: giftBgSweep 4s linear infinite;
}

@keyframes giftBgSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

#gift-vip-wrapper .card {
  width: 90%;
  max-width: 400px;
  padding: 22px;
  text-align: center;
  position: relative;
  z-index: 5;
  border: 1px solid rgba(255, 211, 77, 0.32);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(10,10,10,0.72), rgba(0,0,0,0.46));
  box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05) inset,
      0 0 26px rgba(255, 179, 0, 0.30),
      0 22px 50px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

#gift-vip-wrapper .card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(135deg, transparent 10%, var(--gold), transparent 38%, var(--gold-2), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: giftBorderRun 3.2s linear infinite;
  pointer-events: none;
}

@keyframes giftBorderRun {
  from { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(-20deg) brightness(1.35); }
  to { filter: hue-rotate(0deg) brightness(1); }
}

#gift-vip-wrapper h1 {
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.3;
  text-shadow:
      0 2px 0 #000,
      0 0 12px rgba(255, 211, 77, 0.65),
      0 0 24px rgba(255, 179, 0, 0.35);
}

#gift-vip-wrapper h1 span {
  color: var(--gold);
  text-shadow:
      0 2px 0 #000,
      0 0 10px rgba(255, 211, 77, 0.9),
      0 0 22px rgba(255, 179, 0, 0.65);
}

#gift-vip-wrapper .step { display: none; }
#gift-vip-wrapper .step.active { display: block; animation: giftFadeIn 0.4s ease-in-out; }

@keyframes giftFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#gift-vip-wrapper .ticker-box {
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 211, 77, 0.48);
  border-radius: 16px;
  height: 104px;
  overflow: hidden;
  margin-bottom: 20px;
  text-align: left;
  padding: 6px 12px;
  box-shadow:
      inset 0 0 18px rgba(255, 179, 0, 0.08),
      0 0 16px rgba(255, 179, 0, 0.18);
}

#gift-vip-wrapper .ticker-content { animation: giftScrollUp 15s linear infinite; }

#gift-vip-wrapper .ticker-item {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 211, 77, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fffbe8;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.95);
}

#gift-vip-wrapper .ticker-item strong {
  font-weight: 400;
  color: var(--gold);
  display: block;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes giftScrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-300px); }
}

#gift-vip-wrapper .btn-submit {
  background: linear-gradient(135deg,#ff8fc3,#ffc7e3 45%,#fff5fb 52%,#ffc7e3 60%,#ff8fc3);
  color: #0a0a0a;
  border: 1px solid rgba(255, 241, 168, 0.95);
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
      0 8px 22px rgba(255, 179, 0, 0.34),
      inset 0 1px 0 rgba(255,255,255,0.55);
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,0.42);
  animation: giftBtnPulse 1.7s ease-in-out infinite;
}

@keyframes giftBtnPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 8px 22px rgba(255,179,0,.34), inset 0 1px 0 rgba(255,255,255,.55); }
  50% { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,179,0,.55), inset 0 1px 0 rgba(255,255,255,.65); }
}

#gift-vip-wrapper .btn-submit:disabled {
  background: rgba(255, 255, 255, 0.14) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  color: rgba(255,255,255,0.48) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  animation: none !important;
  transform: none !important;
}

#gift-vip-wrapper .checkbox-group {
  display: flex;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 20px;
  font-size: 14px;
  padding: 0 10px;
  font-weight: 700;
}

#gift-vip-wrapper .checkbox-group label {
  color: #fff8d7;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.95), 0 0 8px rgba(255,179,0,0.22);
  cursor: pointer;
}

#gift-vip-wrapper .checkbox-group input {
  margin-top: 4px;
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gold-2);
}

#gift-vip-wrapper .hourglass {
  font-size: 50px;
  display: inline-block;
  margin-bottom: 10px;
  animation: giftSpinSand 2.5s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
  filter: drop-shadow(0 0 10px rgba(255,211,77,0.8));
}

@keyframes giftSpinSand {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(180deg); }
}

#gift-vip-wrapper .badge {
  background: linear-gradient(135deg, rgba(255,179,0,.95), rgba(255,211,77,.75));
  color: #000;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 15px;
  border: 1px solid rgba(255,241,168,0.95);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  box-shadow: 0 0 18px rgba(255,179,0,0.35);
}

#gift-vip-wrapper .reward-box {
  background: rgba(0,0,0,0.34);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  margin-bottom: 25px;
  border: 1px solid rgba(255,211,77,0.50);
  box-shadow:
      inset 0 0 18px rgba(255,179,0,0.10),
      0 0 18px rgba(255,179,0,0.15);
}

#gift-vip-wrapper .reward-item {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 850;
  color: #fff8d7;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.95), 0 0 8px rgba(255,179,0,0.25);
}

#gift-vip-wrapper .reward-item:last-child { margin-bottom: 0; }

#gift-vip-wrapper .text-blue {
  color: var(--gold);
  font-weight: 1000;
  text-shadow:
      0 0 6px rgba(255, 211, 77, 0.95),
      0 0 14px rgba(255, 179, 0, 0.68),
      1px 1px 3px rgba(0,0,0,0.95);
}

#gift-vip-wrapper .shine-text {
  background: linear-gradient(120deg, #fff8d7 0%, #ffb6d5 35%, #ffffff 50%, #ffb300 65%, #fff8d7 100%);
  background-size: 220% auto;
  color: #fff;
  background-clip: text;
  text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: giftShine 2.5s linear infinite;
  font-size: 27px;
  font-weight: 1000;
  margin: 0 0 10px 0;
  filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.95));
}

@keyframes giftShine { to { background-position: 220% center; } }

#gift-vip-wrapper .progress-container {
  width: 100%;
  background-color: rgba(255,255,255,0.16);
  border-radius: 999px;
  height: 13px;
  overflow: hidden;
  margin-top: 15px;
  position: relative;
  border: 1px solid rgba(255,211,77,0.52);
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

#gift-vip-wrapper .progress-bar-striped {
  width: 0%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(255,255,255,0.35) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.35) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
  background-color: var(--gold-2);
  transition: width 5s linear;
  animation: giftProgressStripes 1s linear infinite;
}

@keyframes giftProgressStripes {
  from { background-position: 1rem 0; }
  to { background-position: 0 0; }
}

#gift-vip-wrapper .footer-text {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255,248,215,0.78);
  text-shadow: 1px 1px 3px #000;
}

@media (max-width: 480px) {
  #gift-vip-wrapper {
    align-items: flex-start;
    padding: 14px 0;
  }

  #gift-vip-wrapper .card {
    width: calc(100% - 22px);
    max-width: 390px;
    padding: 18px 15px 20px;
    border-radius: 24px;
    animation: giftMobileGlow 2.2s ease-in-out infinite;
  }

  @keyframes giftMobileGlow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255,241,168,.18) inset, 0 0 16px rgba(255,211,77,.35), 0 0 32px rgba(255,179,0,.20), 0 18px 40px rgba(0,0,0,.82); }
    50% { box-shadow: 0 0 0 1px rgba(255,241,168,.34) inset, 0 0 24px rgba(255,211,77,.62), 0 0 44px rgba(255,179,0,.34), 0 18px 40px rgba(0,0,0,.82); }
  }

  #gift-vip-wrapper h1 { font-size: 20px; line-height: 1.25; }
  #gift-vip-wrapper .ticker-box { height: 96px; border-radius: 14px; }
  #gift-vip-wrapper .ticker-item { font-size: 12px; }
  #gift-vip-wrapper .checkbox-group { font-size: 13px; padding: 0 4px; }
  #gift-vip-wrapper .btn-submit { padding: 15px 12px; font-size: 15px; }
  #gift-vip-wrapper .shine-text { font-size: 24px; }
  #gift-vip-wrapper .reward-box { padding: 16px; border-radius: 14px; }
  #gift-vip-wrapper .reward-item { font-size: 15.5px; }
}

#gift-vip-wrapper .gift-icon {
  font-size: 40px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

#gift-vip-wrapper .gift-icon img {
  width: 64px;
  height: 64px;
  display: inline-block;
}

#gift-vip-wrapper .ticker-act {
  color: #00ff00;
  text-shadow: 0 0 5px rgba(0,255,0,0.5);
}

#gift-vip-wrapper .sub-text {
  color: #66b3ff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

#gift-vip-wrapper .checkbox-center {
  justify-content: center;
  text-align: center;
}

#gift-vip-wrapper .checkbox-center label {
  font-weight: 900;
  color: #ffffff;
}

#gift-vip-wrapper #auto-redirect-area {
  display: none;
  text-align: center;
  margin-top: 15px;
}

#gift-vip-wrapper .activated {
  color: #00e676;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

#gift-vip-wrapper .activated input {
  margin: 0;
  width: 16px;
  height: 16px;
  filter: grayscale(100%) brightness(200%);
}

#gift-vip-wrapper #countdown-text {
  color: #00e676;
  font-size: 24px;
  font-weight: 900;
  margin-top: 15px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9), 0 0 10px rgba(0,255,0,0.4);
}

#gift-vip-wrapper #status-text {
  color: #e2e8f0;
  font-size: 13px;
  margin-top: 10px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

#gift-vip-wrapper button {
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

#gift-vip-wrapper .go-link {
  display: none;
  margin: 14px auto 0;
  background: none;
  border: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

#gift-vip-wrapper .go-link.show {
  display: block;
}
