/* ═══════════════════════════════════════════════════════════════════════════
   Deals directory v3 — SELF-CONTAINED (ds-deals-v3.css)
   ─────────────────────────────────────────────────────────────────────────
   v4 (2026-11-17): (f) Key Benefits / Eligibility are REAL accordions now —
   the v3 <details> showed the native marker AND a literal ▾ (double
   triangles), no padding/border/hover, chevron never rotated. v4 styles the
   summary as a proper accordion header (card-soft surface, count pill,
   single chevron that rotates 180° on open, hover + focus-visible, smooth
   open/close via ::details-content, reduced-motion safe). (g) Text-wrap
   hardening: the elig table is table-layout:fixed + overflow-wrap, the
   benefits list gets min-width:0 + overflow-wrap — the sections cannot
   clip under any font/viewport. (h) Show-sidebar newsletter stacks
   vertically at all widths — its 320px-basis row form overflowed the
   340px sidebar by ~24px (crossed the viewport at 1024px).
   Root-cause fix for v1: the v1 index was unstyled because its .dsa-*
   classes had NO definitions anywhere (v1 CSS defined only .dde-*, and
   no ds-apps-v1.css exists). This file defines EVERY class the deals
   index + show blades use — it depends on NO other stylesheet for deals
   classes. It only assumes Bootstrap utilities / the site chrome exist.
   Token fallbacks live in :root so the page still looks right if the
   site's main CSS fails to load. Dark variants key on BOTH
   html[data-theme="dark"] AND html.dark (the site sets both).
   Visual language: TMU skin (ink #0c1222, muted #5b6478, 1px borders,
   12-16px radii, subtle shadow, black pill buttons) + the reference
   structure's light-gray pills, red Limited-Time/Expires text, orange
   Trending text, green Active pill, light blue-gray deal-card surface.
   ═══════════════════════════════════════════════════════════════════════════ */

:root{
  --ink:#0c1222;
  --ink-soft:#232a3d;
  --muted:#5b6478;
  --faint:#8a93a8;
  --ds-line:rgba(12,18,34,.09);
  --ds-card:#ffffff;
  --ds-card-soft:#f8fafc;
  --ds-deal-bg:#eef2f7;
  --ds-pill-bg:#f1f3f7;
  --ds-pill-bg-hover:#e7eaf1;
  --ds-btn:#0b0f19;
  --ds-btn-ink:#ffffff;
  --ds-accent:#4338ca;
  --ds-accent-bg:#e6e2ff;
  --ds-gold-bg:#fef3c7;
  --ds-gold-ink:#92400e;
  --ds-green:#067647;
  --ds-green-bg:#dcfae6;
  --ds-green-border:#a6f4c5;
  --ds-red:#dc2626;
  --ds-red-bg:#fee2e2;
  --ds-orange:#ea580c;
  --ds-shadow:0 1px 2px rgba(12,18,34,.05),0 8px 24px -12px rgba(12,18,34,.12);
  --ds-shadow-lift:0 2px 4px rgba(12,18,34,.06),0 16px 32px -12px rgba(12,18,34,.18);
  --ds-radius:16px;
  --ds-radius-sm:12px;
}
html[data-theme="dark"], html.dark{
  --ink:#eef1fa;
  --ink-soft:#d6dbeb;
  --muted:#a3abbf;
  --faint:#7d869c;
  --ds-line:rgba(255,255,255,.12);
  --ds-card:#151a2c;
  --ds-card-soft:#1a2036;
  --ds-deal-bg:#1c2438;
  --ds-pill-bg:rgba(255,255,255,.08);
  --ds-pill-bg-hover:rgba(255,255,255,.14);
  --ds-btn:#eef1fa;
  --ds-btn-ink:#0b0f19;
  --ds-accent:#a5b4fc;
  --ds-accent-bg:rgba(99,102,241,.25);
  --ds-gold-bg:rgba(245,158,11,.22);
  --ds-gold-ink:#fcd34d;
  --ds-green:#6ce9a6;
  --ds-green-bg:rgba(6,118,71,.25);
  --ds-green-border:rgba(6,118,71,.5);
  --ds-red:#fca5a5;
  --ds-red-bg:rgba(220,38,38,.22);
  --ds-orange:#fdba74;
  --ds-shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px -12px rgba(0,0,0,.5);
  --ds-shadow-lift:0 2px 4px rgba(0,0,0,.4),0 16px 32px -12px rgba(0,0,0,.6);
}

/* ── Page wrap + two-column layout ─────────────────────────────────────── */
.dsa-wrap{ max-width:1200px; margin:0 auto; padding:24px 20px 48px; color:var(--ink); }
.dde-layout{ display:grid; grid-template-columns:260px minmax(0,1fr); gap:32px; align-items:start; }
.dde-layout > .dde-main, .dde-layout > main{ min-width:0; }

/* ── Show page layout: main content FIRST (wide), sidebar on the right.
   The show blade's children are main-first, so it must NOT reuse
   .dde-layout (260px sidebar-first) — that put the main column in the
   260px track and Bootstrap's .col-lg-8 (66.667%) compounded it to
   ~173px wide. This grid is main-first by construction. */
