/* ═══════════════════════════════════════════════════════════
   FCC Wish Lists Premium — wishlist-premium.css
   Scoped to #wishlists / .wlp-* (modals render inside
   #wishlistsPageContent as .wlp-modal-overlay).
   Loads after core stylesheets so it wins ties.
   ═══════════════════════════════════════════════════════════ */

#wishlists,
.wlp-modal-overlay {
  --wlp-purple: #8b5cf6;
  --wlp-purple-deep: #6d28d9;
  --wlp-magenta: #d946ef;
  --wlp-ink: #1f2340;
  --wlp-muted: #6b6688;
  --wlp-line: rgba(139, 92, 246, 0.16);
  --wlp-line-soft: rgba(139, 92, 246, 0.1);
  --wlp-green: #16a34a;
  --wlp-blue: #2563eb;
  --wlp-amber: #d97706;
  --wlp-card-shadow: 0 18px 45px rgba(76, 54, 130, 0.12);
  --wlp-card-shadow-sm: 0 10px 26px rgba(76, 54, 130, 0.09);
  --wlp-grad: linear-gradient(135deg, #8b5cf6 0%, #c026d3 100%);
}

#wishlists .wlp-shell {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 44px;
}

/* ── Hero row ────────────────────────────────────────────── */
#wishlists .wlp-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
  align-items: stretch;
}

#wishlists .wlp-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  background: linear-gradient(115deg, #ece3ff 0%, #e9dcff 38%, #f3ddf6 70%, #e4d2fb 100%);
  border: 1px solid var(--wlp-line);
  border-radius: 28px;
  padding: 28px 32px 26px;
  box-shadow: var(--wlp-card-shadow);
  overflow: hidden;
}

#wishlists .wlp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.6) 0%, transparent 42%),
    radial-gradient(circle at 70% 90%, rgba(244, 188, 255, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 5% 100%, rgba(255, 255, 255, 0.4) 0%, transparent 38%);
  pointer-events: none;
}

#wishlists .wlp-hero-art {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 158px;
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 60%),
    linear-gradient(150deg, #f1e8ff 0%, #e2d1ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(109, 40, 217, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#wishlists .wlp-hero-gift {
  font-size: 84px;
  line-height: 1;
  filter: hue-rotate(258deg) saturate(1.25) drop-shadow(0 12px 18px rgba(109, 40, 217, 0.28));
}

#wishlists .wlp-hero-spark {
  position: absolute;
  color: #b388ff;
  font-size: 15px;
}
#wishlists .wlp-spark-1 { top: 14px; right: 18px; }
#wishlists .wlp-spark-2 { bottom: 18px; left: 14px; font-size: 11px; opacity: 0.75; }

#wishlists .wlp-hero-main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
}

#wishlists .wlp-hero-title {
  margin: 0 0 8px;
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--wlp-ink);
  background: linear-gradient(120deg, #6d28d9 0%, #a21caf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#wishlists .wlp-hero-title-soft {
  background: none;
  -webkit-text-fill-color: var(--wlp-ink);
  color: var(--wlp-ink);
}

#wishlists .wlp-hero-subtitle {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 600;
  color: #534d75;
}

#wishlists .wlp-hero-support {
  margin: 0 0 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--wlp-muted);
}

#wishlists .wlp-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

#wishlists .wlp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 92px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.08);
  backdrop-filter: blur(6px);
}

#wishlists .wlp-stat-num {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
}
#wishlists .wlp-stat-active .wlp-stat-num { color: #7c3aed; }
#wishlists .wlp-stat-ready .wlp-stat-num { color: var(--wlp-blue); }
#wishlists .wlp-stat-purchased .wlp-stat-num { color: var(--wlp-green); }
#wishlists .wlp-stat-given .wlp-stat-num { color: var(--wlp-amber); }

