:root {
  --brand: #e4572e;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e7e9ee;
  --bg: #f6f7f9;
  --card: #ffffff;
  --red: #d92d20;
  --green: #12a150;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.btn {
  border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700;
  background: var(--brand); color: #fff;
}
.btn:disabled { background: #c4c8d0; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #f3c7c3; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

label.field { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
label.field > span { display: block; margin-bottom: 5px; color: var(--muted); font-weight: 600; }
.input {
  width: 100%; padding: 11px 12px; border: 1px solid #d5d9e0; border-radius: 10px;
  background: #fff; font-size: 16px;
}
.input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }

.modal-back {
  position: fixed; inset: 0; background: rgba(15, 18, 25, .55); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  background: #fff; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto;
  border-radius: 20px 20px 0 0; padding: 18px 16px 22px;
}
@media (min-width: 700px) {
  .modal-back { align-items: center; }
  .modal { border-radius: 20px; }
}
.modal h3 { margin: 0 0 12px; font-size: 20px; }

.toast {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  background: #1f2430; color: #fff; padding: 11px 18px; border-radius: 12px;
  z-index: 100; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 92vw;
}
.toast.err { background: var(--red); }
