/* DealVorio upgrades layer — loaded LAST on purpose.
 * One purpose-scoped sheet for the 2026-08 upgrade programme so newer work
 * never has to fight the v3→v6 accretion layers. All selectors are prefixed
 * dvu- or extend existing classes additively; nothing here may break a page
 * if this file fails to load. */

/* ------------------------------------------------------------------ */
/* Admin-configured big hero banner (promo_banners slot "hero")        */
/* ------------------------------------------------------------------ */
.dv-portal-hero { position: relative; }

.dvu-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: var(--hero-tint, #0b3aa8);
}

.dvu-hero-media picture,
.dvu-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dvu-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(3, 26, 69, calc(var(--hero-overlay, 55) * 1.2 / 100)) 8%, rgba(3, 26, 69, calc(var(--hero-overlay, 55) / 100)) 62%, rgba(6, 40, 110, calc(var(--hero-overlay, 55) * .55 / 100)));
}

/* Keep hero content above the media layer. */
.dv-portal-hero .dv-portal-wrap { position: relative; z-index: 1; }

.dvu-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #22c7a9;
  color: #04252f !important;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 26px rgba(9, 44, 60, .28);
  transition: transform .15s, filter .15s;
}

.dvu-hero-cta:hover { transform: translateY(-1px); filter: brightness(1.06); }

@media (max-width: 640px) {
  .dvu-hero-cta { margin-top: 13px; padding: 10px 15px; font-size: 13px; }
}

/* ------------------------------------------------------------------ */
/* Country flags — self-hosted SVG (see App\Support\Flags)             */
/* ------------------------------------------------------------------ */
.dv-flag .dv-flag-svg,
.dv-market-icon .dv-flag-svg,
.search-market-flag .dv-flag-svg,
.dv-market-flag-large .dv-flag-svg,
.dv-admin-country-flag .dv-flag-svg,
.dvu-flag .dv-flag-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Fallback chip for worldwide / custom codes keeps the glyph centred. */
.dv-flag .dv-flag-fallback,
.dv-market-icon .dv-flag-fallback,
.search-market-flag .dv-flag-fallback,
.dv-admin-country-flag .dv-flag-fallback {
  font-size: inherit;
  line-height: 1;
}

/* Standalone usage without a sized container. */
img.dv-flag-svg:not([class*=" "]) {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(12, 35, 75, .10);
}

/* ------------------------------------------------------------------ */
/* Admin: country directory + page-size control                        */
/* ------------------------------------------------------------------ */
.dvu-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  max-height: 460px;
  overflow: auto;
  padding: 2px;
}

.dvu-country-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.dvu-country-chip:hover,
.dvu-country-chip:focus-visible {
  border-color: #2563eb;
  box-shadow: 0 2px 10px rgba(37, 99, 235, .14);
}

.dvu-country-chip .dv-flag-svg {
  flex: 0 0 27px;
  width: 27px;
  height: 19px;
  object-fit: cover;
  border-radius: 3.5px;
  box-shadow: 0 0 0 1px rgba(12, 35, 75, .12);
}

.dvu-country-chip span {
  display: grid;
  min-width: 0;
}

.dvu-country-chip b {
  font-size: 12px;
  color: #17233d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dvu-country-chip small {
  font-size: 10.5px;
  color: #64748b;
}

.dvu-country-chip.is-configured {
  background: #f0fdf6;
  border-color: #b7e6cd;
}

.dvu-country-chip.is-configured small {
  color: #0b7d61;
  font-weight: 700;
}

.dvu-market-row-flag {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
}

.dvu-market-row-flag .dv-flag-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dvu-market-row-flag .dv-flag-fallback {
  font-size: 15px;
}

.dvu-pagesize-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dvu-pagesize-form label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4e4868;
}

.dvu-pagesize-form select {
  padding: 7px 9px;
  border: 1px solid #d9d5e8;
  border-radius: 9px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: #201b3e;
}

@media (max-width: 640px) {
  .dvu-country-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 320px; }
  .dvu-pagesize-form { width: 100%; justify-content: flex-end; }
}

/* ------------------------------------------------------------------ */
/* Responsiveness hardening — fixes cascade conflicts in older layers  */
/* ------------------------------------------------------------------ */

