/* =====================================================================
   KINKCARDS — Shared Card Design System
   Version 2.1 - Consolidated with Match Items
   ===================================================================== */

:root {
  --line: #e8e9ee;
  --accent: #ff4fa0;
  --accent-1: #FF79B0;
  --accent-2: #6a6af6;

  /* 4-step swipe color ramp (game-core.js uses these names) */
  --no1: #ff8c1a;      /* juicy orange - "Not For Now" */
  --no2: #f03a47;      /* lively red - "Nope" */
  --yes1: #9be576;     /* gentle fresh green - "Interested" */
  --yes2: #149a5b;     /* tropical green - "Yes Please" */
}

/* =====================================================================
   CAROUSEL CONTAINER (basic scrollable host)
   ===================================================================== */
.carousel {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding: 24px 12px 90px;
  scroll-snap-type: x mandatory;
}

.carousel:focus { outline: none; }

.carousel::-webkit-scrollbar { height: 10px; }

.carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

/* =====================================================================
   BASE CARD (1:1.41 aspect ratio)
   Fixed canonical size with CSS scale for different contexts
   ===================================================================== */
:root {
  --card-width: 340px;
  --card-height: calc(340px * 1.41); /* 479.4px */
  --card-scale: 1;
}

.card {
  position: relative;
  scroll-snap-align: start;
  
  /* Fixed canonical size - scale with --card-scale */
  width: var(--card-width);
  height: var(--card-height);
  transform: scale(var(--card-scale));
  transform-origin: top center;
  
  background: #f6f7fb;
  border-radius: 24px;
  border: 2px solid var(--line);
  padding: 28px 28px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s ease,
              filter 0.5s ease,
              outline-color 0.5s ease;
  margin-left: calc(var(--card-width) * -0.55);
  box-shadow: inset 0 0 0 12px #fff, 0 10px 18px rgba(0,0,0,.14);
  background-clip: padding-box;
  cursor: pointer;
  isolation: isolate;
  touch-action: none;
}

.card.dragging {
  cursor: grabbing;
}



.card:first-child { margin-left: 0; }

/* =====================================================================
   CARD WRAPPER — constrains grid cell to the visual (scaled) card size.
   Wrap every .card inside a .card-wrapper when placed in
   .results-cards-grid so the grid allocates the correct amount of
   space instead of reserving the full 340 × 479 px canonical box.
   ===================================================================== */
.card-wrapper {
  --grid-card-scale: 0.85;
  width:  calc(var(--card-width) * var(--grid-card-scale));
  height: calc(var(--card-height) * var(--grid-card-scale) + 24px);  /* +24px for action-pill */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;          /* let glow / shadow bleed out */
  position: relative;
  flex-shrink: 0;
}

/* Card inside wrapper inherits the grid scale */
.card-wrapper > .card {
  --card-scale: var(--grid-card-scale);
  transform: scale(var(--card-scale));
  transform-origin: top center;
  margin-left: 0;             /* kill the stack overlap margin */
  flex-shrink: 0;
}

/* Hover lift inside wrapper */
.card-wrapper > .card:hover {
  transform: scale(calc(var(--grid-card-scale) * 1.02)) !important;
  z-index: 10;
}

/* nth-child rotations are for carousel stacks — disable inside grid */
.card-wrapper > .card:nth-child(n) {
  transform: scale(var(--grid-card-scale));
}

/* Dragging visuals */
.card-wrapper.dragging {
  opacity: 0.5;
  z-index: 1000;
}

.card-wrapper.drag-over > .card {
  transform: scale(calc(var(--grid-card-scale) * 0.95));
  opacity: 0.7;
}

/* ── Card-wrapper responsive breakpoints ─────────────────────────── */

/* Tablet: 2 columns, slightly scaled */
@media (max-width: 800px) {
  .card-wrapper {
    --grid-card-scale: 0.92;
    width:  calc(var(--card-width)  * 0.92);
    height: calc(var(--card-height) * 0.92 + 24px);
  }
}

/* Phone landscape / Galaxy Fold: single column, full card size */
@media (max-width: 590px) {
  .card-wrapper {
    --grid-card-scale: 1;
    width:  var(--card-width);
    height: calc(var(--card-height) + 24px);
  }
}

/* Small phones (≤400px): scale down to fit viewport */
@media (max-width: 400px) {
  .card-wrapper {
    --grid-card-scale: 0.88;
    width:  calc(var(--card-width)  * 0.88);
    height: calc(var(--card-height) * 0.88 + 24px);
  }
}

