@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=DM+Sans:wght@400;500&display=swap');

:root {
  --primary: #827717;
  --primary-dark: #9E9D24;
  --primary-light: #AFB42B;
  --primary-lighter: #CDDC39;
  --bg: #F9FBE7;
  --bg-card: #ffffff;
  --text: #4A1A2E;
  --text-secondary: #7B4A5E;
  --text-light: #A67080;
  --border: #F8BBD0;
  --shadow: rgba(136, 14, 79, 0.08);
  --shadow-md: rgba(136, 14, 79, 0.12);
  --success: #43A047;
  --radius: 14px;
  --radius-sm: 8px;
}

::selection {
  background: var(--primary-light);
  color: var(--primary-dark);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
}

.app-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 100px;
}

/* HEADER */
.app-header {
  padding: 28px 0 12px;
  text-align: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-icon {
  font-size: 2rem;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

.header-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

/* STATS */
.stats-header {
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  animation: fadeInUp 0.4s ease both;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.08s; }
.stat-card:nth-child(3) { animation-delay: 0.16s; }

.stat-emoji {
  font-size: 1.5rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* DEALS */
.deals-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  animation: fadeInUp 0.4s ease both;
  animation-delay: 0.2s;
}

.deals-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.deals-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deal-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
}

.deal-ready {
  background: #E8F5E9;
  border-color: #A5D6A7;
}

.deal-name {
  font-weight: 600;
  color: var(--text);
}

.deal-gap {
  color: var(--primary);
  font-weight: 500;
}

.deal-badge {
  color: var(--success);
  font-weight: 600;
}

/* WISHLIST GRID */
.wishlist-container {
  margin-top: 8px;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* WISH CARD */
.wish-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeInUp 0.45s ease both;
}

.wish-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-md);
}

.ready-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--success);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(67, 160, 71, 0.3);
}

.wish-photo {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
}

.wish-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-lighter), var(--bg));
}

.wish-photo-placeholder span {
  font-size: 3rem;
  opacity: 0.5;
}

.wish-body {
  padding: 14px 16px 16px;
}

.wish-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.wish-store {
  font-size: 0.78rem;
  color: var(--text-light);
  display: inline-block;
  margin-bottom: 10px;
}

.wish-prices {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.price-row {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-light);
  font-weight: 500;
}

.price-target {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-dark);
}

.price-current {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
}

.price-good {
  color: var(--success);
}

/* PROGRESS BAR */
.progress-bar-container {
  position: relative;
  background: var(--bg);
  border-radius: 20px;
  height: 20px;
  margin-bottom: 12px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 20px;
  transition: width 0.5s ease;
  min-width: 8px;
}

.progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ACTIONS */
.wish-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-link-out {
  font-size: 0.78rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.btn-link-out:hover {
  background: var(--bg);
}

.btn-edit, .btn-delete {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-edit:hover {
  background: var(--bg);
  border-color: var(--primary-light);
}

.btn-delete:hover {
  background: #FFEBEE;
  border-color: #E57373;
}

.wish-actions { margin-left: auto; }
.btn-edit, .btn-delete { margin-left: auto; }
.wish-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  animation: fadeInUp 0.5s ease both;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.empty-text {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(236, 64, 122, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(236, 64, 122, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--primary-lighter);
}

/* FAB */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(236, 64, 122, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 50;
}

.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(236, 64, 122, 0.45);
}

.fab span {
  line-height: 1;
  margin-top: -2px;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(136, 14, 79, 0.25);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(136, 14, 79, 0.2);
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--bg);
}

.modal-form {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-card);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(236, 64, 122, 0.12);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* PHOTO UPLOAD */
.photo-upload-area {
  width: 100%;
}

.photo-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg);
}

.photo-dropzone:hover {
  border-color: var(--primary-light);
  background: var(--primary-lighter);
}

.photo-dropzone-icon {
  font-size: 1.5rem;
}

