.query-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 0 50px;
}

.query-banner {
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 111, 169, 0.16), rgba(125, 160, 255, 0.12));
  border: 1px solid rgba(255, 111, 169, 0.2);
}

.query-heading {
  margin-bottom: 10px;
}

.query-title {
  font-size: 20px;
  font-weight: 900;
}

.query-sub {
  color: var(--mypro-muted);
  font-size: 12px;
}

.query-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.query-input .form-control {
  border: none;
  background: transparent;
  padding: 10px;
  font-weight: 700;
}

.query-input .form-control:focus {
  outline: none;
  box-shadow: none;
}

.input-icon {
  color: var(--mypro-muted);
}

.btn-search-query {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(120deg, var(--mypro-primary), var(--mypro-primary-deep));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(255, 111, 169, 0.2);
}

.order-results,
.no-results,
.loading-state {
  padding: 16px;
}

.result-title {
  font-weight: 900;
  margin-bottom: 10px;
}

.order-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.order-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.order-status {
  margin-bottom: 6px;
}

.status-badge {
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
}

.status-pending {
  background: rgba(255, 199, 115, 0.18);
  color: #d88413;
}

.status-paid {
  background: rgba(64, 201, 155, 0.16);
  color: #178a65;
}

.order-basic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px 10px;
  color: var(--mypro-muted);
  font-size: 12px;
}

.order-no-text {
  font-weight: 800;
  color: var(--mypro-text);
}

.order-right {
  text-align: right;
}

.order-amount {
  font-weight: 900;
  font-size: 18px;
  color: var(--mypro-primary);
}

.goods-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
}

.goods-thumb .goods-image {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: #f6f7ff;
}

.goods-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.a-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.a-badge-success {
  background: rgba(64, 201, 155, 0.16);
  color: #178a65;
}

.a-badge-primary {
  background: rgba(125, 160, 255, 0.16);
  color: #4356d9;
}

.a-badge-warning {
  background: rgba(255, 199, 115, 0.18);
  color: #d88413;
}

.goods-sku {
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(125, 160, 255, 0.12);
  color: #4356d9;
  font-weight: 700;
}

.card-section {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f8f8ff;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.shipment-content {
  display: flex;
  gap: 8px;
  align-items: center;
}

.shipment-badge {
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
}

.shipment-waiting {
  background: rgba(255, 199, 115, 0.2);
  color: #d88413;
}

.shipment-paid {
  background: rgba(64, 201, 155, 0.16);
  color: #178a65;
}

.card-display {
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.06);
  font-weight: 700;
  word-break: break-all;
}

.card-password-section .input-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.card-password-section .form-control {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px;
}

.view-card-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(120deg, var(--mypro-primary), var(--mypro-primary-deep));
  color: #fff;
  font-weight: 800;
}

.loading-icon,
.empty-icon {
  text-align: center;
  font-size: 32px;
  color: var(--mypro-primary);
  margin-bottom: 10px;
}

.card-loading {
  display: none;
  margin-top: 10px;
}

.loading-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mypro-muted);
}

.loading-text,
.empty-text {
  text-align: center;
  color: var(--mypro-muted);
}

@media (max-width: 768px) {
  .query-input {
    grid-template-columns: 1fr;
  }

  .order-header {
    flex-direction: column;
  }

  .order-right {
    text-align: left;
  }

  .goods-section {
    grid-template-columns: 1fr;
  }
}
