:root {
  --public-bg: #f6f7f9;
  --panel: #ffffff;
  --line: #e6e9ef;
  --muted: #748093;
  --text: #111827;
  --red: #ff171b;
  --green: #00a856;
  --blue: #2563ff;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
body.public-page {
  margin: 0;
  background: var(--public-bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.public-shell {
  width: 1080px;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
}

.public-topbar {
  height: 54px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 170px 1fr 150px;
  align-items: center;
  gap: 24px;
}
.public-logo img { width: 88px; height: auto; display: block; }
.public-search {
  height: 32px;
  display: flex;
  align-items: center;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  background: #f9fafb;
  overflow: hidden;
}
.public-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 12px;
  color: #334155;
  font-size: 12px;
}
.public-search input::placeholder { color: #8994a6; }
.public-search button {
  width: 34px;
  height: 32px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: #8c98aa;
  cursor: pointer;
}
.public-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.subscribe-top-btn {
  justify-self: end;
  height: 32px;
  min-width: 126px;
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.hero-section { padding-top: 40px; }
.hero-carousel {
  height: 315px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #ede9fe;
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}
.hero-slide.active { opacity: 1; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.hero-dot.active { background: #fff; }

.feature-strip {
  height: 94px;
  margin-top: 40px;
  background: #fff;
  border-top: 1px solid #ffedd5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 0 80px;
  gap: 40px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon.green { background: #c9f8dd; color: #00a856; }
.feature-icon.blue { background: #d6e9ff; color: #2563ff; }
.feature-icon.pink { background: #ffd7e8; color: #ff1824; }
.feature-icon.community-feature-icon {
  background: #cfe5ff;
  color: #2563ff;
}
.feature-icon.community-feature-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.35;
}
.feature-icon.platform-feature-icon {
  background: #ffd7e8;
  color: #ff171b;
}
.feature-icon.platform-feature-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.45;
}
.feature-icon.platform-feature-icon rect,
.feature-icon.platform-feature-icon path {
  stroke: currentColor;
}

.deal-section {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  background: #fff;
  min-height: 780px;
}
.filter-panel {
  border-right: 1px solid var(--line);
  padding: 24px 20px 40px 20px;
}
.filter-group { margin-bottom: 22px; }
.filter-group h4 {
  margin: 0 0 12px;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 10px;
  font-weight: 800;
}
.filter-link,
.check-row {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  color: #536173;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0 8px;
}
.filter-link.active {
  background: #ffe7e9;
  color: var(--red);
  font-weight: 700;
}
.small-icon,
.check-row span {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  color: #657287;
}
.small-icon.red { color: var(--red); }
.small-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.check-row { padding-left: 2px; }
.check-row input { display: none; }
.check-row span {
  border: 1.8px solid #8a94a6;
  border-radius: 3px;
}
.check-row input:checked + span {
  background: var(--red);
  border-color: var(--red);
  box-shadow: inset 0 0 0 3px #fff;
}
.clear-filter {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--red);
}
.discount-range {
  width: 100%;
  accent-color: var(--red);
  cursor: pointer;
}
.range-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  color: #9aa4b5;
  font-size: 10px;
}
.range-scale strong {
  background: var(--red);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
}
.mini-subscribe-card {
  margin-top: 28px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff1fb 0%, #ffeaf4 100%);
  text-align: center;
  padding: 22px 12px 16px;
}
.mini-bell {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe1ec;
  color: var(--red);
}
.mini-bell svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mini-subscribe-card strong { display: block; font-size: 12px; color: #334155; }
.mini-subscribe-card p { margin: 6px 0 14px; color: #6b7586; font-size: 10px; line-height: 1.35; }
.mini-subscribe-card button {
  width: 100%;
  height: 30px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: var(--red);
  cursor: pointer;
}

.deal-content { padding: 24px 0 40px; }
.deal-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.deal-heading-row h2 { margin: 0 0 6px; font-size: 21px; font-weight: 650; }
.deal-heading-row p { margin: 0; font-size: 11px; color: #7a8597; line-height: 1.25; }
.sort-form { display: flex; align-items: center; gap: 8px; color: #8a94a6; font-size: 11px; }
.sort-form select {
  width: 150px;
  height: 30px;
  border: 1px solid #dce2eb;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  padding: 0 10px;
  font-size: 11px;
}
.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.deal-card {
  min-height: 255px;
  border: 1px solid #dfe4ec;
  border-radius: 11px;
  padding: 20px 18px 14px;
  background: radial-gradient(circle at 72% 16%, rgba(255, 30, 95, 0.07), transparent 35%), #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.025);
  display: flex;
  flex-direction: column;
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-height: 58px; }
.brand-logo-wrap { width: 90px; height: 48px; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; }
.brand-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; object-position: left center; }
.brand-logo-wrap span { font-family: Georgia, serif; font-size: 28px; line-height: 1; color: #0b1220; font-weight: 700; }
.discount-block { text-align: center; line-height: 1; color: var(--red); min-width: 58px; }
.discount-block strong { display: block; font-size: 36px; letter-spacing: -.03em; font-weight: 800; }
.discount-block span { display: block; margin-top: 4px; color: #4b5565; font-size: 22px; font-weight: 500; }
.deal-card h3 {
  margin: 10px 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 650;
  color: #172033;
}
.verified-badge { width: 18px; height: 18px; display: inline-grid; place-items: center; color: var(--green); flex: 0 0 auto; }
.verified-badge svg { width: 18px; height: 18px; fill: var(--green); stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.verified-badge svg path:last-child { stroke: var(--green); stroke-width: 1; fill: var(--green); }
.deal-notes { margin: 0; color: #727d90; line-height: 1.35; font-size: 14px; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-card-footer { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 18px; }
.valid-box { display: flex; align-items: center; gap: 9px; }
.date-icon { width: 42px; height: 42px; border-radius: 9px; background: #f0f2f5; display: grid; place-items: center; color: #536173; flex: 0 0 auto; }
.date-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.valid-box span { display: block; color: #778397; font-size: 10px; line-height: 1.1; }
.valid-box strong { display: block; margin-top: 2px; color: #111827; font-size: 15px; white-space: nowrap; }
.visit-store {
  min-width: 88px;
  height: 36px;
  border: 1.5px solid #d2d8e2;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #182234;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.visit-store:hover { border-color: var(--red); color: var(--red); }
.empty-deals {
  grid-column: 1 / -1;
  min-height: 220px;
  border: 1px dashed #d8dee8;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #7b8597;
  background: #fff;
}
.pagination-row {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6f7a8d;
  font-size: 11px;
}
.pagination-row strong { display: block; color: #475569; margin-bottom: 4px; }
.pagination-controls { display: flex; align-items: center; gap: 8px; }
.page-btn {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  border: 1px solid #e0e5ec;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #64748b;
  font-weight: 700;
}
.page-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-ellipsis { color: #7d8796; padding: 0 3px; }

.subscribe-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.36);
  backdrop-filter: blur(1px);
}
.subscribe-overlay.open { display: flex; }
.subscribe-modal {
  position: relative;
  width: 330px;
  border-radius: 14px;
  background: #fff;
  padding: 34px 28px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15,23,42,.25);
}
.modal-x {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #8b95a7;
  font-size: 21px;
  cursor: pointer;
}
.modal-bell {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff1f3;
  display: grid;
  place-items: center;
  color: var(--red);
}
.modal-bell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.subscribe-modal h3 { margin: 0 0 10px; font-size: 20px; font-weight: 500; color: #182234; }
.subscribe-modal p { margin: 0 0 18px; color: #6f7a8d; font-size: 11px; line-height: 1.4; }
.subscribe-modal input {
  width: 100%;
  height: 32px;
  border: 1px solid #d8dee8;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 12px;
  outline: none;
}
.subscribe-modal input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,23,27,.08); }
.subscribe-modal form button {
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 7px;
  margin-top: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.subscribe-message { min-height: 18px; margin-top: 8px; font-size: 11px; color: var(--green); }
.subscribe-message.error { color: var(--red); }
.subscribe-modal small { color: #8b95a7; font-size: 10px; }

@media (max-width: 1020px) {
  .topbar-inner { grid-template-columns: 110px 1fr 120px; gap: 14px; }
  .deal-section { grid-template-columns: 1fr; }
  .filter-panel { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .mini-subscribe-card { margin-top: 0; }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .public-shell { max-width: calc(100vw - 20px); }
  .public-topbar { height: auto; padding: 12px 0; }
  .topbar-inner { grid-template-columns: 1fr; }
  .public-search { order: 3; }
  .subscribe-top-btn { justify-self: start; }
  .hero-section { padding-top: 20px; }
  .hero-carousel { height: 210px; }
  .feature-strip { height: auto; padding: 18px; grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
  .filter-panel { grid-template-columns: 1fr; }
  .deal-heading-row { flex-direction: column; gap: 14px; }
  .deals-grid { grid-template-columns: 1fr; }
  .pagination-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}


/* =========================================================
   Public Frontend Alignment Fix
   Matches the original Desktop_HTML-1 layout more closely.
   ========================================================= */
.public-shell {
  width: 1102px;
  max-width: calc(100vw - 32px);
  margin-left: auto;
  margin-right: auto;
}

.public-topbar {
  height: 54px;
}

.topbar-inner {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.public-logo {
  width: 92px;
  height: 42px;
  display: inline-flex;
  align-items: center;
}

.public-logo img {
  width: 92px;
  height: 42px;
  object-fit: contain;
}

.public-search {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 542px;
  height: 31px;
  border-radius: 7px;
}

.public-search input {
  height: 31px;
  padding-left: 17px;
  font-size: 11px;
}

.public-search button {
  height: 31px;
  width: 31px;
}

.subscribe-top-btn {
  width: 120px;
  min-width: 120px;
  height: 30px;
  border-radius: 7px;
  font-size: 11px;
}

.hero-section {
  padding-top: 39px;
}

.hero-carousel {
  height: 322px;
  border-radius: 14px;
}

.feature-strip {
  height: 95px;
  margin-top: 41px;
  padding: 0;
  gap: 0;
  border-top: 1px solid #ffefd9;
}

.feature-item {
  gap: 15px;
  padding-left: 90px;
  font-size: 14px;
  line-height: 1.42;
  color: #233043;
}

.feature-item:nth-child(2) { padding-left: 99px; }
.feature-item:nth-child(3) { padding-left: 98px; }

.deal-section {
  grid-template-columns: 210px 1fr;
  gap: 0;
  min-height: 990px;
  border-top: 1px solid #eceff3;
}

.filter-panel {
  padding: 23px 19px 40px 18px;
  border-right: 1px solid #e9edf2;
}

.filter-group { margin-bottom: 21px; }
.filter-group h4 {
  margin-bottom: 11px;
  font-size: 9px;
  letter-spacing: .055em;
}

.filter-link,
.check-row {
  font-size: 11px;
}

.filter-link {
  height: 29px;
  padding: 0 11px;
}

.check-row {
  height: 23px;
  gap: 9px;
}

.discount-range {
  width: 166px;
}

.range-scale {
  width: 166px;
}

.mini-subscribe-card {
  width: 170px;
  min-height: 165px;
  margin-top: 8px;
}

.deal-content {
  min-width: 0;
  padding: 23px 20px 64px 21px;
}

.deal-heading-row {
  align-items: flex-start;
  padding-bottom: 27px;
  margin-bottom: 19px;
  border-bottom: 1px solid #e8ebf0;
}

.deal-heading-row h2 {
  margin: 0 0 3px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
  color: #273243;
}

.deal-heading-row p {
  font-size: 11px;
  line-height: 1.25;
  color: #798391;
}

.sort-form {
  margin-top: 2px;
  gap: 8px;
  font-size: 11px;
}

.sort-form select {
  width: 149px;
  height: 28px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 7px;
}

.deals-grid {
  grid-template-columns: repeat(3, 276px);
  gap: 14px;
  align-items: stretch;
}

.deal-card {
  width: 276px;
  min-height: 257px;
  padding: 18px 16px 14px;
  border-radius: 9px;
}

.card-top {
  min-height: 55px;
}

.brand-logo-wrap {
  width: 70px;
  height: 39px;
}

.discount-block {
  min-width: 66px;
}

.discount-block strong {
  font-size: 35px;
  font-weight: 900;
}

.discount-block span {
  margin-top: 3px;
  font-size: 21px;
}

.deal-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.verified-badge {
  width: 15px;
  height: 15px;
  margin-left: 5px;
  transform: translateY(-2px);
}

.verified-badge svg {
  width: 15px;
  height: 15px;
}

.deal-notes {
  width: 228px;
  min-height: 38px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}

.deal-card-footer {
  padding-top: 0;
  margin-top: auto;
}

.date-icon {
  width: 31px;
  height: 31px;
  border-radius: 6px;
}

.date-icon svg {
  width: 17px;
  height: 17px;
}

.valid-box {
  gap: 8px;
}

.valid-box span {
  font-size: 8.5px;
  font-weight: 600;
}

.valid-box strong {
  font-size: 13px;
  font-weight: 700;
}

.visit-store {
  min-width: 88px;
  height: 33px;
  border-radius: 7px;
  font-size: 11px;
}

.pagination-row {
  margin-top: 38px;
  padding-right: 0;
}

@media (max-width: 1180px) {
  .public-shell { width: 1000px; }
  .feature-item { padding-left: 55px; }
  .feature-item:nth-child(2),
  .feature-item:nth-child(3) { padding-left: 60px; }
  .deal-section { grid-template-columns: 200px 1fr; }
  .deals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deal-card { width: auto; min-width: 0; }
  .brand-logo-wrap { width: 70px; }
  .deal-notes { width: auto; }
}

@media (max-width: 900px) {
  .public-topbar,
  .topbar-inner { height: auto; }
  .topbar-inner {
    padding: 12px 0;
    gap: 12px;
    flex-wrap: wrap;
  }
  .public-search {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    order: 3;
    width: 100%;
  }
  .hero-section { padding-top: 22px; }
  .feature-strip {
    height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }
  .feature-item,
  .feature-item:nth-child(2),
  .feature-item:nth-child(3) { padding-left: 0; }
  .deal-section { grid-template-columns: 1fr; }
  .filter-panel {
    border-right: 0;
    border-bottom: 1px solid #e9edf2;
  }
  .deal-content { padding-left: 0; padding-right: 0; }
  .deal-heading-row { padding-right: 0; }
  .deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-card { width: auto; }
}

@media (max-width: 620px) {
  .public-shell { max-width: calc(100vw - 22px); }
  .deals-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Frontend Deal Card = Backend Preview Card Match Fix
   The public cards now use the same visual language as
   /campaigns/<id>/preview, only scaled to fit 3 columns.
   ========================================================= */
.deals-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.deal-card-preview-match {
  width: auto;
  min-width: 0;
  min-height: 257px;
  position: relative;
  padding: 17px 16px 14px;
  border: 1px solid #dfe4ec;
  border-radius: 11px;
  background:
    radial-gradient(circle at 73% 18%, rgba(255, 229, 242, .84) 0, rgba(255, 255, 255, .72) 31%, rgba(255, 255, 255, 0) 57%),
    linear-gradient(90deg, #fff 0%, #fff 57%, #fff7fb 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .035);
  display: flex;
  flex-direction: column;
  color: #111827;
}

.deal-preview-top-public {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.deal-brand-logo-public {
  width: 112px;
  height: 52px;
  min-width: 112px;
  max-width: 112px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}

.deal-brand-logo-public img {
  max-width: 112px;
  max-height: 52px;
  object-fit: contain;
  object-position: left top;
  display: block;
}

.deal-brand-logo-public span {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: #ff6b00;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.deal-discount-public {
  min-width: 70px;
  text-align: left;
  line-height: 1;
  margin-top: -2px;
  color: var(--red);
}

.deal-discount-public strong {
  display: block;
  color: #ff1c1c;
  font-size: 37px;
  line-height: .96;
  font-weight: 900;
  letter-spacing: -1.2px;
}

.deal-discount-public span {
  display: block;
  margin-top: 5px;
  color: #4b5563;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}

.deal-preview-body-public {
  max-width: 238px;
  margin-bottom: 18px;
}

.deal-preview-body-public h3 {
  margin: 0 0 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111827;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.35px;
}

.deal-preview-body-public .verified-badge-public {
  width: 18px;
  height: 18px;
  background: transparent;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transform: translateY(1px);
  margin-left: 3px;
}

.deal-preview-body-public .verified-badge-public svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: none;
}

.deal-preview-body-public .verified-badge-public .verified-seal {
  fill: #00a85a;
  stroke: none;
}

.deal-preview-body-public .verified-badge-public .verified-check {
  fill: none;
  stroke: #fff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deal-preview-body-public .deal-notes {
  width: 238px;
  min-height: 38px;
  margin: 0;
  color: #667085;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-preview-footer-public {
  margin-top: auto;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.valid-until-box-public {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.calendar-icon-public {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f0f2f5;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.calendar-icon-public svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.valid-until-box-public span:not(.date-icon) {
  display: block;
  color: #667085;
  font-size: 10px;
  line-height: 1.15;
  margin-bottom: 3px;
  font-weight: 400;
}

.valid-until-box-public strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 700;
  white-space: nowrap;
}

.visit-store-btn-public {
  min-width: 88px;
  height: 34px;
  border-radius: 8px;
  border: 1.7px solid #d0d5dd;
  background: #fff;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.visit-store-btn-public:hover {
  border-color: #98a2b3;
  background: #f9fafb;
  color: #1f2937;
}

@media (max-width: 1180px) {
  .deal-brand-logo-public,
  .deal-brand-logo-public img { max-width: 104px; }
  .deal-preview-body-public,
  .deal-preview-body-public .deal-notes { width: auto; max-width: 100%; }
  .deal-discount-public strong { font-size: 34px; }
  .deal-discount-public span { font-size: 20px; }
}

@media (max-width: 900px) {
  .deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .deals-grid { grid-template-columns: 1fr; }
  .deal-card-preview-match { min-height: 270px; }
  .deal-brand-logo-public { width: 130px; max-width: 130px; }
  .deal-brand-logo-public img { max-width: 130px; }
  .deal-preview-body-public .deal-notes { -webkit-line-clamp: 3; }
}

/* =========================================================
   Category Sidebar Icon Match Fix
   Uses the same icon set as the approved frontend mockup:
   All Deals grid, Electronics phone, Fashion t-shirt,
   Food & Dining utensils, Travel bag, Health heart.
   ========================================================= */
.filter-link {
  gap: 13px;
}

.filter-link .category-icon,
.filter-link .small-icon.category-icon {
  width: 19px;
  height: 19px;
  min-width: 19px;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-link.active .category-icon,
.filter-link .category-icon.red {
  color: #ff1c1c;
}

.filter-link .category-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.filter-link .category-all svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.15;
}

.filter-link .cat-fashion {
  stroke-width: 2.15;
}

.filter-link .cat-food {
  stroke-width: 2.15;
}

.filter-link .cat-travel {
  stroke-width: 2.05;
}

.filter-link .cat-health {
  stroke-width: 2.15;
}

@media (max-width: 620px) {
  .filter-link .category-icon,
  .filter-link .small-icon.category-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }
  .filter-link .category-icon svg {
    width: 18px;
    height: 18px;
  }
}


/* =========================================================
   Calendar Icon Center Fix - Public Deal Cards
   Forces the calendar SVG to be perfectly centered inside
   the grey square, same as the backend preview card.
   ========================================================= */
.deal-card-preview-match .calendar-icon-public,
.deal-card-preview-match .date-icon.calendar-icon-public {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: #f0f2f5 !important;
  color: #4b5563 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.deal-card-preview-match .calendar-icon-public svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 24px !important;
  transform: none !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  overflow: visible !important;
}

@media (max-width: 1180px) {
  .deal-card-preview-match .calendar-icon-public,
  .deal-card-preview-match .date-icon.calendar-icon-public {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }
}

/* =========================================================
   Feature Strip Static Image Icon Fix
   Uses provided PNG assets instead of drawn SVG icons for:
   - Community Powered Discovery
   - One Platform, All Brands
   ========================================================= */
.feature-icon-image {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-image img {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
}

@media (max-width: 680px) {
  .feature-icon-image,
  .feature-icon-image img {
    width: 52px;
    height: 52px;
  }
}


/* =========================================================
   Mobile Frontend Layout
   Same URL: desktop keeps existing layout, mobile switches to
   the approved mobile design with bottom-sheet filters.
   ========================================================= */
.mobile-logo-divider,
.mobile-logo-tagline,
.mobile-deal-controls,
.mobile-chip-row,
.mobile-filter-overlay,
.mobile-infinite-loader {
  display: none;
}

@media (max-width: 760px) {
  body.public-page {
    background: #fff;
    color: #1f2937;
    overflow-x: hidden;
  }

  .public-shell {
    width: auto !important;
    max-width: none !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .public-topbar {
    position: relative;
    height: auto !important;
    padding: 0;
    border-bottom: 0;
    background: #fff;
    z-index: 20;
  }

  .topbar-inner {
    height: auto !important;
    min-height: 84px;
    padding: 16px 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .public-logo {
    width: auto !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
  }

  .public-logo img {
    width: 78px !important;
    height: 38px !important;
    object-fit: contain;
  }

  .mobile-logo-divider {
    display: inline-block;
    width: 1px;
    height: 34px;
    background: #111827;
    opacity: .8;
  }

  .mobile-logo-tagline {
    display: inline-block;
    color: #111827;
    font-size: 14px;
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: .2px;
  }

  .topbar-inner > .public-search {
    display: none !important;
  }

  .subscribe-top-btn {
    width: auto !important;
    min-width: 116px !important;
    height: 44px !important;
    padding: 0 16px;
    border: 1.6px solid #ff171b !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #ff171b !important;
    font-size: 16px !important;
    line-height: 1;
    font-weight: 500 !important;
  }

  .hero-section {
    padding-top: 18px !important;
  }

  .hero-carousel {
    height: 148px !important;
    border-radius: 16px !important;
    box-shadow: none;
  }

  .hero-dots {
    bottom: 11px;
    gap: 5px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,.65);
  }

  .hero-dot.active { background: #fff; }

  .feature-strip {
    height: auto !important;
    margin-top: 18px !important;
    padding: 0 !important;
    border-top: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    background: #fff !important;
  }

  .feature-item,
  .feature-item:nth-child(2),
  .feature-item:nth-child(3) {
    padding-left: 0 !important;
    gap: 9px !important;
    align-items: center !important;
    color: #4b5563 !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
  }

  .feature-icon,
  .feature-icon-image,
  .feature-icon-image img {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    flex-basis: 28px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ff171b !important;
  }

  .feature-icon svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.5 !important;
  }

  .deal-section {
    display: block !important;
    margin-top: 28px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    width: auto !important;
    min-height: 0 !important;
    background: linear-gradient(180deg, #fbf0ff 0%, #fff 225px) !important;
    border-top: 0 !important;
    border-radius: 24px 24px 0 0;
    padding: 20px 16px 32px;
  }

  .filter-panel {
    display: none !important;
  }

  .mobile-deal-controls {
    display: block;
  }

  .mobile-search-row {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 14px;
    align-items: center;
  }

  .mobile-search-form {
    height: 52px;
    border: 1.5px solid #dfb5ff;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 14px;
  }

  .mobile-search-icon {
    width: 27px;
    height: 27px;
    color: #76838b;
    margin-right: 10px;
    flex: 0 0 27px;
  }

  .mobile-search-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }

  .mobile-search-form input[type="search"] {
    width: 100%;
    border: 0;
    outline: 0;
    color: #1f2937;
    font-size: 15px;
    background: transparent;
  }

  .mobile-search-form input::placeholder {
    color: #71848a;
  }

  .mobile-filter-toggle {
    width: 48px;
    height: 52px;
    border: 1.5px solid #e4cff3;
    border-radius: 10px;
    background: #fff;
    display: grid;
    place-items: center;
    color: #111827;
  }

  .mobile-filter-toggle svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .deal-content {
    padding: 28px 0 20px !important;
  }

  .deal-heading-row {
    display: block !important;
    padding-bottom: 0 !important;
    margin-bottom: 14px !important;
    border-bottom: 0 !important;
  }

  .deal-heading-row h2 {
    font-size: 31px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    letter-spacing: -.8px;
    color: #1f2937 !important;
    margin-bottom: 8px !important;
  }

  .deal-heading-row p {
    font-size: 16px !important;
    line-height: 1.25 !important;
    color: #4b5563 !important;
  }

  .deal-heading-row p br {
    display: none;
  }

  .sort-form {
    display: none !important;
  }

  .mobile-chip-row {
    display: flex;
    gap: 9px;
    align-items: center;
    overflow-x: auto;
    padding: 2px 0 22px;
    scrollbar-width: none;
  }

  .mobile-chip-row::-webkit-scrollbar { display: none; }

  .mobile-sort-chip-form,
  .mobile-sort-chip-form select,
  .mobile-chip {
    flex: 0 0 auto;
  }

  .mobile-sort-chip-form select,
  .mobile-chip {
    height: 37px;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
  }

  .mobile-sort-chip-form select {
    min-width: 112px;
  }

  .mobile-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-chip.active {
    border-color: #ff171b;
    color: #ff171b;
  }

  .deals-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .deal-card-preview-match {
    min-height: 366px !important;
    padding: 30px 24px 24px !important;
    border-radius: 23px !important;
    box-shadow: 0 14px 32px rgba(15,23,42,.09) !important;
    background:
      radial-gradient(circle at 75% 18%, rgba(255, 229, 242, .84) 0, rgba(255, 255, 255, .72) 34%, rgba(255, 255, 255, 0) 60%),
      linear-gradient(90deg, #fff 0%, #fff 58%, #fff7fb 100%) !important;
  }

  .deal-preview-top-public {
    min-height: 86px !important;
    margin-bottom: 18px !important;
  }

  .deal-brand-logo-public {
    width: 165px !important;
    height: 72px !important;
    min-width: 165px !important;
    max-width: 165px !important;
  }

  .deal-brand-logo-public img {
    max-width: 165px !important;
    max-height: 72px !important;
  }

  .deal-discount-public {
    min-width: 98px !important;
  }

  .deal-discount-public strong {
    font-size: 54px !important;
    line-height: .9 !important;
    letter-spacing: -2px !important;
  }

  .deal-discount-public span {
    font-size: 29px !important;
    margin-top: 10px !important;
  }

  .deal-preview-body-public {
    max-width: 305px !important;
    margin-bottom: 40px !important;
  }

  .deal-preview-body-public h3 {
    font-size: 30px !important;
    line-height: 1.1 !important;
    margin-bottom: 12px !important;
    letter-spacing: -.6px !important;
  }

  .deal-preview-body-public .verified-badge-public,
  .deal-preview-body-public .verified-badge-public svg {
    width: 20px !important;
    height: 20px !important;
  }

  .deal-preview-body-public .deal-notes {
    width: auto !important;
    max-width: 100% !important;
    min-height: 58px !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
    color: #667085 !important;
    -webkit-line-clamp: 3 !important;
  }

  .deal-preview-footer-public {
    align-items: center !important;
    gap: 12px !important;
  }

  .deal-card-preview-match .calendar-icon-public,
  .deal-card-preview-match .date-icon.calendar-icon-public {
    width: 57px !important;
    height: 57px !important;
    min-width: 57px !important;
    min-height: 57px !important;
    border-radius: 9px !important;
  }

  .deal-card-preview-match .calendar-icon-public svg {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
  }

  .valid-until-box-public {
    gap: 12px !important;
  }

  .valid-until-box-public span:not(.date-icon) {
    font-size: 15px !important;
    line-height: 1.05 !important;
    margin-bottom: 5px !important;
  }

  .valid-until-box-public strong {
    font-size: 20px !important;
    line-height: 1.05 !important;
  }

  .visit-store-btn-public {
    min-width: 124px !important;
    height: 48px !important;
    border-radius: 10px !important;
    font-size: 19px !important;
    font-weight: 600 !important;
  }

  .pagination-row {
    display: none !important;
  }

  .mobile-infinite-loader {
    display: none;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    padding: 18px 0 24px;
  }

  .mobile-infinite-loader.loading {
    display: block;
  }

  .subscribe-overlay {
    align-items: center !important;
    padding: 0 24px;
    background: rgba(0,0,0,.42) !important;
    backdrop-filter: none !important;
  }

  .subscribe-modal {
    width: 100% !important;
    max-width: 360px !important;
    border-radius: 16px !important;
    padding: 64px 32px 33px !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.22) !important;
  }

  .modal-x {
    right: 22px !important;
    top: 22px !important;
    font-size: 38px !important;
    line-height: 1 !important;
    color: #9aa3b2 !important;
    font-weight: 300 !important;
  }

  .modal-bell {
    width: 66px !important;
    height: 66px !important;
    margin-bottom: 32px !important;
    background: #f3f4f6 !important;
  }

  .modal-bell svg {
    width: 31px !important;
    height: 31px !important;
    stroke-width: 2.2 !important;
  }

  .subscribe-modal h3 {
    font-size: 30px !important;
    line-height: 1.1 !important;
    font-weight: 400 !important;
    margin-bottom: 20px !important;
    color: #111827 !important;
  }

  .subscribe-modal p {
    font-size: 20px !important;
    line-height: 1.35 !important;
    color: #4b5563 !important;
    margin-bottom: 30px !important;
  }

  .subscribe-modal p br {
    display: none;
  }

  .subscribe-modal input {
    height: 52px !important;
    border-radius: 10px !important;
    font-size: 20px !important;
    padding: 0 18px !important;
    background: #f9fafb !important;
  }

  .subscribe-modal form button {
    height: 52px !important;
    border-radius: 10px !important;
    margin-top: 16px !important;
    font-size: 19px !important;
    font-weight: 600 !important;
  }

  .subscribe-modal small {
    display: block;
    margin-top: 20px;
    color: #6b7280 !important;
    font-size: 16px !important;
    line-height: 1.35;
  }

  .subscribe-message {
    font-size: 13px !important;
  }

  .mobile-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    background: rgba(0,0,0,.42);
    align-items: flex-end;
  }

  .mobile-filter-overlay.open {
    display: flex;
  }

  .mobile-filter-sheet {
    width: 100%;
    max-height: 78vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 13px 16px 32px;
    box-shadow: 0 -12px 40px rgba(15,23,42,.16);
  }

  .mobile-filter-handle {
    display: block;
    width: 34px;
    height: 5px;
    border-radius: 99px;
    background: #d7d7d7;
    margin: 0 auto 30px;
  }

  .mobile-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
  }

  .mobile-filter-header h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 400;
    color: #4b5563;
  }

  .mobile-filter-header button {
    border: 0;
    background: transparent;
    font-size: 42px;
    line-height: .75;
    font-weight: 300;
    color: #111827;
    cursor: pointer;
  }

  .mobile-filter-section {
    margin-bottom: 28px;
  }

  .mobile-filter-section h4 {
    margin: 0 0 17px;
    font-size: 21px;
    line-height: 1.1;
    color: #4b5563;
    font-weight: 400;
  }

  .mobile-filter-chips,
  .mobile-discount-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 15px;
  }

  .mobile-filter-chips input,
  .mobile-discount-chips input {
    display: none;
  }

  .mobile-filter-chips label,
  .mobile-discount-chips label {
    min-height: 44px;
    border-radius: 7px;
    background: #f3f4f6;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-filter-chips input:checked + label,
  .mobile-discount-chips input:checked + label {
    background: #fee2e2;
    color: #ff171b;
  }

  .mobile-filter-icon {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-filter-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-discount-chips {
    justify-content: space-between;
  }

  .mobile-discount-chips label {
    width: 48px;
    padding: 0;
  }

  .mobile-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 38px;
  }

  .mobile-clear-btn,
  .mobile-apply-btn {
    height: 52px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-clear-btn {
    background: #e5e7eb;
    color: #374151;
  }

  .mobile-apply-btn {
    background: #ff171b;
    color: #fff;
  }
}

@media (max-width: 380px) {
  .public-shell { margin-left: 14px !important; margin-right: 14px !important; }
  .subscribe-top-btn { min-width: 110px !important; padding: 0 12px; font-size: 15px !important; }
  .public-logo img { width: 72px !important; }
  .mobile-logo-tagline { font-size: 13px; }
  .deal-card-preview-match { padding-left: 20px !important; padding-right: 20px !important; }
  .deal-discount-public strong { font-size: 48px !important; }
  .visit-store-btn-public { min-width: 112px !important; font-size: 17px !important; }
}


/* =========================================================
   Mobile Final Visual Match Fix
   Matches the approved mobile mockups more closely:
   - filter bottom sheet exactly styled like Mobile_app_HTML-3
   - compact deal cards like Mobile_app_HTML-1-V3
   - corrected Explore Deals copy/spacing
   - cleaned subscribe popup typography and spacing
   ========================================================= */
.mobile-count-copy { display: none; }

@media (max-width: 760px) {
  .desktop-count-copy { display: none !important; }
  .mobile-count-copy { display: inline !important; }

  .deal-section {
    margin-top: 28px !important;
    padding: 20px 16px 30px !important;
    background: linear-gradient(180deg, #fbf1ff 0%, #fff 230px) !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .deal-content {
    padding: 28px 0 18px !important;
  }

  .deal-heading-row {
    margin: 0 0 12px !important;
  }

  .deal-heading-row h2 {
    font-size: 31px !important;
    line-height: 1.03 !important;
    font-weight: 700 !important;
    letter-spacing: -.9px !important;
    margin: 0 0 8px !important;
    color: #1f2937 !important;
  }

  .deal-heading-row p {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    color: #4b5563 !important;
    font-weight: 500 !important;
  }

  .mobile-chip-row {
    gap: 8px !important;
    padding: 4px 0 22px !important;
    overflow-x: auto !important;
  }

  .mobile-sort-chip-form select,
  .mobile-chip {
    height: 38px !important;
    border-radius: 8px !important;
    border: 1px solid #e0e4eb !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    padding: 0 12px !important;
  }

  .mobile-sort-chip-form select {
    min-width: 116px !important;
  }

  /* Compact mobile deal cards — same design as backend preview, scaled correctly */
  .deals-grid {
    gap: 20px !important;
  }

  .deal-card-preview-match {
    min-height: 228px !important;
    padding: 24px 16px 20px !important;
    border-radius: 20px !important;
    border-color: #e3e7ee !important;
    box-shadow: 0 12px 28px rgba(15,23,42,.08) !important;
    background:
      radial-gradient(circle at 76% 17%, rgba(255, 229, 242, .80) 0, rgba(255,255,255,.72) 34%, rgba(255,255,255,0) 60%),
      linear-gradient(90deg, #fff 0%, #fff 58%, #fff8fb 100%) !important;
  }

  .deal-preview-top-public {
    min-height: 56px !important;
    margin-bottom: 10px !important;
    gap: 10px !important;
  }

  .deal-brand-logo-public {
    width: 112px !important;
    height: 54px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    align-items: flex-start !important;
  }

  .deal-brand-logo-public img {
    max-width: 112px !important;
    max-height: 54px !important;
    object-fit: contain !important;
    object-position: left top !important;
  }

  .deal-discount-public {
    min-width: 78px !important;
    margin-top: -1px !important;
    text-align: left !important;
  }

  .deal-discount-public strong {
    font-size: 40px !important;
    line-height: .9 !important;
    letter-spacing: -1.4px !important;
    font-weight: 900 !important;
  }

  .deal-discount-public span {
    font-size: 22px !important;
    line-height: 1 !important;
    margin-top: 7px !important;
    color: #4b5563 !important;
  }

  .deal-preview-body-public {
    max-width: 260px !important;
    margin-bottom: 22px !important;
  }

  .deal-preview-body-public h3 {
    font-size: 22px !important;
    line-height: 1.1 !important;
    margin: 0 0 8px !important;
    font-weight: 700 !important;
    letter-spacing: -.4px !important;
  }

  .deal-preview-body-public .verified-badge-public,
  .deal-preview-body-public .verified-badge-public svg {
    width: 17px !important;
    height: 17px !important;
  }

  .deal-preview-body-public .deal-notes {
    width: auto !important;
    max-width: 100% !important;
    min-height: 40px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    color: #667085 !important;
    font-weight: 400 !important;
    -webkit-line-clamp: 2 !important;
  }

  .deal-preview-footer-public {
    align-items: center !important;
    gap: 10px !important;
  }

  .valid-until-box-public {
    gap: 10px !important;
  }

  .deal-card-preview-match .calendar-icon-public,
  .deal-card-preview-match .date-icon.calendar-icon-public {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 9px !important;
  }

  .deal-card-preview-match .calendar-icon-public svg {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
  }

  .valid-until-box-public span:not(.date-icon) {
    font-size: 13px !important;
    line-height: 1.05 !important;
    margin-bottom: 4px !important;
    color: #667085 !important;
  }

  .valid-until-box-public strong {
    font-size: 17px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .visit-store-btn-public {
    min-width: 104px !important;
    height: 40px !important;
    border-radius: 9px !important;
    border: 1.6px solid #d0d5dd !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
  }

  /* Subscribe popup — corrected spacing/text, closer to the mockup */
  .subscribe-overlay {
    align-items: center !important;
    justify-content: center !important;
    padding: 0 24px !important;
    background: rgba(0,0,0,.42) !important;
  }

  .subscribe-modal {
    width: 100% !important;
    max-width: 360px !important;
    border-radius: 24px !important;
    padding: 46px 32px 34px !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.22) !important;
  }

  .modal-x {
    right: 24px !important;
    top: 20px !important;
    font-size: 34px !important;
    line-height: 1 !important;
    font-weight: 300 !important;
    color: #9aa3b2 !important;
  }

  .modal-bell {
    width: 66px !important;
    height: 66px !important;
    margin: 0 auto 30px !important;
    background: #f3f4f6 !important;
  }

  .modal-bell svg {
    width: 30px !important;
    height: 30px !important;
    stroke-width: 2.2 !important;
  }

  .subscribe-modal h3 {
    margin: 0 0 18px !important;
    font-size: 26px !important;
    line-height: 1.1 !important;
    font-weight: 400 !important;
    color: #111827 !important;
  }

  .subscribe-modal p {
    margin: 0 0 26px !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
    color: #4b5563 !important;
  }

  .subscribe-modal p br {
    display: initial !important;
  }

  .subscribe-modal input {
    height: 52px !important;
    border-radius: 10px !important;
    padding: 0 18px !important;
    font-size: 18px !important;
    background: #f9fafb !important;
  }

  .subscribe-modal form button {
    height: 52px !important;
    border-radius: 10px !important;
    margin-top: 16px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
  }

  .subscribe-modal small {
    display: block !important;
    margin-top: 20px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #6b7280 !important;
  }

  /* Filter bottom sheet — back to the clean approved mockup */
  .mobile-filter-overlay {
    background: rgba(0,0,0,.42) !important;
    align-items: flex-end !important;
  }

  .mobile-filter-sheet {
    width: 100% !important;
    max-height: 58vh !important;
    min-height: 420px !important;
    overflow-y: auto !important;
    border-radius: 28px 28px 0 0 !important;
    padding: 12px 28px 28px !important;
    background: #fff !important;
    box-shadow: 0 -12px 40px rgba(15,23,42,.16) !important;
  }

  .mobile-filter-handle {
    width: 34px !important;
    height: 5px !important;
    margin: 0 auto 24px !important;
    border-radius: 99px !important;
    background: #d7d7d7 !important;
  }

  .mobile-filter-header {
    margin-bottom: 26px !important;
  }

  .mobile-filter-header h3 {
    font-size: 24px !important;
    line-height: 1.1 !important;
    font-weight: 400 !important;
    color: #4b5563 !important;
  }

  .mobile-filter-header button {
    font-size: 36px !important;
    line-height: .8 !important;
    font-weight: 300 !important;
    color: #111827 !important;
  }

  .mobile-filter-section {
    margin-bottom: 28px !important;
  }

  .mobile-filter-section h4 {
    margin: 0 0 16px !important;
    font-size: 20px !important;
    line-height: 1.1 !important;
    font-weight: 400 !important;
    color: #4b5563 !important;
  }

  .mobile-filter-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 12px !important;
  }

  .mobile-filter-chips label {
    min-height: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
    gap: 7px !important;
    background: #f3f4f6 !important;
    color: #374151 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
  }

  .mobile-filter-chips input:checked + label {
    background: #fee2e2 !important;
    color: #ff171b !important;
  }

  .mobile-filter-icon,
  .mobile-filter-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .mobile-discount-chips {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 9px !important;
    justify-content: initial !important;
  }

  .mobile-discount-chips label {
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 8px !important;
    padding: 0 !important;
    background: #f3f4f6 !important;
    color: #374151 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
  }

  .mobile-discount-chips input:checked + label {
    background: #fee2e2 !important;
    color: #ff171b !important;
  }

  .mobile-filter-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    margin-top: 32px !important;
  }

  .mobile-clear-btn,
  .mobile-apply-btn {
    height: 52px !important;
    border-radius: 9px !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
  }

  .mobile-clear-btn {
    background: #e5e7eb !important;
    color: #374151 !important;
  }

  .mobile-apply-btn {
    background: #ff171b !important;
    color: #fff !important;
  }
}

@media (max-width: 380px) {
  .deal-card-preview-match {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .deal-brand-logo-public {
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
  }
  .deal-brand-logo-public img {
    max-width: 104px !important;
  }
  .deal-discount-public strong {
    font-size: 36px !important;
  }
  .deal-discount-public span {
    font-size: 20px !important;
  }
  .deal-preview-body-public h3 {
    font-size: 21px !important;
  }
  .deal-preview-body-public .deal-notes {
    font-size: 13.5px !important;
  }
  .visit-store-btn-public {
    min-width: 96px !important;
    height: 38px !important;
    font-size: 15px !important;
  }
  .valid-until-box-public strong {
    font-size: 16px !important;
  }
  .mobile-filter-sheet {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .mobile-filter-chips label {
    font-size: 13.5px !important;
    padding: 0 10px !important;
  }
  .mobile-discount-chips {
    gap: 7px !important;
  }
}


/* Public campaign expiry display */
.deal-card .expired-date,
.deal-preview-footer-public .expired-date {
  color: #ff171b !important;
  font-weight: 800 !important;
  letter-spacing: .03em;
}

/* Mobile infinite scroll sentinel fix
   Keeps the loader in layout so the browser can detect it and load page 2+.
   This fixes mobile only showing the first 9 campaigns. */
@media (max-width: 760px) {
  .mobile-infinite-loader {
    display: block !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .mobile-infinite-loader.loading {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 18px 0 24px !important;
    opacity: 1 !important;
  }
}