.dde-show-layout{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:40px; align-items:start; }
.dde-show-layout > .dde-show-main{ min-width:0; }
.dde-show-layout > .dde-sidebar{ min-width:0; }

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.dde-sidebar{ position:sticky; top:20px; display:flex; flex-direction:column; gap:28px; }
.dde-side-group{ border:0; }
.dde-side-group summary{ list-style:none; cursor:pointer; }
.dde-side-group summary::-webkit-details-marker{ display:none; }
.dde-side-title{
  display:flex; align-items:center; justify-content:space-between;
  font-size:.72rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  color:var(--faint); margin:0 0 8px; padding:0 10px; min-height:32px;
}
.dde-side-list{ display:flex; flex-direction:column; gap:2px; margin:0; padding:0; list-style:none; }
.dde-side-item{
  display:flex; align-items:center; gap:10px; min-height:44px;
  padding:8px 10px; border-radius:12px; color:var(--ink-soft);
  font-weight:600; font-size:.92rem; text-decoration:none; transition:background .15s;
}
.dde-side-item:hover{ background:var(--ds-pill-bg); color:var(--ink); text-decoration:none; }
.dde-side-item.active{ background:var(--ds-btn); color:var(--ds-btn-ink); font-weight:700; box-shadow:0 8px 18px -8px rgba(11,15,25,.5); }
.dde-side-item.active .dde-side-count{ background:rgba(255,255,255,.18); color:inherit; }
html[data-theme="dark"] .dde-side-item.active .dde-side-count,
html.dark .dde-side-item.active .dde-side-count{ background:rgba(11,15,25,.18); }
.dde-side-count{
  margin-left:auto; font-size:.72rem; font-weight:800;
  background:var(--ds-pill-bg); color:var(--muted);
  border-radius:999px; padding:2px 8px; flex:none;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.dsa-hero{ margin-bottom:20px; }
.dsa-h1{ font-size:2rem; font-weight:800; letter-spacing:-.02em; line-height:1.15; margin:10px 0 8px; color:var(--ink); }
.dsa-lead{ font-size:1.02rem; line-height:1.65; color:var(--muted); max-width:720px; margin:0; }
.dde-last-updated{
  display:inline-flex; align-items:center; gap:6px;
  font-size:.78rem; font-weight:700; color:var(--muted);
  background:var(--ds-pill-bg); border-radius:999px; padding:5px 12px; margin-top:12px;
}

/* ── Chips / pills ─────────────────────────────────────────────────────── */
.chip{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem .8rem; border-radius:999px; font-size:.78rem; font-weight:700;
  background:var(--ds-pill-bg); color:var(--ink-soft);
}
.chip-lav{ background:var(--ds-accent-bg); color:var(--ds-accent); }
.chip-gold{ background:var(--ds-gold-bg); color:var(--ds-gold-ink); }

/* ── Sponsored affiliate offer ─────────────────────────────────────────── */
.dde-sponsor{
  display:flex; align-items:center; gap:20px;
  background:var(--ds-accent-bg); border:1px solid var(--ds-line);
  border-radius:var(--ds-radius); padding:20px 22px; margin:0 0 28px;
}
.dde-sponsor-label{
  font-size:.68rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); display:block; margin-bottom:6px;
}
.dde-sponsor-tag{
  display:inline-flex; align-items:center; padding:3px 10px; border-radius:999px;
  background:var(--ds-accent); color:#fff; font-size:.72rem; font-weight:800; margin-top:8px;
}
.dde-sponsor h2, .dde-sponsor h3{ font-size:1.05rem; font-weight:700; margin:0 0 4px; color:var(--ink); }
.dde-sponsor p{ font-size:.9rem; line-height:1.6; color:var(--muted); margin:0; }
.dde-sponsor .btn{ flex:none; margin-left:auto; }
.dde-affiliate-offer{ /* alias: same surface, used by the show blade */
  background:var(--ds-accent-bg); border:1px solid var(--ds-line);
  border-radius:var(--ds-radius); padding:20px 22px; margin:0 0 28px;
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.dde-section{ margin-bottom:32px; }
.dde-section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:14px; }
.dde-section-title{ font-size:1.15rem; font-weight:800; letter-spacing:-.01em; margin:0; color:var(--ink); display:flex; align-items:center; gap:8px; }
.dde-section-more{ font-size:.88rem; font-weight:700; color:var(--muted); text-decoration:none; white-space:nowrap; min-height:44px; display:inline-flex; align-items:center; }
.dde-section-more:hover{ color:var(--ink); text-decoration:underline; }
.dde-badge-new{
  display:inline-flex; align-items:center; padding:2px 8px; border-radius:6px;
  background:var(--ds-pill-bg); color:var(--muted);
  font-size:.68rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
}
.dde-badge-hot{
  display:inline-flex; align-items:center; padding:2px 8px; border-radius:6px;
  background:var(--ds-red-bg); color:var(--ds-red);
  font-size:.68rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
}

