/* ================================================================== */
/*  Radar Descuentos — Public site styles                              */
/*  Loaded on all public-facing pages alongside styles.css            */
/* ================================================================== */

/* ------------------------------------------------------------------ */
/*  Public design tokens                                               */
/* ------------------------------------------------------------------ */
:root {
  --pub-bg:           #f0f3fa;
  --pub-bg-alt:       #e8ecf5;
  --pub-navy:         #0f172a;
  --pub-navy-mid:     #1e293b;
  --pub-navy-border:  #334155;
  --pub-card:         #ffffff;
  --pub-border:       #e2e8f0;
  --pub-border-light: #f1f5f9;
  --pub-text:         #0f172a;
  --pub-text-mid:     #334155;
  --pub-muted:        #64748b;
  --pub-muted-light:  #94a3b8;
  --pub-on-navy:      #f8fafc;
  --pub-on-navy-dim:  #94a3b8;
  --pub-accent:       #3b82f6;
  --pub-accent-dark:  #1d4ed8;
  --pub-accent-light: #eff6ff;
  --pub-accent-mid:   #bfdbfe;
  --pub-score-high-fg:   #065f46;
  --pub-score-high-bg:   #d1fae5;
  --pub-score-high-ring: #6ee7b7;
  --pub-score-mid-fg:    #1e40af;
  --pub-score-mid-bg:    #dbeafe;
  --pub-score-mid-ring:  #93c5fd;
  --pub-score-ok-fg:     #92400e;
  --pub-score-ok-bg:     #fef3c7;
  --pub-score-ok-ring:   #fcd34d;
  --pub-radius:       12px;
  --pub-radius-sm:    8px;
  --pub-radius-btn:   9px;
  --pub-radius-pill:  999px;
  --pub-shadow-card:  0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --pub-shadow-hover: 0 4px 12px rgba(0,0,0,.10), 0 16px 32px rgba(0,0,0,.08);
  --pub-shadow-panel: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.12);
}

body.pub-body {
  background: var(--pub-bg);
  background-image: linear-gradient(180deg, #e5eaf6 0%, var(--pub-bg) 280px);
  color: var(--pub-text);
}

/* ------------------------------------------------------------------ */
/*  Public header                                                       */
/* ------------------------------------------------------------------ */
.pub-header {
  background: var(--pub-navy);
  border-bottom: 1px solid var(--pub-navy-border);
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.pub-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pub-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.pub-logo:hover { text-decoration: none; color: #fff; }
.pub-logo__icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--pub-accent);
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.pub-logo__name { color: #fff; }
.pub-logo__dot  { color: var(--pub-accent); }
.pub-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
  list-style: none;
}
.pub-nav a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--pub-on-navy-dim);
  padding: .35rem .65rem;
  border-radius: var(--pub-radius-sm);
  transition: color .15s, background .15s;
}
.pub-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  text-decoration: none;
}
.pub-nav__cta a {
  background: var(--pub-accent) !important;
  color: #fff !important;
  font-weight: 600;
  padding: .35rem .85rem !important;
}
.pub-nav__cta a:hover {
  background: var(--pub-accent-dark) !important;
  opacity: 1;
}
@media (max-width: 620px) {
  .pub-nav li:not(.pub-nav__cta) { display: none; }
}

/* ------------------------------------------------------------------ */
/*  Hero                                                                */
/* ------------------------------------------------------------------ */
.pub-hero {
  background: var(--pub-navy);
  color: var(--pub-on-navy);
  padding: 2rem 1.25rem 2.25rem;
}
/* Compact hero variant (replaces two-column layout) */
.pub-hero--compact__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
/* Legacy inner kept for detail page (not currently used in hero) */
.pub-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .pub-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .pub-hero { padding: 1.5rem 1.25rem 1.75rem; }
}
.pub-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pub-accent);
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: var(--pub-radius-pill);
  padding: .3rem .8rem;
  margin-bottom: 1rem;
}
.pub-hero__title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.035em;
  margin-bottom: .7rem;
  color: #fff;
}
.pub-hero__title em { font-style: normal; color: var(--pub-accent); }
.pub-hero__sub {
  font-size: .92rem;
  color: var(--pub-on-navy-dim);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto .75rem;
}
.pub-hero__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.1rem;
}

