:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #f59e0b;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--dark); }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 270px; background: #0f172a; color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; gap: 14px; align-items: center; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #2563eb, #06b6d4); display: grid; place-items: center; font-weight: 800; }
.brand h1 { margin: 0; font-size: 20px; }
.brand span { color: #94a3b8; font-size: 12px; }
nav { display: grid; gap: 7px; }
nav a { color: #cbd5e1; padding: 12px 14px; border-radius: 12px; cursor: default; }
nav a.active, nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.server-box { margin-top: auto; padding: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; color: #cbd5e1; font-size: 13px; line-height: 1.5; }
.pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; margin-right: 8px; box-shadow: 0 0 0 6px rgba(34,197,94,.15); }
.main { flex: 1; padding: 28px; overflow-x: auto; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 22px; }
.topbar h2 { margin: 0 0 5px; font-size: 28px; }
.topbar p { margin: 0; color: var(--muted); }
.user-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 13px 18px; box-shadow: var(--shadow); text-align: right; }
.user-card span { display: block; color: var(--muted); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stats div { background: var(--panel); padding: 18px; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stats span { color: var(--muted); display: block; margin-bottom: 8px; }
.stats strong { font-size: 28px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 20px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0 0 6px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 14px; }
.filters { display: flex; gap: 10px; }
input, select { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 14px; background: #fff; }
input { width: 310px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1120px; }
th { background: #f9fafb; text-align: left; font-size: 12px; letter-spacing: .04em; color: #4b5563; padding: 14px; border-bottom: 1px solid var(--line); }
td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
tr:hover td { background: #f8fafc; }
.order-id { font-weight: 800; color: var(--blue); }
.total { font-weight: 800; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.badge.processing { background: #fff7ed; color: #c2410c; }
.badge.accepted { background: #ecfdf5; color: #047857; }
.badge.cancelled { background: #fef2f2; color: #b91c1c; }
.actions { display: flex; gap: 8px; }
.btn { border: 0; border-radius: 11px; padding: 10px 12px; font-weight: 800; cursor: pointer; transition: .15s; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn.primary { background: var(--blue); color: white; }
.btn.accept { background: var(--green); color: white; }
.btn.reject { background: var(--red); color: white; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.full { width: 100%; margin-top: 14px; }
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.62); display: grid; place-items: center; padding: 20px; z-index: 10; }
.modal.hidden { display: none; }
.modal-card { width: min(520px, 100%); background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 30px 100px rgba(0,0,0,.25); position: relative; animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close { position: absolute; right: 18px; top: 14px; border: 0; background: transparent; font-size: 30px; cursor: pointer; color: var(--muted); }
.modal-icon { width: 58px; height: 58px; border-radius: 50%; background: #dcfce7; color: #15803d; display: grid; place-items: center; font-size: 30px; font-weight: 900; margin-bottom: 14px; }
.modal-card h3 { margin: 0 0 10px; font-size: 24px; }
.modal-card p { color: var(--muted); line-height: 1.5; }
.modal-card ol { background: #f8fafc; border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 16px 36px; line-height: 1.9; }
@media (max-width: 900px) {
  .app { display: block; }
  .sidebar { width: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .panel-head, .topbar, .filters { flex-direction: column; align-items: stretch; }
  input { width: 100%; }
}
