/* LVL LTD — Upload Content (every page) · low-physical · voice-friendly */
:root {
  --lvl-up-bg: rgba(20, 30, 48, 0.92);
  --lvl-up-border: rgba(99, 179, 237, 0.28);
  --lvl-up-primary: #3b82f6;
  --lvl-up-accent: #2dd4bf;
  --lvl-up-mm: #f6851b;
  --lvl-up-ok: #4ade80;
  --lvl-up-warn: #fbbf24;
  --lvl-up-danger: #f87171;
}

#lvl-upload-root { position: relative; z-index: 80; font-family: Inter, system-ui, sans-serif; }

.lvl-up-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.15rem; border-radius: 9999px; border: none;
  background: linear-gradient(135deg, var(--lvl-up-primary), #6366f1);
  color: #fff; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.45);
  min-height: 48px; min-width: 48px;
}
.lvl-up-fab:hover, .lvl-up-fab:focus-visible {
  filter: brightness(1.08); outline: 2px solid var(--lvl-up-accent); outline-offset: 2px;
}
.lvl-up-fab .lvl-up-fab-ico { font-size: 1.15rem; }

.lvl-up-backdrop {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.lvl-up-backdrop.open { opacity: 1; pointer-events: auto; }

.lvl-up-panel {
  position: fixed; z-index: 100;
  top: 0; right: 0; height: 100%; width: min(440px, 100vw);
  background: var(--lvl-up-bg); border-left: 1px solid var(--lvl-up-border);
  color: #f1f5f9; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .22s ease;
  box-shadow: -12px 0 40px rgba(0,0,0,.4);
}
.lvl-up-panel.open { transform: translateX(0); }

.lvl-up-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.lvl-up-head h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem; margin: 0 0 0.25rem; letter-spacing: -0.02em;
}
.lvl-up-head p { margin: 0; font-size: 0.78rem; color: #94a3b8; line-height: 1.4; }
.lvl-up-close {
  border: 1px solid rgba(255,255,255,.15); background: transparent; color: #e2e8f0;
  width: 2.5rem; height: 2.5rem; border-radius: 0.65rem; cursor: pointer; font-size: 1.25rem;
}
.lvl-up-close:hover, .lvl-up-close:focus-visible { border-color: var(--lvl-up-primary); }

.lvl-up-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem 1.5rem; display: grid; gap: 0.9rem; }

.lvl-up-drop {
  border: 2px dashed rgba(99, 179, 237, 0.4);
  border-radius: 1rem; padding: 1.5rem 1rem; text-align: center;
  background: rgba(15, 23, 42, 0.55); cursor: pointer; transition: border-color .15s, background .15s;
  min-height: 140px; display: grid; place-content: center; gap: 0.4rem;
}
.lvl-up-drop.drag, .lvl-up-drop:focus-within {
  border-color: var(--lvl-up-accent); background: rgba(45, 212, 191, 0.08);
}
.lvl-up-drop strong { font-size: 1rem; }
.lvl-up-drop span { font-size: 0.8rem; color: #94a3b8; }
.lvl-up-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.lvl-up-row { display: grid; gap: 0.35rem; }
.lvl-up-row label { font-size: 0.72rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.lvl-up-row input, .lvl-up-row select, .lvl-up-row textarea {
  width: 100%; border-radius: 0.65rem; border: 1px solid rgba(255,255,255,.12);
  background: rgba(2, 6, 23, 0.65); color: #f8fafc; padding: 0.7rem 0.8rem;
  font: inherit; font-size: 0.9rem; min-height: 44px;
}
.lvl-up-row textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.lvl-up-row input:focus, .lvl-up-row select:focus, .lvl-up-row textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.55); border-color: transparent;
}

