:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --green: #0f9d58;
  --blue: #2563eb;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}
.toast-root {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: grid;
  gap: 10px;
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease;
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.info { background: #2563eb; }
.toast.success { background: #0f9d58; }
.toast.error { background: #dc2626; }
.shell { max-width: 1120px; margin: 0 auto; padding: 24px; }
header { margin-bottom: 16px; }
header h1 { margin: 0 0 4px; font-size: 28px; }
header p { margin: 0; color: var(--muted); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.grid-two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { margin: 0 0 12px; font-size: 18px; }
button {
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}
button:hover { filter: brightness(0.95); }
.ghost-btn {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.danger-btn {
  background: #dc2626;
  color: #fff;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding: 10px 0;
}
.kv span { color: var(--muted); }
.kv b { text-align: right; word-break: break-word; }
.preview-box {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fafafa;
  display: grid;
  place-items: center;
}
.preview-box img {
  display: none;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.link-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fbfdff;
  margin-bottom: 12px;
}
.pay-link {
  color: var(--blue);
  text-decoration: none;
  word-break: break-all;
}
.pay-link:hover { text-decoration: underline; }
.placeholder {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}
.mini-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  word-break: break-all;
}
.mini-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.login-panel-header {
  align-items: flex-start;
  margin-bottom: 12px;
}
.login-actions {
  gap: 8px;
  flex-wrap: wrap;
}
.login-actions button {
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 8px;
}
.cookie-box {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.cookie-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.cookie-input {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}
.cookie-validate-hint {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  background: #f3f4f6;
  color: var(--muted);
  border: 1px solid var(--line);
}
.cookie-validate-hint.ok {
  background: #ecfdf3;
  border-color: #b7ebc6;
  color: #0f9d58;
}
.cookie-validate-hint.warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}
.cookie-validate-hint.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-actions button {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
}
.cookie-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
#login-qr-section {
  display: block;
}
.login-qr-hint {
  margin-bottom: 12px;
  min-height: 260px;
  display: none;
}
#login-qr-expire-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.user-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fafcff;
}
.user-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.user-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.user-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
}
.user-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}
.user-pill {
  align-self: flex-start;
  border-radius: 999px;
  background: #e5e7eb;
  color: var(--muted);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.user-pill.ok {
  background: #dcfce7;
  color: var(--green);
}
.user-pill.warn {
  background: #fef3c7;
  color: #92400e;
}
.user-pill.bad {
  background: #fee2e2;
  color: #991b1b;
}
.pill-stack {
  display: flex;
  gap: 8px;
  align-content: start;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.status-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}
.status-panel h2,
.status-panel .user-card {
  margin-bottom: 0;
}
.status-summary-card {
  padding: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
}
.status-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.status-metrics-grid {
  margin-top: 14px;
  width: 100%;
  max-width: 100%;
}
.status-metric {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 154px;
  flex: 1 0 154px;
  scroll-snap-align: start;
}
.status-metric.emphasis {
  flex: none;
  min-width: 0;
  width: 100%;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 52%, #38bdf8 100%);
  border-color: #93c5fd;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
  color: #fff;
}
.current-order-metric {
  position: relative;
  overflow: hidden;
  min-height: 82px;
  display: grid;
  gap: 12px;
  padding: 15px 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.current-order-metric::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -36px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
.current-order-primary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.current-order-inline-stats {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  position: relative;
  z-index: 1;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}
.current-order-stat {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 96px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  scroll-snap-align: start;
}
.status-metric span,
.diag-item span,
.current-order-stat span {
  color: var(--muted);
  font-size: 12px;
}
.status-metric.emphasis span,
.current-order-stat span {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}
.status-metric b,
.diag-item b,
.current-order-stat b {
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  word-break: break-word;
}
.status-metric.emphasis b {
  color: #fff;
  font-size: 20px;
  letter-spacing: .2px;
  position: relative;
  z-index: 1;
}
.current-order-stat b {
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}
.diagnostics-panel {
  margin-top: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
  overflow: hidden;
}
.diagnostics-panel summary {
  cursor: pointer;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 14px;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.diagnostics-panel summary::marker {
  color: #2563eb;
}
.diagnostics-panel summary small {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.diagnostics-panel[open] summary {
  border-bottom: 1px solid #bfdbfe;
}
.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}
.diag-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfdff;
  display: grid;
  gap: 6px;
  min-width: 0;
}
.diag-item.wide {
  grid-column: 1 / -1;
}
.status-kv {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fbfdff;
  min-height: 78px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.status-kv.wide {
  grid-column: 1 / -1;
  min-height: auto;
}
.status-kv.compact {
  min-height: 70px;
}
.status-panel .status-kv span {
  color: var(--muted);
  font-size: 12px;
}
.status-panel .status-kv b {
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}
.status-panel .status-kv.compact b {
  font-size: 14px;
}
.user-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.user-status-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 6px;
}
.user-status-item.wide {
  grid-column: 1 / -1;
}
.user-status-item span {
  color: var(--muted);
  font-size: 12px;
}
.user-status-item b {
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.orders,
.completed-orders-grid { display: grid; gap: 12px; }
.selection-summary {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}
.completed-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.completed-orders {
  display: grid;
  gap: 12px;
}
.completed-order-card {
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  box-shadow: 0 8px 18px rgba(15, 157, 88, 0.08);
}
.completed-order-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.completed-order-label {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: #dcfce7;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}
.completed-order-id {
  font-weight: 800;
  word-break: break-word;
}
.completed-order-amount {
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}
.completed-order-title {
  color: var(--text);
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}
.completed-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}
.completed-more {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  overflow: hidden;
}
.completed-more summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--green);
  font-weight: 800;
}
.completed-more .completed-orders-grid {
  padding: 0 12px 12px;
}
.order-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.order-check {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}
.order-select {
  width: 16px;
  height: 16px;
}
.order-id { font-weight: 700; margin-bottom: 6px; }
.order-title { color: var(--text); margin-bottom: 6px; white-space: pre-wrap; word-break: break-word; }
.order-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 14px 0; }
.pay-box { min-height: 300px; }
.pay-qr-hint {
  min-height: 300px;
  display: grid;
  place-items: center;
}
.order-actions { display: flex; align-items: center; }
.row-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.link-panel .kv:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 860px) {
  .grid-two { grid-template-columns: 1fr; }
  .status-panel { grid-template-columns: 1fr; }
  .status-panel .status-kv.wide { grid-column: auto; }
  .status-summary-head { display: grid; }
  .pill-stack { justify-content: flex-start; }
  .status-metrics-grid { margin-top: 14px; }
  .status-metric {
    flex: 0 0 168px;
    min-width: 168px;
  }
  .status-metric.emphasis {
    min-width: 100%;
  }
  .status-metric.emphasis b {
    font-size: 18px;
  }
  .current-order-metric {
    padding: 14px 12px 14px 14px;
    width: 100%;
    max-width: 100%;
  }
  .current-order-primary {
    display: grid;
    gap: 6px;
  }
  .current-order-inline-stats {
    gap: 8px;
    min-width: 0;
  }
  .current-order-stat {
    min-width: 88px;
  }
  .diagnostics-panel summary {
    align-items: flex-start;
  }
  .diagnostics-grid { grid-template-columns: 1fr; }
  .diag-item.wide { grid-column: auto; }
  .user-status-grid { grid-template-columns: 1fr; }
  .user-status-item.wide { grid-column: auto; }
  .completed-order-top { display: grid; }
  .completed-order-amount { white-space: normal; }
  .order-card { grid-template-columns: 1fr; }
  .order-actions { justify-content: flex-start; }
  .order-check { padding-top: 0; }
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-card {
  width: min(92vw, 440px);
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
  padding: 20px;
}
.modal-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Neon glass dashboard theme: local UI-only override */
:root {
  color-scheme: dark;
  --bg: #090416;
  --card: rgba(37, 18, 82, 0.58);
  --text: #f7f2ff;
  --muted: #c7b7f5;
  --line: rgba(216, 180, 254, 0.28);
  --green: #63f7b4;
  --blue: #8b5cf6;
  --neon-pink: #ff4fd8;
  --neon-cyan: #35e8ff;
  --neon-violet: #a855f7;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --shadow-neon: 0 0 0 1px rgba(216, 180, 254, 0.25), 0 24px 80px rgba(99, 33, 255, 0.34), inset 0 1px 0 rgba(255,255,255,0.18);
}

html { background: #070312; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 79, 216, .28), transparent 28vw),
    radial-gradient(circle at 88% 0%, rgba(53, 232, 255, .22), transparent 30vw),
    radial-gradient(circle at 50% 55%, rgba(139, 92, 246, .24), transparent 44vw),
    linear-gradient(135deg, #080312 0%, #16072d 46%, #071124 100%);
  color: var(--text);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 12%, black 0 42%, transparent 78%);
}
body::after {
  content: "";
  position: fixed;
  inset: -18%;
  pointer-events: none;
  z-index: -1;
  background: conic-gradient(from 210deg at 50% 45%, transparent, rgba(255,79,216,.13), transparent, rgba(53,232,255,.11), transparent);
  filter: blur(40px);
  animation: neonDrift 18s linear infinite;
}
@keyframes neonDrift { to { transform: rotate(1turn); } }

.shell {
  max-width: 1180px;
  padding: 28px;
  isolation: isolate;
}
header {
  position: relative;
  margin-bottom: 18px;
  border: 1px solid rgba(216, 180, 254, .28);
  border-radius: 28px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  box-shadow: var(--shadow-neon);
  backdrop-filter: blur(22px) saturate(150%);
  overflow: hidden;
}
header::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,79,216,.48), rgba(139,92,246,.18) 45%, transparent 70%);
  filter: blur(4px);
}
header h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 6vw, 58px);
  line-height: .98;
  letter-spacing: -.06em;
  max-width: 720px;
  background: linear-gradient(90deg, #fff 0%, #e9d5ff 38%, #67e8f9 72%, #ff8be7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(168, 85, 247, .26);
}
header p {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #d8c7ff;
  font-size: 15px;
  letter-spacing: .02em;
}

