:root {
  --bg: #0b0f14;
  --card: #121923;
  --muted: #9fb3c8;
  --text: #e6edf3;
  --accent: #22c55e;
  --accent-2: #60a5fa;
  --danger: #ef4444;
  --ring: rgba(96,165,250,0.35);
  --radius: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0b0f14, #0d131a 30%, #0b0f14 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: rgba(9,14,20,0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f2b3a;
}
header h1 { margin: 0; font-size: 18px; letter-spacing: .3px; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }

.grid { display: grid; gap: 16px; grid-template-columns: 1.2fr 2fr; }
@media (max-width: 980px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid #1f2b3a; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.25);
  overflow: hidden; }
.card h2 { margin: 0; padding: 14px 16px; font-size: 15px; letter-spacing: .2px; color: #cfe3ff; border-bottom: 1px solid #1f2b3a; background:#0f1620; }
.card .body { padding: 16px; }

label { display:block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #273549; background: #0e141c; color: var(--text);
  outline: none; transition: border .2s, box-shadow .2s; font-size: 14px;
}
input:focus, textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--ring); }
textarea { resize: vertical; min-height: 80px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.uploader { border: 1px dashed #324559; border-radius: 12px; padding: 14px; background: #0e141c; text-align: center; }
.uploader input { display: none; }
.uploader .btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #12202f; border: 1px solid #26405f; cursor: pointer; }

.actions { display:flex; gap:10px; flex-wrap:wrap; }
button { padding: 10px 14px; border-radius: 10px; border: 1px solid #26405f; background:#112033; color: #dce8f7; cursor: pointer; font-weight: 600; }
button.primary { background: linear-gradient(180deg, #22c55e, #16a34a); border: none; color:#041007; }
button.ghost { background: transparent; }
button.danger { background: #2a0f12; border-color: #3a1216; color: #ffb4b4; }

table { width: 100%; border-collapse: collapse; }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #9fb3c8; text-align: left; padding: 10px; background:#0f1620; border-bottom:1px solid #203045; position: sticky; top: 0; z-index: 5; }
tbody td { padding: 10px; border-bottom: 1px solid #203045; }
tbody tr:hover { background: #111b27; }
.qty { width: 80px; }
.money { text-align: right; font-variant-numeric: tabular-nums; }

.pill { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; background:#0e141c; border:1px solid #273549; font-size:12px; color:#9fb3c8; }
.summary { display:grid; grid-template-columns: 1fr auto; align-items:center; gap: 12px; }
.summary .total { font-size: 22px; font-weight: 700; }

.preview { background:#0f1620; border:1px dashed #2a405b; border-radius: 12px; padding: 12px; display:flex; align-items:center; gap:12px; }
.preview img { width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background:#0b0f14; border:1px solid #2a405b; }

.muted { color: var(--muted); }
