/* ==========================================================================
   Phase 4.1: Great Deals & Voucher Redemption Styles (/promo-voucher-discount & /deal-detail/{slug})
   ========================================================================== */

/* 1. Deals Hero & Campaign Carousel */
.hp-deals-hero {
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 100%);
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--hp-border);
}

.hp-deals-hero-header {
  margin: 12px 0 22px;
}

.hp-deals-hero-title {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 800;
  color: var(--hp-purple-dark);
  margin: 0 0 8px;
  line-height: 1.22;
}

.hp-deals-hero-subtitle {
  font-size: 16px;
  color: var(--hp-text-secondary);
  max-width: 720px;
  margin: 0;
  line-height: 1.6;
}

.hp-deals-spotlight-slide {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  box-shadow: var(--hp-shadow-md);
}

.hp-deals-spotlight-img {
  position: relative;
  height: 260px;
  background: #f3f4f6;
}

.hp-deals-spotlight-img > a {
  display: block;
  width: 100%;
  height: 100%;
}

.hp-deals-spotlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-deals-spotlight-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--hp-pink-deep);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--hp-radius-pill);
  pointer-events: none;
}

.hp-deals-spotlight-content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hp-deals-spotlight-content h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.hp-deals-spotlight-content h2 a {
  color: var(--hp-text-primary);
  text-decoration: none;
}

.hp-deals-spotlight-content h2 a:hover {
  color: var(--hp-purple);
}

.hp-deals-spotlight-provider {
  font-size: 13.5px;
  color: var(--hp-text-secondary);
  margin: 0 0 10px;
}

.hp-deals-spotlight-desc {
  font-size: 14px;
  color: var(--hp-text-secondary);
  margin: 0 0 18px;
  line-height: 1.55;
}

.hp-deals-spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--hp-border);
}

.hp-deals-price-pair {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hp-deals-price-old {
  font-size: 13px;
  color: var(--hp-text-muted);
  text-decoration: line-through;
}

.hp-deals-price-new {
  font-size: 20px;
  font-weight: 800;
  color: var(--hp-purple-dark);
}

/* 2. Filter Toolbar */
.hp-deals-toolbar-section {
  padding-top: 24px;
}

.hp-deals-toolbar {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--hp-radius-lg);
  padding: 22px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hp-deals-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #f1f5f9;
}

.hp-deals-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--hp-radius-pill);
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-deals-type-pill:hover {
  border-color: #612e95;
  color: #612e95;
  background: #fdf4ff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(97, 46, 149, 0.12);
}

.hp-deals-type-pill.is-active {
  background: #612e95 !important;
  border-color: #612e95 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(97, 46, 149, 0.35) !important;
  transform: translateY(-1px);
}

.hp-deals-type-pill.is-active i,
.hp-deals-type-pill.is-active span {
  color: #ffffff !important;
}

.hp-facet-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: var(--hp-radius-pill);
  background: #f1f5f9;
  color: #475569;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.hp-deals-type-pill.is-active .hp-facet-count {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

.hp-deals-filters-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.hp-deals-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hp-deals-filter-field label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
}

.hp-deals-filter-field select,
.hp-deals-filter-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hp-deals-filter-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23612e95' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 40px;
  cursor: pointer;
}

.hp-deals-filter-field select:focus,
.hp-deals-filter-field input:focus {
  outline: none;
  border-color: #612e95;
  box-shadow: 0 0 0 3px rgba(97, 46, 149, 0.15);
}

.hp-deals-search-wrap input,
.hp-deals-location-wrap input {
  padding-left: 36px;
}

.hp-deals-search-icon,
.hp-deals-loc-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #612e95;
  font-size: 14px;
  pointer-events: none;
}

.hp-deals-filter-actions {
  display: flex;
  gap: 10px;
}

.hp-deals-filter-actions .btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
}

.hp-deals-count-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1.5px solid #f1f5f9;
}