/* Footer: enhancements.css re-declares the 3-col grid inside its own media
 * queries, which defeats app.css's single-column mobile rule. Restore the
 * intended collapse at the final layer. */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Never allow horizontal page scroll from stray grid children. */
.site-footer .footer-grid > div { min-width: 0; }

/* Header search: portal-v5-01 forces display:flex!important, which resurrects
 * the 270px search box on phones after enhancements.css correctly hides it. */
@media (max-width: 900px) {
  .top-search { display: none !important; }
}

/* Attribute-qualified mirrors: the enterprise layer scopes identical rules
 * with body[data-dealvorio-ui=enterprise-v5], which out-specifies bare class
 * selectors even when this sheet loads last. Mirror the critical mobile fixes
 * at equal specificity so the cascade resolves here. */
@media (max-width: 900px) {
  body[data-dealvorio-ui="enterprise-v5"] .top-search{display:none!important}
}
body[data-dealvorio-layout="seven-lanes-v6"] .footer-grid{grid-template-columns:1fr 1fr}
@media (max-width: 1024px) {
  body[data-dealvorio-layout="seven-lanes-v6"] .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
}
@media (max-width: 640px) {
  body[data-dealvorio-layout="seven-lanes-v6"] .footer-grid{grid-template-columns:1fr;gap:24px}
}

/* The enterprise footer grid is declared !important with the ui attribute
 * (portal-v5-08); it must be mirrored with both the attribute and !important
 * to collapse on small screens. */
@media (max-width: 1024px) {
  body[data-dealvorio-ui="enterprise-v5"] .footer-grid{grid-template-columns:1fr 1fr!important;gap:30px!important}
}
@media (max-width: 640px) {
  body[data-dealvorio-ui="enterprise-v5"] .footer-grid{grid-template-columns:1fr!important;gap:22px!important}
}

/* Advanced filter bars: portal-v5-06 pins a 5-column grid !important; allow
 * it to wrap on smaller screens instead of overflowing the viewport. */
@media (max-width: 1024px) {
  body[data-dealvorio-ui="enterprise-v5"] .advanced-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width: 640px) {
  body[data-dealvorio-ui="enterprise-v5"] .advanced-filter-bar{grid-template-columns:1fr!important}
  .filter-bar > * { min-width: 0; }
}

/* Family-wide safety net: every filter/search bar form collapses to one
 * column on phones regardless of which legacy layer pinned its columns.
 * portal-v5-06 pins these with body[data-dealvorio-ui] + !important, so the
 * mirror repeats that exact selector shape to win the cascade. */
@media (max-width: 640px) {
  .filter-bar,
  .coupon-filterbar,
  .advanced-filter-bar,
  .admin-filter-row,
  body[data-dealvorio-ui="enterprise-v5"] .filter-bar,
  body[data-dealvorio-ui="enterprise-v5"] .coupon-filterbar,
  body[data-dealvorio-ui="enterprise-v5"] .advanced-filter-bar,
  body[data-dealvorio-ui="enterprise-v5"] .admin-filter-row {
    grid-template-columns: 1fr !important;
    display: grid;
  }
  .filter-bar > *,
  .coupon-filterbar > *,
  .advanced-filter-bar > *,
  .admin-filter-row > * {
    min-width: 0;
    width: 100%;
  }
  /* Fixed-width inputs inside labels defeat the column collapse. */
  .filter-bar input:not([type=checkbox]):not([type=radio]),
  .coupon-filterbar input:not([type=checkbox]):not([type=radio]),
  .advanced-filter-bar input:not([type=checkbox]):not([type=radio]),
  .admin-filter-row input:not([type=checkbox]):not([type=radio]),
  .filter-bar select,
  .coupon-filterbar select,
  .advanced-filter-bar select,
  .admin-filter-row select {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
  }
}

/* Decorative portal globe must never push the hero wider than the phone. */
@media (max-width: 1280px) {
  .dv-portal-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .dv-portal-globe, .dv-portal-globe img { min-width: 0; max-width: 100%; height: auto; }
}
@media (max-width: 1080px) {
  .dv-portal-hero-grid { grid-template-columns: 1fr; }
  .dv-portal-globe { display: none; }
}
@media (max-width: 640px) {
  .dv-portal-globe { display: none; }
}

.dvu-pagesize-row{display:flex;justify-content:flex-end;margin:8px 0 4px}