/* ── Spotlight pills ───────────────────────────────────────────────────── */
.dde-spot-pills{ display:flex; flex-wrap:wrap; gap:10px; }
.dde-spot-pill{
  display:inline-flex; align-items:center; min-height:44px; padding:10px 18px;
  border-radius:999px; background:var(--ds-pill-bg); color:var(--ink);
  font-weight:700; font-size:.9rem; text-decoration:none; transition:background .15s, transform .15s;
}
.dde-spot-pill:hover{ background:var(--ds-pill-bg-hover); transform:translateY(-1px); color:var(--ink); text-decoration:none; }

/* ── Trending grid ─────────────────────────────────────────────────────── */
.dde-trend-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.dde-trend-card{
  display:flex; flex-direction:column; gap:8px;
  background:var(--ds-deal-bg); border:1px solid var(--ds-line);
  border-radius:var(--ds-radius); padding:16px; color:var(--ink);
  text-decoration:none; transition:transform .15s, box-shadow .15s; min-width:0;
}
.dde-trend-card:hover{ transform:translateY(-2px); box-shadow:var(--ds-shadow-lift); color:var(--ink); text-decoration:none; }
.dde-trend-logo{ width:44px; height:44px; border-radius:12px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:var(--ds-card); border:1px solid var(--ds-line); flex:none; }
.dde-trend-logo img{ width:100%; height:100%; object-fit:contain; }
.dde-trend-highlight{ font-size:.8rem; font-weight:600; color:var(--muted); line-height:1.45; }
.dde-trend-title{ font-size:.95rem; font-weight:700; line-height:1.4; margin:0; color:var(--ink); }

/* ── Rich list (Recently Verified / filtered list) ─────────────────────── */
.dde-rich-list{ display:flex; flex-direction:column; gap:0; }
.dde-rich-card{
  display:grid; grid-template-columns:64px minmax(0,1fr); gap:16px;
  padding:20px 4px; border-top:1px solid var(--ds-line); color:var(--ink); text-decoration:none;
}
.dde-rich-card:first-child{ border-top:0; padding-top:4px; }
.dde-rich-card:hover .dde-rich-title{ text-decoration:underline; }
.dde-rich-logo{ width:56px; height:56px; border-radius:14px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:var(--ds-card); border:1px solid var(--ds-line); flex:none; }
.dde-rich-logo img{ width:100%; height:100%; object-fit:contain; }
.dde-rich-deals{
  display:inline-flex; align-items:center; min-height:28px; margin-top:8px;
  padding:3px 10px; border-radius:999px; background:var(--ds-pill-bg);
  color:var(--muted); font-size:.75rem; font-weight:800; white-space:nowrap;
}
.dde-rich-meta{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  font-size:.82rem; color:var(--muted); margin-bottom:4px;
}
.dde-rich-meta strong{ color:var(--ink); font-weight:700; }
.dde-rich-title{ font-size:1.02rem; font-weight:700; line-height:1.4; margin:0 0 4px; color:var(--ink); }
.dde-rich-highlight{
  float:right; max-width:46%; margin:0 0 6px 14px; text-align:right;
  font-size:.8rem; font-weight:700; color:var(--ink-soft);
  background:var(--ds-pill-bg); border-radius:999px; padding:5px 12px; line-height:1.4;
}
.dde-rich-desc{ font-size:.9rem; line-height:1.6; color:var(--muted); margin:0; }
.dde-hashtag{ font-weight:700; color:var(--muted); }
.dde-meta-trending{ color:var(--ds-orange); font-weight:700; }
.dde-meta-limited{ color:var(--ds-red); font-weight:700; }
.dde-meta-expires{ color:var(--ds-red); font-weight:700; }

/* ── Sort tabs ─────────────────────────────────────────────────────────── */
.dde-sort-tabs{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 8px; }
.dde-sort-tab{
  display:inline-flex; align-items:center; min-height:44px; padding:10px 16px;
  border-radius:999px; background:var(--ds-pill-bg); color:var(--ink-soft);
  font-weight:700; font-size:.88rem; text-decoration:none; transition:background .15s;
}
.dde-sort-tab:hover{ background:var(--ds-pill-bg-hover); color:var(--ink); text-decoration:none; }
.dde-sort-tab.active{ background:var(--ds-btn); color:var(--ds-btn-ink); }

/* ── Pagination ────────────────────────────────────────────────────────── */
.dde-pagination{ display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; margin:28px 0 8px; }
.dde-page-btn{
  min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center;
  padding:0 14px; border-radius:14px; font-weight:700; font-size:.9rem;
  background:var(--ds-card); border:1px solid var(--ds-line); color:var(--ink-soft); text-decoration:none;
}
.dde-page-btn:hover{ color:var(--ink); border-color:var(--muted); text-decoration:none; }
.dde-page-btn.active{ background:var(--ds-btn); border-color:var(--ds-btn); color:var(--ds-btn-ink); }