.hp-deals-count-text {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

.hp-deals-count-text strong {
  color: #1e293b;
  font-weight: 800;
}

.hp-deals-subbar-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hp-deals-control-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-deals-control-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.hp-deals-limit-select {
  height: 36px;
  padding: 0 30px 0 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23612e95' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 13px 13px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease;
}

.hp-deals-limit-select:focus {
  outline: none;
  border-color: #612e95;
  box-shadow: 0 0 0 2px rgba(97, 46, 149, 0.15);
}

.hp-deals-col-toggle {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--hp-radius-pill);
  padding: 3px;
  gap: 3px;
}

.hp-deals-col-btn {
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: var(--hp-radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.hp-deals-col-btn:hover {
  color: #612e95;
}

.hp-deals-col-btn.is-active {
  background: #612e95;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(97, 46, 149, 0.28);
}

/* 3. Deals Grid (Default: 4 to a row on desktop) */
.hp-deals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch !important;
}

.hp-deals-grid.is-3-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px;
  align-items: stretch !important;
}

/* 3.1 Live Deal Card Styling & Extensions */
.mainparent2-deal-box.deal-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.mainparent2-deal-box.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(97, 46, 149, 0.16);
  border-color: #c084fc;
}

.deal-card .deal-card-banner {
  position: relative;
  height: 175px;
  background: #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
}

.deal-card .deal-card-banner > a {
  display: block;
  width: 100%;
  height: 100%;
}

.deal-card .deal-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mainparent2-deal-box.deal-card:hover .deal-card-banner img {
  transform: scale(1.04);
}

.deal-card .deal-voucher-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #612e95;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.deal-card .deal-discount-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #ffb400;
  color: #0f172a;
  font-weight: 900;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.deal-card .deal-card-body {
  padding: 14px 16px;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: 100% !important;
}

.deal-card .deal-card-title {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #1e293b;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.deal-card .deal-card-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.deal-card .deal-card-title a:hover {
  color: #612e95;
}

.deal-card .deal-card-provider {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #612e95;
  margin-bottom: 6px;
}

.deal-card .deal-provider-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.deal-card .deal-card-footer {
  margin-top: auto !important;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.deal-card .deal-validity-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.deal-card.is-depleted {
  opacity: 0.88;
}

.deal-card.is-depleted img {
  filter: grayscale(40%);
}

.deal-sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(2px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.deal-expired-btn {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
  cursor: pointer;
}

.deal-expired-btn:hover {
  background: #e5e7eb !important;
  color: #374151 !important;
}

.hp-deal-depleted-notice,
.hp-deal-expired-notice {
  text-align: center;
  padding: 24px 16px;
  border-radius: 12px;
  margin: 16px 0;
}

.hp-deal-depleted-notice {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.hp-deal-depleted-icon {
  font-size: 32px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.hp-deal-depleted-notice h3 {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

.hp-deal-depleted-notice p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.hp-deal-expired-notice {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-left: 4px solid #dc2626;
}

.hp-deal-expired-notice .hp-deal-depleted-icon {
  color: #dc2626;
}

.hp-deal-expired-notice h3 {
  color: #991b1b;
}

.hp-deal-expired-notice p {
  color: #7f1d1d;
}

.deal-card-provider {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-text-secondary);
  margin-bottom: 6px;
}

.deal-provider-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hp-border);
  flex-shrink: 0;
}

.deal-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--hp-text-muted);
  margin-bottom: 10px;
}

.deal-card-min-spend {
  display: inline-flex;
  align-items: center;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 7px;
  border-radius: var(--hp-radius-sm);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Quota Scarcity Bar */
.deal-quota-wrap {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deal-quota-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: var(--hp-radius-pill);
  overflow: hidden;
  position: relative;
}

.deal-quota-fill {
  height: 100%;
  border-radius: var(--hp-radius-pill);
  background: linear-gradient(90deg, var(--hp-purple) 0%, var(--hp-pink-deep) 100%);
  transition: width 0.4s ease;
}

.deal-quota-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--hp-text-secondary);
}

.deal-quota-scarcity {
  color: #dc2626;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.deal-quota-depleted {
  color: #9ca3af;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Shimmer Loading Skeleton */
.deal-card-skeleton {
  pointer-events: none;
  border: 1px solid var(--hp-border);
}

@keyframes hpShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hp-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: hpShimmer 1.5s infinite;
}

.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background: #9ca3af !important;
  border-color: #9ca3af !important;
  color: #ffffff !important;
}

