/* OLX display & discovery deck — inspired by feature-rich personal blogs,
   adapted to the site's restrained editorial visual language. */
:root {
  --olx-deck-accent: #06b6d4;
  --olx-deck-accent-strong: #0891b2;
  --olx-deck-ink: #10243a;
  --olx-deck-muted: #64748b;
  --olx-deck-panel: rgba(248, 252, 255, 0.94);
  --olx-deck-line: rgba(14, 116, 144, 0.16);
}

.dark-mode {
  --olx-deck-accent: #48d8eb;
  --olx-deck-accent-strong: #22d3ee;
  --olx-deck-ink: #eefaff;
  --olx-deck-muted: #91a9c0;
  --olx-deck-panel: rgba(8, 20, 36, 0.93);
  --olx-deck-line: rgba(103, 232, 249, 0.15);
}

.olx-feature-deck {
  position: fixed;
  z-index: 1200;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  color: var(--olx-deck-ink);
  font-family: var(--vp-font-family-base, Inter, "PingFang SC", "Microsoft YaHei", sans-serif);
}

.olx-feature-deck__trigger,
.olx-feature-deck__close,
.olx-feature-deck__theme-button,
.olx-feature-deck__action {
  -webkit-tap-highlight-color: transparent;
}

.olx-feature-deck__trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(103, 232, 249, 0.34);
  border-radius: 16px;
  overflow: hidden;
  color: #dffbff;
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(15, 23, 42, 0.08)),
    rgba(8, 20, 36, 0.88);
  box-shadow: 0 15px 38px rgba(2, 12, 27, 0.28), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.olx-feature-deck__trigger::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  pointer-events: none;
}

.olx-feature-deck__trigger::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 10px #22d3ee;
}

.olx-feature-deck__trigger:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, 0.72);
  box-shadow: 0 18px 42px rgba(2, 12, 27, 0.35), 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.olx-feature-deck__trigger:focus-visible,
.olx-feature-deck button:focus-visible {
  outline: 3px solid rgba(6, 182, 212, 0.28);
  outline-offset: 3px;
}

.olx-feature-deck__trigger svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.olx-feature-deck__panel {
  position: absolute;
  left: 0;
  bottom: 64px;
  width: 330px;
  max-width: calc(100vw - 40px);
  padding: 20px;
  border: 1px solid var(--olx-deck-line);
  border-radius: 24px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  color: var(--olx-deck-ink);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.075), transparent 40%),
    var(--olx-deck-panel);
  box-shadow: 0 28px 80px rgba(2, 12, 27, 0.24), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  transform: translateY(12px) scale(0.975);
  transform-origin: left bottom;
  transition: opacity 180ms ease, visibility 180ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.olx-feature-deck__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(34, 211, 238, 0.035) 8px);
}

.olx-feature-deck.is-open .olx-feature-deck__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.olx-feature-deck__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.olx-feature-deck__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 5px;
  color: var(--olx-deck-accent-strong);
  font: 700 10px/1.2 var(--vp-font-family-mono, monospace);
  letter-spacing: 0.18em;
}

.olx-feature-deck__eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.olx-feature-deck__title {
  margin: 0;
  color: var(--olx-deck-ink);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.olx-feature-deck__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--olx-deck-line);
  border-radius: 11px;
  color: var(--olx-deck-muted);
  background: rgba(127, 146, 164, 0.08);
  cursor: pointer;
}

.olx-feature-deck__close:hover {
  color: var(--olx-deck-ink);
  background: rgba(6, 182, 212, 0.12);
}

.olx-feature-deck__close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.olx-feature-deck__section + .olx-feature-deck__section {
  margin-top: 18px;
}

.olx-feature-deck__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 9px;
  color: var(--olx-deck-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.olx-feature-deck__label code {
  color: var(--olx-deck-accent-strong);
  background: none;
  font: 600 9px/1 var(--vp-font-family-mono, monospace);
  letter-spacing: 0.12em;
}

.olx-feature-deck__themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--olx-deck-line);
  border-radius: 14px;
  background: rgba(127, 146, 164, 0.08);
}

.olx-feature-deck__theme-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  color: var(--olx-deck-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.olx-feature-deck__theme-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.olx-feature-deck__theme-button[aria-pressed="true"] {
  color: var(--olx-deck-ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.09), inset 0 0 0 1px rgba(6, 182, 212, 0.12);
}

.dark-mode .olx-feature-deck__theme-button[aria-pressed="true"] {
  color: #dffbff;
  background: rgba(34, 211, 238, 0.13);
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.12);
}

.olx-feature-deck__action {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--olx-deck-line);
  border-radius: 15px;
  color: var(--olx-deck-ink);
  text-align: left;
  background: rgba(127, 146, 164, 0.055);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.olx-feature-deck__action + .olx-feature-deck__action {
  margin-top: 8px;
}

.olx-feature-deck__action:hover {
  transform: translateX(2px);
  border-color: rgba(6, 182, 212, 0.32);
  background: rgba(6, 182, 212, 0.08);
}

.olx-feature-deck__action:disabled {
  opacity: 0.64;
  cursor: wait;
}

.olx-feature-deck__action-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--olx-deck-accent-strong);
  background: rgba(6, 182, 212, 0.11);
}

.olx-feature-deck__action-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.olx-feature-deck__action-copy {
  min-width: 0;
}

.olx-feature-deck__action-title,
.olx-feature-deck__action-note {
  display: block;
}

.olx-feature-deck__action-title {
  font-size: 13px;
  font-weight: 720;
}

.olx-feature-deck__action-note {
  margin-top: 3px;
  overflow: hidden;
  color: var(--olx-deck-muted);
  font-size: 10.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.olx-feature-deck__switch {
  position: relative;
  width: 35px;
  height: 21px;
  border-radius: 20px;
  background: rgba(100, 116, 139, 0.25);
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.14);
  transition: background 160ms ease;
}

.olx-feature-deck__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.24);
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.olx-feature-deck__action[aria-checked="true"] .olx-feature-deck__switch {
  background: var(--olx-deck-accent-strong);
}

.olx-feature-deck__action[aria-checked="true"] .olx-feature-deck__switch::after {
  transform: translateX(14px);
}

.olx-feature-deck__arrow {
  color: var(--olx-deck-muted);
  font-size: 18px;
  line-height: 1;
}

.olx-feature-deck__footer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 2px 0;
  color: var(--olx-deck-muted);
  font-size: 9.5px;
}

.olx-feature-deck__footer::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--olx-deck-accent);
  box-shadow: 0 0 8px var(--olx-deck-accent);
}

html.olx-quiet-mode .cursor-particle,
html.olx-quiet-mode [class*="cursor-particle"] {
  display: none !important;
}

html.olx-quiet-mode .hero-section-fullscreen::before,
html.olx-quiet-mode .hero-section-fullscreen::after,
html.olx-quiet-mode .hero-orbit__dot,
html.olx-quiet-mode .hero-orbit__ring,
html.olx-quiet-mode .olx-geometric-logo__scan-bar {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 640px) {
  .olx-feature-deck {
    left: 12px;
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 68px));
    width: 48px;
    height: 48px;
  }

  .olx-feature-deck__trigger {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .olx-feature-deck__panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(136px, calc(env(safe-area-inset-bottom) + 128px));
    width: auto;
    max-width: none;
    padding: 18px;
    border-radius: 22px;
    transform-origin: left bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  .olx-feature-deck *,
  .olx-feature-deck *::before,
  .olx-feature-deck *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

