/* ============================================================
   7Deals — light theme (explicit user request, logged in
   DESIGN.md). Brand fonts kept: Outfit + JetBrains Mono.
   Accents darkened from the 7By neon set for light-bg contrast.
   ============================================================ */
:root {
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface2: #EEF1F8;
  --cyan: #0891B2;
  --magenta: #DB2777;
  --amber: #D97706;
  --green: #059669;
  --text: #101828;
  --muted: rgba(16, 24, 40, 0.60);
  --dim: rgba(16, 24, 40, 0.38);
  --border: rgba(16, 24, 40, 0.10);
  --border-bright: rgba(16, 24, 40, 0.20);
  --r-sm: 6px; --r-md: 10px; --r-lg: 12px; --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', monospace; }
.dim { color: var(--dim); }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  padding: 0 32px;
  display: flex; align-items: center; gap: 32px;
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: #fff; font-size: 15px;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 200ms ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 8px; }
.nav-menu-btn {
  display: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; width: 38px; height: 38px; font-size: 17px;
  color: var(--text); cursor: pointer; flex: 0 0 auto;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(8, 145, 178, 0.35); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-bright); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--r-sm); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: rgba(220, 38, 38, 0.08); color: #DC2626; border-color: rgba(220, 38, 38, 0.3); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 140px 32px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(600px 320px at 30% 20%, rgba(8, 145, 178, 0.10), transparent 70%),
    radial-gradient(600px 320px at 70% 10%, rgba(219, 39, 119, 0.07), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 2px;
  color: var(--cyan); border: 1px solid rgba(8, 145, 178, 0.35);
  padding: 8px 18px; border-radius: 9999px; margin-bottom: 28px;
  background: rgba(8, 145, 178, 0.06);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }
.hero h1 {
  font-size: clamp(42px, 6.5vw, 78px); font-weight: 800;
  letter-spacing: -3px; line-height: 1.02; margin-bottom: 20px;
}
.grad-text {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 640px; margin: 0 auto 32px; color: var(--muted); font-size: 18px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px;
}
.stat {
  text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 22px; min-width: 120px; box-shadow: var(--shadow-sm);
}
.stat b {
  display: block; font-size: 26px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .stat-min { font-size: 13px; -webkit-text-fill-color: var(--muted); }
.stat span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1.5px; color: var(--dim); text-transform: uppercase; }
@media (max-width: 640px) {
  .hero-stats { gap: 8px; }
  .stat { padding: 10px 12px; min-width: 0; flex: 1 1 40%; }
  .stat b { font-size: 20px; }
}

/* ---------------- Hero live search ---------------- */
.hidden { display: none !important; }
.dimmed { opacity: 0.55; }
.mono-note { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1.5px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px;
  color: var(--green); border: 1px solid rgba(5, 150, 105, 0.35);
  padding: 7px 14px; border-radius: 9999px; background: rgba(5, 150, 105, 0.07);
}
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