/* ==========================================================================
   4. Deal Detail & Voucher Redemption Page (/deal-detail/{slug})
   ========================================================================== */

.hp-deal-detail-section {
  padding: 24px 0 48px;
}

.hp-deal-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}

.hp-deal-main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hp-deal-banner-card {
  background: #ffffff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  box-shadow: var(--hp-shadow-sm);
}

.hp-deal-banner-image {
  position: relative;
  height: 360px;
  background: #f3f4f6;
}

.hp-deal-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-deal-banner-body {
  padding: 26px;
}

.hp-deal-detail-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--hp-text-primary);
  margin: 0 0 12px;
  line-height: 1.28;
}

.hp-deal-detail-desc {
  font-size: 15px;
  color: var(--hp-text-secondary);
  line-height: 1.65;
  margin: 0 0 24px;
}

.hp-deal-detail-desc p {
  margin: 0 0 12px;
}

.hp-deal-detail-desc p:last-child {
  margin-bottom: 0;
}

.hp-deal-instructions-text p {
  margin: 0 0 10px;
}

.hp-deal-instructions-text p:last-child {
  margin-bottom: 0;
}

.hp-deal-terms-prose p {
  margin: 0 0 8px;
}

.hp-deal-terms-prose p:last-child {
  margin-bottom: 0;
}

.hp-deal-tagline {
  font-size: 15px;
  font-weight: 600;
  color: var(--hp-purple);
  margin: 0 0 12px;
}

/* Header Badges & High Visibility Countdown */
.hp-deal-header-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.hp-badge-location {
  background: #f1f5f9;
  color: var(--hp-text-secondary);
}

.hp-badge-location i {
  color: var(--hp-pink-deep);
}

.hp-badge-minspend {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
}

/* High Visibility Countdown Pill */
.hp-deal-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--hp-radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

/* Neutral: > 7 days */
.hp-deal-countdown--neutral {
  background-color: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #334155;
}

.hp-deal-countdown--neutral i {
  color: #64748b;
}

/* Warning: < 7 days */
.hp-deal-countdown--warning {
  background-color: #fffbeb;
  border: 1.5px solid #f59e0b;
  color: #92400e;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.15);
}

.hp-deal-countdown--warning i {
  color: #d97706;
}

/* Urgent: Last day (<= 1 day or expires today) */
.hp-deal-countdown--urgent {
  background-color: #fef2f2;
  border: 1.5px solid #ef4444;
  color: #b91c1c;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.22);
  animation: hpPulseUrgent 2s infinite ease-in-out;
}

.hp-deal-countdown--urgent i {
  color: #dc2626;
}

/* Expired */
.hp-deal-countdown--expired {
  background-color: #f3f4f6;
  border: 1.5px solid #d1d5db;
  color: #6b7280;
}

@keyframes hpPulseUrgent {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.hp-countdown-date-sub {
  font-weight: 500;
  opacity: 0.85;
  font-size: 11.5px;
}

/* Countdown Tag on Banner Image */
.deal-countdown-banner-tag {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--hp-radius-pill);
  font-size: 13px;
  font-weight: 800;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.deal-countdown-banner-tag--warning {
  background: rgba(245, 158, 11, 0.92);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.deal-countdown-banner-tag--urgent {
  background: rgba(225, 29, 72, 0.95);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(225, 29, 72, 0.4);
  animation: hpPulseUrgent 1.8s infinite;
}

/* Urgency Banner Callout */
.hp-deal-urgency-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--hp-radius-md);
  margin: 18px 0 20px;
}

.hp-deal-urgency-banner--urgent {
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  border: 1.5px solid #fca5a5;
  color: #991b1b;
}

.hp-deal-urgency-banner--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fcd34d;
  color: #92400e;
}

.hp-urgency-banner-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.hp-deal-urgency-banner--urgent .hp-urgency-banner-icon-wrap {
  background: #fee2e2;
  color: #dc2626;
}

.hp-deal-urgency-banner--warning .hp-urgency-banner-icon-wrap {
  background: #fde68a;
  color: #d97706;
}

.hp-urgency-banner-content strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 2px;
}

.hp-urgency-banner-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.92;
}

