:root {
  --ink: #18211f;
  --muted: #66716d;
  --line: #dce5e0;
  --paper: #f7faf7;
  --white: #ffffff;
  --teal: #0f8b7b;
  --teal-dark: #09685d;
  --coral: #e65f55;
  --gold: #d8a235;
  --shadow: 0 18px 60px rgba(24, 33, 31, 0.16);
  --container: 1200px;
  --page-gutter: clamp(18px, 5vw, 64px);
  --container-gutter: max(18px, calc((100vw - var(--container)) / 2));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--container-gutter);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(24, 33, 31, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.main-nav,
.offer-topline,
.offer-meta,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark,
.offer-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.main-nav {
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a,
.header-cta,
.site-footer a {
  text-decoration: none;
}

.header-cta {
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: hidden;
  padding: 98px var(--container-gutter) 42px;
  text-align: center;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 26, 23, 0.68), rgba(8, 26, 23, 0.48), rgba(8, 26, 23, 0.38)),
    linear-gradient(0deg, rgba(8, 26, 23, 0.32), rgba(8, 26, 23, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(880px, 100%);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 auto;
  max-width: 12ch;
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}

.hero-hint,
.section-heading p,
.disclosure p,
.faq p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-hint {
  max-width: 640px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.hero-search {
  width: min(760px, 100%);
  margin-top: 20px;
}

.hero-search label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.search-input {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 700;
  outline: 0;
}

.search-input::placeholder {
  color: #7a8580;
}

.search-input:focus {
  box-shadow: inset 0 0 0 2px rgba(15, 139, 123, 0.3);
}

.search-submit {
  min-height: 54px;
  white-space: nowrap;
}

.quick-needs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 12px;
}

.quick-needs span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
}

.need-chip {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.need-chip:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary,
.card-cta {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 12px 28px rgba(230, 95, 85, 0.28);
}

.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 660px;
  margin: 46px 0 0;
}

.hero-stats div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-stats dt {
  font-size: 1.4rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
  background: var(--line);
}

.trust-strip div {
  padding: 28px;
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 86px var(--container-gutter);
}

#offers {
  padding-top: 52px;
}

.section > * {
  width: min(var(--container), 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: var(--container);
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--muted);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter.active {
  color: var(--white);
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.result-summary,
.empty-state {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.empty-state {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.offer-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(24, 33, 31, 0.08);
  overflow: hidden;
}

.offer-card.is-hidden {
  display: none;
}

.offer-topline,
.offer-meta {
  justify-content: space-between;
  gap: 12px;
}

.badge {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #dff3ef;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.muted {
  color: #8c5a05;
  background: #fff1ce;
}

.deal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -16px 18px;
  padding: 9px 16px;
  color: #1c9a4a;
  background: #eaf6ee;
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

.deal-status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #77c88d;
}

.deal-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.deal-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #6a4a0f;
  background: #fff2c7;
  font-size: 0.8rem;
  font-weight: 900;
  overflow: hidden;
}

.deal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: var(--white);
}

.deal-main h3 {
  margin: 0;
  color: #050807;
  font-size: 1.25rem;
}

.deal-rating {
  margin-top: 4px;
  color: #f4b000;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.deal-line {
  min-height: 48px;
  margin: 16px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.deal-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.deal-stats div {
  padding: 14px 10px;
  text-align: center;
}

.deal-stats div + div {
  border-left: 1px solid var(--line);
}

.deal-stats span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.deal-stats strong {
  display: block;
  color: #0aa145;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.referral-code {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  border: 1px solid #31a64f;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--muted);
  background: var(--white);
  font: inherit;
  cursor: pointer;
}

.referral-code span {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  line-height: 1.3;
}

.referral-code strong {
  grid-column: 2;
  color: #1c9a4a;
  font-size: 1.05rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.referral-code svg {
  grid-column: 3;
  justify-self: start;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #67736f;
  stroke-width: 2;
  stroke-linejoin: round;
}

.referral-code:hover,
.referral-code.copied {
  background: #f3fbf5;
}

.referral-code-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.card-cta {
  margin-top: 16px;
  width: 100%;
  min-height: 40px;
  padding-block: 10px;
  background: #31a64f;
  box-shadow: none;
  text-transform: uppercase;
}

.deal-users {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.compare-band {
  background: #eef4f0;
}

.compare-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr 0.8fr;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-row > * {
  padding: 18px;
  line-height: 1.5;
}

.table-head {
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}

.table-row a {
  color: var(--teal-dark);
  font-weight: 800;
}

.disclosure {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
  color: var(--white);
  background: var(--teal-dark);
}

.disclosure > * {
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.disclosure p,
.disclosure .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.faq {
  background: var(--white);
}

details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px var(--container-gutter);
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.admin-page {
  background: #eef4f0;
}

.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-header h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.admin-header p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.admin-back {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.admin-form,
.admin-list-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 34px rgba(24, 33, 31, 0.06);
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
}

.admin-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-actions,
.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-actions {
  flex-wrap: wrap;
}

.admin-list-panel {
  padding: 22px;
}

.admin-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-list-heading h2 {
  font-size: 1.35rem;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-deal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-deal > div {
  flex: 1;
  min-width: 0;
}

.admin-deal-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #6a4a0f;
  background: #fff2c7;
  font-size: 0.78rem;
  font-weight: 900;
  object-fit: contain;
  overflow: hidden;
}

.admin-row-actions {
  flex: 0 0 auto;
}

img.admin-deal-logo {
  padding: 4px;
  background: var(--white);
}

.admin-deal strong,
.admin-deal span {
  display: block;
}

.admin-deal span,
.admin-empty {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 880px) {
  .main-nav {
    display: none;
  }

  h1 {
    max-width: 11ch;
  }

  .trust-strip,
  .offer-grid,
  .disclosure {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row > * {
    padding: 13px 16px;
  }

  .admin-layout,
  .admin-two-col {
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 86px 18px 30px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(8, 26, 23, 0.9), rgba(8, 26, 23, 0.62));
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-search {
    margin-top: 16px;
  }

  .hero-hint {
    display: none;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search-submit {
    width: auto;
    padding-inline: 14px;
  }

  .section {
    padding: 64px 18px;
  }

  #offers {
    padding-top: 38px;
  }

  .offer-card {
    min-height: auto;
  }
}

@media (max-width: 360px) {
  .search-row {
    grid-template-columns: 1fr;
  }

  .search-submit {
    width: 100%;
  }
}