/* Value pills row */
.pub-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
}
.pub-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--pub-on-navy-dim);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--pub-radius-pill);
  padding: .28rem .75rem;
  letter-spacing: .01em;
}

/* Hero CTA buttons */
.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.5rem;
  border-radius: var(--pub-radius-btn);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity .15s, transform .12s, box-shadow .15s;
  letter-spacing: -.01em;
}
.pub-btn:hover { text-decoration: none; }
.pub-btn--primary {
  background: var(--pub-accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(59,130,246,.4);
}
.pub-btn--primary:hover {
  background: var(--pub-accent-dark);
  color: #fff;
  box-shadow: 0 4px 18px rgba(59,130,246,.45);
  transform: translateY(-1px);
}
.pub-btn--ghost {
  background: rgba(255,255,255,.08);
  color: var(--pub-on-navy);
  border: 1px solid rgba(255,255,255,.18);
}
.pub-btn--ghost:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}

/* Radar panel styles removed — panel no longer used in homepage hero */

/* ------------------------------------------------------------------ */
/*  Trust strip                                                         */
/* ------------------------------------------------------------------ */
.pub-trust-strip {
  background: transparent;
  padding: 1rem 1.25rem 0;
}
.pub-trust-strip__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
@media (max-width: 780px) {
  .pub-trust-strip__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .pub-trust-strip__inner { grid-template-columns: 1fr; }
}
.pub-trust-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1rem;
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  box-shadow: var(--pub-shadow-card);
}
.pub-trust-item__icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pub-accent-light);
  border-radius: var(--pub-radius-sm);
}
.pub-trust-item__text strong {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--pub-text);
  line-height: 1.3;
  margin-bottom: .15rem;
}
.pub-trust-item__text span { font-size: .71rem; color: var(--pub-muted); line-height: 1.45; }

/* ------------------------------------------------------------------ */
/*  Page content area                                                   */
/* ------------------------------------------------------------------ */
.pub-page {
  padding: 1rem 1.25rem 4rem;
  max-width: 1180px;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/*  Section heading                                                     */
/* ------------------------------------------------------------------ */
.pub-section-header {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.pub-section-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pub-text);
  letter-spacing: -.02em;
}
.pub-section-header__count {
  font-size: .78rem;
  font-weight: 600;
  color: var(--pub-muted);
  background: var(--pub-bg-alt);
  padding: 2px 9px;
  border-radius: var(--pub-radius-pill);
}
.pub-section-header__more {
  margin-left: auto;
  font-size: .8rem;
  font-weight: 700;
  color: var(--pub-accent);
}
.pub-section-header__more:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/*  Page header (deals page)                                           */
/* ------------------------------------------------------------------ */
.pub-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--pub-border);
}
.pub-page-header__title {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -.035em;
  color: var(--pub-text);
  line-height: 1.1;
  margin-bottom: .25rem;
}
.pub-page-header__sub {
  font-size: .84rem;
  color: var(--pub-muted);
  line-height: 1.5;
}
.pub-page-header__count {
  font-size: .8rem;
  font-weight: 700;
  color: var(--pub-muted);
  white-space: nowrap;
  background: var(--pub-bg-alt);
  border: 1px solid var(--pub-border);
  padding: .28rem .8rem;
  border-radius: var(--pub-radius-pill);
  flex-shrink: 0;
}
@media (max-width: 500px) {
  .pub-page-header { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------------ */
/*  Affiliate strip                                                     */
/* ------------------------------------------------------------------ */
.pub-affiliate-strip {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--pub-muted-light);
  padding: .35rem 0 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--pub-border-light);
}
.pub-affiliate-strip a {
  color: var(--pub-muted);
  font-weight: 500;
  text-underline-offset: 2px;
}
.pub-affiliate-strip a:hover { color: var(--pub-text); }