#wishlists .wlp-stat-active { border-color: rgba(124, 58, 237, 0.22); }
#wishlists .wlp-stat-ready { border-color: rgba(37, 99, 235, 0.2); }
#wishlists .wlp-stat-purchased { border-color: rgba(22, 163, 74, 0.2); }
#wishlists .wlp-stat-given { border-color: rgba(217, 119, 6, 0.22); }

#wishlists .wlp-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wlp-muted);
  white-space: nowrap;
}

#wishlists .wlp-hero-cta {
  margin-top: 16px;
}

/* ── Buttons ─────────────────────────────────────────────── */
#wishlists .wlp-btn-primary,
.wlp-modal-overlay .wlp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  background: var(--wlp-grad);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#wishlists .wlp-btn-primary:hover,
.wlp-modal-overlay .wlp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.45);
  filter: brightness(1.04);
}

#wishlists .wlp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 16px;
  border: 1px solid var(--wlp-line);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.08);
  color: var(--wlp-purple-deep);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
#wishlists .wlp-btn-ghost:hover { background: rgba(139, 92, 246, 0.15); }

#wishlists .wlp-btn-soft {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #e6e0f7;
  border-radius: 999px;
  background: #f5f2fc;
  color: #5b21b6;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
#wishlists .wlp-btn-soft:hover { background: #ece6fa; border-color: #d8cdf2; }

#wishlists .wlp-link-btn {
  border: none;
  background: none;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--wlp-muted);
  cursor: pointer;
  border-radius: 10px;
  white-space: nowrap;
}
#wishlists .wlp-link-btn:hover { color: var(--wlp-purple-deep); background: rgba(139, 92, 246, 0.07); }
#wishlists .wlp-link-accent { color: var(--wlp-purple-deep); }

.wlp-modal-overlay .wlp-btn-danger {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.wlp-modal-overlay .wlp-btn-danger:hover { background: #fee2e2; }

/* ── Upcoming card ───────────────────────────────────────── */
#wishlists .wlp-upcoming {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--wlp-line);
  box-shadow: var(--wlp-card-shadow-sm);
  backdrop-filter: blur(8px);
}

#wishlists .wlp-upcoming-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wlp-muted);
}

#wishlists .wlp-upcoming-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
}

#wishlists .wlp-upcoming-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffe9f4, #f3e2ff);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.1);
}

#wishlists .wlp-upcoming-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--wlp-ink);
}

#wishlists .wlp-upcoming-days {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--wlp-purple-deep);
}

/* ── Filter bar ──────────────────────────────────────────── */
#wishlists .wlp-filterbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--wlp-line);
  box-shadow: var(--wlp-card-shadow-sm);
  backdrop-filter: blur(8px);
}

#wishlists .wlp-filter-row1 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#wishlists .wlp-search {
  position: relative;
  flex: 1 1 230px;
  min-width: 200px;
}

#wishlists .wlp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.55;
  pointer-events: none;
}

#wishlists .wlp-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px 10px 38px;
  border: 1px solid #e6e0f7;
  border-radius: 999px;
  background: #fbfaff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--wlp-ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#wishlists .wlp-search input:focus {
  border-color: var(--wlp-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

#wishlists .wlp-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#wishlists .wlp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 7px;
  border: 1px solid #e6e0f7;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--wlp-ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
#wishlists .wlp-chip:hover { border-color: #d8cdf2; background: #faf8ff; }

#wishlists .wlp-chip.is-active {
  background: var(--wlp-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.35);
}

#wishlists .wlp-chip-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.1);
}
#wishlists .wlp-chip.is-active .wlp-chip-icon { background: rgba(255, 255, 255, 0.25); }

#wishlists .wlp-filter-row2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#wishlists .wlp-select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  flex: 0 0 auto;
  padding: 8px 30px 8px 14px;
  border: 1px solid #e6e0f7;
  border-radius: 13px;
  background:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6688' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 12px center,
    #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wlp-ink);
  cursor: pointer;
  outline: none;
}
#wishlists .wlp-select:focus { border-color: var(--wlp-purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14); }