/* Prominent Provider Card (Immediately After Title) */
.hp-deal-header-provider-card {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 1.5px solid #e9d8fd;
  border-radius: var(--hp-radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
  box-shadow: 0 2px 10px rgba(97, 46, 149, 0.05);
  transition: all 0.2s ease;
}

.hp-deal-header-provider-card:hover {
  border-color: #d8b4fe;
  box-shadow: 0 4px 16px rgba(97, 46, 149, 0.09);
}

.hp-deal-header-provider-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 300px;
}

.hp-deal-header-provider-avatar {
  flex-shrink: 0;
}

.hp-provider-avatar-link {
  display: block;
  transition: transform 0.2s ease;
}

.hp-provider-avatar-link:hover {
  transform: scale(1.05);
}

.hp-deal-header-provider-avatar img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  display: block;
}

.hp-provider-avatar-fallback {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: var(--hp-purple-tint);
  border: 1.5px solid #e9d8fd;
  color: var(--hp-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.hp-deal-header-provider-info {
  min-width: 0;
  flex: 1;
}

.hp-deal-header-provider-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.hp-deal-provider-kicker {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hp-purple);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hp-badge-verified {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--hp-radius-pill);
}

.hp-badge-verified i {
  color: #10b981;
}

.hp-deal-header-provider-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 4px;
  color: var(--hp-text-primary);
}

.hp-provider-profile-link {
  color: var(--hp-text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.hp-provider-profile-link:hover {
  color: var(--hp-purple);
}

.hp-external-arrow {
  font-size: 12px;
  color: var(--hp-purple);
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.hp-provider-profile-link:hover .hp-external-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

.hp-deal-header-provider-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--hp-text-secondary);
}

.hp-provider-meta-loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hp-provider-meta-loc i {
  color: var(--hp-pink-deep);
}

.hp-provider-meta-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hp-provider-meta-count {
  color: var(--hp-text-muted);
  font-size: 12px;
}

.hp-deal-header-provider-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.hp-provider-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
}

/* ==========================================================================
   Deal Details: Sticky Header on Scroll (Time Left, Title, Cat, Provider)
   ========================================================================== */
.hp-deal-sticky-sentinel {
  height: 1px;
  margin-top: -1px;
  pointer-events: none;
  visibility: hidden;
}

.hp-deal-sticky-header {
  position: fixed;
  top: var(--hp-header-height, 60px);
  left: 0;
  right: 0;
  z-index: 985;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--hp-border-light, #e2e8f0);
  box-shadow: 0 4px 16px rgba(97, 46, 149, 0.08);
  padding: 8px 0;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.hp-deal-sticky-header.is-sticky {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.hp-deal-sticky-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hp-deal-sticky-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  min-width: 0;
}

.hp-deal-sticky-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--hp-purple-tint, #f5effb);
  color: var(--hp-purple, #612e95);
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--hp-radius-pill, 50px);
  font-size: 11px;
  flex-shrink: 0;
}

.hp-deal-sticky-sep {
  color: #94a3b8;
  font-size: 10px;
  flex-shrink: 0;
}

.hp-deal-sticky-provider {
  font-weight: 700;
  color: var(--hp-text-secondary, #475569);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.hp-deal-sticky-provider i {
  color: var(--hp-purple, #612e95);
  font-size: 10px;
  flex-shrink: 0;
}

.hp-deal-sticky-time {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--hp-radius-pill, 50px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.hp-deal-sticky-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--hp-text-primary, #1e293b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ==========================================================================
   Mobile Deal Request / Redemption Sticky Bottom Sheet & Grid Switcher
   ========================================================================== */
.hp-mobile-col-control,
.hp-deal-mobile-backdrop,
.hp-deal-mobile-collapsed-bar,
.hp-deal-mobile-expanded-header {
  display: none !important;
}

.hp-deal-redeem-content {
  display: block;
}

/* Deals Gallery */
.hp-deal-gallery-box {
  margin: 28px 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--hp-border);
}

.hp-deal-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hp-deal-gallery-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--hp-purple-dark);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hp-deal-gallery-title i {
  color: var(--hp-purple);
}

.hp-deal-gallery-count-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-purple);
  background: var(--hp-purple-tint);
  border: 1px solid #e9d8fd;
  padding: 3px 10px;
  border-radius: var(--hp-radius-pill);
}

