:root {
  --primary: #0e7c86; --primary-dark: #0a5f67; --primary-light: #e6f4f5;
  --bg: #f4f7f8; --card: #fff; --text: #1d2b33; --muted: #6b7c86; --border: #e2e8eb;
  --pending: #b7791f; --pending-bg: #fdf3e1; --ok: #2f855a; --ok-bg: #e3f4ea;
  --bad: #c53030; --bad-bg: #fde8e8; --grey-bg: #edf0f2;
  --radius: 14px; --shadow: 0 2px 10px rgba(0,0,0,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; font-size: 16px; }
.hidden { display: none !important; }

.btn { background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 15px; font-weight: 700; }
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn.danger { background: var(--bad); }
.btn.ok { background: var(--ok); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.wa { background: #1f8f4e; display: block; text-align: center; text-decoration: none; }
.btn.wa:hover { background: #18733e; }
.btn.wa.sm { display: inline-block; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.s-pending { background: var(--pending-bg); color: var(--pending); }
.s-confirmed, .s-done { background: var(--ok-bg); color: var(--ok); }
.s-rejected, .s-cancelled, .s-noshow { background: var(--bad-bg); color: var(--bad); }
.s-done { background: var(--grey-bg); color: var(--muted); }

.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: #1d2b33; color: #fff; padding: 10px 20px; border-radius: 30px; z-index: 100; font-size: 14px; box-shadow: var(--shadow); }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.stars { color: #e5a00d; letter-spacing: 1px; }

.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 22px; }
.modal h3 { margin-bottom: 14px; }
.modal .foot { display: flex; gap: 8px; justify-content: flex-start; margin-top: 8px; }