/* Small phones (≤320px): scale down to fit viewport */
@media (max-width: 320px) {
  .card-wrapper {
    --grid-card-scale: 0.73;
    width:  calc(var(--card-width)  * 0.73);
    height: calc(var(--card-height) * 0.73 + 24px);
  }
}


/* Gentle variety for stacked decks */
.card:nth-child(1) { transform: rotate(-1.2deg); }
.card:nth-child(2) { transform: translateY(6px) rotate(.6deg); }
.card:nth-child(3) { transform: translateY(3px) rotate(-.8deg); }
.card:nth-child(4) { transform: translateY(7px) rotate(.8deg); }
.card:nth-child(5) { transform: translateY(4px) rotate(-.4deg); }
.card:nth-child(6) { transform: translateY(5px) rotate(.4deg); }

/* Active card highlight */
.card.is-active,
.card:focus-visible {
  box-shadow:
    inset 0 0 0 12px #fff,
    0 14px 30px rgba(0,0,0,.2),
    0 0 0 4px color-mix(in srgb, var(--accent) 60%, var(--accent-2) 40%);
  z-index: 4;
  filter: none;
}

/* Inner layer for active card - no scaling, just transition */
.card.is-active > .km-pose {
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

/* Force active card straight */
.card.is-active {
  transform: none !important;
}

/* Hover lift + scale on active card */
.card.is-active:hover {
  transform: translateY(-5px) scale(calc(var(--card-scale, 1) * 1.03)) !important;
}

/* Base inner layer transition */
.card > .km-pose {
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

/* Blur non-active cards in carousel */
.carousel .card:not(.is-active):not(:hover) {
  filter: blur(1.1px) saturate(.9) brightness(.97);
}

/* =====================================================================
   CARD TYPOGRAPHY
   ===================================================================== */

/* Subcategory line (formerly .catline) */
.card .card-subcategory {
  text-align: center;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
  position: relative;  /* ADD */
  z-index: 2;          /* ADD - above vibe-badge */
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 18px !important;
}

.card .card-subcategory .sep { opacity: .45; }

/* Activity title (formerly h4) */
.card .card-activity {
  text-align: center;
  font-weight: 800;
  font-size: 2.2rem;
  margin: .6rem 0 .7rem;
  line-height: 2.4rem;
  color: #000;
}

/* Description text (formerly .meta / .desc) */
.card .card-description {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.45rem;
  text-align: center;
}

/* =====================================================================
   VIBE BADGES (corner emoji indicators: 🧁, 🖤, 😈)
   ===================================================================== */
.card .vibe-badge {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 48%;
  display: grid;
  place-items: center;
  background: #fff;
  user-select: none;
  font-size: 26px;
  pointer-events: none;
  line-height: 42px;
  transition: none !important;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", ui-sans-serif, system-ui, sans-serif;
  backface-visibility: hidden;
  will-change: transform;
  contain: layout paint;
  image-rendering: auto;
}

.card .vibe-badge.tl {
  top: 3px;
  left: 3px;
  transform: translateZ(0);
}

.card .vibe-badge.br {
  right: 3px;
  bottom: 3px;
  transform: rotate(180deg) translateZ(0);
}

/* =====================================================================
   FLAGS ROW (emoji flag indicators)
   ===================================================================== */
   
.card .flags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  font-size: 18px;
  margin: 0.2rem 0 0;
}

.card .flags-row .flag-emoji,
.card .flags-row span {
  font-size: 25px;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  cursor: help;
  display: inline-block;
  margin: 0 0px;
}

/* =====================================================================
   TOY CATEGORY PILLS
   ===================================================================== */

.toys-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0.7rem 0 0.65rem;
  width: 100%;
  text-align: center;
}

.toy-pill,
.toys-row span {
  display: inline-block;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #000;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 450;
  cursor: help;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

/* Flags push to bottom in flex column */
.card > .flags-row {
  margin-top: auto;
  padding-top: 8px;
  width: 100%;
}

/* =====================================================================
   SWIPE ACTIONS (buttons)
   ===================================================================== */
.swipe-actions {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  display: none;
  gap: 6px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.card.is-active .swipe-actions { display: flex; }

.swipe-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(16,17,19,.10);
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, border-color .2s ease;
}

.swipe-btn.big {
  width: 58px;
  height: 58px;
  font-size: 30px;
}

.swipe-btn:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 16px 30px rgba(16,17,19,.16);
}

/* =====================================================================
   CHOICE OVERLAY (drag feedback)
   ===================================================================== */
.card .choice-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 99;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 
    0 14px 30px rgba(0,0,0,.2),
    0 0 0 4px color-mix(in srgb, var(--accent) 60%, var(--accent-2) 40%);
}