.hp-deal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.hp-deal-gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  padding: 0;
  border: 1.5px solid var(--hp-border);
  border-radius: var(--hp-radius-md);
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.hp-deal-gallery-thumb:hover {
  transform: translateY(-3px);
  border-color: var(--hp-purple);
  box-shadow: 0 6px 16px rgba(97, 46, 149, 0.16);
}

.hp-deal-gallery-thumb:focus-visible {
  outline: 2px solid var(--hp-purple);
  outline-offset: 2px;
}

.hp-deal-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hp-deal-gallery-thumb:hover img {
  transform: scale(1.05);
}

.hp-deal-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(49, 14, 84, 0.38);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.hp-deal-gallery-thumb:hover .hp-deal-gallery-overlay {
  opacity: 1;
}

.hp-deal-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 10px 8px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Gallery Lightbox Modal (#hp-gallery-lightbox) */
#hp-gallery-lightbox.hp-modal-backdrop {
  z-index: 1200;
  background: rgba(10, 6, 18, 0.94);
  backdrop-filter: blur(8px);
  padding: 0;
}

#hp-gallery-lightbox .hp-modal-dialog,
.hp-gallery-modal-dialog {
  width: 92vw;
  max-width: 1140px;
  height: 88vh;
  max-height: 820px;
  background: #120e1d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--hp-radius-lg, 16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

@media (max-width: 767px) {
  #hp-gallery-lightbox .hp-modal-dialog,
  .hp-gallery-modal-dialog {
    width: 96vw;
    height: 90vh;
    border-radius: 12px;
  }
}

#hp-gallery-lightbox .hp-modal-header,
.hp-gallery-modal-header {
  flex: 0 0 auto;
  background: #1a1528;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hp-gallery-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.hp-gallery-modal-title {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.hp-gallery-modal-counter {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: var(--hp-radius-pill, 99px);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hp-gallery-modal-close {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hp-gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.08);
}

.hp-gallery-stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0a14;
  overflow: hidden;
  padding: 12px 16px;
}

.hp-gallery-image-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hp-gallery-main-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  user-select: none;
  display: block;
  transition: opacity 0.15s ease;
}

.hp-gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(24, 17, 36, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  font-size: 16px;
}

.hp-gallery-prev {
  left: 16px;
}

.hp-gallery-next {
  right: 16px;
}

.hp-gallery-nav-btn:hover {
  background: var(--hp-purple-primary, #612e95);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.hp-gallery-nav-btn:focus-visible {
  outline: 2px solid var(--hp-teal-accent, #0aaca2);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .hp-gallery-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .hp-gallery-prev {
    left: 8px;
  }
  .hp-gallery-next {
    right: 8px;
  }
}

.hp-gallery-thumbs-container {
  flex: 0 0 auto;
  background: #161220;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  overflow-x: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.hp-gallery-thumbs-track {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: min-content;
}

@media (max-width: 767px) {
  .hp-gallery-thumbs-track {
    justify-content: flex-start;
  }
}

.hp-gallery-thumb-item {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  background: #000000;
  flex-shrink: 0;
}

.hp-gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.hp-gallery-thumb-item:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.4);
}

.hp-gallery-thumb-item.active {
  opacity: 1;
  border-color: var(--hp-teal-accent, #0aaca2);
  box-shadow: 0 0 0 2px rgba(10, 172, 162, 0.5);
  transform: scale(1.06);
}

/* Branches & Steps */
.hp-deal-branches-box {
  margin: 22px 0;
  padding-top: 20px;
  border-top: 1px solid var(--hp-border);
}

.hp-deal-branches-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.hp-deal-branch-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-md);
}

.hp-deal-instructions-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--hp-text-secondary);
  background: #ffffff;
  padding: 14px 16px;
  border-radius: var(--hp-radius-sm);
  border: 1px solid #e9d8fd;
}