/* ── Newsletter ────────────────────────────────────────────────────────── */
.dde-newsletter{
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
  background:var(--ds-deal-bg); border:1px solid var(--ds-line);
  border-radius:var(--ds-radius); padding:20px 22px; margin:32px 0;
}
.dde-newsletter h2, .dde-newsletter h3{ font-size:.85rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; margin:0 0 4px; color:var(--ink); }
.dde-newsletter p{ font-size:.92rem; color:var(--muted); margin:0; line-height:1.55; }
.dde-newsletter-form{ display:flex; gap:10px; flex:1 1 320px; margin-left:auto; min-width:0; }
.dde-newsletter-input{
  flex:1; min-width:0; min-height:48px; padding:10px 16px;
  border-radius:999px; border:1px solid var(--ds-line);
  background:var(--ds-card); color:var(--ink); font-size:.95rem;
}
.dde-newsletter-input::placeholder{ color:var(--faint); }
.dde-newsletter-form .btn{ flex:none; }

/* Show sidebar is only 340px: the newsletter row (text + 320px-basis
   form) never fits there — the form's min-content (~361px: input default
   size + nowrap button) overflowed the card by ~24px at every desktop
   width and crossed the viewport edge at 1024px. Stack it in the
   sidebar at all widths (the index newsletter keeps its row layout). */
.dde-show-layout > .dde-sidebar .dde-newsletter{ flex-direction:column; align-items:stretch; }
.dde-show-layout > .dde-sidebar .dde-newsletter-form{ flex:0 0 auto; flex-direction:column; margin-left:0; }
.dde-show-layout > .dde-sidebar .dde-newsletter-form .btn{ width:100%; }
.dde-show-layout > .dde-sidebar .dde-newsletter-input{ flex:0 0 auto; height:48px; }

/* ── Top-deals pills ───────────────────────────────────────────────────── */
.dde-top-pills{ display:flex; flex-wrap:wrap; gap:8px; }
.dde-top-pill{
  display:inline-flex; align-items:center; min-height:44px; padding:10px 16px;
  border-radius:999px; background:var(--ds-pill-bg); color:var(--ink-soft);
  font-weight:600; font-size:.88rem; text-decoration:none;
}
.dde-top-pill:hover{ background:var(--ds-pill-bg-hover); color:var(--ink); text-decoration:none; }

/* ── Filter pills / chips (v1 pills + filtered-view chips) ─────────────── */
.dsa-pills{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.dsa-pill{
  display:inline-flex; align-items:center; min-height:44px; padding:10px 16px;
  border-radius:999px; background:var(--ds-pill-bg); color:var(--ink-soft);
  font-weight:700; font-size:.88rem; text-decoration:none;
}
.dsa-pill:hover{ background:var(--ds-pill-bg-hover); color:var(--ink); text-decoration:none; }
.dsa-pill.active{ background:var(--ds-btn); color:var(--ds-btn-ink); }
.dde-filter-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.dde-filter-chip{
  display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:10px 16px;
  border-radius:999px; background:var(--ds-pill-bg); color:var(--ink-soft);
  font-weight:700; font-size:.88rem; text-decoration:none;
}
.dde-filter-chip:hover{ background:var(--ds-pill-bg-hover); color:var(--ink); text-decoration:none; }
.dde-filter-chip.active{ background:var(--ds-btn); color:var(--ds-btn-ink); }

/* ── Brand grid / cards (index grid + New Arrivals) ────────────────────── */
.dsa-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.dsa-item{
  display:flex; align-items:flex-start; gap:14px;
  background:var(--ds-card); border:1px solid var(--ds-line); border-radius:var(--ds-radius);
  padding:16px; color:var(--ink); text-decoration:none; box-shadow:var(--ds-shadow);
  transition:transform .15s, box-shadow .15s; min-width:0;
}
.dsa-item:hover{ transform:translateY(-2px); box-shadow:var(--ds-shadow-lift); color:var(--ink); text-decoration:none; }
.dsa-get{
  margin-left:auto; flex:none; font-size:.8rem; font-weight:700; color:var(--muted);
  background:var(--ds-pill-bg); border-radius:999px; padding:5px 12px; white-space:nowrap;
}
.dde-brand-card{ align-items:flex-start; }
.dde-brand-main{ display:flex; flex-direction:column; min-width:0; flex-grow:1; }
.dde-brand-name{ font-weight:700; font-size:1rem; color:var(--ink); display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.dde-brand-topic{ font-size:.78rem; color:var(--muted); }
.dde-brand-best{ font-size:.88rem; color:var(--ink-soft); margin-top:6px; line-height:1.45; }
.dde-brand-best .dde-rich-highlight{ float:none; max-width:none; margin:0; display:inline-block; }

/* ── Logo tiles (real logo img + letter fallback) ───────────────────────── */
.dde-logo-tile{
  width:52px; height:52px; flex:none; border-radius:14px; overflow:hidden;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--ds-card); border:1px solid var(--ds-line);
}
/* Hero logo tile: needs the full tile base (flex:none + background/border).
   With only width/height set, the tile was a bare flex item whose %-sized
   img let it shrink to 0px wide on desktop / 16px for the wide wordmark —
   the hero logo was invisible. */
.dde-logo-tile-lg{
  width:84px; height:84px; border-radius:20px; flex:none;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--ds-card); border:1px solid var(--ds-line); overflow:hidden;
}
/* Wide wordmark (Google Workspace): the official logo is a wide wordmark (3995x512),
   not a square mark — a square tile shrinks it to an unreadable sliver.
   Applied via the dde-logo-tile--wide modifier on the tile (Blade adds it for
   google-workspace only). Must stay AFTER the tile rules above (equal specificity,
   later wins). */
