.category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  gap: 12px;
}

.selected-item-display {
  color: var(--electric-blue);
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 5px;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 330px);
  gap: 18px;
  align-items: start;
}

.builder-steps,
.builder-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.builder-summary {
  position: sticky;
  top: 95px;
  background: linear-gradient(180deg, #171d26 0%, #121821 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
}

.summary-total {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
}

.summary-total h4 {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 6px;
}

.summary-total h2 {
  font-size: 1.8rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-surface);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: 15px;
  border: 1px solid var(--electric-blue);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-modal {
  font-size: 2.4rem;
  color: var(--text-gray);
  cursor: pointer;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
}

.item-list-container {
  display: none;
}

.item-list-container.active {
  display: block;
}

.modal-item {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--white);
  margin-bottom: 8px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
}

.modal-item span {
  color: var(--electric-blue);
  font-weight: bold;
}

.modal-item:hover {
  border-color: var(--electric-blue);
  background: rgba(0, 212, 255, 0.05);
}

.cat-info h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.modal-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}

@media (max-width: 900px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }

  .builder-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .category-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-row .btn {
    width: 100%;
  }
}