/* ------------------------------------------------------------------ */
/*  Deal grid                                                           */
/* ------------------------------------------------------------------ */
.pub-deal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 980px) {
  .pub-deal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pub-deal-grid { grid-template-columns: 1fr; gap: .85rem; }
}

/* ------------------------------------------------------------------ */
/*  Deal card                                                           */
/* ------------------------------------------------------------------ */
.pub-deal-card {
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  box-shadow: var(--pub-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative;
}
.pub-deal-card:hover {
  box-shadow: var(--pub-shadow-hover);
  transform: translateY(-3px);
  border-color: var(--pub-accent-mid);
}
.pub-deal-card__img {
  height: 200px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #f8fafc 0%, #eef2f8 100%);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--pub-border-light);
}
.pub-deal-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform .3s ease;
}
.pub-deal-card:hover .pub-deal-card__img img { transform: scale(1.06); }

/* Category placeholder — shown when no product image is available */
.pub-deal-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(145deg, #edf1fa 0%, #e2eaf6 100%);
}
.pub-deal-card__placeholder-icon {
  font-size: 2.8rem;
  line-height: 1;
  opacity: .72;
}
.pub-deal-card__placeholder-label {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pub-muted);
  background: rgba(255,255,255,.8);
  border: 1px solid var(--pub-border);
  padding: .18rem .6rem;
  border-radius: var(--pub-radius-pill);
}

/* Score badge — overlaid top-right */
.pub-deal-card__score {
  position: absolute;
  top: .55rem;
  right: .55rem;
  font-size: .71rem;
  font-weight: 800;
  padding: .28rem .65rem;
  border-radius: var(--pub-radius-pill);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  letter-spacing: .01em;
  white-space: nowrap;
  line-height: 1.3;
}
.pub-deal-card__score--high {
  background: var(--pub-score-high-bg);
  color: var(--pub-score-high-fg);
  border: 1px solid var(--pub-score-high-ring);
}
.pub-deal-card__score--medium {
  background: var(--pub-score-mid-bg);
  color: var(--pub-score-mid-fg);
  border: 1px solid var(--pub-score-mid-ring);
}
.pub-deal-card__score--ok {
  background: var(--pub-score-ok-bg);
  color: var(--pub-score-ok-fg);
  border: 1px solid var(--pub-score-ok-ring);
}

/* Discount badge — overlaid top-left */
.pub-deal-card__disc {
  position: absolute;
  top: .65rem;
  left: .65rem;
  font-size: .7rem;
  font-weight: 900;
  padding: .2rem .55rem;
  border-radius: var(--pub-radius-pill);
  background: #fef08a;
  color: #713f12;
  border: 1px solid #fde047;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

/* Card body */
.pub-deal-card__body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
  min-height: 0;
}
.pub-deal-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.pub-deal-card__title {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--pub-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}
.pub-deal-card__title a { color: inherit; text-decoration: none; }
.pub-deal-card__title a:hover { color: var(--pub-accent); }
.pub-deal-card__verdict {
  background: var(--pub-accent-light);
  border-left: 3px solid var(--pub-accent);
  border-radius: 0 var(--pub-radius-sm) var(--pub-radius-sm) 0;
  padding: .4rem .65rem;
  font-size: .76rem;
  color: #1e40af;
  line-height: 1.45;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}
