.orders-shell {
  min-height: 100vh;
  padding: 24px 0 42px;
}

.orders-hero {
  margin-top: 22px;
  margin-bottom: 22px;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 28%),
    linear-gradient(135deg, #0f172a, #1e293b 55%, #334155);
  color: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  position: relative;
  overflow: hidden;
}

.orders-hero::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -50px;
  bottom: -50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  filter: blur(10px);
}

.orders-hero > * {
  position: relative;
  z-index: 2;
}

.orders-hero-badge {
  width: fit-content;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.orders-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.orders-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.15;
}

.orders-hero-copy p {
  max-width: 700px;
  line-height: 2;
  opacity: 0.95;
}

.orders-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 900px;
}

.orders-stat-card {
  min-height: 88px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.orders-stat-label {
  font-size: 0.82rem;
  opacity: 0.92;
  margin-bottom: 8px;
}

.orders-stat-card strong {
  font-size: 1.2rem;
  font-weight: 900;
}

.orders-panel {
  padding: 24px;
  border-radius: 30px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.orders-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.orders-panel-head h2 {
  font-size: 1.26rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.orders-panel-head p {
  color: var(--text-sec);
  line-height: 1.8;
}

.orders-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: min(100%, 520px);
}

.orders-filter-select {
  min-width: 200px;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--text-main);
  padding: 0 14px;
  outline: none;
  font-size: 0.94rem;
}

.orders-list-grid {
  display: grid;
  gap: 16px;
}

.order-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .order-card {
  background: rgba(255,255,255,0.03);
}

.order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.order-title {
  font-size: 1.04rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.order-meta {
  color: var(--text-sec);
  font-size: 0.9rem;
  line-height: 1.9;
}

.order-status-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-chip {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-chip.processing {
  background: rgba(245,158,11,0.12);
  color: #b45309;
  border: 1px solid rgba(245,158,11,0.18);
}

.order-chip.delivered {
  background: rgba(22,163,74,0.12);
  color: #15803d;
  border: 1px solid rgba(22,163,74,0.18);
}

.order-chip.pending {
  background: rgba(0,122,255,0.1);
  color: var(--primary);
  border: 1px solid rgba(0,122,255,0.16);
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.order-info-box {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
}

[data-theme="dark"] .order-info-box {
  background: rgba(255,255,255,0.03);
}

.order-info-box span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-sec);
  margin-bottom: 6px;
}

.order-info-box strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.5;
}

.order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.order-actions .btn {
  flex: 1;
  min-width: 160px;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15,23,42,0.34);
  backdrop-filter: blur(8px);
}

.order-modal.active {
  display: flex;
}

.order-modal-panel {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border-radius: 28px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  position: relative;
}

.order-modal-title {
  font-size: 1.26rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.order-modal-body {
  display: grid;
  gap: 14px;
}

.order-modal-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.66);
  border: 1px solid var(--line);
}

[data-theme="dark"] .order-modal-card {
  background: rgba(255,255,255,0.03);
}

.order-modal-card h4 {
  font-size: 0.98rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.order-modal-card p,
.order-modal-card div {
  color: var(--text-sec);
  line-height: 1.95;
  word-break: break-word;
}

.delivery-account-grid {
  display: grid;
  gap: 10px;
}

.delivery-field-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
}

[data-theme="dark"] .delivery-field-card {
  background: rgba(255,255,255,0.03);
}

.delivery-field-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.delivery-field-label {
  font-size: 0.82rem;
  color: var(--text-sec);
  font-weight: 800;
}

.delivery-field-value {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.8;
  word-break: break-word;
  color: var(--text-main);
}

.copy-btn-inline {
  min-height: 34px;
  border: none;
  border-radius: 12px;
  padding: 6px 12px;
  background: rgba(0,122,255,0.08);
  color: var(--primary);
  border: 1px solid rgba(0,122,255,0.14);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.22s ease;
}

.copy-btn-inline:hover {
  transform: translateY(-1px);
  background: rgba(0,122,255,0.12);
}

.copy-all-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.copy-all-btn {
  min-height: 38px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-branding strong {
  font-weight: 900;
}

.footer-branding span {
  color: var(--text-sec);
  font-size: 0.88rem;
}

.footer-credit {
  color: var(--text-sec);
  line-height: 1.8;
}

.footer-credit a {
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 900px) {
  .orders-hero-grid {
    grid-template-columns: 1fr;
  }

  .orders-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .orders-shell {
    padding-top: 14px;
  }

  .orders-hero,
  .orders-panel,
  .order-modal-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .orders-hero-stats {
    grid-template-columns: 1fr;
  }

  .orders-toolbar,
  .orders-toolbar > * {
    width: 100%;
  }

  .order-info-grid {
    grid-template-columns: 1fr;
  }

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

  .order-actions .btn {
    width: 100%;
    min-width: 100%;
  }

  .delivery-field-top {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-btn-inline {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}