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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f4f6fa;
  color: #1a1a2e;
  padding: 40px 20px;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

/* Шапка */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #1a2a6c, #2a4a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #1a2a6c;
  color: #fff;
}

.btn-primary:hover {
  background: #2a4a8a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 42, 108, 0.25);
}

.btn-outline {
  background: transparent;
  color: #1a2a6c;
  border: 2px solid #1a2a6c;
}

.btn-outline:hover {
  background: #1a2a6c;
  color: #fff;
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
}

.btn-danger:hover {
  background: #c0392b;
}

/* Статистика */
.stats {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.stat-item strong {
  color: #1a1a2e;
  font-size: 18px;
}

/* Список */
.wishlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wish-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  position: relative;
}

.wish-item:hover {
  border-color: #d0d7e6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.wish-item.completed {
  opacity: 0.6;
}

.wish-item.completed .wish-title {
  text-decoration: line-through;
}

/* Чекбокс */
.wish-check {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: 2px solid #d0d7e6;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.wish-check:checked {
  background: #1a2a6c;
  border-color: #1a2a6c;
}

.wish-check:checked::after {
  content: "✓";
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.wish-check:hover {
  border-color: #1a2a6c;
}

/* Иконка */
.wish-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #f0f2f8;
}

.wish-icon.blue { background: #e3ecfa; }
.wish-icon.red { background: #fde8e8; }
.wish-icon.green { background: #e6f5ed; }
.wish-icon.purple { background: #f0e8f8; }
.wish-icon.gold { background: #fcf3e0; }

/* Контент */
.wish-content {
  flex: 1;
  min-width: 0;
}

.wish-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.wish-meta {
  font-size: 13px;
  color: #888;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.wish-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wish-meta .tag {
  background: #f0f2f8;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #555;
}

.wish-price {
  font-weight: 700;
  color: #1a2a6c;
  font-size: 16px;
  white-space: nowrap;
}

.wish-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wish-item:hover .wish-actions {
  opacity: 1;
}

.wish-actions button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wish-actions button:hover {
  background: #f0f2f8;
  color: #1a1a2e;
}

.wish-actions .delete-btn:hover {
  background: #fde8e8;
  color: #e74c3c;
}

/* Пустое состояние */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.empty-state .emoji {
  font-size: 56px;
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 20px;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.empty-state p {
  color: #888;
  font-size: 15px;
}

/* Адаптив */
@media (max-width: 640px) {
  body {
    padding: 20px 12px;
  }

  .header {
    flex-direction: column;
    align-items: stretch;
  }

  .header h1 {
    font-size: 24px;
    text-align: center;
  }

  .header-actions {
    justify-content: center;
  }

  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .stats {
    justify-content: center;
    gap: 16px;
  }

  .wish-item {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .wish-actions {
    opacity: 1;
    margin-left: auto;
  }

  .wish-price {
    font-size: 14px;
  }

  .wish-meta {
    font-size: 12px;
    gap: 8px;
  }
}
