:root{
  --bg:#0b1020;
  --panel:#0f172a;
  --panel2:#101c33;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:rgba(255,255,255,.09);
  --accent:#4cffd3;
  --accent2:#60a5fa;
  --danger:#ef4444;
  --warn:#f59e0b;
  --ok:#22c55e;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(76,255,211,.18), transparent 55%),
              radial-gradient(900px 600px at 85% 15%, rgba(96,165,250,.16), transparent 45%),
              var(--bg);
  color:var(--text);
}
a{color:inherit}
.wrap{width:min(980px, 100%); margin:0 auto; padding:18px 16px 28px}
.hidden{display:none !important}

.top{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.55);
  border-bottom:1px solid var(--border);
  padding:10px 14px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}
.brand{display:flex; align-items:center; gap:12px}
.brand__logo{width:44px; height:44px; border-radius:12px; border:1px solid rgba(255,255,255,.10)}
.brand__title{font-weight:900; letter-spacing:.2px}
.brand__sub{font-size:12.5px; color:var(--muted); margin-top:1px}
.top__actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end}

.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  border-radius:var(--radius);
  padding:18px;
  margin-top:18px;
}
h1{margin:6px 0 6px; font-size:26px}
p{margin:0 0 12px; line-height:1.55}
.muted{color:var(--muted)}
.small{font-size:12.5px}
.kicker{font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted)}

.label{display:block; margin:14px 0 8px; font-weight:700}
.search__row{display:flex; gap:10px; align-items:center}
.input{
  width:100%;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:var(--radius2);
  padding:13px 14px;
  color:var(--text);
  outline:none;
  font-size:16px;
}
.input:focus{border-color: rgba(76,255,211,.55); box-shadow:0 0 0 4px rgba(76,255,211,.12)}
.hint{margin-top:8px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  border-radius:14px;
  padding:12px 14px;
  border:1px solid transparent;
  font-weight:850;
  cursor:pointer;
  text-decoration:none;
  transition: transform .08s ease, filter .12s ease, background-color .12s ease, border-color .12s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px)}
.btn--primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#07101a;
}
.btn--ghost{
  background: rgba(255,255,255,.04);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover{filter:brightness(1.05)}
.btn--primary:hover{filter:brightness(1.05)}
.btn--small{padding:10px 12px; border-radius:12px; font-weight:900}

.statusArea{margin-top:18px; border-top:1px solid var(--border); padding-top:18px}
.statusHeader{display:flex; gap:14px; align-items:flex-end; justify-content:space-between; flex-wrap:wrap}
.code{font-weight:950; font-size:18px; letter-spacing:.08em}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:12px;
}
.badge[data-status="recibido"]{border-color:rgba(96,165,250,.35)}
.badge[data-status="confirmado"]{border-color:rgba(76,255,211,.35)}
.badge[data-status="procesado"]{border-color:rgba(245,158,11,.35)}
.badge[data-status="despachado"]{border-color:rgba(245,158,11,.45)}
.badge[data-status="en_transito"]{border-color:rgba(96,165,250,.45)}
.badge[data-status="listo_para_retiro"]{border-color:rgba(34,197,94,.45)}

.messageBox{
  margin-top:14px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius2);
  padding:14px;
}
.autoMessage{font-size:16px; font-weight:850}
.motivation{margin-top:6px; color:var(--muted)}

.progressWrap{margin-top:14px}
.progress{
  width:100%;
  height:12px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
}
.progress__bar{
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .6s ease;
}

.timeline{margin-top:16px}
.timeline__list{
  list-style:none;
  margin:10px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.step{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
}
.step__icon{
  width:36px; height:36px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  flex:0 0 auto;
}
.step__main{flex:1}
.step__title{font-weight:900}
.step__meta{margin-top:2px; font-size:12.5px; color:var(--muted)}
.step--done{border-color: rgba(34,197,94,.30)}
.step--active{border-color: rgba(76,255,211,.30)}
.step--todo{opacity:.78}

.guide{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:14px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
}
.guide__left{min-width:0}

.empty{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background: rgba(239,68,68,.06);
  border:1px solid rgba(239,68,68,.18);
}
.empty__title{font-weight:950; margin-bottom:6px}

.footer{margin-top:16px; text-align:center}

/* Admin */
.adminHeader{display:flex; gap:12px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap}
.controlsRow{display:flex; gap:10px; align-items:center; margin-top:14px}
.alert{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background: rgba(239,68,68,.06);
  border:1px solid rgba(239,68,68,.18);
}
.orders{display:flex; flex-direction:column; gap:12px; margin-top:14px}
.orderCard{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:14px;
}
.orderTop{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap}
.orderTitle{font-weight:950; letter-spacing:.06em}
.orderSub{margin-top:4px; color:var(--muted)}
.orderActions{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  font-weight:900;
}
.pill:hover{filter:brightness(1.05)}
.pill--active{border-color: rgba(76,255,211,.35)}
.pill--done{border-color: rgba(34,197,94,.35)}
.pill--danger{border-color: rgba(239,68,68,.35)}
.fileRow{
  margin-top:12px;
  padding-top:12px;
  border-top:1px dashed rgba(255,255,255,.12);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.fileRow__top{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.fileInput{color:var(--muted)}
