/* ===== Deals Hub palette — overrides the shared Windowseat tokens for this
   page only (deals.css isn't loaded elsewhere), so every existing component
   below (cards, badges, buttons, hero) picks up the new colors for free. ===== */
:root {
  --sapphire: #0a192f; /* Midnight Blue — base/bg */
  --sapphire-2: #1c3b6e; /* Steel Blue — UI containers */
  --sapphire-3: #24488a; /* Steel Blue, lifted — elevated surfaces */
  --royal: #2563eb;
  --royal-2: #3b82f6; /* Electric Azure — interactive/tabs */
  --royal-deep: #1d4ed8;
  --ink: #e2e8f0; /* Soft Ivory — neutral text/icons */
  --muted: #aab8d1;
  --dh-coral: #f97316; /* Coral-Orange — urgency accent */
  --dh-coral-2: #fb923c;
}

/* ===== Theme tokens — aliased to the shared Windowseat palette in main.css ===== */
:root {
  --glass: color-mix(in srgb, var(--sapphire-2) 78%, transparent);
  --glass-2: color-mix(in srgb, var(--sapphire-2) 95%, transparent);
  --line: var(--glass-line-strong);
  --accent: var(--royal-2);
  --accent-2: var(--ok);
  --shadow: 0 12px 34px rgba(2, 5, 10, 0.32);
  --glow: 0 8px 36px rgba(63, 182, 224, 0.16);
}

* {
  box-sizing: border-box;
}

/* Stop any horizontal scroll, ever */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  color: var(--ink);
  background: radial-gradient(
      120% 80% at 0% 0%,
      rgba(63, 182, 224, 0.16),
      transparent 42%
    ),
    radial-gradient(
      100% 70% at 100% 0%,
      rgba(43, 70, 201, 0.18),
      transparent 45%
    ),
    radial-gradient(
      70% 50% at 50% 100%,
      rgba(249, 115, 22, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, var(--sapphire), var(--sapphire-2) 60%, var(--sapphire));
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  animation: bgDrift 22s ease-in-out infinite;
}
@keyframes bgDrift {
  0%, 100% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  50% { background-position: 6% 4%, 94% 6%, 46% 96%, 0 0; }
}

/* sparkles */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
      2px 2px at 20% 30%,
      rgba(201, 211, 224, 0.4) 40%,
      transparent 41%
    ),
    radial-gradient(1.6px 1.6px at 70% 10%, rgba(95, 124, 232, 0.35) 40%, transparent 41%),
    radial-gradient(2px 2px at 85% 60%, rgba(201, 211, 224, 0.4) 40%, transparent 41%);
  background-repeat: no-repeat;
  animation: float 10s linear infinite;
  opacity: 0.35;
}
@keyframes float {
  to {
    transform: translateY(-18px);
  }
}

/* ===== Layout shells ===== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  box-sizing: border-box;
  width: min(1180px, 100%);
  margin: 28px auto;
  padding-inline: clamp(12px, 2.4vw, 40px);
  display: grid;
  gap: 18px;
  overflow: hidden; /* block inner spills */
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--sapphire-2), var(--sapphire) 55%, var(--sapphire-3));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--glow);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: conic-gradient(
    from 90deg at 40% 10%,
    rgba(63, 182, 224, 0.2),
    transparent 35%,
    rgba(43, 70, 201, 0.2)
  );
  filter: blur(16px);
  opacity: 0.6;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero h1 {
  margin: 0;
  letter-spacing: 0.2px;
}
.muted {
  color: var(--muted);
}

/* ===== Tabs + Panels (handles your current nesting) ===== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  box-shadow: inset 0 0 0 1px var(--glass-line);
}

/* Put buttons first row, panels full-width below */
.tabs .tab-btn {
  order: 1;
}
.tabs .tab-panel {
  order: 2;
  flex-basis: 100%;
}

.tab-btn {
  appearance: none;
  cursor: pointer;
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  letter-spacing: 0.2px;
  position: relative;
}
.tab-btn.active {
  background: linear-gradient(180deg, var(--royal-deep), var(--sapphire-2));
  box-shadow: 0 6px 18px rgba(2, 5, 10, 0.4), 0 0 0 1px var(--glass-line-strong) inset;
}