#wishlists .wlp-filter-spacer,
.wlp-modal-overlay .wlp-filter-spacer { flex: 1 1 auto; }

/* Toggle switch */
#wishlists .wlp-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

#wishlists .wlp-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

#wishlists .wlp-switch-track {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #e5e0f2;
  transition: background 0.18s ease;
}

#wishlists .wlp-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31, 35, 64, 0.25);
  transition: transform 0.18s ease;
}

#wishlists .wlp-switch input:checked + .wlp-switch-track { background: var(--wlp-grad); }
#wishlists .wlp-switch input:checked + .wlp-switch-track::after { transform: translateX(16px); }
#wishlists .wlp-switch input:focus-visible + .wlp-switch-track { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }

#wishlists .wlp-switch-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wlp-muted);
  white-space: nowrap;
}

/* ── Avatars ─────────────────────────────────────────────── */
#wishlists .wlp-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.18);
}

#wishlists .wlp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#wishlists .wlp-avatar-emoji { font-size: 19px; background: linear-gradient(135deg, #f1e8ff, #e2d1ff); }
#wishlists .wlp-avatar-initial { font-size: 15px; font-weight: 800; color: #fff; }
#wishlists .wlp-avatar-family { font-size: 17px; background: linear-gradient(135deg, #ffe9f4, #e2d1ff); }

#wishlists .wlp-avatar-chip { width: 24px; height: 24px; border-width: 1.5px; box-shadow: none; }
#wishlists .wlp-avatar-chip.wlp-avatar-initial { font-size: 11px; }
#wishlists .wlp-avatar-chip.wlp-avatar-emoji { font-size: 13px; }
#wishlists .wlp-avatar-section { width: 38px; height: 38px; }

/* ── Child group sections ────────────────────────────────── */
#wishlists .wlp-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#wishlists .wlp-group {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--wlp-line);
  box-shadow: var(--wlp-card-shadow-sm);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

#wishlists .wlp-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
#wishlists .wlp-group-head:hover { background: rgba(139, 92, 246, 0.04); }

#wishlists .wlp-group.is-open .wlp-group-head { border-bottom: 1px solid var(--wlp-line-soft); }

#wishlists .wlp-group-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--wlp-ink);
}

#wishlists .wlp-group-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--wlp-muted);
}

#wishlists .wlp-group-chevron {
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
  color: var(--wlp-muted);
  transform: translateY(-2px);
  transition: transform 0.18s ease;
}
#wishlists .wlp-group.is-open .wlp-group-chevron { transform: translateY(2px) rotate(180deg); }

#wishlists .wlp-group-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 16px;
}

#wishlists .wlp-group-empty {
  margin: 4px 4px 8px;
  font-size: 13.5px;
  color: var(--wlp-muted);
}

/* ── Item cards ──────────────────────────────────────────── */
#wishlists .wlp-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1.25fr) minmax(200px, 0.95fr) auto;
  grid-template-areas: 'img info rail actions';
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fcfbff;
  border: 1px solid #ece7f9;
  box-shadow: 0 4px 14px rgba(76, 54, 130, 0.05);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
#wishlists .wlp-item:hover { border-color: #ddd2f5; box-shadow: 0 10px 24px rgba(76, 54, 130, 0.1); }

#wishlists .wlp-item-img {
  grid-area: img;
  width: 86px;
  height: 86px;
  border-radius: 17px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(76, 54, 130, 0.1);
}

#wishlists .wlp-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#wishlists .wlp-item-ph { font-size: 38px; }
#wishlists .wlp-ph-1 { background: linear-gradient(140deg, #dbeafe, #bfdbfe); }
#wishlists .wlp-ph-2 { background: linear-gradient(140deg, #ffe4f1, #fbcfe8); }
#wishlists .wlp-ph-3 { background: linear-gradient(140deg, #d1fae5, #a7f3d0); }
#wishlists .wlp-ph-4 { background: linear-gradient(140deg, #fef3c7, #fde68a); }
#wishlists .wlp-ph-5 { background: linear-gradient(140deg, #ede9fe, #ddd6fe); }

