.gift-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.gift-btn {
  flex: 1;
  min-width: 62px;
  max-width: 80px;
  padding: 8px 4px 6px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gift-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.gift-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-color: rgba(255,255,255,0.3);
}

.gift-btn:hover::before {
  opacity: 1;
}

.gift-btn.active {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--gift-active-color, #F5A623);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 0 0 3px rgba(245,166,35,0.15);
  background: rgba(57,255,20,0.12);
}

.gift-btn:active {
  transform: translateY(0) scale(0.98);
}

.gift-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 4px;
  transition: transform 0.3s;
  overflow: hidden;
  border-radius: 8px;
}

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

.gift-btn.active .gift-icon {
  animation: giftBounce 0.5s ease;
}

.gift-icon svg,
.gift-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Per-gift thumbnail fixes */
.gift-icon img[src*="flowers"] {
  object-fit: contain;
}

.gift-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
  white-space: nowrap;
  color: rgba(255,255,255,0.9);
}

.gift-price {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}

@keyframes giftBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  50% { transform: scale(0.95); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Theme-specific overrides applied via CSS variables */
@media (max-width: 520px) {
  .gift-buttons { gap: 5px; }
  .gift-btn { min-width: 56px; padding: 6px 2px 4px; border-radius: 12px; }
  .gift-icon { width: 40px; height: 40px; }
  .gift-name { font-size: 10px; }
  .gift-price { font-size: 11px; }
}