.card .choice-overlay .label-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .6rem .9rem;
  border-radius: 16px;
}

.card .choice-overlay .emoji {
  font-size: 80px;
  line-height: 1;
  margin-bottom: 2rem;
}

.card .choice-overlay .text {
  font-weight: 900;
  font-size: 36px;
  letter-spacing: .2px;
  text-align: center;
  color: #0d1016;
  text-transform: uppercase;
}



/* =====================================================================
   TOOLTIP SYSTEM
   ===================================================================== */
[data-tooltip] {
  position: relative;
  cursor: help !important;
}

.tooltip-container {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: normal;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  max-width: 360px;
  text-align: center;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  transform: translateY(4px);
}

.tooltip-container.show {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-container.position-below {
  transform: translateY(-4px);
}

.tooltip-container.position-below.show {
  transform: translateY(0);
}

.tooltip-container.multiline {
  white-space: normal !important;
  max-width: 300px;
  min-width: 150px;
  text-align: center;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}




/* =====================================================================
   CARD BASE STYLES (border, shadow, transitions)
   ===================================================================== */
.card {
  border: none !important;
  box-shadow: rgb(255, 255, 255) 0px 0px 0px 16px inset, rgba(0, 0, 0, 0.14) 0px 10px 18px;
  outline: 4px solid transparent;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), outline-color 0.5s ease, box-shadow 0.5s ease;
}


.card.nowKink,
.card.favKink,
.card.doneKink,
.card.nowKink.favKink,
.card.nowKink.doneKink,
.card.favKink.doneKink,
.card.nowKink.favKink.doneKink {
  padding: 28px 28px 12px !important;
}

/* Card hover state (default cards) */
.card:not(.nowKink):not(.favKink):not(.doneKink):hover {
  outline: 4px solid color-mix(in srgb, var(--accent) 60%, var(--accent-2) 40%);
}

/* Smooth scale up on hover for ALL cards */
.card:hover {
  transform: scale(calc(var(--card-scale, 1) * 1.02)) !important;
}

/* =====================================================================
   CARD GLOW STATES (outline + pulse animations)
   ===================================================================== */

/* nowKink - Pink glow */
.card.nowKink {
  outline: 4px solid #FF4FA0;
  animation: pinkGlowPulse 2s ease-in-out infinite;
}

/* favKink - Purple glow */
.card.favKink {
  outline: 4px solid #B24BF3;
  animation: purpleGlowPulse 2s ease-in-out infinite;
}

/* doneKink - Green glow */
.card.doneKink {
  outline: 4px solid #22c55e;
  animation: greenGlowPulse 2s ease-in-out infinite;
}

/* Combined: nowKink + favKink */
.card.nowKink.favKink {
  outline-color: #D94AC7;
  animation: mixedGlowPulse 2s ease-in-out infinite;
}

/* Combined: nowKink + doneKink */
.card.nowKink.doneKink:not(.favKink) {
  outline-color: #FF4FA0;
  animation: pinkGlowPulse 2s ease-in-out infinite;
}

/* Combined: favKink + doneKink */
.card.favKink.doneKink:not(.nowKink) {
  outline-color: #B24BF3;
  animation: purpleGlowPulse 2s ease-in-out infinite;
}

/* Combined: all three */
.card.nowKink.favKink.doneKink {
  outline-color: #D94AC7;
  animation: mixedGlowPulse 2s ease-in-out infinite;
}

/* Override hover styles for state cards */
.card.nowKink:hover,
.card.favKink:hover,
.card.doneKink:hover,
.card.nowKink.favKink:hover,
.card.nowKink.doneKink:hover,
.card.favKink.doneKink:hover,
.card.nowKink.favKink.doneKink:hover {
  transform: scale(calc(var(--card-scale, 1) * 1.02)) !important;
}

/* Override for card-container context (kinkcard.html preview) */
.card-container .card:hover {
  transform: scale(calc(var(--card-scale, 1) * 1.02)) !important;
}

/* =====================================================================
   GLOW PULSE ANIMATIONS
   ===================================================================== */
@keyframes pinkGlowPulse {
  0%, 100% {
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 16px inset, rgba(0, 0, 0, 0.14) 0px 10px 18px,
      0 0 15px rgba(255, 79, 160, 0.4), 0 0 30px rgba(255, 121, 176, 0.3), 0 0 50px rgba(230, 62, 140, 0.2);
  }
  50% {
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 16px inset, rgba(0, 0, 0, 0.14) 0px 10px 18px,
      0 0 20px rgba(255, 79, 160, 0.6), 0 0 40px rgba(255, 121, 176, 0.5), 0 0 70px rgba(230, 62, 140, 0.3);
  }
}