.tab-panel {
  display: block;
  margin-top: 6px;
}
.tab-panel[hidden] {
  display: none;
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: stretch;
}

/* ===== Cards ===== */
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, filter 0.18s ease;
  will-change: transform;
  transform-style: preserve-3d;
  max-width: 100%; /* never overflow grid cell */
  contain: layout paint; /* prevent 3D tilt overflow */
}
.card:hover {
  border-color: var(--royal-2);
  box-shadow: var(--shadow), var(--glow);
  filter: saturate(1.03);
}

/* Shared thumbnail image sizing (used by hub bundle-card thumbs) */
.stacked-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.mini-list li {
  color: var(--muted);
}
.strike {
  text-decoration: line-through;
  color: var(--muted);
  opacity: 0.75;
}
.final {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Buttons + ripple */
.btn-row {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}
.btn {
  appearance: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  border: 1px solid var(--glass-line-strong);
  background: linear-gradient(180deg, var(--sapphire-3), var(--sapphire-2));
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, filter 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.btn:hover {
  filter: brightness(1.06);
  border-color: var(--royal-2);
  box-shadow: 0 6px 18px rgba(2, 5, 10, 0.4), 0 0 0 1px var(--royal-deep) inset;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(180deg, var(--royal), var(--royal-deep));
  border-color: var(--royal-2);
}
.btn-ghost {
  background: transparent;
  border-color: var(--glass-line-strong);
  color: var(--platinum-2);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff66 0%, transparent 60%);
  transform: scale(0);
  animation: rip 0.55s ease-out;
  pointer-events: none;
}
@keyframes rip {
  to {
    transform: scale(2.7);
    opacity: 0;
  }
}

/* Skeletons */
.skel {
  position: relative;
  overflow: hidden;
  min-height: 74px;
}
.sk-line {
  height: 14px;
  background: var(--sapphire-2);
  border-radius: 8px;
  margin: 8px 0;
}
.sk-line.short {
  width: 60%;
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

/* Confetti */
.confetti {
  position: fixed;
  left: var(--x);
  top: 0;
  width: 6px;
  height: 10px;
  background: linear-gradient(var(--royal-2), var(--platinum));
  transform: translateX(var(--tx));
  animation: fall var(--d) ease-in forwards;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(95, 124, 232, 0.4);
}
@keyframes fall {
  to {
    transform: translateY(110vh) translateX(var(--tx)) rotate(300deg);
    opacity: 0;
  }
}

/* Bottom section reveal (hand-picked) */
#dealsSection.reveal {
  animation: dealsFade 0.35s ease-out both;
}
@keyframes dealsFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Images safe sizing */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

#autoDeals .hero {
  border: none;
}

/* ============================================================
   DEALS HUB — rail + spotlight + sidebar shell
   ============================================================ */
.dh-spacer { height: 84px; }

.dh-shell {
  max-width: 1500px;
  margin: 0 auto 40px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1200px) {
  .dh-shell { grid-template-columns: 140px minmax(0, 1fr); }
  .dh-aside { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 800px) {
  .dh-shell { grid-template-columns: 1fr; }
  .dh-rail { flex-direction: row; overflow-x: auto; }
  .dh-aside { grid-template-columns: 1fr; }
}

/* RAIL */
.dh-rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 100px;
}
.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.rail-btn .rail-ic { font-size: 20px; }
.rail-btn:hover { color: var(--ink); border-color: var(--royal-2); }
.rail-btn.active {
  color: #fff;
  background: linear-gradient(180deg, var(--sapphire-3), var(--sapphire-2));
  border-color: var(--dh-coral);
  box-shadow: 0 0 0 1px var(--dh-coral) inset, 0 8px 20px rgba(249, 115, 22, 0.18);
}
.rail-btn.active .rail-ic { filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.6)); }

/* MAIN */
.dh-main { position: relative; }
.dh-title { margin: 4px 0 18px; font-size: 28px; }
.deal-view { display: none; }
.deal-view.active { display: block; animation: dealsFade 0.3s ease-out both; }

.countdown { display: flex; gap: 8px; margin-top: 14px; }
.cd-box {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.5);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  min-width: 52px;
}
.cd-box span { display: block; font-size: 20px; font-weight: 800; color: var(--dh-coral-2); font-variant-numeric: tabular-nums; }
.cd-box label { font-size: 10px; color: var(--muted); text-transform: uppercase; }

