:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --border: #e3e8f2;
  --text: #101828;
  --muted: #667085;
  --accent: #3b6ef6;
  --accent-dark: #2952d4;
  --green: #12a76f;
  --red: #e5484d;
  --amber: #d97b06;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
button, a { touch-action: manipulation; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.site-header {
  background: linear-gradient(180deg, #0c1222 0%, #131b31 100%);
  color: #fff;
  padding-bottom: 70px;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; flex-wrap: wrap; row-gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #5b8cff, #8b5bff);
  display: grid; place-items: center; font-size: 15px;
}
.logo-text { font-weight: 700; font-size: 18px; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: #aeb8d0; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.admin-link { border: 1px solid rgba(255,255,255,.18); padding: 7px 14px; border-radius: 9px; }

.hero { padding: 60px 0 0; text-align: center; }
.hero-badge {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  background: rgba(91,140,255,.14); color: #9db9ff;
  border: 1px solid rgba(91,140,255,.3);
  padding: 6px 14px; border-radius: 30px; margin-bottom: 22px;
}
.hero h1 { font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -0.5px; }
.grad { background: linear-gradient(90deg, #5b8cff, #b18bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: #aeb8d0; font-size: 17.5px; max-width: 660px; margin: 18px auto 26px; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.btn-hero {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  border: none; border-radius: 12px; padding: 14px 28px; font-size: 15.5px; font-weight: 700;
  cursor: pointer; transition: background .15s, transform .1s;
}
.btn-hero:hover { background: var(--accent-dark); }
.btn-hero:active { transform: scale(.98); }
.btn-hero.ghost { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); }
.btn-hero.ghost:hover { background: rgba(255,255,255,.12); }
.trust-chips { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.trust-chips span { font-size: 12.5px; color: #9db9ff; font-weight: 600; }
.hero-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hstat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 14px 26px; min-width: 130px;
}
.hstat .v { font-size: 24px; font-weight: 800; }
.hstat .l { font-size: 12px; color: #8b94a7; text-transform: uppercase; letter-spacing: .5px; }

/* Featured spotlight */
.featured-wrap { margin: -34px 0 4px; position: relative; z-index: 1; }
.featured-wrap:empty { display: none; }
.featured-card {
  background: linear-gradient(135deg, rgba(91,140,255,.14), rgba(139,91,255,.1)), var(--card);
  border: 1px solid rgba(91,140,255,.45); border-radius: 20px;
  padding: 26px; box-shadow: 0 16px 40px rgba(16,24,40,.16);
  position: relative; overflow: hidden;
}
.featured-label {
  position: absolute; top: 0; right: 0;
  background: linear-gradient(90deg, var(--accent), #8b5bff); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
  padding: 6px 16px; border-radius: 0 0 0 12px;
}
.featured-body { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: center; }
.featured-main .tile-reward { font-size: 38px; margin: 10px 0 4px; }
.featured-main .tile-title { font-size: 18px; margin-bottom: 8px; }
.featured-side { display: flex; flex-direction: column; gap: 10px; }
.btn-claim.big { padding: 16px 20px; font-size: 16.5px; border-radius: 13px; }
.btn-details.full { width: 100%; padding: 12px; border-radius: 11px; }
@media (max-width: 760px) { .featured-body { grid-template-columns: 1fr; } }

/* Value props */
.valueprops { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 46px 0 10px; }
.vp { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.vp-icon { font-size: 26px; margin-bottom: 10px; }
.vp h3 { font-size: 15.5px; margin-bottom: 6px; }
.vp p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* FAQ */
.faq { max-width: 760px; margin: 60px auto; }
.faq h2 { font-size: 26px; text-align: center; margin-bottom: 24px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq details[open] { border-color: rgba(59,110,246,.45); }
.faq summary { font-size: 14.5px; font-weight: 700; cursor: pointer; color: var(--text); }
.faq details p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-top: 10px; }

/* Bottom CTA band */
.cta-band {
  text-align: center; margin: 30px 0 70px;
  background: linear-gradient(135deg, #131b31, #1a2340);
  border: 1px solid rgba(91,140,255,.3); border-radius: 22px; padding: 48px 30px;
}
.cta-band h2 { font-size: 28px; color: #fff; margin-bottom: 10px; }
.cta-band p { color: #aeb8d0; font-size: 15px; max-width: 520px; margin: 0 auto 22px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; position: relative; z-index: 2; }
.filter-chip {
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  border-radius: 30px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(16,24,40,.05);
}
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.offer-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 4px 16px rgba(16,24,40,.06);
  transition: transform .15s, box-shadow .15s;
}
.offer-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,24,40,.1); }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand-chip {
  font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--accent); background: rgba(59,110,246,.09); padding: 4px 11px; border-radius: 8px;
}
.cat-chip { font-size: 11.5px; color: var(--muted); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; }
.tile-reward { font-size: 30px; font-weight: 800; color: var(--green); letter-spacing: -0.5px; }
.tile-title { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.tile-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.tile-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-pill { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 20px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); }
.badge-pill.urgent { color: var(--red); border-color: rgba(229,72,77,.35); background: rgba(229,72,77,.06); }
.badge-pill.warning { color: var(--amber); border-color: rgba(217,123,6,.3); background: rgba(217,123,6,.05); }
.badge-pill.ok { color: var(--green); }
.tile-actions { display: flex; gap: 10px; margin-top: 4px; }
.btn-claim {
  flex: 2; background: var(--accent); color: #fff; border: none; border-radius: 11px;
  padding: 12px 16px; font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none;
  text-align: center; transition: background .15s;
}
.btn-claim:hover { background: var(--accent-dark); }
.btn-details {
  flex: 1; background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 11px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.btn-details:hover { border-color: var(--accent); color: var(--accent); }

.empty-hub { text-align: center; padding: 80px 20px; background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); margin: 20px 0 60px; }
.empty-hub .empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-hub h2 { font-size: 20px; margin-bottom: 8px; }
.empty-hub p { color: var(--muted); max-width: 480px; margin: 0 auto; }

.how { margin: 70px 0 60px; }
.how h2 { font-size: 26px; text-align: center; margin-bottom: 30px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.how-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.how-card .n {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(59,110,246,.1);
  color: var(--accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px;
}
.how-card h3 { font-size: 16px; margin-bottom: 8px; }
.how-card p { font-size: 13.5px; color: var(--muted); }

.site-footer { background: #0c1222; color: #8b94a7; padding: 40px 0; margin-top: 20px; }
.disclosure { font-size: 13.5px; color: #c6cede; margin-bottom: 14px; }
.fine { font-size: 12px; line-height: 1.6; margin-bottom: 16px; }
.foot-brand { font-size: 12.5px; color: #5b6478; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(12,18,34,.55); z-index: 100;
  display: grid; place-items: center; padding: 24px;
}
.hidden { display: none !important; }
.offer-modal {
  background: #fff; border-radius: 20px; width: 640px; max-width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 30px;
}
.brand-wrap { display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { width: 22px; height: 22px; border-radius: 5px; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.brand-logo.lg { width: 34px; height: 34px; border-radius: 8px; }
.om-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 6px; }

/* Slim header (offer + legal pages) */
.site-header.slim { padding-bottom: 24px; }
.site-header.slim .hero { display: none; }
.offer-landing { padding: 40px 24px 60px; max-width: 760px; }

/* Legal pages */
.legal { max-width: 760px; padding: 44px 24px 60px; }
.legal h1 { font-size: 28px; margin-bottom: 4px; }
.legal h2 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 14px; color: #344054; line-height: 1.65; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal li { margin-bottom: 6px; }
.legal-updated { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.foot-links { font-size: 13.5px; margin-bottom: 16px; }
.foot-links a { color: #aeb8d0; text-decoration: none; margin-right: 6px; }
.foot-links a:hover { color: #fff; text-decoration: underline; }

/* Cookie notice */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #0c1222; color: #c6cede;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 20px; font-size: 12.5px;
  box-shadow: 0 -6px 20px rgba(0,0,0,.25);
}
.cookie-ok {
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  padding: 7px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.cookie-ok:hover { background: var(--accent-dark); }
.om-brand { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--accent); }
.om-close { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; width: 32px; height: 32px; cursor: pointer; color: var(--muted); font-size: 14px; }
.om-title { font-size: 21px; font-weight: 800; line-height: 1.3; margin: 6px 0 16px; }
.om-reward {
  display: flex; align-items: baseline; gap: 10px;
  background: rgba(18,167,111,.07); border: 1px solid rgba(18,167,111,.25);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 18px;
}
.om-reward .v { font-size: 26px; font-weight: 800; color: var(--green); }
.om-reward .t { font-size: 13px; color: var(--muted); }
.om-section { margin-bottom: 18px; }
.om-section h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
.om-section p { font-size: 14px; }
.om-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.om-links { font-size: 13px; margin-bottom: 18px; }
.om-links a { color: var(--accent); text-decoration: none; }
.om-links a:hover { text-decoration: underline; }
.om-cta {
  display: block; text-align: center; background: var(--accent); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 14px; font-size: 15.5px; font-weight: 700; margin-bottom: 12px;
}
.om-cta:hover { background: var(--accent-dark); }
.om-note { font-size: 11.5px; color: var(--muted); text-align: center; }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .site-nav { gap: 14px; }
}

/* ── Accounts & tracking ─────────────────────────────────────────── */
.auth-area { display: inline-flex; align-items: center; gap: 10px; }
.auth-btn {
  background: var(--accent); color: #fff; border: none; border-radius: 9px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.auth-btn:hover { background: var(--accent-dark); }
.auth-btn.ghost { background: transparent; color: #aeb8d0; border: 1px solid rgba(255,255,255,.18); }
.auth-btn.ghost:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.user-chip { font-size: 13.5px; color: #fff; font-weight: 600; }

.auth-modal {
  background: #fff; border-radius: 20px; width: 400px; max-width: 100%;
  padding: 28px;
}
.auth-tabs { display: flex; gap: 6px; background: var(--bg); border-radius: 11px; padding: 5px; margin-bottom: 20px; }
.auth-tab {
  flex: 1; background: none; border: none; border-radius: 8px; padding: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.auth-tab.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(16,24,40,.12); }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.auth-field input {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; font-size: 14px; color: var(--text); background: #fff;
}
.auth-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,110,246,.12); }
.auth-error {
  background: rgba(229,72,77,.08); border: 1px solid rgba(229,72,77,.3); color: var(--red);
  border-radius: 10px; padding: 10px 13px; font-size: 13px; margin-bottom: 14px;
}
.auth-submit {
  width: 100%; background: var(--accent); color: #fff; border: none; border-radius: 11px;
  padding: 13px; font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.auth-submit:hover { background: var(--accent-dark); }
.auth-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }

.track-actions { display: flex; gap: 8px; margin-top: 10px; }
.track-btn {
  flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 8px 6px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  min-height: 42px;
}
.track-btn:hover { border-color: var(--accent); color: var(--accent); }
.track-btn.primary { background: rgba(59,110,246,.09); border-color: rgba(59,110,246,.35); color: var(--accent); }
.track-btn.ghost { background: transparent; }
.badge-pill.status { font-weight: 700; }
.badge-pill.status.ok { background: rgba(18,167,111,.08); border-color: rgba(18,167,111,.3); }
.offer-tile.tracked { border-left: 3px solid var(--accent); }
.om-tracked { font-size: 13px; margin-bottom: 14px; color: var(--muted); }

/* ── Mobile-first refinements ─────────────────────────────────────── */
@media (max-width: 700px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 14px 16px; }
  .site-nav { gap: 14px; font-size: 13px; }
  .site-nav a { font-size: 13px; }
  .logo-mark { width: 30px; height: 30px; font-size: 13px; }
  .logo-text { font-size: 16px; }

  .hero { padding-top: 36px; }
  .hero h1 { font-size: clamp(28px, 8.5vw, 34px); }
  .hero-sub { font-size: 15px; margin: 14px auto 22px; }
  .hero-badge { font-size: 11.5px; padding: 5px 12px; margin-bottom: 16px; }
  .hero-cta { flex-direction: column; align-items: center; gap: 10px; }
  .btn-hero { width: min(100%, 320px); text-align: center; padding: 14px 18px; min-height: 48px; }
  .trust-chips { gap: 8px 14px; margin-bottom: 20px; }
  .trust-chips span { font-size: 11.5px; }
  .hstat { padding: 10px 16px; min-width: 108px; }
  .hstat .v { font-size: 20px; }
  .hstat .l { font-size: 10.5px; }

  .featured-wrap { margin-top: -26px; }
  .featured-card { padding: 18px; border-radius: 16px; }
  .featured-label { font-size: 10.5px; padding: 5px 12px; }
  .featured-body { grid-template-columns: 1fr; gap: 16px; }
  .featured-main .tile-reward { font-size: 30px; }
  .featured-main .tile-title { font-size: 16px; }

  .offers-grid { gap: 14px; }
  .offer-tile { padding: 18px; border-radius: 14px; }
  .tile-reward { font-size: 26px; }
  .tile-title { font-size: 15px; }
  .tile-actions { flex-direction: column; }
  .btn-claim, .btn-details { min-height: 48px; width: 100%; text-align: center; }
  .btn-claim { display: flex; align-items: center; justify-content: center; }

  .valueprops { gap: 12px; margin-top: 32px; }
  .vp { padding: 18px; }
  .steps { gap: 12px; }
  .how-card { padding: 20px; }
  .how { margin: 44px 0 44px; }
  .how h2, .faq h2 { font-size: 22px; }
  .faq { margin: 44px auto; }
  .faq details { padding: 14px 16px; }
  .faq summary { font-size: 14px; min-height: 24px; display: flex; align-items: center; }

  .cta-band { padding: 36px 20px; margin-bottom: 50px; border-radius: 18px; }
  .cta-band h2 { font-size: 23px; }
  .cta-band .btn-hero { width: min(100%, 320px); }
  .offer-landing, .legal { padding: 28px 16px 44px; }
  .legal h1 { font-size: 24px; }

  .auth-modal { padding: 22px 18px; border-radius: 16px; }
  .offer-modal { padding: 20px 16px; border-radius: 16px; }
  .om-title { font-size: 18px; }
  .om-reward .v { font-size: 22px; }
  .om-cta { padding: 15px; min-height: 50px; display: flex; align-items: center; justify-content: center; }

  /* Prevent iOS zoom on input focus */
  .auth-field input { font-size: 16px; }

  .cookie-bar {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    font-size: 11.5px; gap: 10px;
  }
  .cookie-ok { min-height: 40px; }
  .site-footer { padding: 30px 0; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 4px 0; }
}

@media (max-width: 380px) {
  .hstat { min-width: 0; flex: 1 1 40%; }
  .hero-stats { gap: 8px; }
  .tile-reward { font-size: 24px; }
}