@keyframes purpleGlowPulse {
  0%, 100% {
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 16px inset, rgba(0, 0, 0, 0.14) 0px 10px 18px,
      0 0 15px rgba(178, 75, 243, 0.4), 0 0 30px rgba(196, 78, 230, 0.3), 0 0 50px rgba(142, 68, 173, 0.2);
  }
  50% {
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 16px inset, rgba(0, 0, 0, 0.14) 0px 10px 18px,
      0 0 20px rgba(178, 75, 243, 0.6), 0 0 40px rgba(196, 78, 230, 0.5), 0 0 70px rgba(142, 68, 173, 0.3);
  }
}

@keyframes greenGlowPulse {
  0%, 100% {
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 16px inset, rgba(0, 0, 0, 0.14) 0px 10px 18px,
      0 0 15px rgba(34, 197, 94, 0.3), 0 0 30px rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 16px inset, rgba(0, 0, 0, 0.14) 0px 10px 18px,
      0 0 20px rgba(34, 197, 94, 0.5), 0 0 40px rgba(34, 197, 94, 0.3);
  }
}

@keyframes mixedGlowPulse {
  0%, 100% {
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 16px inset, rgba(0, 0, 0, 0.14) 0px 10px 18px,
      0 0 15px rgba(217, 74, 199, 0.4), 0 0 30px rgba(217, 74, 199, 0.3), 0 0 50px rgba(217, 74, 199, 0.2);
  }
  50% {
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 16px inset, rgba(0, 0, 0, 0.14) 0px 10px 18px,
      0 0 20px rgba(217, 74, 199, 0.6), 0 0 40px rgba(217, 74, 199, 0.5), 0 0 70px rgba(217, 74, 199, 0.3);
  }
}

/* Match-item pulse animations (reduced intensity) */
@keyframes pinkGlowPulseItem {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 79, 160, 0.2), 0 0 15px rgba(255, 79, 160, 0.1); }
  50% { box-shadow: 0 0 12px rgba(255, 79, 160, 0.35), 0 0 25px rgba(255, 79, 160, 0.2); }
}

@keyframes purpleGlowPulseItem {
  0%, 100% { box-shadow: 0 0 8px rgba(178, 75, 243, 0.2), 0 0 15px rgba(178, 75, 243, 0.1); }
  50% { box-shadow: 0 0 12px rgba(178, 75, 243, 0.35), 0 0 25px rgba(178, 75, 243, 0.2); }
}

@keyframes greenGlowPulseItem {
  0%, 100% { box-shadow: 0 0 6px rgba(34, 197, 94, 0.15), 0 0 12px rgba(34, 197, 94, 0.08); }
  50% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.25), 0 0 20px rgba(34, 197, 94, 0.15); }
}

@keyframes mixedGlowPulseItem {
  0%, 100% { box-shadow: 0 0 8px rgba(217, 74, 199, 0.2), 0 0 15px rgba(217, 74, 199, 0.1); }
  50% { box-shadow: 0 0 12px rgba(217, 74, 199, 0.35), 0 0 25px rgba(217, 74, 199, 0.2); }
}

/* =====================================================================
   DRAG CURSORS
   ===================================================================== */
.card {
  cursor: grab;
}

.card.dragging,
.card:active {
  cursor: grabbing;
}

/* Keep interactive controls as pointer */
.card .toy-pill { cursor: help; }
.card .flag-emoji { cursor: help; }
[data-tooltip]:not(.action-btn) { cursor: help; }
.action-pill, .action-pill * { cursor: pointer !important; }


/* =====================================================================
   TEXT SELECTION PREVENTION
   ===================================================================== */
.card .card-subcategory,
.card .card-activity,
.card .card-description,
.card .vibe-badge,
.card .flags-row,
.card .flag-emoji,
.toy-pill {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}



/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .card,
  .card > .km-pose,
  .tooltip-container,
  .card .choice-overlay {
    transition: none;
  }

  .card.nowKink,
  .card.favKink,
  .match-item.nowKink,
  .match-item.favKink,
  .match-category.ready-now,
  .match-category.favorites-glow {
    animation: none;
  }
}


/* =====================================================================
   =====================================================================
   MATCH ITEMS — List View of KinkCards
   =====================================================================
   ===================================================================== */


/* =====================================================================
   MATCH CATEGORY CONTAINERS
   ===================================================================== */
