.pb-safe {
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.coupon-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  background-color: #000;
  letter-spacing: 0.01em;
}

.coupon-card {
  position: relative;
  background: #1a1a1b;
  border-radius: 20px;
  padding: 1.1rem 1rem 1.15rem;
}

.coupon-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffe600;
  border: 2px solid #2d3277;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: center;
}

.coupon-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coupon-logo-amazon {
  background: #fff;
  border: none;
  color: #111;
  padding: 8px;
}

.coupon-footer {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 12px;
}

.coupon-footer-split {
  justify-content: space-between;
  align-items: stretch;
  gap: 8px;
}

.coupon-footer-split .coupon-btn {
  width: auto;
  flex: 1;
  min-width: 0;
  height: 40px;
  font-size: 9px;
  padding: 0 8px;
  border-radius: 10px;
  gap: 4px;
  white-space: nowrap;
}

.coupon-footer-split .coupon-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coupon-bank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 122px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  padding: 4px 6px;
  overflow: hidden;
  line-height: 0;
  box-sizing: border-box;
}

.coupon-bank-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.coupon-bank-chip-wide {
  width: 136px;
}

.coupon-bank-chip-wide img {
  object-fit: contain;
}

.coupon-logo-amazon .amazon-icon {
  font-size: 28px;
  color: #111;
}

.nav-meli-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffe600;
  border: 1px solid #2d3277;
  object-fit: contain;
  padding: 1px;
}

.coupon-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14ch;
  line-height: 1.05;
  font-size: clamp(15px, 6.2vw, 34px);
}

.coupon-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 1px auto;
  column-gap: 8px;
  align-items: center;
}

.coupon-divider {
  width: 1px;
  height: 70%;
  min-height: 44px;
  background: #9a9a9a;
  border-radius: 1px;
  align-self: center;
}

.coupon-info {
  min-width: 0;
}

.coupon-meta {
  font-size: clamp(11px, 3.3vw, 15px);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 22ch;
}

.coupon-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
}

.coupon-code {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  font-size: clamp(16px, 5vw, 26px);
  text-align: center;
}

.coupon-footer-split .coupon-btn {
  width: auto;
  flex: 1;
  min-width: 0;
}

.coupon-bank-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  color: #ef4444;
  font-weight: 800;
  white-space: nowrap;
  font-size: clamp(10px, 2.9vw, 14px);
}

.coupon-expires span {
  white-space: nowrap;
}

.coupon-btn {
  width: 100%;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
  font-size: clamp(8px, 2.4vw, 12px);
  letter-spacing: 0.01em;
  padding: 7px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}

.coupon-btn span {
  white-space: normal;
}

.coupon-card-expired {
  opacity: 0.72;
  pointer-events: none;
}

.coupon-btn-used {
  background: rgba(80, 80, 80, 0.45);
  color: #d4d4d4;
  cursor: default;
}

@media (min-width: 640px) {
  .coupon-card {
    padding: 1.25rem 1.25rem 1.3rem;
  }

  .coupon-logo {
    width: 60px;
    height: 60px;
  }

  .coupon-bank-chip {
    width: 130px;
    height: 44px;
    padding: 5px 7px;
  }

  .coupon-bank-chip-wide {
    width: 144px;
    height: 44px;
  }

  .coupon-footer-split .coupon-btn {
    height: 44px;
  }

  .coupon-main {
    column-gap: 10px;
  }

  .social-row {
    gap: 8px;
  }

  .social-chip {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .social-chip i {
    font-size: 20px;
  }
}

::selection {
  background: #fff;
  color: #000;
}

.hero-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 2px 2px;
}

.hero-title {
  font-size: clamp(13px, 3.4vw, 18px);
  white-space: nowrap;
}

.hero-date {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.25);
  font-size: clamp(9px, 2.3vw, 12px);
  white-space: nowrap;
}

.coupons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
}

.coupons-grid + .coupons-grid:not(:empty) {
  margin-top: 1.25rem;
}

.coupon-banner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 8px auto 4px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: none;
}

.banner-viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.banner-viewport.is-dragging {
  cursor: grabbing;
}

.banner-track {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: nowrap;
  transition: transform 0.4s ease;
  will-change: transform;
}

.banner-slide {
  position: relative;
  flex: 0 0 100%;
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  min-width: 0;
  border: none;
}

.banner-slide-img {
  position: static;
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  pointer-events: none;
  user-select: none;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.banner-prev {
  left: 6px;
}

.banner-next {
  right: 6px;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  padding: 0;
}

.banner-dot.is-active {
  background: #fff;
  width: 18px;
}

.coupon-banner.banner-one .banner-track {
  justify-content: center;
}

.coupon-banner.banner-one .banner-slide {
  flex-basis: 100%;
}

.coupon-card-hot {
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.coupon-hot-badge {
  background: #ef4444;
  color: #fff;
}

@media (min-width: 900px) {
  .coupons-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    gap: 1.25rem;
  }

  .banner-slide {
    flex-basis: calc((100% - 12px) / 2);
    height: 210px;
  }

  .banner-slide-img {
    border-radius: 20px;
  }

  .coupon-banner.banner-one .banner-slide {
    flex-basis: calc((100% - 12px) / 2);
  }

  .coupon-title {
    max-width: 16ch;
    font-size: clamp(18px, 2vw, 28px);
  }
}

.social-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}

.social-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 5px;
  border-radius: 9999px;
  border: 1px solid;
  background: transparent;
  color: #fff;
  font-size: clamp(8px, 2.15vw, 12px);
  font-weight: 700;
  justify-content: center;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.social-chip i {
  flex-shrink: 0;
  font-size: clamp(16px, 4.4vw, 20px);
}

.social-chip span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
}

.social-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.social-chip-wa {
  border-color: #22c55e;
}

.social-chip-wa i {
  color: #22c55e;
}

.social-chip-fb {
  border-color: #3b82f6;
}

.social-chip-fb i {
  color: #3b82f6;
}

.social-chip-ig {
  border-color: #e879f9;
}

.social-chip-ig i {
  color: #e879f9;
}

.social-chip-tt {
  border-color: #6b7280;
}

.social-chip-tt i {
  color: #fff;
}