/* SIDEBAR */
.dh-aside { display: grid; gap: 18px; }
.dh-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.dh-card-head { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin-bottom: 12px; }

.ph-head { display: flex; align-items: center; gap: 12px; }
.ph-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--royal-2), var(--royal-deep));
}
.ph-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.ph-msg { font-size: 13px; font-weight: 600; }
.ph-msg a { color: var(--royal-2); }

.trend-map {
  position: relative;
  height: 130px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(249, 115, 22, 0.12), transparent 55%),
    var(--sapphire);
  border: 1px solid var(--line);
  overflow: hidden;
}
.trend-pin { position: absolute; display: flex; align-items: center; gap: 6px; transform: translate(-50%, -50%); }
.pin-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--dh-coral);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25);
  animation: pinPulse 1.8s ease-in-out infinite;
}
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.08); }
}
.pin-label { font-size: 11px; font-weight: 700; color: var(--ink); background: rgba(10, 25, 47, 0.7); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }

.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.live-list li { display: flex; gap: 10px; align-items: flex-start; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.live-dot.coral { background: var(--dh-coral); }
.live-dot.azure { background: var(--royal-2); }
.live-dot.ivory { background: var(--ink); }
.live-text { font-size: 13px; font-weight: 600; line-height: 1.3; }
.live-time { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   DEALS HUB — image-match: explorer header, top tabs, bundle hub
   ============================================================ */
.dh-explorer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 4px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.25;
}
.dh-explorer-badge {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dh-coral-2);
  border: 1.5px solid var(--dh-coral);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.35);
  font-weight: 800;
}

.dh-toptabs { display: grid; gap: 6px; }
.rail-btn.active::after {
  content: "(Selected)";
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  color: var(--royal-2);
  text-transform: none;
}

.dh-rail-sep {
  height: 1px;
  background: var(--line);
  margin: 8px 2px;
}

/* Hub title/subtitle */
.hub-title { margin: 4px 0 12px; font-size: 30px; text-align: center; letter-spacing: 0.3px; }
.hub-sub { text-align: center; margin: 0 0 26px; }
.hub-sub span {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* Toolbar: item count + sort control, shared across hub views */
.hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
.hub-toolbar-2 { margin-top: 36px; }
.hub-toolbar .hub-section-title { margin: 0; text-align: left; }
.hub-toolbar-label { font-size: 13px; color: var(--muted); }
.hub-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.hub-sort select {
  appearance: none;
  background: var(--glass-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 30px 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.hub-sort select:hover { border-color: var(--royal-2); }
.hub-sort select:focus-visible { outline: 2px solid var(--royal-2); outline-offset: 2px; }

/* Bundle Deals / Exclusive: full responsive grid, no forced featured card */
.hub-bundle-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

/* Bundle hub grid: 3 cards, center one featured */
.hub-bundle-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 18px;
  align-items: start;
  position: relative;
}
@media (max-width: 900px) { .hub-bundle-grid { grid-template-columns: 1fr; } }

.hub-bundle-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.hub-bundle-thumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.hub-bundle-thumbs .stacked-thumb {
  position: static;
  width: 100%;
  height: 74px;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-line-strong);
  background: var(--sapphire-2);
}
.hub-bundle-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.3;
}
.hub-bundle-card .mini-list {
  margin-bottom: 18px;
}
.hub-bundle-card .mini-list li { list-style: disc; margin-left: 16px; }
.hub-bundle-card .hub-price {
  text-align: right;
  margin-bottom: 12px;
}
.hub-bundle-card .hub-price .strike { display: block; font-size: 13px; }
.hub-bundle-card .hub-price .final { font-size: 24px; }

.hub-bundle-card.featured {
  border-color: var(--dh-coral);
  box-shadow: 0 0 0 1px var(--dh-coral) inset, 0 14px 34px rgba(249, 115, 22, 0.2);
  position: relative;
  overflow: hidden;
}
.featured-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 18px;
  z-index: 2;
}
.hub-bundle-card.featured .countdown { margin: 6px 0 16px; }
.hub-bundle-card.featured .hub-price .strike { font-size: 13px; opacity: 0.7; }
.hub-bundle-card.featured .hub-price .final { font-size: 26px; color: #fff; }

/* Individual deals row */
.hub-section-title {
  text-align: center;
  font-size: 20px;
  margin: 36px 0 18px;
}
.hub-individual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .hub-individual-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hub-individual-grid { grid-template-columns: 1fr; } }

