/* Orders + payment / proof sheet */
.order-filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.order-filter-inputs { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 4px 10px; min-height: 40px; }
.order-filter-inputs input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 13px; font-weight: 600; color: var(--text); width: 64px; padding: 6px 0; }
.order-filter-sep { color: var(--text-muted); font-weight: 700; }
#ordersList { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(160deg, #ffffff 0%, #eff6ff 45%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 16px;
  padding: 16px;
  box-shadow:
    0 6px 18px rgba(37, 99, 235, 0.1),
    0 2px 6px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.order-card-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.order-amount { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: #0f172a; line-height: 1.15; }
.order-id-row { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: #94a3b8; }
.order-profit-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.order-profit { font-size: 14px; font-weight: 800; color: #16a34a; }
.order-rate { font-size: 11px; font-weight: 700; color: #2563eb; background: #dbeafe; padding: 2px 8px; border-radius: 999px; }
.btn-buy { flex-shrink: 0; min-width: 78px; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 15px; font-weight: 800; }
.order-card-top {
  background: linear-gradient(160deg, #ffffff 0%, #fef2f2 40%, #fee2e2 100%) !important;
  border-color: #fca5a5 !important;
  box-shadow:
    0 6px 18px rgba(220, 38, 38, 0.1),
    0 2px 6px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
.order-card-top .order-amount { color: #b91c1c; }

.pay-sheet-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.55) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
}
.pay-sheet {
  width: 100%;
  max-width: 430px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(15,23,42,.2);
}
.pay-sheet h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.pay-sheet .pay-sub { font-size: 13px; color: #64748b; margin-bottom: 12px; }
.pay-amount { font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.pay-timer { text-align: center; font-size: 14px; font-weight: 800; color: #dc2626; margin-bottom: 12px; }
.pay-qr-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
.pay-qr-wrap img { width: 220px; height: 220px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; }
.pay-upi { text-align: center; font-family: ui-monospace, monospace; font-size: 13px; font-weight: 700; color: #2563eb; margin-bottom: 6px; word-break: break-all; }
.pay-note { text-align: center; font-size: 12px; color: #94a3b8; margin-bottom: 14px; }
.pay-actions { display: flex; flex-direction: column; gap: 8px; }
.pay-step2 .field { margin-bottom: 12px; }
.pay-step2 label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 6px; }
.pay-step2 input[type=text],
.pay-step2 input[type=tel] {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #e2e8f0;
  background: #f8fafc; font-size: 16px; font-weight: 700; letter-spacing: .08em; outline: none;
}
.pay-step2 input:focus { border-color: #2563eb; background: #fff; }
.pay-upload {
  border: 1.5px dashed #cbd5e1; border-radius: 12px; padding: 16px; text-align: center;
  background: #f8fafc; cursor: pointer; position: relative;
}
.pay-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pay-upload strong { display: block; font-size: 13px; color: #0f172a; margin-bottom: 4px; }
.pay-upload span { font-size: 12px; color: #94a3b8; }
.pay-preview { max-width: 100%; max-height: 160px; border-radius: 10px; margin-top: 10px; display: none; }
.pay-preview.show { display: block; margin: 10px auto 0; }
.btn-submit-pay:disabled { opacity: .45; cursor: not-allowed; }

#historyList { display: flex; flex-direction: column; gap: 10px; }
.history-card {
  background: linear-gradient(160deg, #ffffff 0%, #eff6ff 45%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow:
    0 6px 16px rgba(37, 99, 235, 0.08),
    0 2px 5px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.history-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.history-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.history-card-amt {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.history-card-amt.plus { color: #16a34a; }
.history-card-amt.minus { color: #dc2626; }
.history-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}
.history-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.history-status.ok { background: #dcfce7; color: #15803d; }
.history-status.bad { background: #fee2e2; color: #b91c1c; }
.history-status.wait { background: #fef3c7; color: #b45309; }
.history-utr {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.history-time { margin-left: auto; }

.history-card.dep {
  background: linear-gradient(160deg, #ffffff 0%, #ecfdf5 40%, #d1fae5 100%);
  border-color: #6ee7b7;
  border-left: 4px solid #22c55e;
  box-shadow:
    0 6px 16px rgba(22, 163, 74, 0.12),
    0 2px 5px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.history-card.wd {
  background: linear-gradient(160deg, #ffffff 0%, #fef2f2 40%, #fee2e2 100%);
  border-color: #fca5a5;
  border-left: 4px solid #ef4444;
  box-shadow:
    0 6px 16px rgba(220, 38, 38, 0.12),
    0 2px 5px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.orders-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.orders-sum-sub {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
}
.orders-sum-card {
  background: linear-gradient(160deg, #ffffff 0%, #eff6ff 45%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.orders-sum-label {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.orders-sum-value {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.02em;
}
.orders-sum-value.green { color: #16a34a; }
.orders-sum-value.accent { color: #2563eb; }
.orders-sum-card.done .orders-sum-value { color: #64748b; font-size: 14px; }

.orders-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
}
.orders-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all .15s;
}
.orders-tab.active {
  background: #fff;
  color: #1e40af;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.order-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.order-chips::-webkit-scrollbar { display: none; }
.order-chip {
  flex-shrink: 0;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.order-chip.active {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}

.order-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.order-first-badge {
  font-size: 10px;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.order-card-first {
  border-color: #fcd34d !important;
  background: linear-gradient(160deg, #ffffff 0%, #fffbeb 40%, #fef3c7 100%) !important;
}
.order-id-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.order-copy-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.order-copy-id:active { background: #cbd5e1; }
.order-profit-extra {
  font-size: 11px;
  font-weight: 800;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 6px;
}

.empty-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

#myOrdersList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.my-order-card {
  background: linear-gradient(160deg, #ffffff 0%, #eff6ff 45%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.my-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.my-order-amt {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.02em;
}
.my-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}
.my-order-earn {
  font-weight: 800;
  color: #16a34a;
}
.my-order-time { margin-left: auto; }

.my-order-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.my-tl-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.my-tl-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.my-tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid #cbd5e1;
  z-index: 1;
  position: relative;
}
.my-tl-label {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.my-tl-step.done .my-tl-dot {
  background: #22c55e;
  border-color: #16a34a;
}
.my-tl-step.done .my-tl-label { color: #16a34a; }
.my-tl-step.done:not(:last-child)::after { background: #86efac; }
.my-tl-step.active .my-tl-dot {
  background: #fbbf24;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}
.my-tl-step.active .my-tl-label { color: #b45309; }
.my-tl-step.fail .my-tl-dot {
  background: #ef4444;
  border-color: #dc2626;
}
.my-tl-step.fail .my-tl-label { color: #dc2626; }

/* ===== How to Earn guide ===== */
#ordersView .page-header {
  justify-content: space-between;
}
.how-earn-btn {
  margin-left: auto;
  flex-shrink: 0;
  border: 1.5px solid #93c5fd;
  background: linear-gradient(160deg, #ffffff 0%, #eff6ff 100%);
  color: #1e40af;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
  white-space: nowrap;
}
.how-earn-btn:active { background: #dbeafe; }

.how-earn-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.how-earn-sheet {
  width: 100%;
  max-width: 430px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
}
.how-earn-sheet h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}
.how-earn-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
}
.how-earn-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.how-earn-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-earn-step-body {
  flex: 1;
  min-width: 0;
}
.how-earn-step-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}
.how-earn-step-text {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}
.how-earn-tip {
  margin-top: 8px;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  font-size: 12px;
  color: #1e40af;
  font-weight: 600;
  line-height: 1.45;
}
.how-earn-close {
  margin-top: 16px;
  width: 100%;
}
