/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 4a: прогноз знижок (/discounts/forecast, views/discounts_forecast.erb) за
   SalesForecastB.dc.html. Розрахунок — Web::DiscountForecast (lib/web/discount_forecast.rb).
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .df-page { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; font-family: var(--vn-font-body), sans-serif; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .df-page .df-st--active { --c: var(--vn-pink); }
html.vn:not([data-section="admin"]) .df-page .df-st--soon { --c: var(--vn-orange); }
html.vn:not([data-section="admin"]) .df-page .df-st--later { --c: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .df-page .df-st--overdue { --c: var(--vn-yellow); }
html.vn:not([data-section="admin"]) .df-page .df-st--low,
html.vn:not([data-section="admin"]) .df-page .df-st--nodata { --c: var(--vn-muted); }

html.vn:not([data-section="admin"]) .df-kicker {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--vn-radius-pill);
  border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .08); color: var(--vn-cyan); font-size: 13px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .df-title {
  margin: 14px 0 0; overflow: hidden; padding-bottom: 6px; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 72px); line-height: .95; letter-spacing: -.04em;
}
html.vn:not([data-section="admin"]) .df-grad {
  background: linear-gradient(90deg, var(--vn-pink), var(--vn-orange), var(--vn-cyan), var(--vn-pink)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .df-sub { margin: 10px 0 0; max-width: 60ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }
html.vn:not([data-section="admin"]) .df-note { display: inline-block; margin: 10px 0 0; padding: 6px 12px; border-radius: var(--vn-radius-pill); background: rgba(255, 226, 122, .08); border: 1px solid rgba(255, 226, 122, .3); color: var(--vn-yellow); font-size: 13px; font-weight: 700; }
html.vn:not([data-section="admin"]) .df-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
html.vn:not([data-section="admin"]) .df-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--vn-radius-pill); color: var(--vn-text); font-weight: 700; text-decoration: none; }

html.vn:not([data-section="admin"]) .df-filter { display: flex; flex-wrap: wrap; gap: 6px; }
html.vn:not([data-section="admin"]) .df-filter a { text-decoration: none; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .df-filter a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
html.vn:not([data-section="admin"]) .df-filter a span { font: 700 11px var(--vn-font-mono); opacity: .7; }
html.vn:not([data-section="admin"]) .df-filter a[aria-current="true"] { border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft); box-shadow: 0 0 0 2px rgba(255, 79, 163, .35); }

html.vn:not([data-section="admin"]) .df-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px; }
html.vn:not([data-section="admin"]) .df-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--vn-radius-card);
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); border-top: 3px solid var(--c);
  animation: bIn .55s var(--vn-ease) both;
}
html.vn:not([data-section="admin"]) .df-card__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
html.vn:not([data-section="admin"]) .df-card h2 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
html.vn:not([data-section="admin"]) .df-card h2 a { color: var(--vn-text); text-decoration: none; }
html.vn:not([data-section="admin"]) .df-card h2 a:hover { color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .df-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--vn-radius-pill); background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); font-size: 12px; font-weight: 800; white-space: nowrap; }
html.vn:not([data-section="admin"]) .df-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
html.vn:not([data-section="admin"]) .df-st--active .df-badge i { animation: bPulse 1.6s infinite; }
html.vn:not([data-section="admin"]) .df-win { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--c) 8%, transparent); }
html.vn:not([data-section="admin"]) .df-lbl { flex-basis: 100%; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .df-win b { font: 800 20px var(--vn-font-display); }
html.vn:not([data-section="admin"]) .df-left { font: 700 13px var(--vn-font-mono); color: var(--c); }
html.vn:not([data-section="admin"]) .df-why { margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); color: var(--vn-muted); font-size: 13.5px; }
html.vn:not([data-section="admin"]) .df-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
html.vn:not([data-section="admin"]) .df-meta dt { font-size: 12px; font-weight: 700; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .df-meta dd { margin: 2px 0 0; font: 700 13px var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .df-conf { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--vn-text-2); }
html.vn:not([data-section="admin"]) .df-bars { display: inline-flex; gap: 3px; }
html.vn:not([data-section="admin"]) .df-bars i { width: 14px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
html.vn:not([data-section="admin"]) .df-bars i.is-on { background: var(--c); }
html.vn:not([data-section="admin"]) .df-hist { align-self: flex-start; font-weight: 700; }
html.vn:not([data-section="admin"]) .df-empty { margin: 0; padding: 32px; border-radius: 22px; border: 1px dashed rgba(255, 255, 255, .16); color: var(--vn-muted); text-align: center; }
html.vn:not([data-section="admin"]) .df-foot { margin: 0; font-size: 12.5px; color: var(--vn-muted-2); }

/* підписки (web_discount_forecast_watches) */
html.vn:not([data-section="admin"]) .df-flash { margin: 0; padding: 10px 14px; border-radius: 16px; background: rgba(46, 230, 214, .08); border: 1px solid rgba(46, 230, 214, .3); font-weight: 700; }
html.vn:not([data-section="admin"]) .df-flash.is-bad { background: rgba(255, 90, 122, .08); border-color: rgba(255, 90, 122, .35); }
html.vn:not([data-section="admin"]) .df-login { margin: 0; }
html.vn:not([data-section="admin"]) .df-login a { display: inline-block; padding: 4px 0; font-weight: 700; }
html.vn:not([data-section="admin"]) .df-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: auto; }
html.vn:not([data-section="admin"]) .df-watch { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
html.vn:not([data-section="admin"]) .df-watch summary { list-style: none; cursor: pointer; }
html.vn:not([data-section="admin"]) .df-watch summary::-webkit-details-marker { display: none; }
html.vn:not([data-section="admin"]) .df-watch summary.is-on { border-color: var(--vn-cyan); color: var(--vn-cyan); white-space: normal; height: auto; min-height: 36px; text-align: right; }
html.vn:not([data-section="admin"]) .df-watch__f { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); }
html.vn:not([data-section="admin"]) .df-watch__f label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .df-watch__f input { width: 90px; height: 38px; box-sizing: border-box; font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .df-watch__f .b-btn, html.vn:not([data-section="admin"]) .df-watch__x .b-ghost { min-height: 38px; padding: 0 16px; border-radius: var(--vn-radius-pill); }
html.vn:not([data-section="admin"]) .df-watch__f .b-btn { color: var(--vn-ink); font-weight: 800; }
@media (max-width: 760px) { html.vn:not([data-section="admin"]) .df-watch__f input { font-size: 16px; } }