.pub-deal-card__pricing {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: .25rem;
}
.pub-price-now {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--pub-text);
  letter-spacing: -.03em;
  line-height: 1;
}
.pub-price-was {
  font-size: .8rem;
  color: var(--pub-muted);
  text-decoration: line-through;
}
.pub-disc-chip {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 800;
  padding: .15rem .48rem;
  border-radius: var(--pub-radius-pill);
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  letter-spacing: .01em;
}
.pub-deal-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: var(--pub-accent);
  color: #fff;
  font-weight: 700;
  font-size: .86rem;
  padding: .6rem 1rem;
  border-radius: var(--pub-radius-sm);
  text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  margin-top: .25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(59,130,246,.25);
  letter-spacing: -.01em;
}
.pub-deal-card__cta:hover {
  background: var(--pub-accent-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(59,130,246,.35);
}
.pub-deal-card__caption {
  font-size: .66rem;
  color: var(--pub-muted-light);
  text-align: center;
  padding-top: .1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ================================================================== */
/*  Deal grid v2 + Deal card v2  (replaces pub-deal-card in templates) */
/* ================================================================== */

/* Grid ------------------------------------------------------------ */
.deal-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}
@media (max-width: 960px) {
  .deal-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .deal-grid-v2 { grid-template-columns: 1fr; gap: .75rem; }
}

/* Card shell ------------------------------------------------------ */
.deal-card-v2 {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.deal-card-v2:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 14px 36px rgba(0,0,0,.07);
  transform: translateY(-3px);
  border-color: #93c5fd;
}

/* Media link (image wrapper) -------------------------------------- */
.deal-card-v2__media {
  display: block;
  position: relative;
  height: 220px;
  flex-shrink: 0;
  background: #f8fafc;
  overflow: hidden;
  border-bottom: 1px solid #e9edf4;
  text-decoration: none;
}
@media (max-width: 560px) {
  .deal-card-v2__media { height: 180px; }
}
.deal-card-v2__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.1rem;
  transition: transform .28s ease;
}
.deal-card-v2:hover .deal-card-v2__media img { transform: scale(1.05); }

/* Placeholder when no image */
.deal-card-v2__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  background: linear-gradient(145deg, #edf1fa 0%, #e0e9f7 100%);
}

/* Discount badge (top-left of media) */
.deal-card-v2__disc {
  position: absolute;
  top: .6rem;
  left: .6rem;
  z-index: 2;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.3;
  padding: .22rem .58rem;
  border-radius: 999px;
  background: #fef08a;
  color: #713f12;
  border: 1px solid #fde047;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* Score badge (top-right of media) */
.deal-card-v2__score {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 2;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.3;
  padding: .22rem .58rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
}
.deal-card-v2__score--high {
  background: var(--pub-score-high-bg);
  color: var(--pub-score-high-fg);
  border: 1px solid var(--pub-score-high-ring);
}
.deal-card-v2__score--medium {
  background: var(--pub-score-mid-bg);
  color: var(--pub-score-mid-fg);
  border: 1px solid var(--pub-score-mid-ring);
}
.deal-card-v2__score--ok {
  background: var(--pub-score-ok-bg);
  color: var(--pub-score-ok-fg);
  border: 1px solid var(--pub-score-ok-ring);
}

/* Card body ------------------------------------------------------- */
.deal-card-v2__body {
  padding: .85rem 1rem .95rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.deal-card-v2__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

/* Title */
.deal-card-v2__title {
  margin: 0;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-card-v2__title a { color: inherit; text-decoration: none; }
.deal-card-v2__title a:hover { color: #3b82f6; }

/* Verdict — compact 2-line supporting text. NO quote box. */
.deal-card-v2__verdict {
  margin: 0;
  font-size: .78rem;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price row */
.deal-card-v2__price-row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: .35rem;
}
.deal-card-v2__price-now {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -.035em;
  line-height: 1;
}
.deal-card-v2__price-was {
  font-size: .78rem;
  color: #94a3b8;
  text-decoration: line-through;
}

/* CTA button */
.deal-card-v2__button {
  display: block;
  background: #3b82f6;
  color: #fff;
  font-weight: 700;
  font-size: .86rem;
  text-align: center;
  padding: .62rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .14s, transform .1s, box-shadow .14s;
  box-shadow: 0 2px 8px rgba(59,130,246,.28);
  letter-spacing: -.01em;
  margin-top: .15rem;
  flex-shrink: 0;
}
.deal-card-v2__button:hover {
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(59,130,246,.4);
}

/* Trust line */
.deal-card-v2__trust {
  font-size: .64rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/*  Badges (public)                                                     */
/* ------------------------------------------------------------------ */
.pub-badge {
  display: inline-flex;
  align-items: center;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--pub-radius-pill);
}
.pub-badge--cat {
  background: var(--pub-accent-light);
  color: var(--pub-accent-dark);
  border: 1px solid var(--pub-accent-mid);
}
.pub-badge--store {
  background: var(--pub-bg-alt);
  color: var(--pub-muted);
  border: 1px solid var(--pub-border);
}

/* ------------------------------------------------------------------ */
/*  Filters bar (deals page)                                           */
/* ------------------------------------------------------------------ */
.pub-filters-bar {
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  padding: .9rem 1.1rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
  box-shadow: var(--pub-shadow-card);
}
.pub-filter-group { display: flex; flex-direction: column; gap: .3rem; }
.pub-filter-group label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--pub-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pub-filter-group select,
.pub-filter-group input[type="number"] {
  height: 36px;
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-sm);
  padding: 0 .7rem;
  font-size: .875rem;
  background: var(--pub-bg);
  color: var(--pub-text);
  min-width: 140px;
}
.pub-filter-group select:focus,
.pub-filter-group input:focus {
  outline: 2px solid var(--pub-accent);
  outline-offset: 0;
  border-color: var(--pub-accent);
}
.pub-filter-btn {
  height: 36px;
  padding: 0 1.1rem;
  border-radius: var(--pub-radius-sm);
  font-size: .84rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity .15s;
}
.pub-filter-btn:hover { opacity: .85; text-decoration: none; }
.pub-filter-btn--apply { background: var(--pub-accent); color: #fff; }
.pub-filter-btn--clear { background: var(--pub-bg-alt); color: var(--pub-muted); border: 1px solid var(--pub-border); }

/* ------------------------------------------------------------------ */
/*  Deal detail page                                                    */
/* ------------------------------------------------------------------ */
.pub-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--pub-muted);
  margin-bottom: 1.5rem;
  transition: color .15s;
}
.pub-back:hover { color: var(--pub-text); text-decoration: none; }

.pub-detail-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 820px) { .pub-detail-grid { grid-template-columns: 1fr; } }

.pub-detail-sticky { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 820px) { .pub-detail-sticky { position: static; } }

.pub-detail-img-card {
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  box-shadow: var(--pub-shadow-card);
  padding: 1.5rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pub-detail-img-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Detail page: no-image placeholder */
.pub-detail-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  background: linear-gradient(145deg, #edf1fa 0%, #e2eaf6 100%);
  border-radius: var(--pub-radius-sm);
}
.pub-detail-placeholder__icon { font-size: 4rem; opacity: .65; }
.pub-detail-placeholder__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pub-muted);
}