.dde-logo-tile--wide{ width:132px; }
.dde-logo-tile-lg.dde-logo-tile--wide{ width:180px; }
.dde-logo-tile--wide img{ padding:4px 8px; }
/* Dark mode: logo tiles stay WHITE so dark brand marks (ElevenLabs near-black,
   Workspace grey wordmark, Muse text) stay visible on the dark page. */
html[data-theme="dark"] .dde-logo-tile, html.dark .dde-logo-tile,
html[data-theme="dark"] .dde-logo-tile-lg, html.dark .dde-logo-tile-lg,
html[data-theme="dark"] .dde-trend-logo, html.dark .dde-trend-logo,
html[data-theme="dark"] .dde-rich-logo, html.dark .dde-rich-logo{ background:#ffffff; }
.dde-logo-img{ width:100%; height:100%; object-fit:contain; display:block; }
.dde-tile{
  width:52px; height:52px; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:14px; color:#fff;
  font-size:1.5rem; font-weight:800; line-height:1;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}
.dde-tile-lg{ width:84px; height:84px; border-radius:20px; font-size:2.4rem; }

/* ── Show blade: back row / breadcrumb / hero ──────────────────────────── */
.dsa-backrow{ margin-bottom:16px; }
.dsa-back{
  display:inline-flex; align-items:center; min-height:44px; padding:8px 14px;
  border-radius:999px; color:var(--muted); font-weight:700; font-size:.9rem; text-decoration:none;
}
.dsa-back:hover{ color:var(--ink); background:var(--ds-pill-bg); text-decoration:none; }
.dde-h1{ letter-spacing:-1px; font-weight:800; color:var(--ink); }
.dde-tagline{ font-size:1.05rem; line-height:1.6; color:var(--muted); }
.dde-breadcrumb{ font-size:.85rem; color:var(--muted); margin-bottom:12px; }
.dde-breadcrumb a{ color:var(--muted); text-decoration:none; font-weight:600; }
.dde-breadcrumb a:hover{ color:var(--ink); text-decoration:underline; }

/* ── Show blade: tabs ──────────────────────────────────────────────────── */
.dde-tabs{ display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.dde-tab{
  display:inline-flex; align-items:center; min-height:44px; padding:10px 16px;
  border-radius:999px; background:var(--ds-pill-bg); color:var(--muted);
  font-weight:700; font-size:.88rem; text-decoration:none;
}
.dde-tab:hover{ background:var(--ds-pill-bg-hover); color:var(--ink); text-decoration:none; }
.dde-tab.active{ background:var(--ds-btn); color:var(--ds-btn-ink); }
.dde-expires-pill{
  display:inline-flex; align-items:center; padding:4px 12px; border-radius:999px;
  background:var(--ds-red-bg); color:var(--ds-red); font-size:.8rem; font-weight:700;
}

/* ── Show blade: deal blocks ───────────────────────────────────────────── */
.dde-deal{ border-top:1px solid var(--ds-line); padding-top:28px; margin-top:28px; }
.dde-deal:first-of-type{ margin-top:8px; }
.dde-deal-card{
  background:var(--ds-card); border:1px solid var(--ds-line); border-radius:var(--ds-radius);
  padding:20px 22px; margin:0 0 20px; box-shadow:var(--ds-shadow);
}
.dde-deal-status{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:.85rem; color:var(--muted); }
.dde-deal-num{ font-weight:800; color:var(--faint); font-size:.8rem; letter-spacing:.08em; text-transform:uppercase; }
.dde-deal-active{
  display:inline-flex; align-items:center; gap:6px; padding:4px 12px; border-radius:999px;
  background:var(--ds-green-bg); color:var(--ds-green); font-size:.78rem; font-weight:800;
}
.dde-deal-active::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.dde-deal-inactive{
  display:inline-flex; align-items:center; padding:4px 12px; border-radius:999px;
  background:var(--ds-pill-bg); color:var(--muted); font-size:.78rem; font-weight:800;
}
.dde-deal-title{ font-size:1.35rem; font-weight:700; margin:0; color:var(--ink); }
.dde-tag-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.dde-tag-chip{
  display:inline-flex; align-items:center; min-height:32px; padding:4px 12px;
  border-radius:999px; background:var(--ds-pill-bg); color:var(--ink-soft);
  font-size:.8rem; font-weight:700; text-decoration:none;
}
a.dde-tag-chip:hover{ background:var(--ds-pill-bg-hover); color:var(--ink); text-decoration:none; }

/* ── Price math (carried over from v1, restyled) ───────────────────────── */
.dde-price-row{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin:14px 0 6px; }
.dde-deal-price{ font-size:1.7rem; font-weight:800; color:var(--ink); letter-spacing:-.5px; }
.dde-regular-price{ font-size:1.05rem; color:var(--muted); text-decoration:line-through; }
.dde-save-badge{
  font-size:.82rem; font-weight:700; color:#067647;
  background:#dcfae6; border:1px solid #a6f4c5;
  padding:4px 10px; border-radius:999px;
}
html[data-theme="dark"] .dde-save-badge, html.dark .dde-save-badge{
  color:#6ce9a6; background:rgba(6,118,71,.25); border-color:rgba(6,118,71,.5);
}
.dde-lead{ font-size:1.05rem; line-height:1.7; color:var(--ink); }
.dde-deal h3{ font-size:1.1rem; font-weight:700; margin-top:1.4rem; margin-bottom:.6rem; color:var(--ink); }

/* ── Claim / renewal / note boxes ──────────────────────────────────────── */
.dde-claim-box{
  background:var(--ds-card-soft); border:1px solid var(--ds-line);
  border-radius:var(--ds-radius-sm); padding:16px 18px; margin:16px 0;
}
.dde-steps{ padding-left:22px; line-height:1.7; }
.dde-steps li{ margin-bottom:6px; }
.dde-renewal-box{
  font-size:.92rem; color:var(--muted); line-height:1.6;
  background:var(--ds-card-soft); border:1px solid var(--ds-line);
  border-radius:var(--ds-radius-sm); padding:14px 16px; margin:14px 0;
}
.dde-renewal{ font-size:.92rem; color:var(--muted); line-height:1.6; }
.dde-note-box{
  font-size:.9rem; line-height:1.65; color:var(--muted);
  background:var(--ds-gold-bg); border:1px solid var(--ds-line);
  border-radius:var(--ds-radius-sm); padding:14px 16px; margin:14px 0;
}
/* ── Key Benefits / Eligibility accordions ─────────────────────────────
   The <details> are REAL accordions: one styled header, one chevron that
   rotates on open, hover + keyboard focus, smooth open/close. The native
   disclosure marker is hidden (it doubled the ▾ glyph before).
   Hardening: min-width:0 + overflow-wrap on every text-bearing part, and
   the elig table is table-layout:fixed — its cells can never run past
   the deal card, whatever the font or viewport. */
.dde-benefits, .dde-elig{ min-width:0; overflow-wrap:break-word; }
.dde-benefits summary, .dde-elig summary{
  list-style:none; cursor:pointer;
  display:flex; align-items:center; gap:8px;
  padding:12px 14px; margin:14px 0 0;
  background:var(--ds-card-soft); border:1px solid var(--ds-line);
  border-radius:var(--ds-radius-sm);
  font-weight:700; font-size:.98rem; color:var(--ink);
  transition:background .15s, border-color .15s;
}
.dde-benefits summary:hover, .dde-elig summary:hover{ background:var(--ds-pill-bg-hover); }
.dde-benefits summary:focus-visible, .dde-elig summary:focus-visible{
  outline:3px solid rgba(99,102,241,.55); outline-offset:2px;
}
.dde-benefits summary::-webkit-details-marker, .dde-elig summary::-webkit-details-marker{ display:none; }
.dde-acc-count{
  font-size:.78rem; font-weight:800; color:var(--muted);
  background:var(--ds-pill-bg); border:1px solid var(--ds-line);
  padding:2px 9px; border-radius:999px; white-space:nowrap; flex:none;
}
.dde-chev{ margin-left:auto; flex:none; color:var(--faint); font-size:.85rem; line-height:1; transition:transform .25s ease; }
.dde-benefits[open ] summary .dde-chev, .dde-elig[open ] summary .dde-chev{ transform:rotate(180deg); }
.dde-benefits{ line-height:1.7; }
.dde-benefits ul{ padding-left:20px; margin:12px 0 4px; min-width:0; }
.dde-benefits li{ margin-bottom:4px; min-width:0; overflow-wrap:break-word; }
.dde-elig{ width:100%; }
.dde-elig table{ table-layout:fixed; width:100%; margin-top:12px; }
.dde-elig th{ width:140px; font-weight:700; white-space:nowrap; vertical-align:top; padding:8px 12px 8px 0; color:var(--ink); }
.dde-elig td{ line-height:1.65; padding:8px 0; color:var(--ink-soft); overflow-wrap:break-word; }
/* Smooth open/close (progressive enhancement: Chrome 131+ animates the
   height; older engines fall back to the instant native toggle). */
.dde-benefits, .dde-elig{ interpolate-size:allow-keywords; }
.dde-benefits::details-content, .dde-elig::details-content{
  overflow:clip; height:0;
  transition:height .25s ease, content-visibility .25s ease;
  transition-behavior:allow-discrete;
}
.dde-benefits[open ]::details-content, .dde-elig[open ]::details-content{ height:auto; }
.dde-terms-link{ font-weight:700; color:var(--ds-accent); text-decoration:underline; text-underline-offset:2px; }

/* ── "Is this deal working?" widget (carried over from v1) ─────────────── */
.dde-widget{
  border:1px solid var(--ds-line); border-radius:var(--ds-radius);
  padding:16px 18px; margin:18px 0 8px; background:var(--ds-card-soft);
}
.dde-widget-q{ font-weight:700; font-size:1rem; color:var(--ink); }
.dde-widget-sub{ font-size:.85rem; color:var(--muted); margin-bottom:10px; }
.dde-widget-btns{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.dde-widget-counts{ font-size:.85rem; color:var(--muted); }
.dde-widget-verified{ font-size:.8rem; color:var(--muted); margin-top:10px; }
.dde-widget-thanks{ color:#067647; font-weight:700; }
html[data-theme="dark"] .dde-widget-thanks, html.dark .dde-widget-thanks{ color:#6ce9a6; }
.dde-vote{ min-height:44px; }
.dde-vote:disabled{ opacity:.55; cursor:default; }

/* ── Proofs / details / verify / disclosure (carried over from v1) ─────── */
.dde-proofs{ line-height:1.7; }
.dde-proofs ul{ padding-left:20px; }
.dde-details{ line-height:1.8; padding-left:20px; }
.dde-verify-box{
  border:1px solid var(--ds-line); border-radius:var(--ds-radius);
  padding:20px 22px; margin-top:32px; background:var(--ds-card-soft);
}
.dde-verify-box h2{ font-size:1.15rem; font-weight:700; margin-bottom:10px; color:var(--ink); }
.dde-verify-box ol{ padding-left:20px; line-height:1.7; margin-bottom:8px; }
.dde-verify-note{ font-size:.9rem; color:var(--muted); }
.dde-disclosure{
  font-size:.88rem; line-height:1.65; color:var(--muted);
  border:1px dashed var(--ds-line); border-radius:var(--ds-radius-sm);
  padding:14px 16px; margin-top:24px;
}

/* ── Show blade: about / categories / share / similar / fresh ──────────── */
.dde-cat-topics{ display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.dde-share-row{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:20px 0; }
.dde-share-btn{
  display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px;
  padding:10px 16px; border-radius:999px; background:var(--ds-pill-bg); color:var(--ink-soft);
  font-weight:700; font-size:.85rem; text-decoration:none; border:1px solid var(--ds-line);
}
.dde-share-btn:hover{ background:var(--ds-pill-bg-hover); color:var(--ink); text-decoration:none; }
.dde-about{ font-size:.98rem; line-height:1.7; color:var(--ink-soft); }
.dde-about h2{ font-size:1.15rem; font-weight:700; color:var(--ink); margin:0 0 8px; }
.dde-expired{
  background:var(--ds-pill-bg); border:1px dashed var(--ds-line);
  border-radius:var(--ds-radius-sm); padding:14px 16px; margin:14px 0;
  color:var(--muted); font-size:.9rem; line-height:1.6;
}
.dde-similar{ margin-top:32px; display:flex; flex-direction:column; }
/* Similar rows are horizontal ROWS (logo + name + View), NOT a 3-column
   grid — the grid spread the three children across the row and stretched
   the "View" pill into a ~200px-tall white capsule. */
.dde-similar-row{
  display:flex; align-items:center; gap:12px;
  padding:14px 2px; border-top:1px solid var(--ds-line);
  color:var(--ink); text-decoration:none; min-width:0;
}
.dde-similar-row:first-child{ border-top:0; }
.dde-similar-row:hover .dde-brand-name{ text-decoration:underline; }
.dde-like-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.dde-like-card{
  display:flex; flex-direction:column; gap:8px;
  background:var(--ds-card); border:1px solid var(--ds-line); border-radius:var(--ds-radius);
  padding:16px; color:var(--ink); text-decoration:none; box-shadow:var(--ds-shadow);
  transition:transform .15s, box-shadow .15s; min-width:0;
}
.dde-like-card:hover{ transform:translateY(-2px); box-shadow:var(--ds-shadow-lift); color:var(--ink); text-decoration:none; }
.dde-like-card h3{ font-size:.95rem; font-weight:700; line-height:1.4; margin:0; color:var(--ink); }
.dde-fresh-list{ display:flex; flex-direction:column; gap:0; }
/* Fresh-list rows need padding + a divider — without them the four
   brands ran together as one unbroken text block. */
.dde-fresh-list a{
  display:block; padding:12px 2px; border-top:1px solid var(--ds-line);
  color:var(--ink-soft); text-decoration:none; line-height:1.55;
}
.dde-fresh-list a:first-child{ border-top:0; }
.dde-fresh-list a:hover{ color:var(--ink); text-decoration:underline; }
.dde-fresh-list a strong{ color:var(--ink); }

/* ── Empty state ───────────────────────────────────────────────────────── */
.dsa-empty{
  text-align:center; background:var(--ds-card); border:1px solid var(--ds-line);
  border-radius:var(--ds-radius); padding:48px 24px; margin:24px 0; box-shadow:var(--ds-shadow);
}
.dsa-empty h3{ font-size:1.2rem; font-weight:700; margin:0 0 8px; color:var(--ink); }
.dsa-empty p{ color:var(--muted); margin:0 0 20px; }

/* ── Focus visibility ──────────────────────────────────────────────────── */
.dde-side-item:focus-visible, .dde-sort-tab:focus-visible, .dde-page-btn:focus-visible,
.dde-spot-pill:focus-visible, .dde-top-pill:focus-visible, .dsa-pill:focus-visible,
.dde-filter-chip:focus-visible, .dde-tab:focus-visible, .dde-share-btn:focus-visible{
  outline:3px solid rgba(99,102,241,.55); outline-offset:2px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width:1023px){
  .dde-layout{ grid-template-columns:minmax(0,1fr); gap:20px; }
  .dde-show-layout{ grid-template-columns:minmax(0,1fr); gap:28px; }
  /* gap:0 belongs to the INDEX sidebar's collapsible details groups only;
     the show sidebar (Similar / newsletter / verify) keeps its 28px gaps. */
  .dde-index .dde-sidebar{ position:static; flex-direction:column; gap:0; }
  .dde-show-layout > .dde-sidebar{ position:static; }
  .dde-side-group{ border:1px solid var(--ds-line); border-radius:var(--ds-radius-sm); margin-bottom:10px; background:var(--ds-card); }
  .dde-side-group summary{ padding:2px 6px; }
  .dde-side-group summary .dde-side-title{ margin-bottom:0; }
  .dde-side-group summary .dde-side-title::after{ content:"▾"; font-size:.9rem; color:var(--faint); }
  .dde-side-group[open ] summary .dde-side-title::after{ content:"▴"; }
  .dde-side-list{ padding:6px; }
  .dde-trend-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dde-like-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dde-rich-highlight{ float:none; max-width:none; margin:8px 0 0; display:inline-block; text-align:left; }
}
@media (max-width:767px){
  .dsa-wrap{ padding:16px 14px 40px; }
  .dsa-h1{ font-size:1.6rem; }
  .dsa-grid{ grid-template-columns:minmax(0,1fr); }
  .dde-trend-grid{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px; -webkit-overflow-scrolling:touch; }
  .dde-trend-card{ flex:0 0 78%; scroll-snap-align:start; }
  .dde-sponsor{ flex-direction:column; align-items:flex-start; gap:12px; }
  .dde-sponsor .btn{ margin-left:0; width:100%; }
  /* Mobile hero stacks (tile above text). In the row layout the hero CTA
     (.btn = white-space:nowrap) sets the text column's min-content width;
     with the 132px wide Workspace tile that sums to ~386px > 362px and the
     H1/meta/lead/CTA get cut off at the right edge. Stacked, the text gets
     the full width and no CTA length can overflow. */
  .dde-hero{ flex-direction:column; gap:16px; }
  .dde-newsletter{ flex-direction:column; align-items:stretch; }
  /* The form's desktop `flex:1 1 320px` is a WIDTH basis in the row
     layout; in this column layout it becomes a 320px HEIGHT basis, and
     the input (flex:1) grows to fill it — the giant-circle bug. Reset
     both to auto + a fixed 48px input height. */
  .dde-newsletter-form{ flex:0 0 auto; flex-direction:column; margin-left:0; }
  .dde-newsletter-form .btn{ width:100%; }
  .dde-newsletter-input{ flex:0 0 auto; height:48px; }
  .dde-rich-card{ grid-template-columns:52px minmax(0,1fr); gap:12px; padding:16px 0; }
  .dde-rich-logo{ width:48px; height:48px; }
  .dde-tile-lg, .dde-logo-tile-lg{ width:64px; height:64px; border-radius:16px; font-size:1.9rem; }
  .dde-logo-tile-lg.dde-logo-tile--wide{ width:132px; }
  .dde-trend-logo.dde-logo-tile--wide{ width:88px; }
  .dde-deal-price{ font-size:1.45rem; }
  .dde-elig th{ width:96px; white-space:normal; }
  .dde-like-grid{ grid-template-columns:minmax(0,1fr); }
  .dde-sort-tabs{ flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; -webkit-overflow-scrolling:touch; }
  .dde-sort-tab{ flex:none; }
}
@media (prefers-reduced-motion: reduce){
  .dsa-item, .dde-trend-card, .dde-like-card, .dde-spot-pill{ transition:none; }
  .dde-chev, .dde-benefits::details-content, .dde-elig::details-content{ transition:none; }
}

/* SITE SUBBAR on deals pages — center the pill row (owner: "ye bhi center me karo").
   ds-v10 splits it with .ds-sub-right{margin-left:auto}; neutralise that and center
   the flex items so Blogs / Affiliate / Developer API / SPF-DMARC / WebRTC form ONE
   centered group. This file loads only on deals pages, so the subbar stays split
   everywhere else. The subbar is desktop-only (display:block @min-width:1024px),
   so no mobile wrap is needed. */
.ds-subbar .ds-subbar-in{ justify-content:center; }
.ds-subbar .ds-subbar-in .ds-sub-right{ margin-left:0; }