#wishlists .wlp-item-info {
  grid-area: info;
  min-width: 0;
}

#wishlists .wlp-item-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

#wishlists .wlp-item-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--wlp-ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#wishlists .wlp-badge {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#wishlists .wlp-badge-wanted { background: #f0e9ff; color: #6d28d9; }
#wishlists .wlp-badge-shopping { background: #e0ecff; color: #1d4ed8; }
#wishlists .wlp-badge-purchased { background: #dcf7e7; color: #15803d; }
#wishlists .wlp-badge-given { background: #ffe9f4; color: #be185d; }
#wishlists .wlp-badge-archived { background: #eeedf3; color: #6b6688; }

#wishlists .wlp-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
}

#wishlists .wlp-store-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 11.5px;
  font-weight: 700;
  color: #b45309;
}

#wishlists .wlp-price-pill {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f5f2fc;
  border: 1px solid #e6e0f7;
  font-size: 12px;
  font-weight: 800;
  color: var(--wlp-ink);
}

#wishlists .wlp-qty-pill {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ede9fe;
  font-size: 11.5px;
  font-weight: 700;
  color: #6d28d9;
}

#wishlists .wlp-priority-pill {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  font-size: 11px;
  font-weight: 700;
  color: #b91c1c;
}

#wishlists .wlp-item-giftfor {
  margin: 7px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wlp-muted);
}

#wishlists .wlp-item-dates {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--wlp-muted);
}
#wishlists .wlp-dot { opacity: 0.6; }

#wishlists .wlp-item-notes {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--wlp-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#wishlists .wlp-notes-label { font-weight: 700; color: #534d75; }

/* Progress rail */
#wishlists .wlp-item-rail { grid-area: rail; min-width: 0; }

#wishlists .wlp-rail {
  display: flex;
  align-items: flex-start;
}

#wishlists .wlp-rail-step {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

#wishlists .wlp-rail-step + .wlp-rail-step::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #e8e2f8;
}
#wishlists .wlp-rail-step.is-done::before,
#wishlists .wlp-rail-step.is-current::before { background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
#wishlists .wlp-rail-step:first-child::before { display: none; }

#wishlists .wlp-rail-dot {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #ddd4f3;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wishlists .wlp-rail-step.is-done .wlp-rail-dot {
  background: var(--wlp-grad);
  border-color: transparent;
}
#wishlists .wlp-rail-step.is-done .wlp-rail-dot::after {
  content: '✓';
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

#wishlists .wlp-rail-step.is-current .wlp-rail-dot {
  border-color: var(--wlp-purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}
#wishlists .wlp-rail-step.is-current .wlp-rail-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--wlp-grad);
}

#wishlists .wlp-rail-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #a59fc0;
  white-space: nowrap;
}
#wishlists .wlp-rail-step.is-done .wlp-rail-label,
#wishlists .wlp-rail-step.is-current .wlp-rail-label { color: var(--wlp-purple-deep); }

/* Item actions */
#wishlists .wlp-item-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

#wishlists .wlp-item-actions-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

#wishlists .wlp-item-actions .wlp-btn-primary {
  padding: 9px 16px;
  font-size: 13px;
  white-space: nowrap;
}

#wishlists .wlp-given-done {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #dcf7e7;
  color: #15803d;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

#wishlists .wlp-item-secondary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

#wishlists .wlp-menu-wrap { position: relative; display: inline-flex; }

#wishlists .wlp-menu-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e0f7;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: var(--wlp-muted);
  cursor: pointer;
}
#wishlists .wlp-menu-btn:hover { background: #f5f2fc; color: var(--wlp-purple-deep); }