.card,
.cookie-box,
.preview-box,
.link-panel,
.status-summary-card,
.completed-more,
.modal-card {
  border: 1px solid rgba(216, 180, 254, .25);
  background: linear-gradient(145deg, rgba(36, 18, 76, .72), rgba(15, 9, 34, .58));
  box-shadow: var(--shadow-neon);
  backdrop-filter: blur(24px) saturate(155%);
}
.card {
  border-radius: 26px;
  padding: 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.18), transparent 18%, transparent 75%, rgba(53,232,255,.12));
  opacity: .76;
}
.card > * { position: relative; z-index: 1; }
h2 {
  color: #fff;
  letter-spacing: -.035em;
  text-shadow: 0 0 20px rgba(168, 85, 247, .36);
}

button,
.ghost-btn {
  border: 1px solid rgba(216, 180, 254, .45);
  background: linear-gradient(135deg, rgba(168,85,247,.95), rgba(236,72,153,.86));
  color: #fff;
  box-shadow: 0 0 18px rgba(168,85,247,.28), inset 0 1px 0 rgba(255,255,255,.24);
  font-weight: 800;
}
.ghost-btn {
  background: rgba(255,255,255,.08);
  color: #efe7ff;
}
button:hover { filter: brightness(1.08) saturate(1.1); transform: translateY(-1px); }
button:focus-visible,
summary:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}

