.wnb-flip-slider {
  --wnb-card-height: 320px;
  --wnb-gap: 16px;
  --wnb-radius: 16px;
  --wnb-shadow: 0 10px 30px rgba(0,0,0,.12);
  --wnb-border: rgba(0,0,0,.10);
  position: relative;
  padding: 18px 10px 34px;
}

.wnb-flip-slider__viewport {
  overflow: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  outline: none;
  padding: 4px 6px 10px;
}

.wnb-flip-slider__viewport::-webkit-scrollbar {
  height: 10px;
}
.wnb-flip-slider__viewport::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.15);
  border-radius: 999px;
}
.wnb-flip-slider__viewport::-webkit-scrollbar-track {
  background: rgba(0,0,0,.06);
  border-radius: 999px;
}

.wnb-flip-slider__track {
  display: flex;
  gap: var(--wnb-gap);
  align-items: stretch;
  min-height: calc(var(--wnb-card-height) + 10px);
}

.wnb-flip-slider__slide {
  flex: 0 0 min(360px, 84vw);
  scroll-snap-align: center;
  position: relative;
}

.wnb-flip-slider__empty {
  padding: 18px;
  border: 1px dashed var(--wnb-border);
  border-radius: 12px;
  width: min(520px, 90vw);
}

/* NAV */
.wnb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--wnb-border);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  user-select: none;
}

.wnb-nav--prev { left: 6px; }
.wnb-nav--next { right: 6px; }

@media (max-width: 640px) {
  .wnb-nav { display: none; } /* swipe on mobile */
}

/* DOTS */
.wnb-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.wnb-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.25);
  background: rgba(0,0,0,.10);
  cursor: pointer;
}

.wnb-dot.is-active {
  background: rgba(0,0,0,.55);
  border-color: rgba(0,0,0,.55);
}

/* FLIP CARD */
.wnb-flip-card {
  height: var(--wnb-card-height);
  border-radius: var(--wnb-radius);
  box-shadow: var(--wnb-shadow);
  background: #fff;
  border: 1px solid var(--wnb-border);
  position: relative;
  overflow: hidden;
}

.wnb-flip-card__clickarea {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}

.wnb-flip-card__inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .65s ease;
}

.wnb-flip-card[data-flipped="1"] .wnb-flip-card__inner {
  transform: rotateY(180deg);
}

.wnb-flip-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

.wnb-flip-card__front { transform: rotateY(0deg); }
.wnb-flip-card__back  { transform: rotateY(180deg); }

.wnb-flip-card__media {
  flex: 1 1 auto;
  background: rgba(0,0,0,.04);
  position: relative;
}

.wnb-flip-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wnb-flip-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(0,0,0,.55);
  font-weight: 600;
}

.wnb-flip-card__frontbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-top: 1px solid var(--wnb-border);
  background: #fff;
  z-index: 2;
}

.wnb-flip-card__title {
  flex: 1 1 auto;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wnb-flip-card__arrow {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--wnb-border);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 4;
  position: relative;
}

.wnb-flip-card__arrow:hover {
  transform: translateY(-1px);
}

.wnb-flip-card__backcontent {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  background: #fff;
}

.wnb-flip-card__backtitle {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
}

.wnb-flip-card__desc {
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 4px;
  color: rgba(0,0,0,.85);
}

.wnb-flip-card__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.wnb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--wnb-border);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

.wnb-btn--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.wnb-btn--ghost {
  background: #fff;
  color: #111;
}