/* Detail page: inline score widget */
.pub-detail-score-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  background: var(--pub-bg);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-sm);
  margin-bottom: .95rem;
}
.pub-detail-score-num {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  min-width: 2.8rem;
  text-align: center;
}
.pub-detail-score-num--high   { color: #059669; }
.pub-detail-score-num--medium { color: var(--pub-accent); }
.pub-detail-score-num--ok     { color: #d97706; }
.pub-detail-score-right { flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.pub-detail-score-label { font-size: .9rem; font-weight: 800; }
.pub-detail-score-label--high   { color: #059669; }
.pub-detail-score-label--medium { color: var(--pub-accent); }
.pub-detail-score-label--ok     { color: #d97706; }
.pub-detail-score-bar {
  height: 5px;
  background: var(--pub-border);
  border-radius: 999px;
  overflow: hidden;
}
.pub-detail-score-bar__fill { height: 100%; border-radius: 999px; }
.pub-detail-score-bar__fill--high   { background: #22c55e; }
.pub-detail-score-bar__fill--medium { background: var(--pub-accent); }
.pub-detail-score-bar__fill--ok     { background: #f59e0b; }

.pub-detail-score-card {
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  box-shadow: var(--pub-shadow-card);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.pub-detail-score-card__top { display: flex; align-items: center; gap: .85rem; }
.pub-detail-score-num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--pub-text);
}
.pub-detail-score-meta { display: flex; flex-direction: column; gap: .2rem; }
.pub-detail-score-label { font-size: .9rem; font-weight: 800; color: var(--pub-text); }
.pub-detail-score-sub { font-size: .72rem; color: var(--pub-muted); }
.pub-detail-score-bar {
  height: 5px;
  background: var(--pub-border);
  border-radius: 999px;
  overflow: hidden;
}
.pub-detail-score-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pub-accent), #22c55e);
}

.pub-detail-main { display: flex; flex-direction: column; gap: 1.25rem; }

.pub-detail-card {
  background: var(--pub-card);
  border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius);
  box-shadow: var(--pub-shadow-card);
  padding: 1.4rem 1.5rem;
}
.pub-detail-card__section {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pub-muted);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--pub-border-light);
}
.pub-detail-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.pub-detail-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.025em;
  color: var(--pub-text);
  margin-bottom: .75rem;
}
.pub-detail-headline {
  font-size: .9rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: .6rem .85rem;
  border-left: 3px solid var(--pub-accent);
  background: var(--pub-accent-light);
  border-radius: 0 var(--pub-radius-sm) var(--pub-radius-sm) 0;
  color: #1e3a8a;
}
.pub-detail-pricing {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.pub-price-now--large {
  font-size: 2rem;
  font-weight: 900;
  color: var(--pub-text);
  letter-spacing: -.04em;
  line-height: 1;
}
.pub-price-disc-badge {
  display: inline-flex;
  align-items: center;
  background: #fef08a;
  color: #713f12;
  border: 1px solid #fde047;
  font-weight: 800;
  font-size: .82rem;
  padding: .2rem .6rem;
  border-radius: var(--pub-radius-pill);
}
.pub-detail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--pub-accent);
  color: #fff;
  font-weight: 700;
  font-size: .98rem;
  padding: .9rem 1.5rem;
  border-radius: var(--pub-radius-sm);
  text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  width: 100%;
  text-align: center;
  letter-spacing: -.01em;
  box-shadow: 0 3px 12px rgba(59,130,246,.3);
}
.pub-detail-cta:hover {
  background: var(--pub-accent-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(59,130,246,.4);
}
.pub-affiliate-note {
  font-size: .72rem;
  color: var(--pub-muted);
  text-align: center;
  margin-top: .5rem;
}
.pub-affiliate-note a { color: var(--pub-muted); text-underline-offset: 2px; }

.pub-detail-desc {
  font-size: .88rem;
  color: var(--pub-text-mid);
  line-height: 1.75;
  margin-bottom: .9rem;
}
.pub-detail-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: .9rem;
}
.pub-detail-bullets li {
  font-size: .875rem;
  color: var(--pub-text-mid);
  line-height: 1.5;
  padding-left: 1.25rem;
  position: relative;
}
.pub-detail-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--pub-accent);
  font-weight: 700;
}
.pub-detail-analysis {
  background: var(--pub-accent-light);
  border: 1px solid var(--pub-accent-mid);
  border-radius: var(--pub-radius-sm);
  padding: .85rem 1rem;
  font-size: .875rem;
  color: #1e3a8a;
  line-height: 1.6;
}
.pub-detail-analysis__label {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pub-accent);
  margin-bottom: .4rem;
}
.pub-detail-warnings {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: .5rem;
}
.pub-detail-warnings li {
  font-size: .84rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--pub-radius-sm);
  padding: .45rem .75rem;
  line-height: 1.45;
}