.hero-search { display: flex; gap: 12px; max-width: 640px; margin: 0 auto 20px; flex-wrap: wrap; }
.hero-search input {
  flex: 1; min-width: 240px; padding: 16px 22px;
  background: var(--surface); border: 1px solid var(--border-bright);
  border-radius: var(--r-lg); color: var(--text);
  font-family: 'Outfit', sans-serif; font-size: 17px;
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.hero-search input:focus {
  outline: none; border-color: rgba(8, 145, 178, 0.6);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}
.quick-chips { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------------- Store status pills ---------------- */
.pills-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 22px; }
.pill {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 9999px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 7px; background: var(--surface);
}
.pill-ok { color: var(--green); border-color: rgba(5, 150, 105, 0.35); background: rgba(5, 150, 105, 0.06); }
.pill-fail { color: var(--dim); text-decoration: line-through; }
.pill-wait { color: var(--muted); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse 1s infinite; }

/* ---------------- Skeleton loading ---------------- */
.skeleton { pointer-events: none; opacity: 1 !important; transform: none !important; }
.sk-thumb { height: 150px; background: var(--surface2); animation: shimmer 1.2s ease-in-out infinite; }
.sk-line { height: 14px; border-radius: 6px; background: var(--surface2); margin-bottom: 12px; animation: shimmer 1.2s ease-in-out infinite; }
.sk-line.w70 { width: 70%; } .sk-line.w40 { width: 40%; } .sk-line.w55 { width: 55%; }
@keyframes shimmer { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---------------- Product images ---------------- */
.thumb-img { max-height: 130px; max-width: 80%; object-fit: contain; border-radius: var(--r-sm); }
.thumb-fallback { display: grid; place-items: center; font-size: 48px; }
.card-thumb { background: #fff; border-bottom: 1px solid var(--border); }
.modal-img { flex: 0 0 84px; height: 84px; object-fit: contain; border-radius: var(--r-lg); background: #fff; padding: 6px; border: 1px solid var(--border); }
div.modal-img { background: var(--surface2); display: grid; place-items: center; font-size: 36px; }

/* ---------------- More results rows ---------------- */
.more-title { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin: 32px 0 14px; }
.more-list { display: flex; flex-direction: column; gap: 10px; }
.more-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease;
}
.more-row:hover { border-color: var(--border-bright); }
.more-row .grow { flex: 1; min-width: 0; }
.row-img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: var(--r-sm); padding: 3px; flex: 0 0 52px; border: 1px solid var(--border); }
div.row-img { background: var(--surface2); display: grid; place-items: center; font-size: 24px; }
.row-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { font-size: 12px; color: var(--muted); }
.row-price { font-size: 17px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.store-listing { font-size: 11px; color: var(--dim); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
.store-mrp { font-size: 11px; color: var(--dim); text-decoration: line-through; font-weight: 400; }

/* ---------------- Trending cards ---------------- */
.trend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.trend-card {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px;
  color: var(--text); font-family: 'Outfit', sans-serif;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 300ms ease;
}
.trend-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trend-card img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: var(--r-sm); padding: 3px; flex: 0 0 54px; border: 1px solid var(--border); }
.trend-fallback { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; font-size: 26px; background: var(--surface2); border-radius: var(--r-sm); }
.trend-body { min-width: 0; }
.trend-title { font-size: 13px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.trend-price { font-size: 15px; font-weight: 800; letter-spacing: -0.3px; margin-top: 3px; }
.trend-save { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1px; color: var(--green); margin-top: 2px; }

/* ---------------- Ad slots ---------------- */
.ad-slot { max-width: 1280px; margin: 24px auto; padding: 0 32px; }
.ad-slot .ad-box {
  border: 1px dashed var(--border-bright); border-radius: var(--r-md);
  min-height: 90px; display: grid; place-items: center;
  color: var(--dim); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px;
  background: var(--surface);
}

/* ---------------- Sections / toolbar / chips ---------------- */
.section { max-width: 1280px; margin: 0 auto; padding: 40px 32px; }
.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 3px;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 12px;
}
.section h2 { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 28px; max-width: 640px; }

.toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.search-box { flex: 1; min-width: 240px; position: relative; }
.search-box input {
  width: 100%; padding: 13px 18px 13px 44px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--text);
  font-family: 'Outfit', sans-serif; font-size: 15px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.search-box input:focus { outline: none; border-color: rgba(8, 145, 178, 0.5); box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12); }
.search-box::before { content: "⌕"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 18px; }
.toolbar select {
  padding: 13px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--text);
  font-family: 'Outfit', sans-serif; font-size: 14px; cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.chips-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip-cat {
  padding: 9px 18px; border-radius: 9999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all 200ms ease;
}
.chip-cat:hover { border-color: var(--border-bright); color: var(--text); }
.chip-cat.active { background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; }

.result-count { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 1px; color: var(--dim); margin-bottom: 18px; }

/* ---------------- Product grid / cards ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease, box-shadow 300ms ease;
}
.card.in, .card.live { opacity: 1; transform: translateY(0); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-thumb { height: 150px; display: grid; place-items: center; font-size: 56px; position: relative; }
.save-badge {
  position: absolute; top: 12px; right: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1px; font-weight: 500;
  background: var(--green); color: #fff;
  padding: 5px 10px; border-radius: 9999px;
}
.card-body { padding: 20px; }
.card-cat { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--dim); margin-bottom: 8px; }
.card-body h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; margin-bottom: 8px; min-height: 46px; }
.card-rating { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.stars { color: var(--amber); letter-spacing: 1px; }
.bought-note { color: var(--magenta); font-size: 12px; font-weight: 600; white-space: nowrap; }
.coupon-chip {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.5px; color: #7C3AED; background: rgba(124, 58, 237, 0.08);
  border: 1px dashed rgba(124, 58, 237, 0.4); border-radius: 6px;
  padding: 3px 8px; margin-bottom: 8px;
}
.deal-body .card-rating { font-size: 12px; margin-bottom: 6px; }
.card-price-row { border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 16px; }
.best-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; color: var(--green); }
.best-price { font-size: 26px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.best-store { font-size: 13px; color: var(--muted); }
.card-actions { display: flex; gap: 10px; }
.card-actions .btn { flex: 1; padding: 11px 10px; font-size: 14px; }
.empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: var(--muted); border: 1px dashed var(--border-bright); border-radius: var(--r-lg);
  background: var(--surface);
}

/* ---------------- Compare modal ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16, 24, 40, 0.45); backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 80px 20px 40px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%; max-width: 680px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px; position: relative;
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.25);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-size: 16px; cursor: pointer;
  transition: all 200ms ease;
}
.modal-close:hover { color: var(--text); border-color: var(--border-bright); }
.modal-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.modal-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.25; }

.highlights { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  padding: 5px 12px; border-radius: 9999px;
  background: var(--surface2); border: 1px solid var(--border); color: var(--muted);
}
.compare-summary {
  background: rgba(5, 150, 105, 0.07); border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--r-md); padding: 14px 18px; font-size: 14px;
  color: var(--text); margin-bottom: 18px;
}
.compare-summary b { color: var(--green); }

.store-list { display: flex; flex-direction: column; gap: 10px; }
.store-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 18px;
}
.store-row.best { border-color: rgba(5, 150, 105, 0.4); background: rgba(5, 150, 105, 0.06); }
.store-info { flex: 1; min-width: 0; }
.store-name { font-weight: 700; font-size: 15px; }
.tag-lowest {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 1.5px;
  background: var(--green); color: #fff; padding: 3px 8px; border-radius: 9999px;
  vertical-align: 2px; margin-left: 6px; font-weight: 500;
}
.store-diff { font-size: 12px; color: var(--muted); }
.store-price { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.modal-disclosure { margin-top: 18px; font-size: 12px; color: var(--dim); }

/* ---------------- Live catalog feed ---------------- */
.feed-sentinel { text-align: center; padding: 28px 0; }
#catalogSec h2 .live-badge { vertical-align: 6px; margin-left: 12px; font-size: 10px; padding: 5px 12px; }
.feed-head-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

/* ---------------- Price history chart ---------------- */
.modal-tools { margin-top: 16px; }
.modal-tools .btn { width: 100%; white-space: normal; line-height: 1.35; text-align: center; }
.chart-box {
  margin-top: 16px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px;
}
.chart-title { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; color: var(--dim); margin-bottom: 8px; }
.price-chart { width: 100%; height: auto; display: block; }
.chart-grid { stroke: rgba(16, 24, 40, 0.10); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; fill: rgba(16, 24, 40, 0.45); }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.legend-item { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chart-note { font-size: 13px; color: var(--muted); padding: 6px 0; }

/* ---------------- Tracked products ---------------- */
.drop-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 9999px; white-space: nowrap;
}
.drop-badge.down { background: rgba(5, 150, 105, 0.10); color: var(--green); border: 1px solid rgba(5, 150, 105, 0.35); }
.drop-badge.up { background: rgba(220, 38, 38, 0.08); color: #DC2626; border: 1px solid rgba(220, 38, 38, 0.3); }
.drop-badge.flat { color: var(--dim); border: 1px solid var(--border); }

/* ---------------- Hot deals ---------------- */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.deal-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 300ms ease;
}
.deal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.deal-thumb { height: 130px; background: #fff; display: grid; place-items: center; position: relative; border-bottom: 1px solid var(--border); }
.deal-thumb img { max-height: 110px; max-width: 85%; object-fit: contain; }
.discount-badge {
  position: absolute; top: 10px; left: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 1px;
  background: var(--green); color: #fff; padding: 4px 10px; border-radius: 9999px;
}
.deal-body { padding: 14px 16px 16px; }
.deal-title {
  font-size: 13px; font-weight: 600; line-height: 1.35; min-height: 35px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  margin-bottom: 8px;
}
.deal-price { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.deal-mrp { font-size: 12px; color: var(--dim); text-decoration: line-through; font-weight: 400; }
.deal-store { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin: 4px 0 12px; }
.deal-actions { display: flex; gap: 8px; }
.deal-actions .btn { flex: 1; }

/* ---------------- Stores strip & FAQ ---------------- */
.stores-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.store-chip {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 1px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 10px 18px; border-radius: 9999px; color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: all 200ms ease;
}
.store-chip:hover { border-color: var(--border-bright); color: var(--text); transform: translateY(-2px); }

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0 20px;
  box-shadow: var(--shadow-sm);
}
.faq-list details[open] { border-color: var(--border-bright); }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 16px 0; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; color: var(--cyan);
  font-weight: 400; font-size: 20px; transition: transform 200ms ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); font-size: 14px; padding-bottom: 16px; }

/* ---------------- How it works ---------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-sm);
}
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 2px; color: var(--cyan); margin-bottom: 12px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------------- Disclosure strip ---------------- */
.disclosure { max-width: 1280px; margin: 0 auto; padding: 0 32px 40px; }
.disclosure-box {
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 18px 22px; font-size: 13px; color: var(--muted);
  background: var(--surface);
}
.disclosure-box b { color: var(--text); }

/* ---------------- Blog ---------------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; display: block;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 300ms ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-thumb {
  height: 120px; display: grid; place-items: center; font-size: 42px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.10), rgba(219, 39, 119, 0.08));
}
.blog-card-body { padding: 20px; }
.blog-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.blog-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1px;
  color: var(--cyan); background: rgba(8, 145, 178, 0.08);
  padding: 3px 10px; border-radius: 9999px; text-transform: uppercase;
}
.blog-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; margin-bottom: 8px; }
.blog-excerpt { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.blog-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--dim); letter-spacing: 1px; }

.article { max-width: 760px; margin: 0 auto; padding: 110px 32px 60px; }
.article h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 14px; }
.article .blog-meta { margin-bottom: 30px; display: block; }
.article-body { font-size: 17px; line-height: 1.75; color: var(--text); }
.article-body h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin: 34px 0 12px; }
.article-body h3 { font-size: 20px; font-weight: 700; margin: 26px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body b, .article-body strong { font-weight: 700; }
.article-body a { color: var(--cyan); text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.back-link:hover { color: var(--text); }

/* ---------------- Admin / forms ---------------- */
.admin-wrap { max-width: 860px; margin: 0 auto; padding: 100px 32px 60px; }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.panel .hint { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.field label {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--dim); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 14px;
}
.field textarea { min-height: 220px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(8, 145, 178, 0.5); }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 16px;
}
.admin-item .grow { flex: 1; min-width: 0; }
.admin-item .name { font-weight: 700; font-size: 15px; }
.admin-item .meta { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--border); padding: 48px 32px 32px; margin-top: 40px; background: var(--surface); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 9px; transition: color 200ms ease; }
.footer a:hover { color: var(--text); }
.footer .about { color: var(--muted); font-size: 14px; max-width: 300px; }
.footer-bottom {
  max-width: 1280px; margin: 36px auto 0; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1px; color: var(--dim);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------------- Price drop alert banner ---------------- */
.drop-alert {
  position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 300;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); color: var(--text);
  border: 1px solid rgba(5, 150, 105, 0.45);
  border-radius: var(--r-lg); padding: 12px 16px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.18);
  font-size: 14px; max-width: 640px; margin: 0 auto;
  animation: slideUp 300ms ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.drop-alert > span { flex: 1; min-width: 0; }