#wishlists .wlp-menu {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 178px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6e0f7;
  box-shadow: 0 16px 40px rgba(31, 35, 64, 0.16);
}
#wishlists .wlp-menu[hidden] { display: none; }

#wishlists .wlp-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  border: none;
  border-radius: 10px;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--wlp-ink);
  text-align: left;
  cursor: pointer;
}
#wishlists .wlp-menu-item:hover { background: #f5f2fc; }
#wishlists .wlp-menu-danger { color: #b91c1c; }
#wishlists .wlp-menu-danger:hover { background: #fef2f2; }

/* ── Empty states ────────────────────────────────────────── */
#wishlists .wlp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 52px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--wlp-line);
  box-shadow: var(--wlp-card-shadow-sm);
  text-align: center;
}

#wishlists .wlp-empty-art { font-size: 52px; filter: drop-shadow(0 10px 16px rgba(109, 40, 217, 0.2)); }
#wishlists .wlp-empty-title { margin: 6px 0 0; font-size: 18px; font-weight: 800; color: var(--wlp-ink); }
#wishlists .wlp-empty-sub { margin: 0 0 12px; font-size: 13.5px; color: var(--wlp-muted); }

/* ── Modals ──────────────────────────────────────────────── */
.wlp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(31, 27, 58, 0.45);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.wlp-modal {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 26px;
  background: linear-gradient(170deg, #fffdff 0%, #faf7ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 80px rgba(31, 27, 58, 0.35);
}

.wlp-modal-sm { max-width: 420px; }

.wlp-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 22px 14px;
  background: inherit;
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}

.wlp-modal-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f1e8ff, #e2d1ff);
}

.wlp-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1f2340;
}

.wlp-modal-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e0f7;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #6b6688;
  cursor: pointer;
}
.wlp-modal-close:hover { background: #f5f2fc; color: #6d28d9; }

.wlp-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  padding: 16px 22px;
}

.wlp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #534d75;
  min-width: 0;
}

.wlp-field-full { grid-column: 1 / -1; }

.wlp-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #e6e0f7;
  border-radius: 13px;
  background: #fbfaff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1f2340;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wlp-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

textarea.wlp-input { resize: vertical; min-height: 56px; }

.wlp-modal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  #wishlists .wlp-item {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    grid-template-areas:
      'img info actions'
      'rail rail rail';
  }
  #wishlists .wlp-item-rail {
    padding-top: 4px;
    border-top: 1px dashed #e8e2f8;
  }
  #wishlists .wlp-rail { max-width: 460px; }
}

@media (max-width: 900px) {
  #wishlists .wlp-top { grid-template-columns: 1fr; }
  #wishlists .wlp-upcoming { flex-direction: row; align-items: center; flex-wrap: wrap; }
  #wishlists .wlp-upcoming-label { flex-basis: 100%; }
  #wishlists .wlp-upcoming-body { flex: 1 1 auto; }
  #wishlists .wlp-btn-ghost { width: auto; }
}

/* ── Outside recipient group sections ────────────────────────────────────── */
#wishlists .wlp-group-outside .wlp-group-head {
  background: linear-gradient(90deg, rgba(236,228,255,0.35) 0%, transparent 100%);
}
#wishlists .wlp-group-outside.is-open .wlp-group-head {
  background: linear-gradient(90deg, rgba(236,228,255,0.55) 0%, transparent 100%);
}

#wishlists .wlp-group-name-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}
#wishlists .wlp-group-subtitle {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wlp-purple);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Outside recipient avatars */
#wishlists .wlp-avatar-outside {
  background: linear-gradient(135deg, #fce7f3, #e9d5ff);
  border-color: rgba(139,92,246,0.3);
}

