.crafting-page-section {
  padding: 12px 0 32px;
}

.crafting-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
}

.crafting-panel {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
}

.crafting-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.crafting-panel__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 26px;
}

.crafting-recipe-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crafting-recipe-nav__btn {
  min-width: 50px;
}

.crafting-recipe-nav__text {
  color: #cbd9ea;
  font-size: 13px;
  font-weight: 700;
}

.crafting-catalog-filter {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.crafting-catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #93a9c4;
  font-size: 12px;
  font-weight: 700;
}

.crafting-search,
.crafting-mod-select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 16, 28, 0.88);
  color: #fff;
}

.crafting-catalog {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.crafting-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.crafting-item:hover {
  border-color: rgba(147, 197, 253, 0.3);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.crafting-item.is-selected {
  border-color: rgba(96,165,250,0.55);
  background: rgba(59,130,246,0.12);
}

.crafting-item__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}

.crafting-item__icon--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}

.crafting-item__name {
  font-size: 14px;
  font-weight: 700;
}

.crafting-item__id {
  color: #93a9c4;
  font-size: 11px;
}

.crafting-main {
  display: grid;
  gap: 22px;
}

.crafting-workbench {
  display: grid;
  grid-template-columns: auto 80px auto;
  gap: 26px;
  align-items: center;
  justify-content: center;
}

.crafting-grid {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 10px;
}

.craft-slot,
.craft-result {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #dbeafe;
}

.craft-slot.is-active {
  border-color: rgba(96,165,250,0.6);
  box-shadow: 0 0 0 2px rgba(96,165,250,0.16);
}

.craft-slot__icon,
.craft-result__icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  image-rendering: pixelated;
}

.craft-slot__icon--placeholder,
.craft-result__icon--placeholder,
.crafting-info__icon--placeholder,
.crafting-item__icon--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.crafting-arrow {
  color: #93c5fd;
  font-size: 42px;
  font-weight: 900;
  text-align: center;
}

.crafting-result-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.craft-result__text {
  color: #cbd9ea;
  font-size: 14px;
  text-align: center;
  min-height: 40px;
}

.crafting-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.crafting-help {
  margin: 0;
  color: #cbd9ea;
  line-height: 1.85;
}

.crafting-info-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}

.crafting-info__icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
}

.crafting-info__icon--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: #dbeafe;
  font-weight: 800;
}

.crafting-info-card__name {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.crafting-info-card__id {
  margin-top: 4px;
  color: #93a9c4;
  font-size: 13px;
  word-break: break-word;
}

.crafting-recipe-extra {
  margin-top: 10px;
  color: #93a9c4;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .crafting-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .crafting-workbench {
    grid-template-columns: 1fr;
  }

  .crafting-arrow {
    transform: rotate(90deg);
  }

  .crafting-grid {
    justify-content: center;
  }

  .crafting-panel__top {
    align-items: stretch;
  }

  .crafting-recipe-nav {
    justify-content: space-between;
  }
}
