/* ============================================================
   Scientek Records — "My Orders" styles
   Drop-in: <link rel="stylesheet" href="scientek-orders.css">
   ============================================================ */

/* ---------- Nav button ---------- */
.my-orders-btn {
  appearance: none;
  border: 1px solid rgba(255, 200, 50, 0.45);
  background: linear-gradient(135deg, rgba(255, 200, 50, 0.08), rgba(255, 200, 50, 0.03));
  color: #ffd470;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-right: 0.5rem;
  white-space: nowrap;
}

.my-orders-btn:hover {
  background: linear-gradient(135deg, rgba(255, 200, 50, 0.18), rgba(255, 200, 50, 0.08));
  border-color: rgba(255, 200, 50, 0.7);
  transform: translateY(-1px);
}

.my-orders-btn:active { transform: translateY(0); }

/* ---------- Modal overlay ---------- */
.mo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 9999;
  padding: 4rem 1rem 2rem;
  overflow-y: auto;
  animation: moFade 0.18s ease-out;
}

.mo-overlay.is-open { display: flex; }

@keyframes moFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mo-panel {
  width: 100%;
  max-width: 720px;
  background: #0e1022;
  border: 1px solid rgba(255, 200, 50, 0.2);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  color: #fff;
  overflow: hidden;
  animation: moSlide 0.24s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes moSlide {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ---------- Header ---------- */
.mo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mo-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffd470;
  letter-spacing: 0.02em;
}

.mo-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.4rem;
  border-radius: 6px;
}

.mo-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Body ---------- */
.mo-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 1.2rem 1.4rem 1.4rem;
}

.mo-loading,
.mo-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.mo-empty-icon {
  font-size: 2.6rem;
  margin-bottom: 0.6rem;
}

.mo-empty-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.4rem;
}

/* ---------- Order card ---------- */
.mo-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mo-order {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.mo-o-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.mo-o-when {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.mo-o-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.mo-o-status.ok {
  background: rgba(72, 220, 120, 0.14);
  color: #6ee79a;
  border: 1px solid rgba(72, 220, 120, 0.3);
}

.mo-o-status.bad {
  background: rgba(255, 110, 110, 0.14);
  color: #ff9c9c;
  border: 1px solid rgba(255, 110, 110, 0.3);
}

.mo-o-items {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mo-o-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.2rem 0;
}

.mo-i-amt {
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mo-o-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.mo-o-ref {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mo-o-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffd470;
  font-variant-numeric: tabular-nums;
}

/* ---------- Small screens ---------- */
@media (max-width: 540px) {
  .mo-overlay { padding: 2rem 0.5rem 1rem; }
  .mo-panel   { border-radius: 12px; }
  .mo-header  { padding: 1rem 1rem; }
  .mo-body    { padding: 1rem; }
  .mo-title   { font-size: 1.15rem; }
}