/* ── Recipient section in gift modal ─────────────────────────────────────── */
.wlp-recip-section {
  background: linear-gradient(120deg, #f5f2fc, #fdf0fe);
  border: 1px solid var(--wlp-line);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wlp-recip-section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wlp-purple-deep);
}
.wlp-recip-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.wlp-recip-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid #e6e0f7;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--wlp-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.wlp-recip-tab:hover { border-color: #d8cdf2; background: #faf8ff; color: var(--wlp-ink); }
.wlp-recip-tab.is-active {
  background: var(--wlp-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(139,92,246,0.32);
}

.wlp-recip-panel { display: flex; flex-direction: column; gap: 10px; }
.wlp-recip-panel[hidden] { display: none; }

/* Kid chips inside modal */
.wlp-recip-kid-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wlp-recip-kid-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 7px;
  border: 2px solid #e6e0f7;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--wlp-ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.wlp-recip-kid-chip:hover { border-color: #c4b5fd; background: #faf8ff; }
.wlp-recip-kid-chip.is-selected {
  border-color: var(--wlp-purple);
  background: linear-gradient(135deg, #f0e9ff, #e9d5ff);
  box-shadow: 0 4px 12px rgba(139,92,246,0.22);
}

/* Inline new-recipient form */
.wlp-new-recip-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.7);
  border: 1px dashed rgba(139,92,246,0.3);
  border-radius: 13px;
}
.wlp-new-recip-form[hidden] { display: none; }

/* Family gift note */
.wlp-recip-family-note {
  margin: 0;
  padding: 12px 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--wlp-line);
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: #534d75;
  line-height: 1.5;
}

/* Private notes field */
.wlp-modal-overlay .wlp-private-field {
  background: linear-gradient(120deg, #fff7ed, #fef3c7);
  border: 1px solid #fed7aa;
  border-radius: 13px;
  padding: 10px 12px 6px;
}
.wlp-modal-overlay .wlp-private-field label { color: #92400e; }

/* Private note in item card */
#wishlists .wlp-item-private-note {
  margin: 5px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #92400e;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 3px 8px;
  display: inline-block;
}

/* Outside chip in filter */
#wishlists .wlp-chip-outside { border-color: rgba(217,70,239,0.25); }
#wishlists .wlp-chip-outside.is-active { background: linear-gradient(135deg, #d946ef, #8b5cf6); }
#wishlists .wlp-chip-manage {
  border-style: dashed;
  color: var(--wlp-purple-deep);
}
#wishlists .wlp-chip-manage:hover { background: rgba(139,92,246,0.08); border-style: solid; }

/* ── Manage Recipients modal ─────────────────────────────────────────────── */
.wlp-modal-manage { max-width: 540px; }

.wlp-manage-body {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  padding: 18px 22px 22px !important;
}

.wlp-manage-intro {
  margin: 0;
  font-size: 13.5px;
  color: var(--wlp-muted);
  line-height: 1.5;
}

.wlp-manage-add-outer {
  align-self: flex-start;
}

.wlp-manage-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wlp-manage-empty {
  text-align: center;
  color: var(--wlp-muted);
  font-size: 13.5px;
  padding: 20px 0;
}

