:root {
      --bg: #0b0d10;
      --panel: #11151b;
      --panel2: #0f1318;
      --text: #e9eef7;
      --muted: #a8b3c7;
      --accent: #f0c24b;
      --border: #223044;
      --danger: #ff6b6b;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
      background: linear-gradient(180deg, var(--bg), #06080b);
      color: var(--text);
    }
    header {
      padding: 18px 16px;
      border-bottom: 1px solid var(--border);
      background: rgba(17,21,27,0.85);
      position: sticky;
      top: 0;
      backdrop-filter: blur(8px);
      z-index: 10;
    }
    .wrap { max-width: 1280px; margin: 0 auto; }
    h1 { margin: 0; font-size: 18px; letter-spacing: 0.2px; }
    .sub { margin-top: 6px; color: var(--muted); font-size: 13px; }
    main { padding: 16px; }
    .grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      align-items: start;
    }
    @media (max-width: 980px) { .grid { grid-template-columns: 1fr; } }
    .card {
      background: rgba(17,21,27,0.9);
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }
    .card h2 {
      margin: 0;
      font-size: 14px;
      font-weight: 650;
      padding: 12px 12px;
      border-bottom: 1px solid var(--border);
      background: rgba(15,19,24,0.9);
    }
    .controls {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr 0.6fr;
      gap: 10px;
      padding: 12px;
      border-bottom: 1px solid var(--border);
    }
    @media (max-width: 720px) { .controls { grid-template-columns: 1fr; } }
    input, select, button {
      width: 100%;
      background: var(--panel2);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 10px 10px;
      border-radius: 10px;
      font-size: 14px;
      outline: none;
    }
    input::placeholder { color: #7f8aa1; }
    button { cursor: pointer; transition: transform 0.03s ease; }
    button:active { transform: translateY(1px); }
    .btn-accent { background: rgba(240,194,75,0.12); border-color: rgba(240,194,75,0.35); }
    .btn-danger { background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.35); color: #ffd2d2; }
    .list { max-height: 68vh; overflow: auto; }
    table { width: 100%; border-collapse: collapse; }
    th, td {
      text-align: left;
      padding: 10px 12px;
      border-bottom: 1px solid rgba(34,48,68,0.65);
      vertical-align: top;
      font-size: 13px;
    }
    th { color: var(--muted); font-weight: 650; position: sticky; top: 0; background: rgba(15,19,24,0.95); z-index: 2; }
    .muted { color: var(--muted); }
    .pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 2px 8px;
      border-radius: 999px;
      border: 1px solid rgba(34,48,68,0.9);
      color: var(--muted);
      font-size: 12px;
    }
    .qty { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
    .qty button { width: 34px; padding: 7px 0; border-radius: 10px; }
    .qty input { width: 54px; text-align: center; padding: 8px 6px; }
    .right { text-align: right; white-space: nowrap; }
    .order-summary { padding: 12px; display: grid; gap: 12px; }
    .order-table { width: 100%; }
    .order-table { table-layout: fixed; }
    .order-table td { word-break: break-word; }
    .order-category td {
      padding: 8px 12px;
      font-weight: 650;
      color: var(--muted);
      background: rgba(15,19,24,0.85);
    }
    .total {
      display: flex; justify-content: space-between; align-items: baseline;
      padding: 10px 12px; border: 1px solid rgba(34,48,68,0.9);
      border-radius: 12px; background: rgba(15,19,24,0.65);
    }
    .total .label { color: var(--muted); font-size: 13px; }
    .total .value { font-size: 22px; font-weight: 750; }
    .actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
    @media (max-width: 980px) { .actions { grid-template-columns: 1fr; } }
    .small { font-size: 12px; color: var(--muted); }
    .toast {
      position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px;
      background: rgba(15,19,24,0.95); border: 1px solid var(--border);
      padding: 10px 12px; border-radius: 12px; color: var(--text);
      display: none; z-index: 50; max-width: min(92vw, 780px);
    }