.hp-deal-steps-box {
  background: #faf5ff;
  border: 1px solid #e9d8fd;
  border-radius: var(--hp-radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.hp-deal-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hp-deal-step-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hp-deal-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--hp-purple);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-deal-step-item strong {
  display: block;
  font-size: 13.5px;
  color: var(--hp-text-primary);
  margin-bottom: 2px;
}

.hp-deal-step-item p {
  font-size: 12.5px;
  color: var(--hp-text-secondary);
  margin: 0;
  line-height: 1.45;
}

.hp-deal-terms-box {
  border-top: 1px solid var(--hp-border);
  padding-top: 18px;
}

.hp-deal-terms-list {
  margin: 0;
  padding-left: 18px;
  color: var(--hp-text-secondary);
  font-size: 13.5px;
  line-height: 1.65;
}

/* Sticky Redemption Card & Polished Form */
.hp-deal-sidebar {
  position: sticky;
  top: 92px;
  min-width: 0;
  z-index: 20;
  height: fit-content;
  align-self: start;
}

.hp-deal-redeem-card {
  background: #ffffff;
  border: 1.5px solid #e9d8fd;
  border-radius: var(--hp-radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(97, 46, 149, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  will-change: transform;
}

.hp-deal-price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid #f1f5f9;
}

.hp-deal-price-kicker {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hp-text-muted);
  display: block;
  margin-bottom: 2px;
}

.hp-deal-price-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--hp-purple-dark);
  line-height: 1.15;
}

/* Sidebar Countdown Banner */
.hp-deal-sidebar-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--hp-radius-md);
  margin-bottom: 16px;
  font-size: 13px;
}

.hp-deal-sidebar-countdown i {
  font-size: 18px;
  flex-shrink: 0;
}

.hp-deal-sidebar-countdown-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.hp-deal-sidebar-countdown-text strong {
  font-weight: 800;
  font-size: 13.5px;
}

.hp-deal-sidebar-countdown-text span {
  font-size: 11.5px;
  opacity: 0.9;
}

/* Quota Remaining Section */
.deal-sidebar-quota {
  background: #fbf9fe;
  border: 1px solid #f3e8ff;
  border-radius: var(--hp-radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.deal-quota-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.deal-quota-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hp-quota-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--hp-radius-pill);
}

.hp-quota-badge--available {
  background: #dcfce7;
  color: #15803d;
}

.hp-quota-badge--urgent {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  animation: hpPulseUrgent 2s infinite;
}

.hp-quota-badge--depleted {
  background: #fee2e2;
  color: #991b1b;
}

.deal-quota-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--hp-radius-pill);
  overflow: hidden;
  margin-bottom: 6px;
}

.deal-quota-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hp-purple) 0%, var(--hp-purple-secondary) 100%);
  border-radius: var(--hp-radius-pill);
  transition: width 0.4s ease;
}

.deal-quota-fill.is-urgent {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

.deal-quota-fill.is-depleted {
  background: #ef4444;
}

.deal-quota-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

.deal-quota-scarcity {
  color: #dc2626;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.deal-quota-remaining strong {
  color: #1e293b;
}

/* Polished Voucher Form */
.hp-deal-form-intro {
  margin-bottom: 14px;
}

.hp-deal-form-intro p {
  margin: 0;
  font-size: 13px;
  color: var(--hp-text-secondary);
  line-height: 1.5;
}

.hp-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  width: 100%;
}

.hp-form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.hp-form-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1px;
}

.hp-form-req {
  color: #ef4444;
  font-weight: 800;
  font-size: 13px;
}

.hp-form-hint {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
  margin-top: 1px;
}

.hp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.hp-input-prefix-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.hp-whatsapp-color {
  color: #25d366 !important;
}

.hp-form-control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 44px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hp-form-control--with-icon {
  padding-left: 38px;
}

.hp-form-control:hover {
  border-color: #94a3b8;
}

.hp-form-control:focus {
  border-color: var(--hp-purple);
  box-shadow: 0 0 0 3.5px rgba(97, 46, 149, 0.16);
  outline: none;
  background-color: #fdfcff;
}

.hp-input-wrap:focus-within .hp-input-prefix-icon {
  color: var(--hp-purple);
}

.hp-form-control:user-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Error Banner */
.hp-form-error-banner {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin: 10px 0 14px;
}

