/* ═══════════════════════════════════════════════════
   DailySolves — Main Stylesheet
   Design: Cyan + Navy — "Smart Savings" direction
   Fonts: Space Grotesk (display) + Inter (body)
   ═══════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── ROOT TOKENS — overridden by PHP theme settings via :root inline ── */
:root {
  --accent:   #39FF14;
  --accent2:  #FF6B00;
  --bg:       #080B0F;
  --surface:  #0F1318;
  --card:     #141920;
  --border:   #1E2730;
  --text:     #E8EDF2;
  --muted:    #5A6478;
  --subtle:   #1C242E;
  /* New design tokens */
  --radius:   14px;
  --radius-sm:8px;
  --shadow:   0 4px 24px rgba(0,0,0,.4);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
  background: rgba(8,11,15,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}
.ds-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto;
  letter-spacing: -.3px;
}
.ds-logo-badge {
  background: var(--accent);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .5px;
}
.ds-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.ds-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  transition: .2s;
  white-space: nowrap;
}
.ds-nav a:hover, .ds-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.ds-search-wrap {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  width: 200px;
  transition: width .3s, border-color .2s;
}
.ds-search-wrap:focus-within {
  border-color: var(--accent);
  width: 240px;
}
.ds-search-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  padding: 8px 12px;
  font-family: inherit;
  min-width: 0;
}
.ds-search-wrap input::placeholder { color: var(--muted); }
.ds-search-wrap button {
  background: none;
  border: none;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1;
  transition: color .2s;
}
.ds-search-wrap button:hover { color: var(--accent); }
/* Mobile buttons */
.ds-mob-btn {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--muted);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
/* Mobile panels */
.ds-mob-panel {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.ds-mob-panel.open { display: block; }
.ds-mob-panel-search {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}
.ds-mob-panel-search input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
}
.ds-mob-panel-search input:focus { border-color: var(--accent); }
.ds-mob-panel-search button {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  -webkit-appearance: none;
}
.ds-mob-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: .2s;
}
.ds-mob-nav a:last-child { border-bottom: none; }
.ds-mob-nav a:hover, .ds-mob-nav a.active { color: var(--accent); background: rgba(57,255,20,.03); }
.ds-mob-nav .nav-ico { font-size: 16px; width: 22px; text-align: center; }

@media (max-width: 860px) {
  .ds-nav, .ds-search-wrap { display: none; }
  .ds-mob-btn { display: flex; align-items: center; justify-content: center; }
}
@media (min-width: 861px) {
  .ds-mob-panel { display: none !important; }
}

/* ══════════════════════════════════════════
   LAYOUT UTILS
══════════════════════════════════════════ */
.ds-wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.ds-section { padding: 56px 0; }
.ds-section-sm { padding: 36px 0; }
.ds-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.ds-section-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
}
.ds-section-head a {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  transition: opacity .2s;
}
.ds-section-head a:hover { opacity: .75; }
.ds-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.ds-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.ds-hero {
  background: linear-gradient(160deg, #080B0F 0%, #0A1A10 55%, #080B0F 100%);
  padding: 64px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.ds-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .4;
}
.ds-hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(57,255,20,.06) 0%, transparent 65%);
  pointer-events: none;
}
.ds-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(57,255,20,.08);
  border: 1px solid rgba(57,255,20,.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .3px;
}
.ds-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.ds-hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.ds-hero p {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.ds-hero-search {
  max-width: 520px;
  margin: 0 auto 28px;
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(57,255,20,.06);
}
.ds-hero-search:focus-within { border-color: var(--accent); }
.ds-hero-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  padding: 14px 18px;
  font-family: inherit;
}
.ds-hero-search input::placeholder { color: var(--muted); }
.ds-hero-search button {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  transition: .2s;
  flex-shrink: 0;
  -webkit-appearance: none;
}
.ds-hero-search button:hover { background: #50ff30; }
.ds-hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.ds-hero-stat strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  letter-spacing: -.5px;
}
.ds-hero-stat span { font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════════
   TICKER / STORE STRIP
══════════════════════════════════════════ */
.ds-ticker {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.ds-ticker-inner {
  display: flex;
  align-items: stretch;
}
.ds-ticker-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 16px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.ds-ticker-track-wrap { flex: 1; overflow: hidden; }
.ds-ticker-track {
  display: flex;
  width: max-content;
  animation: ds-ticker 30s linear infinite;
}
.ds-ticker-track:hover { animation-play-state: paused; }
@keyframes ds-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ds-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-right: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: .15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.ds-ticker-item:hover { background: rgba(57,255,20,.04); color: var(--accent); }
.ds-ticker-item-logo { font-size: 18px; }
.ds-ticker-item-name { font-size: 12px; font-weight: 600; }
.ds-ticker-item-cnt {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  background: rgba(57,255,20,.1);
  padding: 1px 7px;
  border-radius: 10px;
}

/* ══════════════════════════════════════════
   STORE CARDS
══════════════════════════════════════════ */
.ds-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.ds-store-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: .25s;
  display: block;
  position: relative;
  overflow: hidden;
}
.ds-store-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
}
.ds-store-card:hover {
  border-color: rgba(57,255,20,.3);
  box-shadow: 0 8px 30px rgba(57,255,20,.06);
  transform: translateY(-3px);
}
.ds-store-card:hover::before { transform: scaleX(1); }
.ds-store-logo { font-size: 36px; margin-bottom: 10px; line-height: 1; }
.ds-store-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-store-cnt { font-size: 11px; color: var(--accent); font-weight: 600; }