/* Dashboard sync shortcut styled like a quick-action tile. */
.dvu-sync-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 17px;
  border: 1px solid #c8ecd9;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2fdf7, #eef9fb);
  text-align: left;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
}
.dvu-sync-card:hover:not(:disabled) { border-color: #22c7a9; box-shadow: 0 6px 18px rgba(34, 199, 169, .18); }
.dvu-sync-card:disabled { opacity: .55; cursor: not-allowed; }
.dvu-sync-card i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px; }
.dvu-sync-card i.green { background: #e3f9ef; color: #0b7d61; }
.dvu-sync-card b { display: block; font-size: 13.5px; color: #14351f; }
.dvu-sync-card small { display: block; margin-top: 2px; color: #5b7a68; font-size: 11.5px; }

/* ==================================================================== */
/* MOTION & DEPTH LAYER — visible polish, transform/opacity only.       */
/* Everything here is additive: with JS disabled nothing hides, and     */
/* prefers-reduced-motion turns all of it off.                          */
/* ==================================================================== */

/* ---------- Public hero: aurora background + gradient headline ------ */
.dv-portal-hero { position: relative; }

/* Aurora lives on the inner decorative layer so the featured-countries
 * strip that sits at the hero bottom edge is never clipped. */
.dv-portal-map-dots {
  overflow: hidden;
}

.dv-portal-map-dots::before,
.dv-portal-map-dots::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}

.dv-portal-map-dots::before {
  width: 560px; height: 560px;
  left: 4%; top: -30%;
  background: radial-gradient(circle at 30% 30%, rgba(67, 214, 193, .8), rgba(34, 130, 255, .0) 65%);
  animation: dvu-drift-a 12s ease-in-out infinite alternate;
}

.dv-portal-map-dots::after {
  width: 620px; height: 620px;
  right: 2%; bottom: -40%;
  background: radial-gradient(circle at 60% 40%, rgba(56, 224, 255, .6), rgba(21, 70, 190, .0) 68%);
  animation: dvu-drift-b 15s ease-in-out infinite alternate;
}

@keyframes dvu-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(70px, 40px, 0) scale(1.12); }
}

@keyframes dvu-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-60px, -35px, 0) scale(.94); }
}

.dv-portal-hero .dv-portal-wrap { position: relative; z-index: 1; }

.dv-portal-copy h1 {
  background: linear-gradient(92deg, #ffffff 20%, #b8f4ff 55%, #7de8d8 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dv-portal-search { transition: box-shadow .25s ease, transform .25s ease; }
.dv-portal-search:focus-within {
  box-shadow: 0 0 0 3px rgba(125, 232, 216, .35), 0 18px 44px rgba(4, 26, 74, .35);
  transform: translateY(-1px);
}

/* ---------- Public cards: lift + glow + arrow slide ------------------ */
.dv-stat,
.dv-command-panel,
.dv-trend-card,
.dv-list-offer,
.dv-market-links a,
.dv-featured-track a,
.dv-enterprise-section details,
.dv-home-discovery-grid a,
.dv-home-utility-links a {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform;
}

.dv-stat:hover,
.dv-command-panel:hover,
.dv-home-discovery-grid a:hover,
.dv-home-utility-links a:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(16, 51, 104, .14);
  border-color: #bcd7f2;
}

.dv-trend-card:hover,
.dv-list-offer:hover,
.dv-market-links a:hover,
.dv-featured-track a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(16, 51, 104, .13);
}

.dv-list-offer:hover .dv-offer-arrow,
.dv-market-links a:hover svg {
  transform: translateX(4px);
}

.dv-offer-arrow { transition: transform .2s ease; }

/* Icon micro-motion on stat tiles. */
.dv-stat:hover > i { transform: scale(1.08) rotate(-4deg); }
.dv-stat > i { transition: transform .25s ease; }

/* Flags pop on hover of their tile. */
.dv-featured-track a:hover .dv-flag,
.dv-market-links a:hover .dv-market-icon {
  transform: scale(1.12);
}
.dv-featured-track .dv-flag,
.dv-market-links .dv-market-icon { transition: transform .22s ease; }

/* Primary buttons: gradient + moving shine. */
.dv-portal-search button,
.dvu-hero-cta,
.admin-body .btn,
.dv-login-form button[type="submit"] {
  position: relative;
  overflow: hidden;
}