.lvl-up-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lvl-up-chip {
  font-size: 0.75rem; padding: 0.35rem 0.65rem; border-radius: 9999px;
  background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.35); color: #93c5fd;
}
.lvl-up-chip.ok { background: rgba(74, 222, 128, 0.12); border-color: rgba(74, 222, 128, 0.4); color: #86efac; }
.lvl-up-chip.warn { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.4); color: #fde68a; }
.lvl-up-chip.bad { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); color: #fecaca; }

.lvl-up-price {
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.85rem 1rem; border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(45,212,191,.1));
  border: 1px solid rgba(99,179,237,.3);
}
.lvl-up-price .amt { font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; font-weight: 700; color: #fff; }
.lvl-up-price .unit { font-size: 0.85rem; color: #94a3b8; }

.lvl-up-md {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
  max-height: 160px; overflow: auto; padding: 0.75rem;
  background: rgba(2,6,23,.7); border-radius: 0.65rem; border: 1px solid rgba(255,255,255,.08);
  color: #cbd5e1;
}

.lvl-up-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lvl-up-actions .btn {
  flex: 1 1 auto; min-height: 48px; min-width: 120px;
  border-radius: 9999px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(30,41,59,.8); color: #f1f5f9; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; padding: 0.7rem 1rem;
}
.lvl-up-actions .btn-primary {
  background: linear-gradient(135deg, var(--lvl-up-primary), #4f46e5);
  border-color: transparent; color: #fff;
}
.lvl-up-actions .btn-mm {
  background: linear-gradient(135deg, var(--lvl-up-mm), #e2761b);
  border-color: transparent; color: #0b0c0f;
}
.lvl-up-actions .btn-premium {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  border-color: transparent; color: #fff;
}
.lvl-up-actions .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.lvl-up-tier { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.lvl-up-tier-btn {
  flex: 1 1 140px; min-height: 44px; border-radius: 0.75rem; cursor: pointer;
  border: 1px solid rgba(255,255,255,.15); background: rgba(15,23,42,.65);
  color: #e2e8f0; font-weight: 600; font-size: 0.82rem; padding: 0.55rem 0.75rem;
}
.lvl-up-tier-btn.active {
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
}
.lvl-up-tier-btn[data-tier="premium"].active {
  border-color: rgba(167, 139, 250, 0.6);
  background: rgba(124, 58, 237, 0.2);
  color: #ddd6fe;
}

.lvl-up-split { display: grid; gap: 0.55rem; }
.lvl-up-split-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.lvl-up-split-row > div {
  padding: 0.65rem 0.75rem; border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.55); border: 1px solid rgba(255,255,255,.08);
  display: grid; gap: 0.15rem;
}
.lvl-up-split-row strong { font-size: 1.05rem; color: #f8fafc; }
.lvl-up-split-row span { font-size: 0.72rem; color: #94a3b8; }

.lvl-up-preview-card {
  padding: 1rem; border-radius: 0.9rem;
  background: linear-gradient(160deg, rgba(30,41,59,.9), rgba(15,23,42,.85));
  border: 1px solid rgba(99,179,237,.25);
}
.lvl-up-preview-card h3 {
  margin: 0.4rem 0 0.35rem; font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem; letter-spacing: -0.02em;
}
.lvl-up-card-top { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.lvl-up-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: .04em;
  padding: 0.2rem 0.5rem; border-radius: 9999px;
  background: rgba(59,130,246,.2); color: #93c5fd; border: 1px solid rgba(59,130,246,.35);
}
.lvl-up-badge.prem { background: rgba(124,58,237,.25); color: #ddd6fe; border-color: rgba(167,139,250,.45); }
.lvl-up-badge.free { background: rgba(45,212,191,.12); color: #5eead4; border-color: rgba(45,212,191,.35); }
.lvl-up-card-desc { margin: 0; font-size: 0.82rem; color: #94a3b8; line-height: 1.45; min-height: 2.4rem; }
.lvl-up-card-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  margin-top: 0.75rem; padding-top: 0.65rem; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 0.8rem; color: #94a3b8;
}
.lvl-up-card-foot strong { font-size: 1.15rem; color: #4ade80; }

.lvl-up-mode { display: flex; gap: 0.4rem; margin-bottom: 0.25rem; }
.lvl-up-mode-btn {
  flex: 1; min-height: 44px; border-radius: 0.75rem; cursor: pointer; font-weight: 600; font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,.12); background: rgba(15,23,42,.55); color: #94a3b8;
}
.lvl-up-mode-btn.active {
  border-color: rgba(59,130,246,.5); background: rgba(59,130,246,.15); color: #93c5fd;
}
.lvl-up-buy-intro { margin: 0 0 0.5rem; font-size: 0.82rem; color: #94a3b8; line-height: 1.45; }
.lvl-up-escrow-addr { font-size: 0.7rem; color: #64748b; word-break: break-all; margin: 0.5rem 0 0; }
.lvl-up-escrow-addr a { color: #93c5fd; }

.lvl-up-status {
  font-size: 0.82rem; line-height: 1.45; padding: 0.75rem 0.85rem;
  border-radius: 0.65rem; background: rgba(15,23,42,.7); border: 1px solid rgba(255,255,255,.08);
  color: #cbd5e1; min-height: 2.5rem;
}
.lvl-up-status.ok { border-color: rgba(74,222,128,.4); color: #bbf7d0; }
.lvl-up-status.err { border-color: rgba(248,113,113,.4); color: #fecaca; }
.lvl-up-status a { color: #93c5fd; }

.lvl-up-safe {
  font-size: 0.72rem; color: #94a3b8; line-height: 1.4;
  padding: 0.5rem 0; border-top: 1px solid rgba(255,255,255,.06);
}

/* Inline section variant (full page) */
.lvl-up-section {
  max-width: 720px; margin: 0 auto; padding: 1.25rem;
  border-radius: 1rem; border: 1px solid var(--lvl-up-border);
  background: rgba(20, 30, 48, 0.55);
}
.lvl-up-section .lvl-up-panel {
  position: static; transform: none; width: 100%; height: auto;
  box-shadow: none; border: none; background: transparent;
}
.lvl-up-section .lvl-up-head { padding: 0 0 1rem; }
.lvl-up-section .lvl-up-body { padding: 0; }
.lvl-up-section .lvl-up-close { display: none; }

@media (max-width: 480px) {
  .lvl-up-fab span.lvl-up-fab-label { display: none; }
  .lvl-up-fab { border-radius: 50%; width: 56px; height: 56px; padding: 0; justify-content: center; }
}