.cookie-box,
.link-panel { border-radius: 22px; }
.cookie-label,
.cookie-hint,
.mini-meta,
.placeholder,
.kv span { color: var(--muted); }
.cookie-input {
  color: #fff;
  background: rgba(10, 4, 24, .58);
  border: 1px solid rgba(216, 180, 254, .28);
  box-shadow: inset 0 0 30px rgba(0,0,0,.2);
}
.cookie-input::placeholder { color: rgba(231, 216, 255, .62); }
.preview-box { background: rgba(10, 4, 24, .48); }

.user-card.status-summary-card {
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255,255,255,.14), rgba(69, 29, 124, .36) 45%, rgba(5, 9, 26, .56));
}
.status-summary-head { border-bottom-color: rgba(216,180,254,.24); }
.user-label,
.user-meta { color: var(--muted); }
.user-name { color: #fff; text-shadow: 0 0 18px rgba(255,79,216,.22); }
.user-pill {
  background: rgba(255,255,255,.1);
  color: #efe7ff;
  border: 1px solid rgba(216,180,254,.28);
  box-shadow: 0 0 18px rgba(168,85,247,.13);
}
.user-pill.ok {
  background: rgba(34, 197, 94, .15);
  color: #86efac;
  border-color: rgba(134,239,172,.42);
}
.user-pill.warn {
  background: rgba(251, 191, 36, .16);
  color: #fde68a;
  border-color: rgba(253,230,138,.42);
}
.user-pill.bad {
  background: rgba(248, 113, 113, .16);
  color: #fecaca;
  border-color: rgba(254,202,202,.42);
}

.current-order-metric {
  border: 1px solid rgba(255, 79, 216, .38);
  background:
    radial-gradient(circle at 84% 5%, rgba(53,232,255,.38), transparent 32%),
    radial-gradient(circle at 5% 85%, rgba(255,79,216,.34), transparent 36%),
    linear-gradient(135deg, rgba(88, 28, 135, .96), rgba(124, 58, 237, .86) 48%, rgba(14, 165, 233, .75));
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 34px rgba(255,79,216,.28), 0 18px 46px rgba(20, 8, 48, .42);
}
.current-order-metric::after { background: rgba(255,255,255,.2); }
.current-order-primary span,
.current-order-stat span { color: rgba(255,255,255,.76); }
.current-order-primary b {
  color: #fff;
  text-shadow: 0 0 24px rgba(255,255,255,.38), 0 0 36px rgba(53,232,255,.28);
}
.current-order-stat {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 18px rgba(53,232,255,.1);
}

.diagnostics-panel {
  border-color: rgba(53,232,255,.36);
  background: linear-gradient(135deg, rgba(14, 165, 233, .16), rgba(168,85,247,.13));
  box-shadow: 0 0 22px rgba(53,232,255,.14), inset 0 1px 0 rgba(255,255,255,.14);
}
.diagnostics-panel summary {
  color: #cffafe;
  text-shadow: 0 0 16px rgba(53,232,255,.34);
}
.diagnostics-panel summary small { color: #d8b4fe; }
.diagnostics-grid { background: rgba(2, 6, 23, .22); }
.diag-item {
  border-color: rgba(216,180,254,.22);
  background: rgba(255,255,255,.07);
}
.diag-item span { color: #c4b5fd; }
.diag-item b { color: #fff; }

.completed-summary { color: #c4b5fd; }
.completed-order-card {
  border-color: rgba(99, 247, 180, .42);
  background:
    radial-gradient(circle at 100% 0%, rgba(99,247,180,.24), transparent 34%),
    linear-gradient(145deg, rgba(22, 78, 99, .36), rgba(36, 18, 76, .62));
  box-shadow: 0 0 26px rgba(99,247,180,.12), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(18px) saturate(150%);
}
.completed-order-label {
  background: rgba(99,247,180,.16);
  color: #a7f3d0;
  border: 1px solid rgba(99,247,180,.32);
}
.completed-order-id,
.completed-order-title { color: #fff; }
.completed-order-amount { color: #86efac; text-shadow: 0 0 18px rgba(99,247,180,.3); }
.completed-order-meta { color: #c7d2fe; }
.completed-more summary { color: #a7f3d0; }

.order-card {
  border-color: rgba(216,180,254,.22);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: 0 14px 34px rgba(6, 3, 18, .22), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
}
.order-id,
.order-title { color: #fff; }
.order-meta { color: #c4b5fd; }
.order-select { accent-color: var(--neon-pink); }
.empty {
  color: #d8b4fe;
  border: 1px dashed rgba(216,180,254,.28);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.05);
}
.pay-link { color: #67e8f9; text-shadow: 0 0 14px rgba(53,232,255,.18); }
.kv { border-bottom-color: rgba(216,180,254,.18); }
.kv b { color: #fff; }
.toast { box-shadow: 0 0 24px rgba(168,85,247,.32); }
.toast.info { background: linear-gradient(135deg, #7c3aed, #0ea5e9); }
.toast.success { background: linear-gradient(135deg, #059669, #14b8a6); }
.toast.error { background: linear-gradient(135deg, #dc2626, #c026d3); }
.modal-backdrop { background: rgba(5, 1, 15, .72); backdrop-filter: blur(10px); }
.modal-card { color: #fff; }
.modal-card p { color: var(--muted); }

@media (max-width: 860px) {
  .shell { padding: 18px; }
  header { border-radius: 24px; padding: 20px; }
  .card { border-radius: 24px; padding: 18px; }
  .login-panel-header .row-actions { width: 100%; }
  .login-panel-header .row-actions button { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .shell { padding: 14px; }
  header h1 { font-size: 42px; }
  .current-order-primary b { font-size: 24px; }
  .card { padding: 16px; }
}

/* Neon glass dashboard refinements: compact console-first mobile layout */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  line-height: 1.55;
}
.shell {
  width: min(100%, 1180px);
}
header {
  min-height: auto;
}
header h1 {
  font-family: 'DIN Alternate', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  text-wrap: balance;
}
header p {
  font-weight: 700;
}
.grid-two {
  align-items: start;
}
#status-panel {
  position: relative;
}
.status-summary-card {
  position: relative;
  overflow: hidden;
}
.status-summary-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -22% 35%;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(53,232,255,.20), transparent 64%);
  pointer-events: none;
}
.pill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.current-order-metric {
  grid-template-columns: minmax(180px, .92fr) minmax(260px, 1.35fr);
  align-items: stretch;
  gap: 14px;
}
.current-order-primary {
  display: grid;
  align-content: center;
  justify-content: start;
  gap: 8px;
}
.current-order-primary span::before {
  content: "◆";
  margin-right: 8px;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan);
}
.current-order-primary b {
  font-family: 'DIN Alternate', 'SF Mono', ui-monospace, monospace;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.current-order-inline-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
  padding-bottom: 0;
}
.current-order-stat {
  min-width: 0;
}
.current-order-stat b {
  white-space: normal;
  overflow-wrap: anywhere;
}
.diagnostics-panel {
  position: relative;
}
.diagnostics-panel summary::before {
  content: "⚡";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 999px;
  color: #04111f;
  background: linear-gradient(135deg, #67e8f9, #d8b4fe);
  box-shadow: 0 0 22px rgba(53,232,255,.42);
  flex: 0 0 auto;
}
.diagnostics-panel summary span {
  margin-right: auto;
}
.completed-orders-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.completed-order-card {
  position: relative;
  overflow: hidden;
}
.completed-order-card::after {
  content: "PAID";
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-family: 'DIN Alternate', ui-monospace, monospace;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: .08em;
  color: rgba(167,243,208,.075);
  pointer-events: none;
}
.order-card {
  position: relative;
  overflow: hidden;
}
.order-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--neon-pink), var(--neon-cyan));
  box-shadow: 0 0 18px rgba(255,79,216,.35);
}
.order-card > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) {
  .current-order-metric {
    grid-template-columns: 1fr;
  }
  .current-order-inline-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  #status-panel {
    order: -1;
  }
  header {
    padding: 18px;
    border-radius: 22px;
  }
  header h1 {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.05;
    letter-spacing: -.045em;
  }
  header p {
    margin-top: 8px;
    font-size: 13px;
  }
  .row {
    align-items: flex-start;
  }
  h2 {
    font-size: 22px;
    line-height: 1.18;
  }
  button,
  .ghost-btn {
    min-height: 42px;
    font-size: 14px;
  }
  .status-summary-head {
    gap: 12px;
    padding-bottom: 12px;
  }
  .user-name {
    font-size: 28px;
    line-height: 1.1;
  }
  .current-order-primary b {
    font-size: 24px;
  }
  .completed-orders-grid {
    grid-template-columns: 1fr;
  }
  .login-panel-header {
    display: grid;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .shell {
    padding: 12px;
  }
  header h1 {
    font-size: 32px;
  }
  .card {
    padding: 14px;
    border-radius: 22px;
  }
  .status-summary-card {
    padding: 14px;
  }
  h2 {
    font-size: 20px;
  }
  .user-name {
    font-size: 25px;
  }
  .user-meta {
    font-size: 12px;
  }
  .user-pill {
    font-size: 12px;
    padding: 7px 10px;
  }
  .current-order-metric {
    padding: 14px;
    gap: 12px;
  }
  .current-order-primary b {
    font-size: 22px;
  }
  .current-order-inline-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .current-order-stat {
    padding: 8px;
  }
  .current-order-stat span {
    font-size: 11px;
  }
  .current-order-stat b {
    font-size: 13px;
  }
  .diagnostics-panel summary {
    padding: 12px;
    gap: 8px;
  }
  .diagnostics-panel summary small {
    display: block;
    max-width: 128px;
    line-height: 1.35;
  }
  .cookie-input {
    min-height: 92px;
    font-size: 13px;
  }
  .completed-order-card,
  .order-card {
    padding: 12px;
  }
  .completed-order-amount {
    font-size: 16px;
  }
  .order-actions button {
    width: 100%;
  }
}

/* Tone pass: push primary emphasis toward purple / neon instead of blue */
.current-order-metric {
  background:
    radial-gradient(circle at 82% 8%, rgba(53,232,255,.30), transparent 28%),
    radial-gradient(circle at 8% 86%, rgba(255,79,216,.28), transparent 34%),
    linear-gradient(135deg, rgba(88, 28, 135, .98), rgba(168, 85, 247, .88) 52%, rgba(236, 72, 153, .72));
}
.current-order-stat {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(216,180,254,.22);
}
.current-order-primary span,
.current-order-stat span {
  color: rgba(255,255,255,.88);
}
.status-summary-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255,79,216,.11), transparent 30%),
    linear-gradient(150deg, rgba(255,255,255,.12), rgba(75, 29, 130, .48) 42%, rgba(8, 4, 24, .66));
}
.completed-order-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(53,232,255,.13), transparent 26%),
    radial-gradient(circle at 0% 100%, rgba(255,79,216,.10), transparent 25%),
    linear-gradient(145deg, rgba(27, 31, 73, .54), rgba(36, 18, 76, .64));
}

/* User console login: purple neon glass theme aligned with dashboard */
.user-login-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: #f7f2ff;
  background:
    radial-gradient(circle at 10% 6%, rgba(255, 79, 216, .30), transparent 28vw),
    radial-gradient(circle at 88% 10%, rgba(53, 232, 255, .22), transparent 30vw),
    radial-gradient(circle at 50% 100%, rgba(168, 85, 247, .34), transparent 34vw),
    linear-gradient(135deg, #13071f 0%, #23085d 44%, #071528 100%);
}
.user-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}
.user-login-page::after {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(from 230deg at 50% 45%, transparent, rgba(255,79,216,.12), transparent, rgba(53,232,255,.11), transparent);
  filter: blur(42px);
  animation: neonDrift 22s linear infinite;
}
.user-login-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: min(760px, 100vh);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(360px, 520px);
  align-items: center;
  gap: 28px;
}
.user-login-hero {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(216, 180, 254, .22);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,79,216,.22), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(53,232,255,.16), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  box-shadow: 0 24px 72px rgba(9, 4, 22, .50), 0 0 34px rgba(168, 85, 247, .15);
  backdrop-filter: blur(22px) saturate(150%);
  overflow: hidden;
}
.user-login-hero::before {
  content: "JDPay";
  position: absolute;
  left: 28px;
  top: 28px;
  font-family: 'DIN Alternate', 'PingFang SC', ui-sans-serif, sans-serif;
  font-size: clamp(58px, 9vw, 110px);
  line-height: .86;
  letter-spacing: -.07em;
  background: linear-gradient(90deg, #fff, #e9d5ff 38%, #67e8f9 72%, #ff8be7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(168, 85, 247, .26);
}
.user-login-hero::after {
  content: "用户控制台";
  position: absolute;
  left: 32px;
  top: 142px;
  color: rgba(255,255,255,.90);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .04em;
}
.login-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: .82;
}
.orb-pink {
  width: 260px;
  height: 260px;
  right: -80px;
  top: -70px;
  background: radial-gradient(circle, rgba(255,79,216,.52), rgba(168,85,247,.16) 58%, transparent 72%);
}
.orb-cyan {
  width: 300px;
  height: 300px;
  left: -110px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(53,232,255,.36), rgba(14,165,233,.13) 58%, transparent 72%);
}
.login-route-line {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 34px;
  border: 1px solid rgba(216,180,254,.25);
  border-radius: 22px;
  padding: 16px 18px;
  color: #d8c7ff;
  background: rgba(255,255,255,.07);
  font-weight: 900;
  backdrop-filter: blur(16px);
}
.user-login-card {
  position: relative;
  border: 1px solid rgba(216, 180, 254, .28);
  border-radius: 34px;
  padding: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,79,216,.24), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(53,232,255,.13), transparent 34%),
    linear-gradient(145deg, rgba(36,18,76,.78), rgba(10,4,24,.68));
  box-shadow: 0 28px 82px rgba(9, 4, 22, .56), 0 0 38px rgba(168, 85, 247, .18);
  backdrop-filter: blur(26px) saturate(165%);
  overflow: hidden;
}
.user-login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.20), transparent 20%, transparent 72%, rgba(53,232,255,.12));
}
.user-login-card > * { position: relative; z-index: 1; }
.login-kicker {
  color: #bdefff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.user-login-card h1 {
  margin: 8px 0 0;
  font-family: 'DIN Alternate', 'PingFang SC', ui-sans-serif, sans-serif;
  font-size: clamp(42px, 8vw, 70px);
  line-height: .96;
  letter-spacing: -.06em;
  background: linear-gradient(90deg, #fff, #e9d5ff 40%, #67e8f9 78%, #ff8be7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-subtitle {
  margin: 12px 0 24px;
  color: #d8c7ff;
  line-height: 1.7;
  font-weight: 700;
}
.login-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #c7b7f5;
  font-size: 13px;
  font-weight: 900;
}
.login-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(216, 180, 254, .30);
  border-radius: 17px;
  padding: 13px 15px;
  color: #fff;
  background: rgba(10, 4, 24, .62);
  box-shadow: inset 0 0 30px rgba(0,0,0,.22);
  outline: none;
  font: inherit;
  font-weight: 800;
}
.login-field input::placeholder { color: rgba(231, 216, 255, .58); }
.login-field input:focus-visible {
  border-color: rgba(53,232,255,.70);
  outline: 2px solid rgba(53,232,255,.70);
  outline-offset: 3px;
}
.login-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  border-radius: 17px;
  border: 1px solid rgba(216, 180, 254, .45);
  color: #fff;
  background: linear-gradient(135deg, rgba(168,85,247,.98), rgba(236,72,153,.88));
  box-shadow: 0 0 20px rgba(168,85,247,.28), inset 0 1px 0 rgba(255,255,255,.24);
  font-size: 17px;
  font-weight: 900;
}
.login-submit:hover { filter: brightness(1.08) saturate(1.1); transform: translateY(-1px); }
.login-error {
  margin-top: 14px;
  border: 1px solid rgba(251,113,133,.40);
  border-radius: 15px;
  padding: 11px 12px;
  color: #fecdd3;
  background: rgba(251,113,133,.13);
  font-weight: 800;
}
.login-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}
.login-meta-grid div {
  min-width: 0;
  border: 1px solid rgba(216,180,254,.22);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255,255,255,.07);
}
.login-meta-grid b,
.login-meta-grid span { display: block; }
.login-meta-grid b { color: #fff; font-size: 13px; }
.login-meta-grid span { margin-top: 3px; color: #9eefff; font-size: 12px; font-weight: 800; }
@media (max-width: 860px) {
  .user-login-page { place-items: start center; }
  .user-login-shell {
    min-height: 100vh;
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }
  .user-login-hero {
    min-height: 180px;
    border-radius: 26px;
  }
  .user-login-hero::before {
    left: 22px;
    top: 22px;
    font-size: clamp(46px, 15vw, 70px);
  }
  .user-login-hero::after {
    left: 24px;
    top: 92px;
    font-size: 22px;
  }
  .login-route-line {
    left: 22px;
    right: 22px;
    bottom: 18px;
    padding: 11px 13px;
    font-size: 13px;
  }
  .user-login-card {
    border-radius: 26px;
    padding: 24px;
  }
  .user-login-card h1 { font-size: 44px; }
}
@media (max-width: 460px) {
  .user-login-shell { padding: 12px; }
  .user-login-hero { min-height: 160px; }
  .user-login-card { padding: 20px; }
  .login-meta-grid { grid-template-columns: 1fr; }
  .login-field input,
  .login-submit { min-height: 50px; }
  .login-route-line { font-size: 12px; }
}

/* User login mobile containment pass */
.user-login-hero,
.user-login-card {
  width: 100%;
  min-width: 0;
}
.user-login-card,
.user-login-card * {
  min-width: 0;
}
.login-subtitle,
.login-route-line,
.login-meta-grid b,
.login-meta-grid span {
  overflow-wrap: anywhere;
}
@media (max-width: 860px) {
  .user-login-shell {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }
}
@media (max-width: 520px) {
  .user-login-shell {
    max-width: none;
  }
}

/* User login hero mobile spacing fix */
@media (max-width: 860px) {
  .user-login-hero {
    min-height: 240px;
  }
  .user-login-hero::after {
    top: 118px;
  }
  .login-route-line {
    bottom: 20px;
  }
}
@media (max-width: 460px) {
  .user-login-hero {
    min-height: 228px;
  }
  .user-login-hero::before {
    font-size: 60px;
  }
  .user-login-hero::after {
    top: 104px;
    font-size: 23px;
  }
  .login-route-line {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}