.dv-portal-search button::after,
.dvu-hero-cta::after,
.admin-body .btn::after,
.dv-login-form button[type="submit"]::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 45%;
  background: linear-gradient(105deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
  transform: skewX(-18deg);
  transition: left .5s ease;
  pointer-events: none;
}

.dv-portal-search button:hover::after,
.dvu-hero-cta:hover::after,
.admin-body .btn:hover::after,
.dv-login-form button[type="submit"]:hover::after {
  left: 130%;
}

/* ---------- Scroll reveal (JS adds dvu-in; without JS, no effect) ---- */
.dvu-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.dvu-reveal.dvu-in {
  opacity: 1;
  transform: none;
}

/* Stagger children of stat row when the row reveals. */
.dvu-reveal.dvu-in .dv-stat { animation: dvu-rise .5s ease backwards; }
.dvu-reveal.dvu-in .dv-stat:nth-child(2) { animation-delay: .06s; }
.dvu-reveal.dvu-in .dv-stat:nth-child(3) { animation-delay: .12s; }
.dvu-reveal.dvu-in .dv-stat:nth-child(4) { animation-delay: .18s; }
.dvu-reveal.dvu-in .dv-stat:nth-child(5) { animation-delay: .24s; }

@keyframes dvu-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Admin panel polish --------------------------------------- */
.admin-side nav a {
  position: relative;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.admin-side nav a:hover { transform: translateX(3px); }

.admin-side nav a.active {
  background: linear-gradient(90deg, rgba(141, 108, 255, .22), rgba(108, 222, 210, .10));
  box-shadow: inset 3px 0 0 #8d6cff;
}

.admin-panel,
.dv-admin-card,
.stat-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.admin-panel:hover,
.stat-card:hover,
.dv-admin-card:hover {
  border-color: #d9d3f8;
  box-shadow: 0 16px 40px rgba(25, 30, 58, .08);
}

.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #6847ee, #6cded2);
  opacity: 0;
  transition: opacity .2s ease;
}
.stat-card:hover::before { opacity: 1; }

.content-table tbody tr { transition: background .15s ease; }
.content-table tbody tr:hover { background: #f7f8ff; }

/* Dashboard sync card: gentle pulse while a sync is pending. */
.dvu-sync-card.is-pending i { animation: dvu-pulse 1.6s ease-in-out infinite; }

@keyframes dvu-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .75; }
}

/* ---------- Reduced motion: switch everything off -------------------- */
@media (prefers-reduced-motion: reduce) {
  .dv-portal-map-dots::before,
  .dv-portal-map-dots::after,
  .dvu-reveal,
  .dvu-reveal.dvu-in .dv-stat,
  .dvu-sync-card.is-pending i {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Headline gradient slowly drifts for living color. */
.dv-portal-copy h1 {
  background-size: 220% 100%;
  animation: dvu-sheen 9s ease-in-out infinite alternate;
}

@keyframes dvu-sheen {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* Animated under-glow beneath the hero search bar. */
.dv-portal-search { position: relative; }

.dv-portal-search::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: -9px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(125, 232, 216, .45), rgba(125, 232, 216, 0) 70%);
  filter: blur(6px);
  z-index: -1;
  animation: dvu-glow 4s ease-in-out infinite alternate;
}

@keyframes dvu-glow {
  from { opacity: .45; transform: scaleX(.92); }
  to   { opacity: .9; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .dv-portal-copy h1, .dv-portal-search::before { animation: none !important; }
}

/* ---------- Always-visible depth (not just hover) -------------------- */

/* Each stat tile carries its own brand tint. */
.dv-stat { position: relative; overflow: hidden; }
.dv-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: currentColor;
  opacity: 0;
}
.dv-stat::after {
  content: "";
  position: absolute;
  right: -34px; top: -34px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--dvu-tint, rgba(59, 130, 246, .12)), transparent 70%);
  pointer-events: none;
}
.dv-stat-blue   { --dvu-tint: rgba(59, 130, 246, .16); }
.dv-stat-indigo { --dvu-tint: rgba(99, 102, 241, .16); }
.dv-stat-violet { --dvu-tint: rgba(139, 92, 246, .16); }
.dv-stat-orange { --dvu-tint: rgba(249, 115, 22, .14); }
.dv-stat-teal   { --dvu-tint: rgba(20, 184, 166, .16); }

