/* BIDZ Token Assistance — shared styles */
:root {
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --bg-card: #111a2e;
  --bg-input: #0a1020;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2ff;
  --text-muted: #8b9bb8;
  --text-dim: #5c6b86;
  --accent: #6c5ce7;
  --accent-2: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.35);
  --coinstore: #00d4aa;
  --coinstore-dim: rgba(0, 212, 170, 0.15);
  --bitmart: #00b4ff;
  --bitmart-dim: rgba(0, 180, 255, 0.15);
  --trustwallet: #3375bb;
  --trustwallet-dim: rgba(51, 117, 187, 0.15);
  --success: #00c853;
  --warning: #ffb300;
  --danger: #ff5252;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(108, 92, 231, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(0, 180, 255, 0.12), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(0, 212, 170, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1180px;
}

/* ── Header ── */
.site-header {
  padding: 22px 0 8px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #00b4ff);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 24px var(--accent-glow);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img,
img.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 24px var(--accent-glow);
  background: #0a1020;
}

.brand-mark.brand-mark-lg,
img.brand-mark-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.footer-brand:hover {
  text-decoration: none;
  color: var(--text);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.badge img.exchange-badge-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.ex-pill img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
}

.brand-text span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Hero / intro ── */
.hero {
  text-align: center;
  padding: 28px 0 8px;
}

.hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 540px;
  margin: 0 auto;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.badge img,
.badge svg {
  width: 18px;
  height: 18px;
}

/* ── Notice cards ── */
.notice {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(108, 92, 231, 0.08);
  margin: 24px 0;
  align-items: flex-start;
}

.notice.success {
  background: rgba(0, 200, 83, 0.08);
  border-color: rgba(0, 200, 83, 0.25);
}

.notice.warning {
  background: rgba(255, 179, 0, 0.08);
  border-color: rgba(255, 179, 0, 0.25);
}

.notice-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-glow);
  color: var(--accent-2);
  font-size: 14px;
}

.notice.success .notice-icon {
  background: rgba(0, 200, 83, 0.2);
  color: var(--success);
}

.notice.warning .notice-icon {
  background: rgba(255, 179, 0, 0.2);
  color: var(--warning);
}

.notice-body {
  flex: 1;
  font-size: 14px;
  color: var(--text-muted);
}

.notice-body strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  font-size: 14.5px;
}

/* ── Card / form ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin: 8px 0 40px;
}

@media (min-width: 600px) {
  .card {
    padding: 32px 36px;
  }
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.step-pill {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-elevated);
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.step-pill.active {
  color: var(--text);
  background: rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.45);
}

.step-pill.done {
  color: var(--success);
  background: rgba(0, 200, 83, 0.1);
}

.form-section {
  display: none;
}

.form-section.active {
  display: block;
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
}

/* Exchange picker */
.exchange-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.exchange-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .exchange-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .exchange-grid {
    grid-template-columns: 1fr;
  }
}

.exchange-option {
  position: relative;
  cursor: pointer;
}

.exchange-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.exchange-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  transition: 0.2s ease;
  text-align: center;
}

.exchange-option:hover .exchange-card {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.exchange-option input:checked + .exchange-card {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.12);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.exchange-option input:checked + .exchange-card.coinstore-card {
  border-color: var(--coinstore);
  background: var(--coinstore-dim);
  box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.2);
}

.exchange-option input:checked + .exchange-card.bitmart-card {
  border-color: var(--bitmart);
  background: var(--bitmart-dim);
  box-shadow: 0 0 0 4px rgba(0, 180, 255, 0.2);
}

.exchange-option input:checked + .exchange-card.trustwallet-card {
  border-color: var(--trustwallet);
  background: var(--trustwallet-dim);
  box-shadow: 0 0 0 4px rgba(51, 117, 187, 0.22);
}

.trustwallet-card .exchange-logo {
  background: #0b1220;
}

.exchange-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #0a0f1a;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 10px;
}

.exchange-logo img,
.exchange-logo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.exchange-name {
  font-weight: 700;
  font-size: 16px;
}

.exchange-tag {
  font-size: 12px;
  color: var(--text-dim);
}

/* Form fields */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.field label .req {
  color: var(--danger);
  margin-left: 2px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: 0.2s ease;
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.08);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: rgba(108, 92, 231, 0.15);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  font-size: 22px;
}

.upload-zone h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.upload-zone p {
  font-size: 13px;
  color: var(--text-dim);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.preview-item button:hover {
  background: var(--danger);
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 12px;
  transition: 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5a4bd1);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
  flex: 1;
  min-width: 140px;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--text-muted);
}