/* ══════════════════════════════════════════
   CATEGORY CARDS
══════════════════════════════════════════ */
.ds-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.ds-cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: .2s;
  display: block;
}
.ds-cat-card:hover {
  border-color: rgba(57,255,20,.25);
  background: rgba(57,255,20,.03);
  transform: translateY(-2px);
}
.ds-cat-icon { font-size: 26px; margin-bottom: 8px; line-height: 1; display: block; }
.ds-cat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.ds-cat-cnt { font-size: 10px; color: var(--accent); font-weight: 700; }

/* ══════════════════════════════════════════
   COUPON CARDS — Signature "tape" design
══════════════════════════════════════════ */
.ds-coupons-list { display: flex; flex-direction: column; gap: 10px; }

.ds-coupon-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
/* Accent left bar */
.ds-coupon-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0;
  transition: opacity .2s;
}
.ds-coupon-card:hover {
  border-color: rgba(57,255,20,.25);
  background: rgba(57,255,20,.02);
  transform: translateX(2px);
}
.ds-coupon-card:hover::before { opacity: 1; }
.ds-coupon-card.ds-orange::before { background: var(--accent2); }
.ds-coupon-card.ds-orange:hover { border-color: rgba(255,107,0,.25); background: rgba(255,107,0,.02); }

/* Logo box */
.ds-coupon-logo {
  width: 44px;
  min-width: 44px;
  height: 44px;
  background: var(--subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
/* Info */
.ds-coupon-info { flex: 1; min-width: 0; }
.ds-coupon-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.1px;
}
.ds-coupon-meta { font-size: 12px; color: var(--muted); }

/* Type badge */
.ds-coupon-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.ds-coupon-type.code {
  background: rgba(57,255,20,.1);
  color: var(--accent);
  border: 1px solid rgba(57,255,20,.2);
}
.ds-coupon-type.deal {
  background: rgba(255,215,0,.08);
  color: #FFD700;
  border: 1px solid rgba(255,215,0,.2);
}

/* Button */
.ds-coupon-btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: .15s;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  min-width: 88px;
  text-align: center;
  letter-spacing: .2px;
}
.ds-coupon-btn:active { transform: scale(.97); }