.photo-dropzone-text {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

.hidden-input {
  display: none;
}

.photo-preview-container {
  position: relative;
  display: inline-block;
}

.photo-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.photo-remove:hover {
  background: rgba(0, 0, 0, 0.75);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
}

/* SKELETON */
.skeleton-card {
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-img {
  width: 100%;
  height: 180px;
  background: var(--primary-lighter);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: var(--primary-lighter);
  margin: 12px 16px;
  width: 70%;
}

.skeleton-line.short {
  width: 40%;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .header-title {
    font-size: 1.4rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 12px 14px;
  }

  .wishlist-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    max-height: 95vh;
  }

  .fab {
    bottom: 18px;
    right: 18px;
  }
}

@media (min-width: 641px) and (max-width: 800px) {
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Focus styles */
.form-input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-lighter);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to your Wishlist! This is where you'll track items you want to buy.", "view": "default", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Your wishlist is empty right now. Let's add your first item by tapping the + button.", "view": "default", "highlight_selector": ".fab", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Fill in the item details — name, target price, current price, store, and optionally a photo and link.", "view": "default", "highlight_selector": ".modal-form", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Once you add items, you'll see stats at the top — total wishlist value and which items are closest to your target price.", "view": "default", "highlight_selector": ".stats-header", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Each item shows a progress bar toward your target price. When the current price drops to your target, you'll see a 'Buy Now' badge!", "view": "default", "highlight_selector": ".wishlist-grid", "wait_for": "tap_to_continue"},
  {"step": 6, "narration": "You can edit or delete any item using the buttons on each card. Happy shopping!", "view": "default", "highlight_selector": ".wish-actions", "wait_for": "tap_to_continue"}
]
-->

.auth-modal {
  max-width: 420px;
}

.auth-form {
  gap: 18px;
}

.auth-helper-text {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
}

.auth-button {
  width: 100%;
}

.auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.auth-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.auth-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
}

.auth-user-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-logout {
  padding: 8px 14px;
  white-space: nowrap;
}

.collection-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.collection-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  font-size: 0.84rem;
}

.collection-pill-all {
  background: var(--bg);
}

.collection-pill-label {
  font-weight: 600;
  color: var(--text);
}

.collection-pill-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary-lighter);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.collection-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.collection-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.collection-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.collection-group-header h3 {
  font-size: 1rem;
  color: var(--primary-dark);
}

.collection-group-header span {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

.wish-collection-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 2px 6px var(--shadow);
}

@media (max-width: 640px) {
  .collection-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .collection-pill {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

.photo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-action {
  flex: 1 1 160px;
}

.wish-photo-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--bg);
  display: block;
}

.wishlist-trend-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  padding: 14px 16px 12px;
  margin-bottom: 16px;
}

.empty-trend-state {
  padding: 18px 8px 8px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.92rem;
}

.trend-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trend-chart {
  width: 100%;
  height: 160px;
  display: block;
  background: linear-gradient(180deg, rgba(248, 187, 208, 0.12), rgba(255, 255, 255, 0));
  border-radius: var(--radius-sm);
}

.trend-chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-light);
}

.item-trend-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.item-trend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.item-trend-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.item-trend-meta {
  font-size: 0.72rem;
  color: var(--text-light);
}

.mini-sparkline {
  width: 100%;
  height: 40px;
  display: block;
}

.public-view-shell .public-badge {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 0.85rem;
}

.public-share-banner,
.share-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.public-share-title {
  margin: 0;
  font-size: 1rem;
}

.public-share-text {
  margin: 0.25rem 0 0;
  opacity: 0.85;
}

.wishlist-view-public .wishlist-view-header {
  align-items: flex-start;
}

.wishlist-view-public .wishlist-item-actions {
  opacity: 0.7;
}

.fab-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-textarea {
  resize: vertical;
  min-height: 88px;
}

.ai-actions-row {
  display: flex;
  justify-content: flex-start;
}

.ai-suggest-button {
  padding: 10px 16px;
}

.ai-error {
  color: #C62828;
  font-size: 0.88rem;
}

.ai-suggestions {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-summary {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.ai-suggestion-line {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.wishlist-export-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.wishlist-export-button {
  padding: 10px 14px;
}

.wishlist-pdf-report {
  position: absolute;
  inset: auto;
  left: 0;
  top: 0;
  width: 800px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  background: #ffffff;
  color: #4A1A2E;
  padding: 24px;
}

.wishlist-pdf-header {
  margin-bottom: 16px;
}

.wishlist-pdf-header h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.wishlist-pdf-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.wishlist-pdf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.wishlist-pdf-stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.wishlist-pdf-stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.wishlist-pdf-stat-value {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.wishlist-pdf-items {
  margin-top: 16px;
}

.wishlist-pdf-items h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.wishlist-pdf-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wishlist-pdf-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.wishlist-pdf-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.wishlist-pdf-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .wishlist-pdf-stats {
    grid-template-columns: 1fr 1fr;
  }
}