.wlp-manage-item {
  border: 1px solid var(--wlp-line);
  border-radius: 16px;
  background: #fdfdff;
  overflow: hidden;
  transition: border-color 0.15s;
}
.wlp-manage-item:hover { border-color: #d8cdf2; }
.wlp-manage-item.wlp-manage-archived { opacity: 0.6; }
.wlp-manage-item.wlp-manage-editing { border-color: var(--wlp-purple); }

.wlp-manage-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.wlp-manage-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.9);
  background: linear-gradient(135deg, #f1e8ff, #e2d1ff);
  box-shadow: 0 4px 10px rgba(109,40,217,0.14);
}
.wlp-manage-avatar.wlp-avatar-emoji { font-size: 20px; }
.wlp-manage-avatar.wlp-avatar-initial { font-size: 16px; font-weight: 800; color: #6d28d9; }

.wlp-manage-item-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.wlp-manage-item-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--wlp-ink);
}
.wlp-manage-item-rel {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--wlp-purple);
  background: rgba(139,92,246,0.1);
  border-radius: 999px;
  padding: 2px 9px;
}
.wlp-manage-item-bday {
  font-size: 11.5px;
  color: var(--wlp-muted);
  font-weight: 600;
}
.wlp-manage-item-archived-tag {
  font-size: 10.5px;
  font-weight: 800;
  background: #eeedf3;
  color: #6b6688;
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wlp-manage-item-actions {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
}

.wlp-manage-inline-form {
  padding: 14px 14px 16px;
  border-top: 1px solid var(--wlp-line-soft);
  background: linear-gradient(120deg, #faf8ff, #fff);
}
.wlp-manage-add-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--wlp-ink);
}
.wlp-manage-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.wlp-manage-form-footer {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Role tag inside household member chip */
.wlp-recip-role-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--wlp-purple);
  background: rgba(139,92,246,0.1);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 3px;
  vertical-align: middle;
}
.wlp-recip-kid-chip.is-selected .wlp-recip-role-tag {
  color: #6d28d9;
  background: rgba(109,40,217,0.15);
}

/* Parent-role member groups get a soft blue tint */
#wishlists .wlp-group-member-parent .wlp-group-head {
  background: linear-gradient(90deg, rgba(219,234,254,0.35) 0%, transparent 100%);
}
#wishlists .wlp-group-member-parent.is-open .wlp-group-head {
  background: linear-gradient(90deg, rgba(219,234,254,0.55) 0%, transparent 100%);
}
#wishlists .wlp-group-subtitle {
  font-size: 11px;
  font-weight: 700;
  color: var(--wlp-purple);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  #wishlists .wlp-hero {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 24px 20px 22px;
    gap: 16px;
  }
  #wishlists .wlp-hero-art {
    width: 118px;
    height: 118px;
    margin: 0 auto;
    border-radius: 26px;
  }
  #wishlists .wlp-hero-gift { font-size: 62px; }
  #wishlists .wlp-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  #wishlists .wlp-stat { min-width: 0; }
  #wishlists .wlp-hero-cta .wlp-btn-primary { width: 100%; }

  #wishlists .wlp-filter-row1 { flex-direction: column; align-items: stretch; }
  #wishlists .wlp-search { flex: 0 0 auto; min-width: 0; }
  #wishlists .wlp-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  #wishlists .wlp-filter-row2 { gap: 8px; }
  #wishlists .wlp-select { flex: 1 1 calc(50% - 8px); min-width: 0; }
  #wishlists .wlp-switch { flex-basis: 100%; }

  #wishlists .wlp-item {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      'img info'
      'rail rail'
      'actions actions';
    gap: 12px;
    align-items: flex-start;
  }
  #wishlists .wlp-item-img { width: 62px; height: 62px; border-radius: 14px; }
  #wishlists .wlp-item-ph { font-size: 28px; }
  #wishlists .wlp-rail { max-width: none; }
  #wishlists .wlp-item-actions { align-items: stretch; }
  #wishlists .wlp-item-actions-top { justify-content: space-between; }
  #wishlists .wlp-item-actions-top .wlp-btn-primary { flex: 1 1 auto; }
  #wishlists .wlp-item-secondary { justify-content: flex-start; }

  .wlp-modal-body { grid-template-columns: 1fr; }
  .wlp-new-recip-form { grid-template-columns: 1fr; }
  .wlp-manage-form-grid { grid-template-columns: 1fr; }
  .wlp-recip-tabs { gap: 4px; }
  .wlp-recip-tab { font-size: 12px; padding: 6px 10px; }
  .wlp-manage-item-row { flex-wrap: wrap; }
  .wlp-manage-item-actions { width: 100%; justify-content: flex-end; padding: 0 14px 10px; }
}
