/* ============================================================
   Tori · מערכת עיצוב "כרטיס תור"
   נייר, דיו, ואדום של מכונת מספרים.
   --brand מוחלף בצבע של העסק בדף ההזמנה וביומן.
   ============================================================ */
:root {
  --paper: #f3ede2;
  --paper-2: #ebe3d4;
  --card: #fffaf0;
  --ink: #1b1712;
  --ink-2: #3a332a;
  --muted: #6d6457;
  --line: #1b1712;
  --soft-line: #d6ccba;
  --brand: #e0301e;
  --brand-ink: #ffffff;
  --brand-soft: #e0301e1a;
  --ok: #1d7a46;
  --warn: #b7791f;
  --bad: #c62a1a;
  --r: 6px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --display: 'Karantina', 'Rubik', system-ui, sans-serif;
  --body: 'Rubik', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(27, 23, 18, .06) 1px, transparent 1px);
  background-size: 4px 4px;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; }
h3 { font-size: 19px; font-weight: 700; }
.display { font-family: var(--display); font-weight: 700; line-height: .85; letter-spacing: .3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .5px; }

/* כפתורים: מלבן עם צל קשיח, נלחץ פנימה */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; padding: 13px 22px; border-radius: var(--r);
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); text-decoration: none;
  box-shadow: var(--shadow-sm); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn.red, .btn.brand { background: var(--brand); border-color: var(--ink); color: var(--brand-ink); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.sm { padding: 7px 13px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.btn.block { width: 100%; }

/* כרטיס: נייר לבן עם מסגרת דיו */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 22px; }
.card.shadow { box-shadow: var(--shadow); }

/* כרטיס תור: חורים בצדדים וקו ניקוב */
.ticket { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.ticket .notch { position: relative; border-top: 2px dashed var(--ink); margin: 0 -2px; }
.ticket .notch::before, .ticket .notch::after {
  content: ''; position: absolute; top: -14px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
}
.ticket .notch::before { right: -15px; clip-path: inset(0 50% 0 0); }
.ticket .notch::after { left: -15px; clip-path: inset(0 0 0 50%); }

/* תגית חותמת */
.pill { display: inline-block; padding: 3px 10px; border: 2px solid currentColor; border-radius: 4px; font-weight: 700; font-size: 13px; color: var(--brand); background: transparent; }
.stamp { display: inline-block; padding: 4px 12px; border: 2px solid var(--brand); color: var(--brand); border-radius: 4px; font-weight: 700; transform: rotate(-4deg); font-size: 14px; letter-spacing: .5px; }

/* טפסים */
label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--r);
  background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; box-shadow: var(--shadow-sm); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); }
.field { margin-bottom: 14px; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(140px); z-index: 99;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: var(--r); font-weight: 700;
  box-shadow: 4px 4px 0 var(--brand); transition: transform .3s; max-width: calc(100% - 32px);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.35); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
::selection { background: var(--brand); color: #fff; }
