.swf-wrap {
  width: 100%;
}

.swf-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.swf-header-block h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: #111827;
}

.swf-header-block p {
  margin: 0;
  color: #6b7280;
}

.swf-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.swf-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.swf-card-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.swf-card-link:hover {
  transform: translateY(-1px);
}

.swf-rank {
  width: 50px;
  font-size: 18px;
  font-weight: 800;
  color: #9ca3af;
}

.swf-main {
  flex: 1;
}

.swf-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.swf-badge {
  margin-top: 4px;
  font-weight: 700;
  font-size: 14px;
}

.swf-right {
  font-weight: 700;
  color: #111827;
}

.swf-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swf-filter-btn {
  border: none;
  background: #f3f4f6;
  color: #111827;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.swf-filter-btn.is-active {
  background: #111827;
  color: #fff;
}

.swf-history-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.swf-history-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.swf-trader {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.swf-meta {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.swf-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.swf-section-label {
  font-size: 12px;
  color: #9ca3af;
}

.swf-section-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.swf-image-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.swf-image {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eee;
}

.swf-image-placeholder {
  height: 100px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-weight: 600;
}

.swf-time {
  font-size: 12px;
  color: #6b7280;
}

.swf-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.swf-btn-danger {
  background: #dc2626;
}

.swf-status-pill {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-accepted {
  background: #dcfce7;
  color: #166534;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.status-cancelled {
  background: #e5e7eb;
  color: #374151;
}

.swf-loading,
.swf-empty,
.swf-error {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 18px;
}

.swf-error {
  color: #b91c1c;
}

@media (max-width: 768px) {
  .swf-card-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .swf-rank {
    width: auto;
  }

  .swf-right {
    margin-top: 6px;
  }

  .swf-history-top {
    flex-direction: column;
  }
}