.match-category {
  margin-bottom: 40px;
  margin-top: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.match-category h2 {
  font-size: 1.8rem;
  margin: 0 0 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0px;
  color: #fff;
}

/* Category title emoji coloring */
.match-category h2 .cat-emoji {
  display: inline-block;
  margin-right: 8px;
}

/* Ready Now / Perfect Matches - Pink */
.match-category.ready-now h2 .cat-emoji,
.match-category[data-category-id="perfect-matches"] h2 .cat-emoji {
  background: linear-gradient(135deg, #ff4fa0, #ff79b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255, 79, 160, 0.5));
}

/* Matches - Purple/Blue */
.match-category.matches h2 .cat-emoji,
.match-category[data-category-id="matches"] h2 .cat-emoji {
  background: linear-gradient(135deg, #6a6af6, #9b9bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(106, 106, 246, 0.5));
}

/* To Discuss - Orange/Yellow */
.match-category.to-discuss h2 .cat-emoji,
.match-category[data-category-id="to-discuss"] h2 .cat-emoji {
  background: linear-gradient(135deg, #ffa726, #ffcc02);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255, 167, 38, 0.5));
}

/* Shared Boundaries - Gray/Silver */
.match-category.shared-boundaries h2 .cat-emoji,
.match-category[data-category-id="shared-boundaries"] h2 .cat-emoji {
  background: linear-gradient(135deg, #78909c, #b0bec5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(120, 144, 156, 0.5));
}

.match-category .description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin: 0 0 20px;
}

.match-category .count-badge {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 6px;
  min-width: 50px;
  text-align: center;
}

/* =====================================================================
   MATCH CATEGORY VARIANTS
   ===================================================================== */

/* Ready Now / Hot Now - Pink pulsing glow */
.match-category.ready-now {
  background: rgba(255, 79, 160, 0.1);
  border: 2px solid rgba(255, 79, 160, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 79, 160, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 79, 160, 0.5); }
}

.match-category.ready-now h2 {
  background: linear-gradient(90deg, #FF4FA0, #FF79B0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Perfect Match - Dark green styling */
.match-category.perfect-match {
  background: rgba(20, 154, 91, 0.1);
  border: 2px solid rgba(20, 154, 91, 0.3);
}

.match-category.perfect-match h2 {
  color: #149a5b;
}


/* Favorites - Purple pulsing glow */
.match-category.favorites-glow {
  background: rgba(178, 75, 243, 0.1);
  border: 2px solid rgba(178, 75, 243, 0.3);
  animation: pulseGlowPurpleCat 2s ease-in-out infinite;
}

@keyframes pulseGlowPurpleCat {
  0%, 100% { box-shadow: 0 0 20px rgba(178, 75, 243, 0.3); }
  50% { box-shadow: 0 0 40px rgba(178, 75, 243, 0.5); }
}

.match-category.favorites-glow h2 {
  background: linear-gradient(90deg, #B24BF3, #9B59B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* In Favorites section, all items get purple border glow effect */
.match-category.favorites-glow .match-item {
  position: relative;
  border-left: 14px solid #B24BF3 !important;
}

.match-category.favorites-glow .match-item::after {
  content: '';
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  width: 14px;
  background: transparent;
  border-radius: 12px 0 0 12px;
  z-index: 0;
  box-shadow: 0 0 12px rgba(178, 75, 243, 0.4), 0 0 20px rgba(155, 89, 182, 0.2);
}

/* =====================================================================
   MATCH CATEGORY BUTTON VISIBILITY RULES
   ===================================================================== */

/* Hide nowKink and favKink buttons in "Not For Now" and "Boundaries" categories */
.match-category[data-category-id="notfornow"] .nowKink-button,
.match-category[data-category-id="notfornow"] .favKink-button,
.match-category[data-category-id="no"] .nowKink-button,
.match-category[data-category-id="no"] .favKink-button {
  display: none;
}

/* =====================================================================
   MATCH CATEGORY DRAG TARGETS
   ===================================================================== */
.match-category.drag-target {
  outline: 3px dashed var(--accent);
  outline-offset: -3px;
  background: rgba(255, 79, 160, 0.05);
}

.match-category.drag-target-up {
  outline-color: #9be576;
}

.match-category.drag-target-down {
  outline-color: #ff8c1a;
}

/* =====================================================================
   MATCH CATEGORY COLLAPSE/EXPAND
   ===================================================================== */
.category-toggle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.category-toggle:hover {
  color: var(--accent);
}

.category-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.match-category .match-list {
  overflow: visible;
  opacity: 1;
}

.match-category.collapsed .match-list,
.match-category.collapsed .description {
  display: none;
}

.match-category.collapsed .category-toggle::before {
  content: 'SHOW';
}

.match-category:not(.collapsed) .category-toggle::before {
  content: 'HIDE';
}

/* =====================================================================
   MATCH LIST CONTAINER
   ===================================================================== */
.match-list {
  display: grid;
  gap: 0px;
}

/* =====================================================================
   MATCH ITEM BASE
   ===================================================================== */
.match-item {
  position: relative;
  padding: 20px 36px 20px 20px;   /* right padding clears the drag-handle */
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid transparent;
  border-left: 14px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.5s ease, box-shadow 0.5s ease, background-color 0.5s ease;
  cursor: pointer;
  user-select: none;
}

/* Content area must shrink so text doesn't bleed past the handle */
.match-item > div:first-child {
  min-width: 0;
  flex: 1;
}

/* Override hover translateX */
.match-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none !important;
}

/* =====================================================================
   MATCH ITEM GLOW STATES
   ===================================================================== */

/* nowKink - Pink glow */
.match-item.nowKink {
  border-color: #FF4FA0 !important;
  border-left-color: #FF4FA0 !important;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 79, 160, 0.5) 0%, rgba(255, 79, 160, 0.5) 100%) !important;
  animation: pinkGlowPulseItem 2s ease-in-out infinite;
}

/* favKink - Purple glow */
.match-item.favKink {
  border-color: #B24BF3 !important;
  border-left-color: #B24BF3 !important;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(178, 75, 243, 0.5) 0%, rgba(178, 75, 243, 0.5) 100%) !important;
  animation: purpleGlowPulseItem 2s ease-in-out infinite;
}

/* doneKink - Green glow */
.match-item.doneKink {
  border-color: #22c55e !important;
  border-left-color: #22c55e !important;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.12) 100%) !important;
  animation: greenGlowPulseItem 2s ease-in-out infinite;
}

/* Combined: nowKink + favKink */
.match-item.nowKink.favKink {
  border-color: #D94AC7 !important;
  border-left-color: #D94AC7 !important;
  background: linear-gradient(135deg, rgba(217, 74, 199, 0.5) 0%, rgba(217, 74, 199, 0.5) 100%) !important;
  animation: mixedGlowPulseItem 2s ease-in-out infinite;
}

/* Combined: nowKink + doneKink */
.match-item.nowKink.doneKink:not(.favKink) {
  border-color: #FF4FA0 !important;
  border-left-color: #FF4FA0 !important;
  background: linear-gradient(135deg, rgba(255, 79, 160, 0.5) 0%, rgba(255, 79, 160, 0.5) 100%) !important;
  animation: pinkGlowPulseItem 2s ease-in-out infinite;
}

/* Combined: favKink + doneKink */
.match-item.favKink.doneKink:not(.nowKink) {
  border-color: #B24BF3 !important;
  border-left-color: #B24BF3 !important;
  background: linear-gradient(135deg, rgba(178, 75, 243, 0.5) 0%, rgba(178, 75, 243, 0.5) 100%) !important;
  animation: purpleGlowPulseItem 2s ease-in-out infinite;
}

/* Combined: all three */
.match-item.nowKink.favKink.doneKink {
  border-color: #D94AC7 !important;
  border-left-color: #D94AC7 !important;
  background: linear-gradient(135deg, rgba(217, 74, 199, 0.5) 0%, rgba(217, 74, 199, 0.5) 100%) !important;
  animation: mixedGlowPulseItem 2s ease-in-out infinite;
}

/* =====================================================================
   MATCH ITEM VIBE INDICATOR (inside content area)
   ===================================================================== */
.match-item .vibe-indicator {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.match-item .vibe-indicator span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 1.45rem;
    background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 50%;
}

/* =====================================================================
   MATCH ITEM SWIPE RESULT STATES (border colors)
   ===================================================================== */
.match-item.yes { border-left-color: #149a5b; }
.match-item.interested { border-left-color: #9be576; }
.match-item.notfornow { border-left-color: #ff8c1a; }
.match-item.no { border-left-color: #f03a47; }
.match-item.favorite { border-left-color: #B24BF3; }
.match-item.nowKink-type { border-left-color: var(--accent); }
.match-item.completed { border-left-color: #22c55e; }

/* =====================================================================
   MATCH ITEM DRAG HANDLE
   ===================================================================== */
.match-item .drag-handle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 12px 12px 0;
  cursor: grab;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-item .drag-handle::before {
  content: '';
  width: 8px;
  height: 16px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px);
  background-size: 4px 4px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.match-item:hover .drag-handle {
  background: rgba(255, 255, 255, 0.1);
}

.match-item:hover .drag-handle::before {
  opacity: 1;
}

.match-item .drag-handle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.match-item.dragging .drag-handle {
  background: rgba(255, 255, 255, 0.2);
  cursor: grabbing;
}

.match-item.dragging {
  opacity: 0.4;
  cursor: grabbing !important;
}


/* =====================================================================
   MATCH ITEM CONTENT (name, meta, expandable)
   ===================================================================== */
.match-item .meta {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .002em;
  display: block;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-item .meta span {
  background: linear-gradient(90deg, var(--accent), var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.match-item .name {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  padding-top: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.match-item .expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.match-item.expanded .expandable-content {
  max-height: 500px;
  margin-top: 16px;
  opacity: 1;
}

.match-item .description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0rem;
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 400;
  max-width: 80%;
}

.match-item .flags-row {
  font-size: 26px;
  text-align: left;
  margin: 0;
  padding-left: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.match-item .flags-row span:not(.toy-pill) {
  cursor: help;
  display: inline-block;
  transition: transform 0.3s ease;
}

.match-item .flags-row span:not(.toy-pill):hover {
  transform: scale(1.2);
}

.match-item .toys-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-left: 4px;
  justify-content: flex-start;
}

.match-item .flags-row .toy-pill {
  all: initial !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #000 !important;
  border-radius: 20px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 450 !important;
  line-height: 1 !important;
  height: 30px !important;
  cursor: help !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  pointer-events: auto !important;
  margin-left: 4px !important;
  box-sizing: border-box !important;
}

.match-item .flags-row .toy-pill:hover {
  background: #f0f0f0 !important;
  transform: scale(1.05) !important;
}

/* Match-item spacing */
.match-item {
  margin-bottom: 14px;
}

.match-item:last-child {
  margin-bottom: 0;
}

/* =====================================================================
   ACTION PILL SYSTEM - Cards & Match Items
   ===================================================================== */

/* Hide old match-item-buttons */
.match-item .match-item-buttons {
  display: none !important;
}

/* Action pill base styles */
.action-pill {
  display: flex;
  gap: 7px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 99px;
  padding: 7px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
  z-index: 100;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.action-pill.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.action-pill .action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer !important;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  filter: grayscale(60%) opacity(0.6);
}

.action-pill .action-btn:hover {
  filter: grayscale(30%) opacity(0.8);
  transform: scale(1.15);
}

.action-pill .action-btn.active {
  filter: none;
}

/* Done button specific styling */
.action-pill .action-btn[data-action="doneKink"] {
  font-size: 22px;
  font-weight: bold;
  color: #888;
  background: transparent;
}

.action-pill .action-btn[data-action="doneKink"]:hover {
  color: color-mix(in srgb, #22c55e 60%, #555 40%);
}

.action-pill .action-btn[data-action="doneKink"].active {
  background: #22c55e;
  color: #fff;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
}

/* Action pill - Card position */
.card .action-pill {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
}

.card .action-pill.visible {
  transform: translateX(-50%) scale(1);
}





/* Show on card hover (desktop) */
@media (hover: hover) {
  .card:hover .action-pill {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
  }
}

/* Action pill - Match item position */
.match-item .action-pill {
  position: absolute;
  right: 44px;
  top: 23px;
  transform: scale(0.8);
}

.match-item .action-pill.visible {
  transform: scale(1);
}

.match-item .action-pill .action-btn {
  width: 29px;
  height: 29px;
  font-size: 16px;
}

.match-item .action-pill .action-btn[data-action="doneKink"] {
  font-size: 19px;
}

/* Show on match-item hover (desktop) */
@media (hover: hover) {
  .match-item:hover .action-pill {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
}

/* Touch device support */
@media (hover: none) {
  .card.tapped .action-pill {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
  }
  
  .match-item.tapped .action-pill {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
}

/* =====================================================================
   DONE INDICATOR - Green circle
   ===================================================================== */

/* Card done indicator */
.card .done-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #22c55e;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
  z-index: 50;
}

.card .done-indicator::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.card.doneKink .done-indicator {
  display: flex;
}

/* Match-item done indicator */
.match-item .done-indicator {
  position: absolute;
  top: 8px;
  right: 35px;
  width: 20px;
  height: 20px;
  background: #22c55e;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
  z-index: 50;
  opacity: 0.75;
}

.match-item .done-indicator::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: bold;
}

.match-item.doneKink .done-indicator {
  display: flex;
}


/* =====================================================================
   MATCH ITEM MISC STATES
   ===================================================================== */
.empty-category {
  text-align: center;
  padding: 30px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.match-item.animating {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

/* =====================================================================
   MATCH ITEM RESPONSIVE
   ===================================================================== */
@media (max-width: 800px) {
  .match-category {
    padding: 20px 16px;
    margin-bottom: 28px;
    margin-top: 28px;
    border-radius: 12px;
  }

  .match-category h2 {
    font-size: 1.35rem;
    gap: 0;
  }

  .match-category .count-badge {
    font-size: 1.2rem;
    padding: 8px 10px;
    min-width: 40px;
  }

  .match-category .description {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }

  .category-right {
    gap: 8px;
  }

  .match-item {
    padding: 14px 30px 14px 16px;
    border-left-width: 10px;
    margin-bottom: 10px;
  }

  .match-item .name {
    font-size: 1.15rem;
  }

  .match-item .meta {
    font-size: 0.7rem;
  }

  .match-item .vibe-indicator {
    left: 3px;
  }

  .match-item .vibe-indicator span {
    width: 24px;
    height: 24px;
    font-size: 1.15rem;
  }

  .match-item .drag-handle {
    width: 22px;
  }

  .match-item .done-indicator {
    right: 28px;
    width: 18px;
    height: 18px;
  }

  .match-item .done-indicator::after {
    font-size: 10px;
  }

  .match-item .action-pill {
    right: 30px;
    top: 16px;
  }

  .match-item .action-pill .action-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .match-item .action-pill .action-btn[data-action="doneKink"] {
    font-size: 16px;
  }

  .match-item .description {
    font-size: 0.9rem;
    max-width: 90%;
  }

  .match-item .flags-row {
    font-size: 22px;
    gap: 6px;
  }

  .match-item .flags-row .toy-pill {
    font-size: 11px !important;
    height: 26px !important;
    padding: 0 8px !important;
  }
}

@media (max-width: 480px) {
  .match-category {
    padding: 14px 12px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 10px;
  }

  .match-category h2 {
    font-size: 1.15rem;
  }

  .match-category .count-badge {
    font-size: 1rem;
    padding: 6px 8px;
    min-width: 34px;
  }

  .match-category .description {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .match-item {
    padding: 12px 24px 12px 14px;
    border-left-width: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .match-item .name {
    font-size: 1rem;
    padding-top: 2px;
  }

  .match-item .meta {
    font-size: 0.62rem;
  }

  .match-item .description {
    font-size: 0.82rem;
    max-width: 95%;
  }

  .match-item .vibe-indicator {
    left: 2px;
  }

  .match-item .vibe-indicator span {
    width: 20px;
    height: 20px;
    font-size: 1rem;
  }

  .match-item .drag-handle {
    width: 18px;
  }

  .match-item .drag-handle::before {
    width: 6px;
    height: 12px;
    background-size: 3px 3px;
  }

  .match-item .flags-row {
    font-size: 20px;
    gap: 4px;
  }

  .match-item .flags-row .toy-pill {
    font-size: 10px !important;
    height: 22px !important;
    padding: 0 6px !important;
  }
}


/* =====================================================================
   =====================================================================
   COUPLE STATS SECTION (immersive style - no boxes)
   =====================================================================
   ===================================================================== */

.couple-stats-section {
  padding: 20px 0 32px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.couple-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 16px;
}

.couple-stat-card {
  background: transparent;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.couple-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  order: 1;
}

.couple-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  order: 2;
}

/* Responsive couple stats */
@media (max-width: 1024px) {
  .couple-stats-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .couple-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .couple-stat-emoji {
    font-size: 1.4rem;
  }
  
  .couple-stat-value {
    font-size: 1.2rem;
  }
  
.couple-stat-label {
    font-size: 0.6rem;
  }
}

/* =====================================================================
   VIEW TOGGLE - LAYOUT A (Classic iOS - labels on sides)
   ===================================================================== */
.view-toggle-a {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.view-toggle-a .option {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.view-toggle-a .option.active {
  color: #fff;
}

.view-toggle-a .switch-track {
  width: 46px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  position: relative;
  transition: background 0.3s ease;
}

.view-toggle-a.cards .switch-track {
  background: var(--accent);
}

.view-toggle-a .switch-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.view-toggle-a.cards .switch-thumb {
  transform: translateX(20px);
}

/* =====================================================================
   VIEW TOGGLE - LAYOUT D (Active label above)
   ===================================================================== */
.view-toggle-d {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.view-toggle-d .active-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.15s ease;
}

.view-toggle-d .switch-track {
  width: 46px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  position: relative;
  transition: background 0.3s ease;
}

.view-toggle-d.cards .switch-track {
  background: var(--accent);
}

.view-toggle-d .switch-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.view-toggle-d.cards .switch-thumb {
  transform: translateX(20px);
}