/* Submit CTA */
.hp-deal-submit-btn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--hp-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(97, 46, 149, 0.32);
  margin-top: 4px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-deal-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(97, 46, 149, 0.42);
}

.hp-deal-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Trust Signals */
.hp-deal-form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.hp-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.hp-trust-item i {
  color: var(--hp-purple);
  font-size: 12px;
}

/* Success Card */
.hp-deal-success-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px;
}

.hp-deal-code-box {
  background: linear-gradient(135deg, #faf5ff 0%, #f5effb 100%);
  border: 2px dashed var(--hp-purple);
  border-radius: var(--hp-radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.hp-deal-code-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--hp-text-muted);
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.hp-deal-code-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--hp-purple);
  letter-spacing: 0.05em;
  font-family: monospace, sans-serif;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .hp-deals-grid:not(.is-3-cols) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .hp-desktop-only {
    display: none !important;
  }

  /* Mobile Grid View Switcher Button Group */
  .hp-mobile-col-control {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
  }

  .hp-deals-spotlight-slide {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-deals-filters-row {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Deals Grid Responsive Toggling on Mobile (< 992px) */
  .hp-deals-grid,
  .hp-deals-grid.is-3-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
    align-items: stretch !important;
  }

  .hp-deals-grid.is-mobile-1-col {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
    align-items: stretch !important;
  }

  .hp-deals-grid.is-mobile-2-col {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
    align-items: stretch !important;
  }

  .hp-deal-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-deal-sidebar {
    position: static;
    z-index: 1040 !important;
  }

  .hp-deal-steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-deal-header-provider-card {
    padding: 14px 16px;
  }

  .hp-deal-header-provider-main {
    flex: 1 1 auto;
    min-height: 0;
  }

  /* Deal Detail Bottom Viewport Clearance on Mobile */
  .hp-deal-detail-section {
    padding-bottom: calc(var(--hp-mobile-bottom-height, 62px) + 76px);
  }

  body.hp-deal-sheet-open {
    overflow: hidden;
  }

  /* Mobile Backdrop Overlay */
  .hp-deal-mobile-backdrop {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1030;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.25s ease;
  }

  .hp-deal-mobile-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile Sticky Deal Request Card (Anchored right above .mobile-bottom-nav) */
  #dealRedemptionCard.hp-deal-redeem-card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--hp-mobile-bottom-height, 62px);
    z-index: 1050;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
    border: 1.5px solid #e9d8fd;
    border-bottom: 1px solid var(--hp-border-light, #e2e8f0);
    box-shadow: 0 -4px 20px rgba(97, 46, 149, 0.16);
    padding: 0;
    margin: 0;
    max-height: 80px;
    overflow: hidden;
    transform: translateY(0);
    transition: max-height 0.32s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.2s ease;
  }

  #dealRedemptionCard.hp-deal-redeem-card.is-expanded {
    max-height: min(72vh, calc(100dvh - 160px));
    box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Collapsed Bar State */
  .hp-deal-mobile-collapsed-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    min-height: 60px;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  }

  #dealRedemptionCard.is-expanded .hp-deal-mobile-collapsed-bar {
    display: none !important;
  }

  .hp-deal-mobile-collapsed-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .hp-deal-mobile-collapsed-benefit {
    font-size: 16px;
    font-weight: 900;
    color: var(--hp-purple-dark, #2b1343);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hp-deal-mobile-collapsed-quota {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--hp-text-secondary, #475569);
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .hp-deal-mobile-collapsed-quota .is-urgent {
    color: #dc2626;
  }

  .hp-deal-mobile-collapsed-quota .is-sold-out {
    color: #ef4444;
  }

  .hp-deal-mobile-collapsed-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 800;
    border-radius: var(--hp-radius-pill, 50px);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(97, 46, 149, 0.35);
    flex-shrink: 0;
  }

  /* Expanded Sheet Header */
  .hp-deal-mobile-expanded-header {
    display: none !important;
    flex-direction: column;
    padding: 8px 16px 10px;
    background: #faf5ff;
    border-bottom: 1px solid var(--hp-border-light, #e2e8f0);
    flex-shrink: 0;
  }

  #dealRedemptionCard.is-expanded .hp-deal-mobile-expanded-header {
    display: flex !important;
  }

  .hp-deal-mobile-drag-handle {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 3px 0 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .hp-deal-mobile-drag-pill {
    width: 44px;
    height: 4.5px;
    border-radius: 9999px;
    background: #cbd5e1;
    transition: background-color 0.15s ease;
  }

  .hp-deal-mobile-drag-handle:hover .hp-deal-mobile-drag-pill,
  .hp-deal-mobile-drag-handle:active .hp-deal-mobile-drag-pill {
    background: var(--hp-purple, #612e95);
  }

  .hp-deal-mobile-expanded-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .hp-deal-mobile-expanded-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--hp-purple-dark, #2b1343);
  }

  .hp-deal-mobile-close-btn,
  .hp-deal-mobile-collapse-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    -webkit-tap-highlight-color: transparent;
  }

  .hp-deal-mobile-close-btn:hover,
  .hp-deal-mobile-close-btn:active,
  .hp-deal-mobile-collapse-btn:hover,
  .hp-deal-mobile-collapse-btn:active {
    background: #f1f5f9;
    color: var(--hp-purple, #612e95);
    border-color: var(--hp-purple, #612e95);
    transform: scale(1.08);
  }

  /* Form and Content Inside Sheet */
  #dealRedemptionCard:not(.is-expanded) .hp-deal-redeem-content {
    display: none !important;
  }

  #dealRedemptionCard.is-expanded .hp-deal-redeem-content {
    display: block !important;
    padding: 16px 18px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }
}

