.stats-bar {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px 24px;
  display: inline-flex;
  gap: 32px;
  color: white;
  font-weight: 600;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  font-size: 1.5rem;
}

.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
  gap: 30px;
  justify-content: center;
  margin: 2rem 0 2rem;
}

.card {
  width: 320px;
  background: white;
  border-radius: 16px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
}

.bonus-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 12px rgba(237, 137, 54, 0.4);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.card-header {
  /*background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);*/
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.logo {
  max-height: 50px;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
}

.category {
  background: #667eea;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.scarcity-badge {
  background: #fc8181;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  /* animation: wiggle 3s infinite; */
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-2deg);
  }

  75% {
    transform: rotate(2deg);
  }
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.discount-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.4;
}

.terms {
  font-size: 0.875rem;
  color: #718096;
  line-height: 1.6;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #4a5568;
  background: #f7fafc;
  padding: 8px 12px;
  border-radius: 8px;
}

.reveal-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hold-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
  transition: all 0.2s;
}

.hold-button:active {
  transform: scale(0.98);
}

.hold-button.holding {
  animation: buttonPulse 0.5s ease-in-out infinite;
}

@keyframes buttonPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.hold-button.revealed {
  background: #48bb78;
  cursor: default;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  width: 0%;
  transition: none;
}

.button-text {
  position: relative;
  z-index: 1;
}

.near-miss {
  text-align: center;
  font-size: 0.875rem;
  color: #ed8936;
  font-weight: 600;
  display: none;
}

.near-miss.visible {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.code-display {
  background: #f7fafc;
  border: 2px dashed #cbd5e0;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  display: none;
}

.code-display.visible {
  display: block;
  animation: slideUp 0.5s ease-out;
}

/* Pulse animation for auto-revealed code display */
.card.auto-revealed .code-display.visible {
  animation: slideUp 0.5s ease-out, codeBoxPulse 2s infinite;
}

@keyframes codeBoxPulse {

  0%,
  100% {
    background: #ffd89d;
    border-color: #cbd5e0;
    box-shadow: 0 0 0 rgba(102, 126, 234, 0);
  }

  50% {
    background: #fff6a4;
    border-color: #a0aec0;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.code-label {
  font-size: 0.75rem;
  color: #718096;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.code {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.date-badge {
  background: #edf2f7;
  color: #4a5568;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

.share-section {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: #718096;
  justify-content: center;
}

.share-section p {
  cursor: pointer;
  transition: color 0.2s;
}

.share-section p:hover {
  color: #667eea;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-icon:hover {
  transform: scale(1.2);
}

.favorite-btn {
  filter: grayscale(100%);
}

.favorite-btn.active {
  filter: grayscale(0%);
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 9999;
}

@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Auto-revealed card pulse animation */
.card.auto-revealed {
  animation: cardPulse 2s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
}

@keyframes cardPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .stats-bar {
    flex-direction: column;
    gap: 12px;
  }

  .cardgrid {
    grid-template-columns: 320px;
  }
}