/* Section eyebrow labels get the brand gradient. */
.dv-enterprise-section-head span,
.dv-admin-section-title span,
.dv-panel-head span {
  background: linear-gradient(90deg, #2563eb, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Command panels get a faint top sheen. */
.dv-command-panel { position: relative; }
.dv-command-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .28), transparent);
}

/* Admin: section labels + gradient kicker. */
.admin-side-label {
  background: linear-gradient(90deg, #8d6cff, #6cded2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Flag chips: rounded-rectangle (4:3) for recognition ------ */
/* Circle crops make many national flags unreadable blobs at 38px.       */
.dv-flag,
.dv-market-icon,
.search-market-flag,
.dvu-country-chip .dv-flag-svg,
.dv-admin-country-flag {
  border-radius: 7px;
  overflow: hidden;
}

.dv-flag .dv-flag-svg,
.dv-market-icon .dv-flag-svg,
.search-market-flag .dv-flag-svg {
  border-radius: 0;
}

/* Size the chips as proper 4:3 rectangles with a soft ring. */
.dv-featured-track .dv-flag,
.dv-market-links .dv-market-icon {
  width: 42px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid rgba(12, 35, 75, .12);
  box-shadow: 0 2px 8px rgba(12, 35, 75, .10);
}

.search-market-flag {
  width: 48px !important;
  height: 34px !important;
  border-radius: 8px !important;
}

.dv-featured-track a:hover .dv-flag,
.dv-market-links a:hover .dv-market-icon {
  transform: scale(1.06);
}

/* ---------- Featured strip: defensive layout ------------------------- */
/* The label must never be overlapped by the scrolling track, whatever    */
/* cached CSS combination a visitor arrives with. */
.dv-featured-markets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  position: relative;
  z-index: 1;
}

.dv-featured-label {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.dv-featured-track {
  flex: 1 1 260px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* ==================================================================== */
/* Lane cards ("Choose what you want to find"): per-lane identity       */
/* ==================================================================== */
.dv-home-discovery-grid a {
  position: relative;
  overflow: hidden;
  padding: 16px 15px;
}

.dv-home-discovery-grid a::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lane-ink), transparent 85%);
  opacity: .85;
}

.dv-home-discovery-grid a::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--lane-bg);
  pointer-events: none;
  transition: transform .25s ease;
}

.dv-home-discovery-grid a:hover::after { transform: scale(1.25); }

.dv-home-discovery-grid a > i {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  background: var(--lane-bg);
  color: var(--lane-ink);
  box-shadow: inset 0 0 0 1px var(--lane-ring);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  z-index: 1;
}

.dv-home-discovery-grid a:hover > i {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: inset 0 0 0 1px var(--lane-ink), 0 8px 20px var(--lane-bg);
}

.dv-home-discovery-grid a > span {
  position: relative;
  z-index: 1;
}

/* Count becomes a pill badge; description follows. */
.dvu-lane-count {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 4px;
  border-radius: 999px;
  background: var(--lane-bg);
  color: var(--lane-ink);
  font-style: normal;
  font-weight: 800;
  font-size: 11px;
}

/* Per-lane palettes (href-scoped so order never matters; hrefs are full
 * URLs so match on path segments). */