.btn-danger {
  background: rgba(255, 82, 82, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 82, 82, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(255, 82, 82, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}

/* Review summary */
.summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.summary-row .label {
  color: var(--text-dim);
  font-weight: 500;
}

.summary-row .value {
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.summary-row .value .sum-exchange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.summary-row .value .sum-exchange img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

/* OTP verification step */
.otp-card {
  margin: 8px 0 20px;
  padding: 18px 18px 14px;
  border-radius: var(--radius, 14px);
  border: 1px solid var(--border);
  background: var(--bg-elevated, rgba(255, 255, 255, 0.03));
}

.otp-status {
  font-size: 14px;
  color: var(--text-muted, #9aa3b5);
  margin-bottom: 14px;
  line-height: 1.45;
}

.otp-card #otp {
  letter-spacing: 0.35em;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.otp-btn-row {
  margin-top: 4px;
  margin-bottom: 0;
}

.otp-debug {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px dashed rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
}

.db-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.db-status-item {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 13px;
}

.db-status-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.db-status-item .ok {
  color: #4ade80;
}

.db-status-item .bad {
  color: #f87171;
}

.summary-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.summary-images img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Success state */
.success-panel {
  text-align: center;
  padding: 20px 8px 8px;
}

.success-panel .big-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(0, 200, 83, 0.15);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 32px;
  border: 1px solid rgba(0, 200, 83, 0.3);
}

.success-panel h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.success-panel p {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 440px;
  margin: 0 auto 8px;
}

.ref-id {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--accent-2);
  border: 1px solid var(--border);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 28px 0 36px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12.5px;
}

.site-footer a {
  color: var(--text-muted);
}

/* Error toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #1a1020;
  border: 1px solid rgba(255, 82, 82, 0.4);
  color: #ffcdd2;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 1000;
  max-width: min(90vw, 420px);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.ok {
  border-color: rgba(0, 200, 83, 0.4);
  color: #c8e6c9;
  background: #0d1a14;
}

/* ═══════════════ ADMIN ═══════════════ */
.admin-body {
  background: #060910;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    display: none;
  }
  .admin-nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 50;
  }
}

.admin-nav {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav .brand {
  margin-bottom: 24px;
  padding: 0 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(108, 92, 231, 0.15);
  color: var(--text);
  text-decoration: none;
}

.nav-spacer {
  flex: 1;
}

.admin-main {
  padding: 24px 28px 48px;
  overflow-x: auto;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-topbar h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -0.03em;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

.toolbar select,
.toolbar input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}

.toolbar input {
  min-width: 200px;
  flex: 1;
}

.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table.subs {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.subs th {
  text-align: left;
  padding: 12px 14px;
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.subs td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.subs tr:last-child td {
  border-bottom: none;
}

table.subs tr {
  cursor: pointer;
  transition: background 0.12s;
}

table.subs tbody tr:hover {
  background: rgba(108, 92, 231, 0.06);
}

.ex-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.ex-pill.coinstore {
  background: var(--coinstore-dim);
  color: var(--coinstore);
}

.ex-pill.bitmart {
  background: var(--bitmart-dim);
  color: var(--bitmart);
}

.ex-pill.trustwallet {
  background: var(--trustwallet-dim);
  color: #7eb6ef;
  text-transform: none;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-pill.new {
  background: rgba(108, 92, 231, 0.2);
  color: var(--accent-2);
}

.status-pill.contacted {
  background: rgba(0, 180, 255, 0.15);
  color: var(--bitmart);
}

.status-pill.in_progress {
  background: rgba(255, 179, 0, 0.15);
  color: var(--warning);
}

.status-pill.resolved {
  background: rgba(0, 200, 83, 0.15);
  color: var(--success);
}

.status-pill.closed {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

/* Detail drawer / modal */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  backdrop-filter: blur(4px);
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

.drawer.open {
  transform: none;
}

.drawer-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-header h2 {
  font-size: 17px;
  font-weight: 700;
}

.drawer-header .meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
}

.drawer-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-grid {
  display: grid;
  gap: 14px;
}

.detail-item label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-item .val {
  font-size: 14.5px;
  font-weight: 500;
  word-break: break-word;
}

.detail-item a.val {
  color: var(--accent-2);
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.image-gallery a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  background: #000;
}

.image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.image-gallery a:hover img {
  transform: scale(1.04);
}

/* Login page */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.login-card .brand {
  justify-content: center;
  margin-bottom: 8px;
}

.login-card h1 {
  text-align: center;
  font-size: 20px;
  margin: 16px 0 6px;
}

.login-card .sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 28px;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-dim);
}

.empty-state p {
  margin-top: 8px;
  font-size: 14px;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

@media (max-width: 860px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
}

.hidden {
  display: none !important;
}

/* OTP verification step */
.otp-card {
  margin: 8px 0 20px;
  padding: 18px 18px 14px;
  border-radius: var(--radius, 14px);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.otp-status {
  font-size: 14px;
  color: var(--muted, #9aa3b5);
  margin-bottom: 14px;
  line-height: 1.45;
}

.otp-card #otp {
  letter-spacing: 0.35em;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.otp-btn-row {
  margin-top: 4px;
  margin-bottom: 0;
}

/* Optional Trust Wallet screenshots after address/amount */
#uploadZoneTrust {
  margin-top: 8px;
}

#uploadZoneTrust h3 {
  font-size: 0.95rem;
}

#step3Exchange .field,
#step3Trust .field {
  margin-bottom: 16px;
}

.steps {
  flex-wrap: wrap;
}
