/* GrabDollar hub — dark navy + gold, money-green accents. */
:root {
  --bg: #0a1120;
  --bg-soft: #0e1730;
  --panel: #111c36;
  --panel-edge: #1e2c50;
  --gold: #e8b33c;
  --gold-bright: #f5cd6b;
  --green: #3ecf6f;
  --text: #eef2fb;
  --muted: #9aa8c7;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 17, 32, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-edge);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  flex-wrap: nowrap;
}

a.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; min-width: 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand-mark-sm { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.wordmark {
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 900;
  font-size: 1.42rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffe9a8 0%, var(--gold) 55%, #b97f16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark-sm { font-size: 1.15rem; }
.tagline { color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.header-divider { width: 1px; height: 22px; background: var(--panel-edge); flex: none; }

.social-row { display: flex; align-items: center; gap: 0.5rem; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--panel-edge);
  background: var(--bg-soft);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-btn svg { width: 17px; height: 17px; }
.social-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.social-handle { color: var(--muted); font-size: 0.88rem; font-weight: 600; margin-left: 0.15rem; }

.follow-btn {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #191104;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(232, 179, 60, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.follow-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(232, 179, 60, 0.45); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--panel-edge);
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  color: var(--muted);
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn.is-active { background: var(--gold); color: #191104; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 300px at 85% -60px, rgba(232, 179, 60, 0.22), transparent 65%),
    radial-gradient(700px 380px at -10% 120%, rgba(62, 207, 111, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--panel-edge);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(154, 168, 199, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 168, 199, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.6rem;
}
.hero-kicker {
  margin: 0 0 0.9rem;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
}
.hero-title {
  margin: 0;
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hero-title .gold {
  /* Flat solid gold, no gradient-clip: gradient text rendering ate the
     final glyph's shoulder in some browsers (owner feedback 2026-11-16). */
  color: var(--gold);
}
.hero-title .dot {
  /* Breathing room so the period does not tuck under the last glyph's
     shoulder (owner feedback 2026-11-16). */
  margin-left: 0.08em;
}
.hero-sub {
  margin: 1.1rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 44rem;
  font-size: 1.02rem;
}
.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}
.trust-row li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(62, 207, 111, 0.16);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  flex: none;
}

/* ---------- main ---------- */
main {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  flex: 1;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.55rem;
}
.section-title {
  margin: 0;
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
}
.section-meta { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- filter chips ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.3rem 0 1.6rem; }
.chip {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: #191104; }

/* ---------- deal cards ---------- */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.deal-card {
  background: linear-gradient(180deg, #13203f, var(--panel));
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.deal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 179, 60, 0.65);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}
.deal-img {
  position: relative;
  aspect-ratio: 16 / 8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(238, 242, 251, 0.9);
  background: linear-gradient(135deg, #1b2c55, #0d1730);
}
.deal-img.cat-tech { background: linear-gradient(135deg, #27407c, #101d3d); }
.deal-img.cat-software { background: linear-gradient(135deg, #3a2a6b, #171233); }
.deal-img.cat-home { background: linear-gradient(135deg, #6b4a1f, #2b1e0c); }
.deal-img.cat-other { background: linear-gradient(135deg, #14532d, #0a2415); }
.deal-img img { width: 100%; height: 100%; object-fit: cover; }
.deal-img .cat-ico { width: 54px; height: 54px; opacity: 0.95; }
.store-chip {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: rgba(6, 10, 20, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.6rem;
  border-radius: 8px;
}
.share-row {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: flex;
  gap: 0.45rem;
}
.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(6, 10, 20, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.share-btn svg { width: 14px; height: 14px; }
.share-btn:hover { background: rgba(232, 179, 60, 0.92); color: #141414; }
.share-btn.is-copied { background: #2fbf71; color: #fff; }
.badge-sample {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: var(--gold);
  color: #191104;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.6rem;
  border-radius: 8px;
}
.deal-body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.deal-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem 0.6rem; }
.price-now {
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--green);
  letter-spacing: -0.01em;
}
.price-was { color: var(--muted); font-size: 1rem; font-weight: 600; text-decoration: line-through; }
.save-badge {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #191104;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  align-self: center;
  white-space: nowrap;
}
.atl-badge {
  /* All-Time Low: only applied after price-history verification
     (evidence logged 2026-11-16). Flat hot orange-red, distinct from gold. */
  background: #E4572E;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  align-self: center;
  white-space: nowrap;
}
.chip-errors { border-color: rgba(228, 87, 46, 0.6); color: #FFC4B2; }
.price-note { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.9rem; line-height: 1.5; }
.status-chip {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 0.32rem 0.6rem;
  border-radius: 8px;
  background: rgba(6, 10, 20, 0.82);
  color: var(--gold-bright);
  border: 1px solid rgba(232, 179, 60, 0.55);
}
.status-chip.is-ends { color: #ffb59d; border-color: rgba(255, 122, 89, 0.65); }
.status-chip.is-expired { color: #c3cadb; border-color: rgba(154, 168, 199, 0.5); }
.deal-card.is-expired { opacity: 0.62; }
.deal-card.is-expired .deal-img img { filter: grayscale(0.85); }
.deal-card.is-expired:hover { transform: none; box-shadow: none; border-color: var(--panel-edge); }
.deal-cta.is-expired {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--panel-edge);
  font-weight: 600;
  pointer-events: none;
}
.deal-updated { margin: 0; color: var(--muted); font-size: 0.8rem; }
.deal-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #191104;
  font-weight: 800;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  transition: filter 0.15s ease;
}
.deal-cta:hover { filter: brightness(1.07); }
.deal-cta.is-sample {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--panel-edge);
  font-weight: 600;
}

.loading { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 2.2rem 0; font-size: 1rem; }

/* ---------- newsletter ---------- */
.newsletter-band {
  border-bottom: 1px solid var(--panel-edge);
  background:
    radial-gradient(560px 220px at 85% 0%, rgba(232, 179, 60, 0.10), transparent 65%),
    var(--bg-soft);
}
.newsletter-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.7rem 1.25rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.newsletter-copy h2 {
  margin: 0 0 0.4rem;
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.2px;
}
.newsletter-copy p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; max-width: 30rem; }
.nl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nl-form { display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.nl-email {
  background: var(--bg);
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 1.05rem;
  width: 17rem;
  max-width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}
.nl-email:focus { border-color: var(--gold); }
.nl-email::placeholder { color: var(--muted); }
.nl-btn {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #191104;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(232, 179, 60, 0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.nl-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(232, 179, 60, 0.42); }
.nl-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.nl-msg { flex-basis: 100%; margin: 0.15rem 0 0; font-size: 0.88rem; color: var(--muted); min-height: 1.1em; text-align: center; }
.nl-msg:empty { min-height: 0; margin: 0; }
.nl-msg.is-ok { color: var(--money); }
.nl-msg.is-error { color: #ff8a7a; }
.nl-form-footer { margin: 0.2rem 0 1rem; }
.nl-form-footer .nl-email { width: 100%; flex: 1 1 auto; }
.nl-form-footer .nl-btn { padding: 0.6rem 1.05rem; font-size: 0.9rem; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: var(--bg-soft);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 179, 60, 0.75), transparent);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.9rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 2.5rem;
}
.footer-brand-block .footer-tag {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0.85rem 0 1rem;
  max-width: 19rem;
}
.footer-links { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; }
.footer-col h3 {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-col a { color: var(--text); text-decoration: none; font-size: 0.94rem; }
.footer-col a:hover { color: var(--gold); }
.footer-note { color: var(--muted); line-height: 1.6; margin: 0; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--panel-edge);
}
.footer-copy {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.95rem 1.25rem 1.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .header-inner { padding: 0.5rem 0.9rem; gap: 0.6rem; }
  .brand-mark { width: 34px; height: 34px; }
  .wordmark { font-size: 1.12rem; }
  .tagline { display: none; }
  .header-actions { gap: 0.5rem; }
  .header-divider { display: none; }
  .social-btn { width: 32px; height: 32px; }
  .social-btn svg { width: 15px; height: 15px; }
  .lang-btn { padding: 0.38rem 0.6rem; font-size: 0.78rem; }
  .hero-inner { padding: 2.1rem 1.1rem 1.9rem; }
  main { padding: 1.15rem 1.1rem 2.4rem; }
  .deals-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .newsletter-inner { padding: 1.3rem 1.1rem 1.1rem; gap: 1.1rem; }
  .newsletter-copy h2 { font-size: 1.25rem; }
  .nl-form { width: 100%; }
  .nl-email { flex: 1 1 100%; width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.3rem; padding: 1.6rem 1.1rem 1.2rem; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .footer-brand-block .footer-tag { margin: 0.65rem 0 0.8rem; }
  .footer-copy { padding: 0.85rem 1.1rem 1.05rem; }
}
