:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;line-height:1.4}
body{margin:0;background:#0b0f14;color:#e8eef6}
nav{padding:12px 16px;background:#111827;position:sticky;top:0}
nav a{color:#e8eef6;text-decoration:none;margin-right:12px}
.container{max-width:980px;margin:0 auto;padding:18px}
.card{background:#0f172a;border:1px solid #223047;border-radius:12px;padding:14px;margin:12px 0}
.row{display:flex;gap:12px;flex-wrap:wrap}
input,select,textarea{width:100%;padding:10px;border-radius:10px;border:1px solid #223047;background:#0b1220;color:#e8eef6}
label{font-size:12px;opacity:.85}
button{padding:10px 12px;border-radius:10px;border:1px solid #223047;background:#1f2937;color:#e8eef6;cursor:pointer}
button:hover{filter:brightness(1.1)}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;border:1px solid #223047;font-size:12px;margin-left:8px}
.muted{opacity:.8}
.small{font-size:12px}
hr{border:none;border-top:1px solid #223047;margin:14px 0}

/* --- UI Polish V6 --- */
a button{all:unset}
a button{display:inline-block}
button, .btn2{transition:filter .15s ease, transform .05s ease}
button:active, .btn2:active{transform:scale(.99)}
button[disabled], .btn2[disabled]{opacity:.55;cursor:not-allowed}

.badge{font-weight:600}
.badge.st-pending{background:#2b2a10}
.badge.st-confirmed{background:#1a2a3a}
.badge.st-shipped{background:#22213a}
.badge.st-delivered{background:#12351f}
.badge.st-cancelled{background:#3a1b1b}

.toast-wrap{position:fixed;inset:auto 14px 14px auto;display:flex;flex-direction:column;gap:10px;z-index:9999;max-width:360px}
.toast{background:#0f172a;border:1px solid #223047;border-radius:12px;padding:12px}
.toast .t-title{font-weight:700;margin-bottom:4px}
.toast.ok{border-color:#1e5c34}
.toast.err{border-color:#7a2a2a}

.skeleton{opacity:.8;animation:pulse 1.2s infinite ease-in-out}
@keyframes pulse{0%,100%{opacity:.55}50%{opacity:1}}

@media (max-width:720px){
  .scroll table thead{display:none}
  .scroll table, .scroll tbody, .scroll tr, .scroll td{display:block;width:100%}
  .scroll tr{border:1px solid #223047;border-radius:12px;margin:10px 0;background:#0b1220}
  .scroll td{border:none;border-bottom:1px solid #223047;display:flex;justify-content:space-between;gap:10px;white-space:normal}
  .scroll td::before{content:attr(data-label);opacity:.7;font-size:12px}
  .scroll td.right{justify-content:flex-end}
  .scroll td:last-child{border-bottom:none}
}