.drop-alert b { color: var(--green); }
.drop-old { color: var(--dim); text-decoration: line-through; font-size: 12px; }
.drop-alert-close {
  background: none; border: none; color: var(--dim); font-size: 15px; cursor: pointer;
  padding: 4px;
}
.drop-alert-close:hover { color: var(--text); }

/* ---------------- Responsive ---------------- */
/* Tablet */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 20px; gap: 20px; }
  .section { padding: 36px 20px; }
  .ad-slot { padding: 0 20px; }
  .hero { padding: 120px 20px 48px; }
}

/* Mobile — compact everything, keep everything usable */
@media (max-width: 640px) {
  .nav-inner { padding: 0 12px; gap: 10px; position: relative; justify-content: flex-start; }
  /* centre only the NAV logo — the footer logo stays in normal flow */
  .nav .logo { font-size: 17px; position: absolute; left: 50%; transform: translateX(-50%); }
  .nav .logo-mark { width: 24px; height: 24px; font-size: 13px; }
  .footer .logo { font-size: 18px; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .nav-menu-btn { display: grid; place-items: center; }
  .nav-links {
    display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: 6px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; padding: 13px 20px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav .live-badge { display: none; }
  .nav .nav-cta { margin-left: auto; }

  .hero { padding: 96px 14px 32px; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero-sub { font-size: 15px; }
  .hero-badge { font-size: 10px; padding: 6px 12px; letter-spacing: 1.5px; }
  .hero-search { gap: 8px; }
  .hero-search input { padding: 13px 16px; font-size: 16px; }
  .hero-search .btn-lg { padding: 13px 18px; font-size: 15px; width: 100%; }

  .section { padding: 26px 12px; }
  .section h2 { font-size: 24px; }
  .section-sub { font-size: 14px; }
  .ad-slot { padding: 0 12px; }

  /* chip rows scroll horizontally instead of stacking tall;
     left-aligned so the first chip is never clipped by centering */
  .chips-row, .quick-chips, .pills-row {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 4px;
    justify-content: flex-start;
  }
  .chips-row::-webkit-scrollbar, .quick-chips::-webkit-scrollbar, .pills-row::-webkit-scrollbar { display: none; }
  .chip-cat, .pill { white-space: nowrap; flex: 0 0 auto; }
  .chip-cat { padding: 8px 14px; font-size: 13px; }

  .feed-head-row { gap: 8px; }
  .feed-head-row select, .feed-head-row .btn { flex: 1; font-size: 13px; padding: 10px 12px; }

  /* two compact product columns */
  .deal-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .deal-thumb { height: 105px; }
  .deal-thumb img { max-height: 90px; }
  .deal-body { padding: 10px 12px 12px; }
  .deal-title { font-size: 12px; min-height: 32px; }
  .deal-price { font-size: 16px; }
  .deal-actions { flex-direction: column; gap: 6px; }
  .deal-body .card-rating { font-size: 11px; }
  .bought-note { font-size: 10px; }

  .grid { grid-template-columns: 1fr; }
  .trend-grid { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }

  .more-row { gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
  .row-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; }
  .row-price { font-size: 15px; }

  .store-row { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .store-row .btn { width: 100%; }
  .store-listing { max-width: 100%; }
  .modal-overlay { padding: 64px 8px 20px; }
  .modal { padding: 18px 14px; border-radius: var(--r-lg); }
  .modal-head { gap: 12px; }
  .modal-head h2 { font-size: 17px; }
  .modal-img, div.modal-img { flex: 0 0 60px; height: 60px; font-size: 26px; }

  .steps { grid-template-columns: 1fr; }
  .stores-strip { gap: 8px; }
  .store-chip { padding: 8px 14px; font-size: 11px; }
  .footer { padding: 32px 16px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px; }
  .article { padding: 90px 14px 36px; }
  .blog-grid { grid-template-columns: 1fr; }
  .admin-wrap { padding: 84px 12px 40px; }
  .drop-alert { font-size: 13px; padding: 10px 12px; }
}