/* ------------------------------------------------------------------ */
/*  Empty state                                                         */
/* ------------------------------------------------------------------ */
.pub-empty {
  text-align: center;
  padding: 5rem 2rem 4rem;
  max-width: 520px;
  margin: 0 auto;
}
.pub-empty__icon { display: block; font-size: 3rem; margin-bottom: 1.25rem; opacity: .55; }
.pub-empty h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pub-text);
  margin-bottom: .75rem;
  letter-spacing: -.025em;
}
.pub-empty p {
  font-size: .9rem;
  color: var(--pub-muted);
  line-height: 1.7;
}

/* ------------------------------------------------------------------ */
/*  Info pages                                                          */
/* ------------------------------------------------------------------ */
.pub-info-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}
.pub-info-page h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.035em;
  color: var(--pub-text);
  margin-bottom: .5rem;
  line-height: 1.2;
}
.pub-info-intro {
  font-size: 1rem;
  color: var(--pub-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--pub-border);
}
.pub-info-page h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pub-text);
  margin: 2rem 0 .6rem;
  letter-spacing: -.02em;
}
.pub-info-page p {
  font-size: .9rem;
  color: var(--pub-text-mid);
  line-height: 1.8;
  margin-bottom: .75rem;
}
.pub-info-page ul {
  margin: .5rem 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.pub-info-page ul li {
  font-size: .9rem;
  color: var(--pub-text-mid);
  line-height: 1.65;
  padding-left: 1.3rem;
  position: relative;
}
.pub-info-page ul li::before {
  content: "·";
  position: absolute;
  left: .4rem;
  color: var(--pub-accent);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.5;
}
.pub-info-page a { color: var(--pub-accent); text-underline-offset: 2px; }
.pub-info-highlight {
  background: var(--pub-accent-light);
  border: 1px solid var(--pub-accent-mid);
  border-radius: var(--pub-radius);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.pub-info-highlight p { margin: 0; color: #1e3a8a; font-size: .9rem; line-height: 1.65; }
.pub-info-meta {
  font-size: .78rem;
  color: var(--pub-muted);
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pub-border);
}

/* ------------------------------------------------------------------ */
/*  Public footer                                                       */
/* ------------------------------------------------------------------ */
.pub-footer {
  background: var(--pub-navy);
  padding: 2.5rem 1.25rem;
  margin-top: 0;
}
.pub-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
  text-align: center;
}
.pub-footer__brand {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.pub-footer__brand span { color: var(--pub-accent); }
.pub-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .25rem;
}
.pub-footer__links a {
  font-size: .78rem;
  color: #64748b;
  padding: .25rem .6rem;
  border-radius: var(--pub-radius-sm);
  transition: color .15s;
  text-decoration: none;
}
.pub-footer__links a:hover { color: #fff; text-decoration: none; }
.pub-footer__copy { font-size: .74rem; color: #475569; }
.pub-footer__affiliate { font-size: .72rem; color: #475569; max-width: 540px; line-height: 1.5; }

/* ------------------------------------------------------------------ */
/*  Accessibility                                                       */
/* ------------------------------------------------------------------ */
.pub-deal-card__cta:focus-visible,
.pub-detail-cta:focus-visible,
.pub-btn:focus-visible,
.pub-filter-btn:focus-visible {
  outline: 3px solid var(--pub-accent);
  outline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--pub-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ------------------------------------------------------------------ */
/*  Telegram CTA banner                                                 */
/* ------------------------------------------------------------------ */
.tg-cta {
  background: linear-gradient(135deg, #1a1f2e 0%, #0f172a 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 1.1rem 1.25rem;
}
.tg-cta__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.tg-cta__text {
  flex: 1;
  min-width: 200px;
}
.tg-cta__headline {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .2rem;
}
.tg-cta__sub {
  font-size: .82rem;
  color: #94a3b8;
  line-height: 1.5;
}
.tg-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  background: #0088cc;
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: .7rem 1.4rem;
  border-radius: var(--pub-radius-btn);
  text-decoration: none;
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 2px 10px rgba(0,136,204,.35);
  flex-shrink: 0;
  letter-spacing: -.01em;
}
.tg-cta__btn:hover {
  background: #006fa6;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,136,204,.45);
}
@media (max-width: 600px) {
  .tg-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .85rem;
  }
  .tg-cta__btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ */
/*  Telegram floating sticky button (mobile)                           */
/* ------------------------------------------------------------------ */
.tg-sticky {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  background: #0088cc;
  color: #fff;
  border-radius: var(--pub-radius-pill);
  padding: .65rem 1.15rem .65rem .9rem;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.25), 0 2px 8px rgba(0,136,204,.4);
  transition: transform .15s, box-shadow .15s;
  letter-spacing: -.01em;
}
.tg-sticky:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.3), 0 4px 14px rgba(0,136,204,.5);
}
.tg-sticky__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
@media (max-width: 780px) {
  .tg-sticky { display: inline-flex; }
}