.hub-item-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.hub-item-card h4 {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hub-item-card .hub-item-body {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.hub-item-card .hub-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sapphire-2);
  border: 1px solid var(--glass-line-strong);
  flex-shrink: 0;
}
.hub-item-card .hub-item-price {
  font-weight: 800;
  font-size: 16px;
  margin-left: auto;
  white-space: nowrap;
}
.hub-item-card .hub-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}
.hub-item-card .hub-item-tag { font-size: 12px; color: var(--muted); }
.hub-item-card .btn { padding: 8px 12px; font-size: 13px; }

/* Decorative dotted-route background behind the hub view, echoing the mock */
.dh-main::before {
  content: "";
  position: absolute;
  inset: -20px 0 auto 0;
  height: 340px;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(2px 2px at 15% 60%, rgba(59, 130, 246, 0.5) 50%, transparent 51%),
    radial-gradient(2px 2px at 32% 25%, rgba(148, 163, 184, 0.35) 50%, transparent 51%),
    radial-gradient(2px 2px at 50% 20%, rgba(249, 115, 22, 0.45) 50%, transparent 51%),
    radial-gradient(2px 2px at 68% 45%, rgba(148, 163, 184, 0.35) 50%, transparent 51%),
    radial-gradient(2px 2px at 85% 65%, rgba(59, 130, 246, 0.5) 50%, transparent 51%);
  background-size: 180% 180%;
  animation: routeDrift 16s ease-in-out infinite;
  opacity: 0.8;
}
@keyframes routeDrift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 12% 8%; }
}

/* Floating travel icons scattered behind the hub content */
.hub-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.hub-floaters .floater {
  position: absolute;
  font-size: 26px;
  opacity: 0.28;
  filter: drop-shadow(0 4px 10px rgba(2, 5, 10, 0.4));
  animation: floaterBob 7s ease-in-out infinite;
}
.floater.f1 { top: 4%; left: 6%; font-size: 30px; animation-duration: 9s; }
.floater.f2 { top: 62%; left: 3%; animation-duration: 8s; animation-delay: 0.6s; }
.floater.f3 { top: 10%; right: 8%; animation-duration: 6.5s; animation-delay: 1.2s; }
.floater.f4 { top: 70%; right: 5%; font-size: 32px; animation-duration: 10s; animation-delay: 0.3s; }
.floater.f5 { top: 40%; left: 46%; animation-duration: 7.5s; animation-delay: 1.6s; opacity: 0.18; }
.floater.f6 { top: 2%; left: 48%; animation-duration: 8.5s; animation-delay: 0.9s; opacity: 0.2; }
@keyframes floaterBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

/* Entrance animation for hub cards */
.hub-bundle-card, .hub-item-card {
  animation: hubRise 0.5s ease-out both;
}
.hub-bundle-grid .hub-bundle-card:nth-child(1),
.hub-bundle-grid-full .hub-bundle-card:nth-child(1) { animation-delay: 0.05s; }
.hub-bundle-grid .hub-bundle-card:nth-child(2),
.hub-bundle-grid-full .hub-bundle-card:nth-child(2) { animation-delay: 0.15s; }
.hub-bundle-grid .hub-bundle-card:nth-child(3),
.hub-bundle-grid-full .hub-bundle-card:nth-child(3) { animation-delay: 0.25s; }
.hub-individual-grid .hub-item-card:nth-child(1) { animation-delay: 0.3s; }
.hub-individual-grid .hub-item-card:nth-child(2) { animation-delay: 0.38s; }
.hub-individual-grid .hub-item-card:nth-child(3) { animation-delay: 0.46s; }
.hub-individual-grid .hub-item-card:nth-child(4) { animation-delay: 0.54s; }
@keyframes hubRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hub-bundle-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hub-bundle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--glow);
}
.hub-item-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hub-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--royal-2);
  box-shadow: var(--shadow), var(--glow);
}

.dh-explorer-badge {
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(249, 115, 22, 0.35); }
  50% { box-shadow: 0 0 18px rgba(249, 115, 22, 0.6); }
}