@media (max-width: 640px) {
  /* Default Deals Grid on Mobile: 2 Columns with seamless 1-Col override */
  .hp-deals-grid,
  .hp-deals-grid.is-3-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    align-items: stretch !important;
  }

  .hp-deals-grid.is-mobile-1-col {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
    align-items: stretch !important;
  }

  .hp-deals-grid.is-mobile-2-col {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    align-items: stretch !important;
  }

  /* Refined Compact Card styling for 2-column mobile layout */
  .hp-deals-grid.is-mobile-2-col .deal-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .deal-card-banner {
    height: 125px;
    flex-shrink: 0;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .deal-voucher-ribbon {
    font-size: 9.5px;
    padding: 2px 7px;
    top: 6px;
    left: 6px;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .deal-discount-tag {
    font-size: 11px;
    padding: 2px 7px;
    bottom: 6px;
    right: 6px;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .deal-card-body {
    padding: 10px 10px 12px;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .deal-card-title {
    font-size: 12.5px;
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .deal-card-provider {
    font-size: 11px;
    gap: 4px;
    margin-bottom: 4px;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .deal-provider-logo {
    width: 16px;
    height: 16px;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .card-location {
    font-size: 11px;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .deal-card-min-spend {
    font-size: 10px;
    padding: 1px 5px;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .deal-quota-text {
    font-size: 10.5px;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .deal-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 8px;
    margin-top: auto !important;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .deal-validity-text {
    font-size: 10.5px;
    justify-content: center;
  }

  .hp-deals-grid.is-mobile-2-col .deal-card .deal-card-footer .btn {
    width: 100%;
    justify-content: center;
    font-size: 11.5px;
    padding: 5px 8px;
  }

  .hp-form-row-2 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0;
  }

  /* Provider Mini-Card Spacing Fix: Remove 300px flex-basis and tighten vertical margins */
  .hp-deal-header-provider-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    margin: 12px 0 16px;
  }

  .hp-deal-header-provider-main {
    flex: 0 0 auto !important;
    width: 100%;
    min-height: 0;
    gap: 12px;
    align-items: center;
  }

  .hp-deal-header-provider-avatar img,
  .hp-provider-avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 18px;
  }

  .hp-deal-header-provider-name {
    font-size: 15.5px;
    line-height: 1.3;
    margin: 0 0 3px;
  }

  .hp-deal-header-provider-meta {
    font-size: 12px;
    gap: 6px;
  }

  .hp-deal-header-provider-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    margin-top: 2px;
  }

  .hp-deal-header-provider-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 7px 10px;
  }

  .hp-deal-banner-image {
    height: 230px;
  }
}

