.problem-card {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.94);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.problem-card-selected {
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.12);
}

.problem-card-selected .problem-story {
  color: #0f5f74;
}

.problem-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.problem-story {
  font-size: 1.05rem;
  font-weight: 700;
  color: #16324a;
}

.problem-key {
  color: #5f6d7a;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.problem-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.problem-selected-badge {
  background: linear-gradient(135deg, #dcfce7, #d1fae5);
  border: 1px solid rgba(22, 163, 74, 0.24);
  color: #166534;
}

.problem-section {
  display: grid;
  gap: 0.3rem;
}

.problem-section-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f6d7a;
}

.problem-solution {
  border: 1px solid rgba(2, 132, 199, 0.14);
  border-radius: 0.7rem;
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(248, 250, 252, 0.96));
  padding: 0.75rem 0.85rem;
}

.problem-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 0.75rem;
}

.problem-footer-meta {
  color: #5f6d7a;
  font-size: 0.85rem;
}

.problem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.problem-story-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #16324a;
  font: inherit;
  text-align: left;
}

.problem-story-button:hover,
.problem-story-button:focus-visible {
  color: #0f3b70;
  text-decoration: underline;
}

.problem-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.problem-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.problem-pagination-info {
  color: #5f6d7a;
  font-size: 0.9rem;
}

.problem-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cart-summary-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.96), rgba(248, 250, 252, 0.98));
  padding: 1rem 1.1rem;
}

.cart-summary-meta {
  color: #5f6d7a;
  font-size: 0.92rem;
}

.cart-list {
  display: grid;
  gap: 1rem;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cart-empty {
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 0.9rem;
  padding: 1.2rem;
  background: rgba(248, 250, 252, 0.7);
  color: #5f6d7a;
}

.cart-order-badge {
  min-width: 2rem;
  justify-content: center;
}

@media (max-width: 767px) {
  .problem-card-head {
    flex-direction: column;
  }

  .problem-pagination {
    align-items: flex-start;
  }
}