/* Color variants */
.ds-coupon-btn.green  { background:#39FF14;color:#000; }
.ds-coupon-btn.orange { background:#FF6B00;color:#fff; }
.ds-coupon-btn.blue   { background:#00BFFF;color:#000; }
.ds-coupon-btn.purple { background:#A855F7;color:#fff; }
.ds-coupon-btn.red    { background:#FF3B3B;color:#fff; }
.ds-coupon-btn.yellow { background:#FFD700;color:#000; }
.ds-coupon-btn.pink   { background:#FF69B4;color:#fff; }
.ds-coupon-btn.teal   { background:#00CED1;color:#000; }
.ds-coupon-btn.white  { background:#FFFFFF;color:#000; border: 1px solid #ccc; }
.ds-coupon-btn.green  { animation: ds-pulse 2.5s ease-in-out infinite; }
@keyframes ds-pulse {
  0%,100% { box-shadow:0 0 0 0 rgba(57,255,20,.4); }
  70%     { box-shadow:0 0 0 8px rgba(57,255,20,0); }
}

/* Expiry chip */
.ds-coupon-exp {
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.ds-coupon-exp.soon { color: #FFD700; }
.ds-coupon-exp.expired { color: #FF3B3B; }

/* ── Verified badge ── */
.ds-verified {
  font-size: 9px;
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ══════════════════════════════════════════
   BLOG CARDS
══════════════════════════════════════════ */
.ds-blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.ds-blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: .25s;
  display: block;
}
.ds-blog-card:hover {
  border-color: rgba(57,255,20,.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.ds-blog-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--subtle);
}
.ds-blog-body { padding: 18px; }
.ds-blog-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.ds-blog-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ds-blog-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.ds-blog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   PAGE HERO (category, store, etc)
══════════════════════════════════════════ */
.ds-page-hero {
  background: linear-gradient(160deg, #06090A 0%, #091510 60%, #06090A 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 20px;
}
.ds-page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ds-page-hero-icon {
  width: 64px;
  min-width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0D2A10, #1a4d1a);
  border: 1px solid rgba(57,255,20,.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.ds-page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -.3px;
}
.ds-page-hero-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ds-page-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ds-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--subtle);
  white-space: nowrap;
}
.ds-badge.green { color: var(--accent); border-color: rgba(57,255,20,.2); background: rgba(57,255,20,.08); }
.ds-badge.orange { color: var(--accent2); border-color: rgba(255,107,0,.2); background: rgba(255,107,0,.08); }

/* ══════════════════════════════════════════
   FILTER TABS (store-page, search)
══════════════════════════════════════════ */
.ds-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 0;
  align-items: center;
}
.ds-filter-btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  transition: .2s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  display: inline-block;
}
.ds-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.ds-filter-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.ds-filter-sep { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }
.ds-filter-select {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
.ds-filter-select:focus { border-color: var(--accent); }

/* ══════════════════════════════════════════
   LAYOUT: CONTENT + SIDEBAR
══════════════════════════════════════════ */
.ds-content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.ds-content-wrap.no-sidebar { grid-template-columns: 1fr; }
@media (max-width: 840px) {
  .ds-content-wrap { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   SIDEBAR CARDS
══════════════════════════════════════════ */
.ds-sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.ds-sidebar-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.ds-sidebar-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: .15s;
  font-size: 13px;
}
.ds-sidebar-item:last-child { border-bottom: none; }
.ds-sidebar-item:hover { background: rgba(57,255,20,.03); color: var(--accent); }
.ds-sidebar-item-logo { font-size: 20px; flex-shrink: 0; }
.ds-sidebar-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ds-sidebar-item-cnt { font-size: 11px; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.ds-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 8px 0 4px;
}
.ds-pg-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  text-decoration: none;
  transition: .2s;
  cursor: pointer;
}
.ds-pg-btn:hover { border-color: var(--accent); color: var(--accent); }
.ds-pg-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
.ds-pg-btn.disabled { opacity: .35; pointer-events: none; }
.ds-pg-info { font-size: 12px; color: var(--muted); padding: 0 6px; }
.ds-pg-dots { font-size: 13px; color: var(--muted); padding: 0 2px; }

/* ══════════════════════════════════════════
   SEARCH PAGE
══════════════════════════════════════════ */
.ds-search-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 20px;
}
.ds-search-box-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.ds-search-box {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.ds-search-box:focus-within { border-color: var(--accent); }
.ds-search-box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  padding: 14px 18px;
  font-family: inherit;
}
.ds-search-box input::placeholder { color: var(--muted); }
.ds-search-box button {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  -webkit-appearance: none;
}

/* ══════════════════════════════════════════
   STORES LIST (stores.php)
══════════════════════════════════════════ */
.ds-alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
}
.ds-alpha-btn {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  text-decoration: none;
  transition: .2s;
  cursor: pointer;
}
.ds-alpha-btn:hover, .ds-alpha-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* ══════════════════════════════════════════
   CATEGORIES PAGE (grid)
══════════════════════════════════════════ */
.ds-cat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 860px) { .ds-cat-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ds-cat-list { grid-template-columns: 1fr; } }

.ds-cat-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  transition: .2s;
  min-width: 0;
  overflow: hidden;
}
.ds-cat-row:hover {
  border-color: rgba(57,255,20,.25);
  background: rgba(57,255,20,.02);
  transform: translateY(-2px);
}
.ds-cat-row-icon {
  width: 50px;
  min-width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0D2A10, #1a4d1a);
  border: 1px solid rgba(57,255,20,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.ds-cat-row-info { flex: 1; min-width: 0; overflow: hidden; }
.ds-cat-row-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-cat-row-meta { font-size: 11px; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.ds-cat-row-desc { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-cat-row-arrow { font-size: 18px; color: var(--muted); flex-shrink: 0; transition: .2s; }
.ds-cat-row:hover .ds-cat-row-arrow { color: var(--accent); transform: translateX(3px); }

/* ══════════════════════════════════════════
   BLOG LIST + POST
══════════════════════════════════════════ */
.ds-blog-list { display: flex; flex-direction: column; gap: 16px; }
.ds-blog-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  transition: .2s;
}
.ds-blog-row:hover { border-color: rgba(57,255,20,.2); transform: translateX(3px); }
.ds-blog-row-body { flex: 1; min-width: 0; }
.ds-blog-row-tag { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; }
.ds-blog-row-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.4; }
.ds-blog-row-exc { font-size: 13px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-blog-row-meta { font-size: 12px; color: var(--muted); margin-top: 10px; display: flex; gap: 12px; }

/* Blog post layout */
.ds-post-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 760px) { .ds-post-wrap { grid-template-columns: 1fr; } }
.ds-post-content { font-size: 15px; color: var(--muted); line-height: 1.85; }
.ds-post-content h2, .ds-post-content h3 { font-family: var(--font-display); color: #fff; margin: 28px 0 10px; }
.ds-post-content p { margin-bottom: 18px; }
.ds-post-content ul, .ds-post-content ol { padding-left: 22px; margin-bottom: 18px; }
.ds-post-content li { margin-bottom: 6px; }
.ds-post-content a { color: var(--accent); text-decoration: underline; }
.ds-post-content blockquote { border-left: 3px solid var(--accent); padding-left: 18px; color: #aaa; font-style: italic; margin: 20px 0; }

/* ══════════════════════════════════════════
   STATIC PAGES (FAQ, Contact, Privacy)
══════════════════════════════════════════ */
.ds-static-wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.ds-static-wrap h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ds-static-wrap h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #fff; margin: 28px 0 10px; }
.ds-static-wrap p, .ds-static-wrap li { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.ds-static-wrap ul { padding-left: 20px; }

/* FAQ Accordion */
.ds-faq-item { border-bottom: 1px solid var(--border); }
.ds-faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: color .2s;
}
.ds-faq-q:hover { color: var(--accent); }
.ds-faq-q svg { flex-shrink: 0; transition: transform .2s; }
.ds-faq-item.open .ds-faq-q svg { transform: rotate(45deg); }
.ds-faq-a { font-size: 14px; color: var(--muted); line-height: 1.8; padding-bottom: 16px; display: none; }
.ds-faq-item.open .ds-faq-a { display: block; }

/* Contact form */
.ds-form-group { margin-bottom: 18px; }
.ds-form-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; display: block; }
.ds-form-input, .ds-form-textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.ds-form-input:focus, .ds-form-textarea:focus { border-color: var(--accent); }
.ds-form-textarea { min-height: 120px; resize: vertical; }
.ds-btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: .2s;
  -webkit-appearance: none;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  line-height: 1;
}
.ds-btn.primary { background: var(--accent); color: #000; }
.ds-btn.primary:hover { background: #50ff30; }
.ds-btn.outline { background: none; border: 1px solid var(--border); color: var(--text); }
.ds-btn.outline:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.ds-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.ds-footer-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 20px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.ds-footer-brand h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ds-footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.ds-footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.ds-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ds-footer-col ul li a { font-size: 13px; color: var(--muted); transition: color .2s; }
.ds-footer-col ul li a:hover { color: var(--accent); }
.ds-footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .ds-footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 540px) {
  .ds-footer-main { grid-template-columns: 1fr; gap: 24px; }
}

/* ══════════════════════════════════════════
   SUBSCRIBE STRIP
══════════════════════════════════════════ */
.ds-subscribe-strip {
  background: linear-gradient(135deg, #0D1A10, #0F1318);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
}
.ds-subscribe-strip h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.ds-subscribe-strip p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.ds-subscribe-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.ds-subscribe-form:focus-within { border-color: var(--accent); }
.ds-subscribe-form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  padding: 12px 16px;
  font-family: inherit;
}
.ds-subscribe-form input::placeholder { color: var(--muted); }
.ds-subscribe-form button {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  -webkit-appearance: none;
}

/* ══════════════════════════════════════════
   ALERTS & BADGES
══════════════════════════════════════════ */
.ds-alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.ds-alert.success { background: rgba(57,255,20,.08); border: 1px solid rgba(57,255,20,.2); color: var(--accent); }
.ds-alert.error   { background: rgba(255,59,59,.08); border: 1px solid rgba(255,59,59,.2); color: #FF3B3B; }
.ds-alert.info    { background: rgba(0,191,255,.08); border: 1px solid rgba(0,191,255,.2); color: #00BFFF; }

.ds-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(57,255,20,.1);
  color: var(--accent);
  border: 1px solid rgba(57,255,20,.15);
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   EMPTY STATES
══════════════════════════════════════════ */
.ds-empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}
.ds-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .6; }
.ds-empty h3 { font-family: var(--font-display); font-size: 18px; color: #fff; margin-bottom: 8px; }
.ds-empty p { font-size: 14px; }

/* ══════════════════════════════════════════
   MINI COUPON (blog sidebar)
══════════════════════════════════════════ */
.ds-mini-coupon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
}
.ds-mini-coupon:last-child { border-bottom: none; }
.ds-mini-logo { font-size: 20px; flex-shrink: 0; }
.ds-mini-info { flex: 1; min-width: 0; }
.ds-mini-title { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-mini-store { font-size: 10px; color: var(--muted); }
.ds-mini-btn {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ══════════════════════════════════════════
   RESPONSIVE HELPERS
══════════════════════════════════════════ */
@media (max-width: 540px) {
  .ds-wrap { padding: 0 14px; }
  .ds-section { padding: 36px 0; }
  .ds-hero { padding: 44px 14px 40px; }
  .ds-hero-stats { gap: 20px; }
  .ds-stores-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .ds-cats-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .ds-blogs-grid { grid-template-columns: 1fr; }
  .ds-coupon-logo { width: 38px; min-width: 38px; height: 38px; font-size: 18px; }
  .ds-coupon-title { font-size: 13px; }
  .ds-coupon-btn { font-size: 11px; padding: 9px 12px; min-width: 76px; }
  .ds-footer-main { padding: 32px 14px 24px; }
  .ds-page-hero { padding: 18px 14px; }
  .ds-page-hero-icon { width: 52px; min-width: 52px; height: 52px; font-size: 24px; border-radius: 12px; }
}

/* ══════════════════════════════════════════
   POPUP (from footer.php) overrides
══════════════════════════════════════════ */
.cv-popup-overlay {
  background: rgba(0,0,0,.85) !important;
  backdrop-filter: blur(10px) !important;
}
.cv-popup {
  border-radius: 20px !important;
  border-color: var(--border) !important;
}

/* ── DS MINI BTN COLORS ── */
.ds-mini-btn.green  { background:#39FF14;color:#000; }
.ds-mini-btn.orange { background:#FF6B00;color:#fff; }
.ds-mini-btn.blue   { background:#00BFFF;color:#000; }
.ds-mini-btn.purple { background:#A855F7;color:#fff; }
.ds-mini-btn.red    { background:#FF3B3B;color:#fff; }
.ds-mini-btn.yellow { background:#FFD700;color:#000; }
.ds-mini-btn.pink   { background:#FF69B4;color:#fff; }
.ds-mini-btn.teal   { background:#00CED1;color:#000; }
.ds-mini-btn.white  { background:#FFFFFF;color:#000;border:1px solid #ccc; }
/* ── CV BTN COLORS FOR POPUP ── */
.cv-btn-main.green  { background:#39FF14;color:#000; }
.cv-btn-main.orange { background:#FF6B00;color:#fff; }
.cv-btn-main.blue   { background:#00BFFF;color:#000; }
.cv-btn-main.purple { background:#A855F7;color:#fff; }
.cv-btn-main.red    { background:#FF3B3B;color:#fff; }
.cv-btn-main.yellow { background:#FFD700;color:#000; }
.cv-btn-main.pink   { background:#FF69B4;color:#fff; }
.cv-btn-main.teal   { background:#00CED1;color:#000; }
.cv-btn-main.white  { background:#FFFFFF;color:#000;border:1px solid #ccc; }