.dv-home-discovery-grid a[href$="/deals"],
.dv-home-discovery-grid a[href*="/deals?"]   { --lane-bg: rgba(59, 130, 246, .13);  --lane-ink: #1d4ed8; --lane-ring: rgba(59, 130, 246, .25); }
.dv-home-discovery-grid a[href$="/coupons"]  { --lane-bg: rgba(139, 92, 246, .13);  --lane-ink: #6d28d9; --lane-ring: rgba(139, 92, 246, .25); }
.dv-home-discovery-grid a[href$="/products"],
.dv-home-discovery-grid a[href$="/products/catalog"] { --lane-bg: rgba(249, 115, 22, .13); --lane-ink: #c2410c; --lane-ring: rgba(249, 115, 22, .25); }
.dv-home-discovery-grid a[href$="/free-access"] { --lane-bg: rgba(20, 184, 166, .13);  --lane-ink: #0f766e; --lane-ring: rgba(20, 184, 166, .25); }
.dv-home-discovery-grid a[href$="/courses"]  { --lane-bg: rgba(99, 102, 241, .13);  --lane-ink: #4338ca; --lane-ring: rgba(99, 102, 241, .25); }
.dv-home-discovery-grid a[href$="/games"]    { --lane-bg: rgba(236, 72, 153, .13);  --lane-ink: #be185d; --lane-ring: rgba(236, 72, 153, .25); }
.dv-home-discovery-grid a[href$="/books"]    { --lane-bg: rgba(217, 119, 6, .14);   --lane-ink: #b45309; --lane-ring: rgba(217, 119, 6, .28); }

/* Utility chips below the lanes get the same treatment, neutral blue. */
.dv-home-utility-links a {
  --lane-bg: rgba(59, 130, 246, .10);
  --lane-ink: #1d4ed8;
  --lane-ring: rgba(59, 130, 246, .22);
}

/* ==================================================================== */
/* Deal / coupon / guide cards: richer image presentation               */
/* ==================================================================== */
.dv-trend-card .dv-trend-art {
  overflow: hidden;
  border-radius: 12px;
}

.dv-trend-card .dv-trend-art img {
  transition: transform .45s ease;
}

.dv-trend-card:hover .dv-trend-art img {
  transform: scale(1.07);
}

.dv-enterprise-coupon-grid a,
.dv-enterprise-guide-grid a {
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.dv-enterprise-coupon-grid a::before,
.dv-enterprise-guide-grid a::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
  opacity: 0;
  transition: opacity .2s ease;
}

.dv-enterprise-coupon-grid a:hover::before,
.dv-enterprise-guide-grid a:hover::before {
  opacity: 1;
}

.dv-enterprise-coupon-grid a:hover,
.dv-enterprise-guide-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(16, 51, 104, .14);
  border-color: #bcd7f2;
}

.dv-enterprise-guide-grid a:hover .dv-enterprise-guide-art img {
  transform: scale(1.06);
}

.dv-enterprise-guide-art { overflow: hidden; }
.dv-enterprise-guide-art img { transition: transform .45s ease; }

/* Verified/deal badges keep readable contrast above imagery. */
.dv-trend-body em {
  backdrop-filter: blur(4px);
}

/* ==================================================================== */
/* REDESIGN LAYER — new color identity, visible on every page.          */
/* Loaded last; overrides the legacy cascade wholesale.                 */
/* ==================================================================== */

:root {
  --dvu-ink: #0b1030;
  --dvu-primary: #4f46e5;
  --dvu-primary-2: #7c3aed;
  --dvu-teal: #14b8a6;
  --dvu-amber: #f59e0b;
  --dvu-tint: #f4f5ff;
  --dvu-line: #e6e8f2;
  --dvu-grad: linear-gradient(92deg, #4f46e5, #7c3aed);
}

/* ---------- Header: deep indigo gradient ---------------------------- */
body[data-dealvorio-ui="enterprise-v5"] .site-header {
  background: linear-gradient(100deg, #0b1030 0%, #171335 55%, #1e1b4b 100%) !important;
}

body[data-dealvorio-ui="enterprise-v5"] .top-search {
  background: rgba(255, 255, 255, .10) !important;
  border-color: rgba(255, 255, 255, .16) !important;
}

body[data-dealvorio-ui="enterprise-v5"] .top-search input {
  color: #fff !important;
  background: transparent !important;
}

body[data-dealvorio-ui="enterprise-v5"] .top-search input::placeholder { color: rgba(230, 235, 255, .75) !important; }

body[data-dealvorio-ui="enterprise-v5"] .top-search button {
  background: var(--dvu-grad) !important;
  color: #fff !important;
  border-radius: 9px;
}

/* ---------- Hero: violet-indigo mesh -------------------------------- */
body[data-dealvorio-ui="enterprise-v5"] .dv-portal-hero {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(124, 58, 237, .55), transparent 60%),
    radial-gradient(900px 480px at 88% 110%, rgba(20, 184, 166, .38), transparent 62%),
    linear-gradient(115deg, #171335 0%, #2a2380 48%, #134e6b 100%);
}

.dv-portal-map-dots::before {
  background: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, .75), rgba(79, 70, 229, 0) 65%);
}

.dv-portal-map-dots::after {
  background: radial-gradient(circle at 60% 40%, rgba(45, 212, 191, .55), rgba(20, 184, 166, 0) 68%);
}

.dv-portal-copy h1 {
  background: linear-gradient(92deg, #ffffff 25%, #c7d2fe 55%, #99f6e4 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dv-portal-search:focus-within {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .45), 0 18px 44px rgba(9, 8, 40, .45);
}

.dv-portal-search button {
  background: var(--dvu-grad) !important;
}

/* ---------- Section rhythm: alternating tinted bands ----------------- */
body[data-dealvorio-ui="enterprise-v5"] .dv-enterprise-section:nth-of-type(even),
body[data-dealvorio-ui="enterprise-v5"] .dv-core-lanes {
  background: var(--dvu-tint) !important;
  border-radius: 26px;
}

.dv-enterprise-section-head span,
.dv-admin-section-title span,
.dv-panel-head span {
  background: var(--dvu-grad) !important;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Promo banner slots: framed, not pasted ------------------- */
.dv-promo-slot-inner {
  display: grid;
  gap: 14px;
}

.dv-promo-banner {
  display: block;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(18, 20, 60, .14) !important;
  border: 1px solid var(--dvu-line);
  transition: transform .25s ease, box-shadow .25s ease;
  background: var(--promo-bg, #eef4fb);
}

.dv-promo-banner:hover {
  transform: translateY(-3px) scale(1.006);
  box-shadow: 0 24px 54px rgba(18, 20, 60, .18) !important;
}

.dv-promo-banner img { display: block; width: 100%; height: auto; }

/* ---------- Footer ---------------------------------------------------- */
body[data-dealvorio-ui="enterprise-v5"] .site-footer {
  background: linear-gradient(180deg, #0b1030, #0d0d24) !important;
}

.site-footer h4 {
  background: linear-gradient(92deg, #a5b4fc, #99f6e4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.site-footer .footer-grid a { transition: color .15s ease; }
.site-footer .footer-grid a:hover { color: #99f6e4 !important; }

/* ---------- Buttons: violet gradient ---------------------------------- */
body[data-dealvorio-ui="enterprise-v5"] .dv-portal-search button,
.dvu-hero-cta,
.reveal-code,
.big-reveal {
  background: var(--dvu-grad) !important;
}

.admin-body .btn {
  background: var(--dvu-grad);
  box-shadow: 0 8px 20px rgba(79, 70, 229, .25);
}

.admin-body .btn.ghost { color: #4f46e5; border-color: #ddd6fe; }

/* ---------- Listing page heroes: per-type identity -------------------- */
body[data-dealvorio-ui="enterprise-v5"] .route-dealsindex .page-hero,
body[data-dealvorio-ui="enterprise-v5"] .route-productsindex .page-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(245, 158, 11, .25), transparent 60%),
    linear-gradient(120deg, #171335, #312e81 60%, #1e3a8a) !important;
}

body[data-dealvorio-ui="enterprise-v5"] .route-couponsindex .page-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(139, 92, 246, .35), transparent 60%),
    linear-gradient(120deg, #171335, #4c1d95 55%, #6d28d9) !important;
}

body[data-dealvorio-ui="enterprise-v5"] .route-coursesindex .page-hero,
body[data-dealvorio-ui="enterprise-v5"] .route-appsindex .page-hero,
body[data-dealvorio-ui="enterprise-v5"] .route-booksindex .page-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(20, 184, 166, .30), transparent 60%),
    linear-gradient(120deg, #171335, #312e81 55%, #0f766e) !important;
}

body[data-dealvorio-ui="enterprise-v5"] .route-gamesindex .page-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(236, 72, 153, .30), transparent 60%),
    linear-gradient(120deg, #171335, #4c1d95 55%, #9d174d) !important;
}

body[data-dealvorio-ui="enterprise-v5"] .route-benefitsindex .page-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(20, 184, 166, .32), transparent 60%),
    linear-gradient(120deg, #171335, #134e4a 55%, #0f766e) !important;
}

body[data-dealvorio-ui="enterprise-v5"] .page-hero h1 {
  background: linear-gradient(92deg, #ffffff 30%, #c7d2fe 70%, #99f6e4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Coupon presentation --------------------------------------- */
.coupon-row,
.dv-enterprise-coupon-grid a {
  border-radius: 18px !important;
}

.masked-code {
  padding: 3px 10px;
  border: 2px dashed #8b5cf6;
  border-radius: 9px;
  background: #f5f3ff;
  color: #6d28d9 !important;
}

/* ---------- Admin panel re-skin ---------------------------------------- */
.admin-body {
  --admin-purple: #4f46e5;
  --admin-purple-2: #7c3aed;
}

.admin-side {
  background:
    radial-gradient(500px 260px at 10% 0%, rgba(124, 58, 237, .22), transparent 60%),
    linear-gradient(180deg, #0b1030 0%, #14112e 60%, #0d0d24 100%) !important;
}

.admin-side nav a.active {
  background: linear-gradient(90deg, rgba(124, 58, 237, .35), rgba(20, 184, 166, .16)) !important;
  box-shadow: inset 3px 0 0 #7c3aed !important;
}

.admin-body .admin-top {
  background: rgba(255, 255, 255, .92) !important;
}

.admin-body th {
  background: #f4f5ff !important;
  color: #4338ca !important;
}

.admin-body .flash.success { border-left: 4px solid #14b8a6; }
.admin-body .flash.error { border-left: 4px solid #ef4444; }

/* Status chips in the new palette */
.status.published, .status.imported, .status-chip.is-live { background: #ecfdf5 !important; color: #047857 !important; }
.status.draft, .status-chip.is-draft { background: #eef2ff !important; color: #4338ca !important; }
.status.rejected { background: #fef2f2 !important; color: #b91c1c !important; }

/* ---------- Login page: match brand ------------------------------------ */
.admin-login-body .dv-login-brand-panel {
  background:
    radial-gradient(700px 380px at 20% 0%, rgba(124, 58, 237, .5), transparent 60%),
    radial-gradient(700px 420px at 90% 100%, rgba(20, 184, 166, .35), transparent 60%),
    linear-gradient(120deg, #0b1030, #2a2380 60%, #134e6b) !important;
}

.admin-login-body .dv-login-form button[type="submit"] {
  background: var(--dvu-grad) !important;
}

/* Listing heroes use .category-hero (per-type tint via body route class). */
body[class*="route-dealsindex"] .category-hero,
body[class*="route-productsindex"] .category-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(245, 158, 11, .22), transparent 60%),
    linear-gradient(120deg, #171335, #312e81 60%, #1e3a8a) !important;
}

body[class*="route-couponsindex"] .category-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(139, 92, 246, .32), transparent 60%),
    linear-gradient(120deg, #171335, #4c1d95 55%, #6d28d9) !important;
}

body[class*="route-coursesindex"] .category-hero,
body[class*="route-appsindex"] .category-hero,
body[class*="route-booksindex"] .category-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(20, 184, 166, .28), transparent 60%),
    linear-gradient(120deg, #171335, #312e81 55%, #0f766e) !important;
}

body[class*="route-gamesindex"] .category-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(236, 72, 153, .28), transparent 60%),
    linear-gradient(120deg, #171335, #4c1d95 55%, #9d174d) !important;
}

body[class*="route-benefitsindex"] .category-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(20, 184, 166, .30), transparent 60%),
    linear-gradient(120deg, #171335, #134e4a 55%, #0f766e) !important;
}

body[class*="-index"] .category-hero h1,
body[class*="-index"] .category-hero-copy h1 {
  background: linear-gradient(92deg, #ffffff 30%, #c7d2fe 70%, #99f6e4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Filter checkboxes: legacy layers blew them up to full-width boxes. */
.check input[type="checkbox"],
.filter-bar input[type="checkbox"],
.coupon-filterbar input[type="checkbox"],
.advanced-filter-bar input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  padding: 0 !important;
  margin: 0 2px 0 0 !important;
  accent-color: #4f46e5;
  border-radius: 5px;
  cursor: pointer;
}

/* Market chip with flag on catalog cards. */
.dvu-market-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dvu-market-chip .dv-flag-svg {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(12, 35, 75, .12);
}

/* Decisive clip: some legacy layer keeps stretching filter checkboxes. */
.check input[type="checkbox"] {
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px;
  max-height: 18px;
  display: inline-block !important;
  vertical-align: middle;
}

/* Eyebrow caps: solid brand violet — gradient-text clip is fragile when
 * later shorthand background declarations reset background-clip. */
.dv-enterprise-section-head span,
.dv-admin-section-title span,
.dv-panel-head span,
.dv-featured-label {
  background: none !important;
  -webkit-text-fill-color: #6d28d9 !important;
  color: #6d28d9 !important;
  font-weight: 800;
}
