:root {
  --mc-ink: #17211f;
  --mc-muted: #65716e;
  --mc-cream: #f7f6f1;
  --mc-surface: #ffffff;
  --mc-green: #176b52;
  --mc-green-dark: #0d4d3b;
  --mc-mint: #dff3e8;
  --mc-lime: #d9f776;
  --mc-coral: #ff795f;
  --mc-border: #dfe5e1;
  --mc-shadow: 0 18px 45px rgba(23, 33, 31, 0.08);
  --mc-radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--mc-cream);
  color: var(--mc-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--mc-green);
}

a:hover {
  color: var(--mc-green-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  background: rgba(247, 246, 241, 0.94);
  backdrop-filter: blur(14px);
}

.site-header .navbar {
  min-height: 78px;
  padding-block: 0.7rem;
}

.site-logo {
  width: 132px;
  height: auto;
}

.site-header .nav-link {
  position: relative;
  margin-inline: 0.15rem;
  padding: 0.55rem 0.75rem !important;
  border-radius: 999px;
  color: var(--mc-ink) !important;
  font-size: 0.94rem;
  font-weight: 650;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  background: rgba(23, 107, 82, 0.09);
  color: var(--mc-green) !important;
}

.site-header .navbar-toggler {
  border: 1px solid var(--mc-border);
  border-radius: 12px;
  box-shadow: none !important;
}

.btn {
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 750;
}

.btn-primary {
  border-color: var(--mc-green);
  background: var(--mc-green);
  box-shadow: 0 8px 18px rgba(23, 107, 82, 0.16);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--mc-green-dark);
  background: var(--mc-green-dark);
}

.btn-outline-primary,
.btn-outline-success {
  border-color: var(--mc-green);
  color: var(--mc-green);
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
  border-color: var(--mc-green);
  background: var(--mc-green);
  color: #fff;
}

