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

body {
  font-family: 'Courier New', monospace;
  background: #000;
  color: #fff;
  min-height: 100vh;
  padding: 20px;
}

.admin-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 10px;
}

.admin-btn,
.edit-profile-btn {
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  padding: 8px 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn:hover,
.edit-profile-btn:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
}

.admin-btn.active {
  background: #8b5cf6;
  color: #000;
  border-color: #8b5cf6;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 200;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  border: 1px solid #333;
  background: #000;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  margin: auto;
}

.modal-large {
  max-width: 600px;
}

.modal-content h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #8b5cf6;
}

.modal-close {
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  width: 32px;
  height: 32px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-header h3 {
  margin: 0;
  flex: 1;
  padding-right: 15px;
}

.info-content {
  line-height: 1.6;
  color: #ccc;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.comments-list {
  max-height: 400px;
  overflow-y: auto;
}

.comment {
  background: rgba(40, 40, 40, 0.5);
  border: 1px solid #333;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.comment-author {
  color: #8b5cf6;
  font-weight: 700;
  margin-right: 8px;
}

.comment-text {
  color: #ccc;
}

.delete-comment-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  width: 24px;
  height: 24px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.delete-comment-btn:hover {
  background: #f00;
  border-color: #f00;
}

.profile-section {
  border: 1px solid #333;
  padding: 40px;
  margin-bottom: 40px;
  background: rgba(20, 20, 20, 0.5);
}

.profile-container {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.avatar-circle {
  width: 100px;
  height: 100px;
  border: 2px solid #8b5cf6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: bold;
  background: transparent;
  flex-shrink: 0;
  color: #8b5cf6;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.profile-title {
  font-size: 16px;
  color: #999;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.profile-location {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

.profile-bio {
  font-size: 14px;
  color: #bbb;
  line-height: 1.6;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #222;
}

.profile-meta {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #222;
}

.profile-link {
  color: #8b5cf6;
  text-decoration: none;
  font-size: 14px;
  margin-right: 15px;
  transition: opacity 0.2s;
}

.profile-link:hover {
  opacity: 0.7;
}

.profile-interests {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}

.wishlist-section {
  max-width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.add-btn {
  background: #8b5cf6;
  color: #000;
  border: none;
  padding: 12px 24px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.add-btn:hover {
  background: #a78bfa;
}

.add-btn:active {
  transform: scale(0.98);
}

.filter-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  padding: 20px;
  border: 1px solid #333;
  background: rgba(20, 20, 20, 0.5);
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid #333;
  color: #999;
  padding: 8px 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
}

.filter-btn.active {
  background: #8b5cf6;
  color: #000;
  border-color: #8b5cf6;
}

.add-form {
  display: none;
  border: 1px solid #333;
  padding: 25px;
  margin-bottom: 30px;
  background: rgba(20, 20, 20, 0.5);
}

.add-form.active {
  display: block;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  padding: 12px 16px;
  margin-bottom: 15px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background: #000;
  color: #fff;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #8b5cf6;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #666;
}

.form-buttons {
  display: flex;
  gap: 10px;
}

.save-btn,
.cancel-btn {
  padding: 12px 24px;
  border: none;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.save-btn {
  background: #8b5cf6;
  color: #000;
  flex: 1;
}

.save-btn:hover {
  background: #a78bfa;
}

.cancel-btn {
  background: transparent;
  color: #fff;
  border: 1px solid #333;
}

.cancel-btn:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.wishlist-item {
  border: 1px solid #333;
  padding: 25px;
  background: rgba(20, 20, 20, 0.5);
  transition: all 0.2s;
  position: relative;
}

.wishlist-item:hover {
  border-color: #8b5cf6;
  transform: translateY(-2px);
}

.wishlist-item.hidden {
  display: none;
}

.item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border: 1px solid #333;
}

.item-tags {
  margin-bottom: 12px;
}

.item-tag {
  display: inline-block;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid #8b5cf6;
  color: #8b5cf6;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 3px;
}

.item-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}

.checkbox-container {
  display: block;
  position: relative;
  cursor: pointer;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  border: 2px solid #fff;
  background: transparent;
  transition: all 0.2s;
}

.checkbox-container:hover .checkmark {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
  background: #8b5cf6;
  border-color: #8b5cf6;
}

.checkbox-container input:checked ~ .checkmark:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.item-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  flex: 1;
  transition: all 0.3s;
}

.item-name.checked {
  text-decoration: line-through;
  opacity: 0.5;
}

.delete-btn {
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s;
  flex-shrink: 0;
}

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

.item-price {
  font-size: 16px;
  color: #999;
  margin-bottom: 15px;
  margin-left: 34px;
}

.item-actions {
  display: flex;
  gap: 10px;
  margin-left: 34px;
  flex-wrap: wrap;
}

.item-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid #333;
  display: inline-block;
  transition: all 0.2s;
}

.item-link:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.info-link {
  color: #a78bfa;
  border-color: #8b5cf6;
}

.info-link:hover {
  background: #8b5cf6;
  color: #000;
}

.comment-link {
  color: #60a5fa;
  border-color: #3b82f6;
}

.comment-link:hover {
  background: #3b82f6;
  color: #000;
}

.add-comment-link {
  color: #34d399;
  border-color: #10b981;
}

.add-comment-link:hover {
  background: #10b981;
  color: #000;
}

.edit-link {
  color: #fbbf24;
  border-color: #f59e0b;
}

.edit-link:hover {
  background: #f59e0b;
  color: #000;
}

.footer {
  margin-top: 60px;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #333;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #999;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #8b5cf6;
}

.footer-text {
  font-size: 13px;
  letter-spacing: 0.5px;
}

.perplexity-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.2s;
}

.footer-link:hover .perplexity-logo {
  transform: scale(1.1);
}

.footer-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

@media (max-width: 1400px) {
  .wishlist-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .admin-controls {
    top: 15px;
    right: 15px;
    flex-direction: column;
  }

  .profile-section {
    padding: 20px;
  }

  .profile-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .avatar-circle {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }

  .profile-name {
    font-size: 26px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .add-btn {
    width: 100%;
  }

  .filter-controls {
    padding: 15px;
  }

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

  .item-actions {
    flex-direction: column;
  }

  .item-link {
    text-align: center;
    width: 100%;
  }
}
