@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Poppins, sans-serif;
  background: linear-gradient(135deg, #fff1f8, #eef7ff, #f5efff);
  color: #27223a;
}

.page {
  max-width: 960px;
  margin: auto;
  padding: 28px 16px 60px;
}

.hero {
  text-align: center;
  padding: 24px 0 18px;
}

.logo {
  font-size: 54px;
}

h1 {
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.05;
  margin: 14px auto;
  max-width: 820px;
}

.hero p {
  font-size: 19px;
  color: #625978;
  margin: 0 auto 16px;
}

.pill {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 8px 28px rgba(100, 80, 140, .12);
  color: #7b5be6;
  font-weight: 600;
}

.card {
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(150,120,220,.15);
  box-shadow: 0 20px 50px rgba(70, 40, 120, .12);
  border-radius: 28px;
  padding: 24px;
  margin: 22px 0;
  backdrop-filter: blur(10px);
}

label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 700;
}

input, select {
  width: 100%;
  border: 2px solid #eadfff;
  border-radius: 18px;
  padding: 15px 16px;
  font-size: 16px;
  background: #fff;
  outline: none;
}

input:focus, select:focus {
  border-color: #a985ff;
  box-shadow: 0 0 0 4px rgba(169,133,255,.15);
}

button {
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.primary {
  width: 100%;
  margin-top: 22px;
  color: white;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 16px 35px rgba(236,72,153,.28);
}

.ghost {
  margin-top: 12px;
  background: #f6edff;
  color: #7c3aed;
}

.wide { width: 100%; }

.hidden { display: none; }

.advanced {
  padding: 12px;
  margin-top: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fbf5ff, #fff4fa);
}

.progress {
  text-align: center;
}

.giftbox {
  font-size: 70px;
  animation: unwrap 1.2s infinite ease-in-out;
}

@keyframes unwrap {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.15) rotate(3deg); }
}

.bar {
  height: 14px;
  background: #efe7ff;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 20px;
}

.bar span {
  display: block;
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #8b5cf6, #ec4899, #60a5fa);
  border-radius: 999px;
  transition: width .4s ease;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 22px;
}

.tag {
  padding: 10px 13px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #eadfff;
  font-weight: 700;
}

.results {
  display: grid;
  gap: 20px;
}

.gift-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  background: white;
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(70, 40, 120, .13);
  border: 1px solid #f1e8ff;
}

.gift-card.top {
  border: 3px solid #f6c453;
}

.gift-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 20px;
}

.badge {
  display: inline-block;
  background: #fff3c4;
  color: #7a5200;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 8px;
}

.price {
  font-size: 22px;
  font-weight: 900;
  color: #16a34a;
}

.match {
  font-weight: 900;
  color: #8b5cf6;
}

.buy {
  display: inline-block;
  margin-top: 12px;
  background: linear-gradient(135deg, #ff9900, #ff6a00);
  color: white;
  padding: 14px 20px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 900;
}

.surprise {
  margin: 20px 0;
  width: 100%;
  background: #27223a;
  color: white;
}

.viral {
  text-align: center;
}

.viral button {
  margin: 6px;
  background: white;
  color: #7c3aed;
  border: 1px solid #eadfff;
}

.disclaimer {
  text-align: center;
  color: #756b86;
  font-size: 13px;
}

@media (max-width: 720px) {
  .gift-card {
    grid-template-columns: 1fr;
  }

  .gift-card img {
    height: 220px;
  }
}