.btn-light {
  color: var(--mc-ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.75rem 0 4rem;
  background:
    radial-gradient(circle at 87% 20%, rgba(217, 247, 118, 0.52), transparent 23rem),
    linear-gradient(145deg, #eff9f3 0%, #f7f6f1 58%, #fff0eb 100%);
}

.hero::after {
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(23, 107, 82, 0.12);
  border-radius: 50%;
  content: "";
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--mc-green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mc-coral);
  content: "";
}

.hero h1 {
  max-width: 750px;
  margin-bottom: 1.15rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 1.7rem;
  color: var(--mc-muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.search-panel {
  display: flex;
  max-width: 680px;
  padding: 0.45rem;
  border: 1px solid var(--mc-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--mc-shadow);
}

.search-panel .form-control {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding-inline: 1.1rem;
  box-shadow: none;
  font-size: 1rem;
}

.hero-note {
  margin-top: 0.85rem;
  color: var(--mc-muted);
  font-size: 0.88rem;
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin-left: auto;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  background: var(--mc-green-dark);
  color: #fff;
  box-shadow: 0 28px 70px rgba(13, 77, 59, 0.22);
  transform: rotate(2deg);
}

.hero-card-label {
  color: #acd7c7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card-value {
  margin: 0.3rem 0 1.1rem;
  font-size: 3.1rem;
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 1;
}

.hero-card p {
  color: #d5e9e1;
}

.hero-card-badge {
  display: inline-flex;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: var(--mc-lime);
  color: var(--mc-ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.section-shell {
  padding-block: 4.5rem;
}

.section-shell.compact {
  padding-block: 3.5rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 820;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 570px;
  margin: 0.35rem 0 0;
  color: var(--mc-muted);
}

.text-link {
  white-space: nowrap;
  font-weight: 750;
  text-decoration: none;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.brand-tile {
  display: flex;
  min-height: 178px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--mc-border);
  border-radius: 18px;
  background: var(--mc-surface);
  box-shadow: 0 5px 18px rgba(23, 33, 31, 0.035);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.brand-tile:hover {
  border-color: rgba(23, 107, 82, 0.32);
  box-shadow: var(--mc-shadow);
  transform: translateY(-4px);
}

.brand-tile img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.brand-placeholder {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 18px;
  background: var(--mc-mint);
  color: var(--mc-green-dark);
  font-size: 1.35rem;
  font-weight: 850;
}

.brand-name {
  color: var(--mc-ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.brand-cashback,
.cashback-badge {
  display: inline-flex;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: var(--mc-mint);
  color: var(--mc-green-dark);
  font-size: 0.74rem;
  font-weight: 800;
}

.merchant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.merchant-card {
  display: flex;
  min-height: 250px;
  padding: 1.4rem;
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  background: #fff;
  box-shadow: 0 7px 24px rgba(23, 33, 31, 0.045);
  flex-direction: column;
}

.merchant-card-visual {
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 1rem;
  place-items: center;
}

.merchant-card-visual img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.merchant-card h2 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
  font-weight: 800;
}

.merchant-card p {
  margin-bottom: 1rem;
  color: var(--mc-muted);
  font-size: 0.92rem;
}

.merchant-card .merchant-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: auto;
}

.cashback-rates {
  margin-bottom: 1.5rem;
  padding: 1.4rem;
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  background: #fff;
  box-shadow: 0 7px 24px rgba(23, 33, 31, 0.045);
}

.cashback-rates-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cashback-rates-heading h2 {
  margin-bottom: 0;
}

.cashback-rates-heading small,
.cashback-rates-note {
  color: var(--mc-muted);
}

.cashback-rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cashback-rate-card {
  display: flex;
  min-height: 126px;
  padding: 1rem;
  border: 1px solid var(--mc-border);
  border-radius: 16px;
  background: var(--mc-mint);
  flex-direction: column;
}

.cashback-rate-category {
  margin-bottom: 0.35rem;
  color: var(--mc-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.cashback-rate-card strong {
  color: var(--mc-green-dark);
  font-size: 1.25rem;
}

.cashback-rate-card small {
  margin-top: 0.35rem;
  color: var(--mc-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.cashback-rate-card a {
  align-self: flex-start;
  margin-top: auto;
  color: var(--mc-green-dark);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.cashback-rates-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
}

.offers-wrap {
  background: #eef2ef;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.offer-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
  min-height: 225px;
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  background: var(--mc-surface);
  box-shadow: 0 7px 24px rgba(23, 33, 31, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.offer-card:hover {
  box-shadow: var(--mc-shadow);
  transform: translateY(-3px);
}

.offer-logo {
  display: grid;
  place-items: center;
  padding: 1rem;
  border-right: 1px solid var(--mc-border);
  background: #fafbf9;
}

.offer-logo img {
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.offer-body {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
}

.offer-kicker {
  margin-bottom: 0.45rem;
  color: var(--mc-green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.offer-title {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.offer-description {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 1rem;
  color: var(--mc-muted);
  font-size: 0.94rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.offer-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
}

.offer-actions .btn {
  padding: 0.62rem 1rem;
  font-size: 0.88rem;
}

.offer-actions a:not(.btn) {
  color: var(--mc-muted);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
}

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

.step-card {
  padding: 1.7rem;
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  background: var(--mc-surface);
}

.step-number {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 14px;
  background: var(--mc-mint);
  color: var(--mc-green-dark);
  font-weight: 850;
}

.step-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
}

.step-card p {
  margin-bottom: 0;
  color: var(--mc-muted);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.4rem;
  border-radius: 28px;
  background: var(--mc-green-dark);
  color: #fff;
}

.cta-band h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 820;
  letter-spacing: -0.035em;
}

.cta-band p {
  margin-bottom: 0;
  color: #c7ded5;
}

.content-card,
.auth-card {
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  background: #fff;
  box-shadow: 0 8px 30px rgba(23, 33, 31, 0.05);
}

.form-control {
  min-height: 48px;
  border-color: var(--mc-border);
  border-radius: 12px;
}

.form-control:focus {
  border-color: var(--mc-green);
  box-shadow: 0 0 0 0.22rem rgba(23, 107, 82, 0.12);
}

.card {
  border-color: var(--mc-border);
  border-radius: var(--mc-radius);
  box-shadow: 0 6px 24px rgba(23, 33, 31, 0.04);
}

.list-group-item {
  border-color: var(--mc-border);
  background: rgba(255, 255, 255, 0.82);
}

.modal-content {
  border: 0;
  border-radius: var(--mc-radius);
  box-shadow: 0 30px 80px rgba(23, 33, 31, 0.24);
}

.site-footer {
  margin-top: 3rem;
  padding: 3.5rem 0 2rem;
  background: #12221d;
  color: #dce9e4;
}

.site-footer a {
  color: #dce9e4;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mc-lime);
}

.footer-brand img {
  width: 132px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-copy {
  max-width: 390px;
  color: #9eb7ae;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9eb7ae;
  font-size: 0.88rem;
}

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    margin-top: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--mc-border);
    border-radius: 18px;
    background: #fff;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .hero-card {
    margin: 2.5rem 0 0;
    transform: none;
  }

  .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .merchant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .section-shell,
  .section-shell.compact {
    padding-block: 3rem;
  }

  .section-heading,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .merchant-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding-block: 2.75rem;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .search-panel {
    align-items: stretch;
    flex-direction: column;
    border-radius: 20px;
  }

  .search-panel .btn {
    width: 100%;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cashback-rates-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cashback-rate-grid {
    grid-template-columns: 1fr;
  }

  .brand-tile {
    min-height: 158px;
  }

  .brand-tile img {
    width: 78px;
    height: 78px;
  }

  .offer-card {
    grid-template-columns: 105px 1fr;
  }

  .offer-logo {
    padding: 0.7rem;
  }

  .offer-logo img {
    width: 82px;
    height: 82px;
  }

  .offer-body {
    padding: 1rem;
  }

  .offer-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .cta-band {
    padding: 1.6rem;
  }
}
