:root {
  --red: #a31b1b;
  --red-dark: #7a1313;
  --red-deep: #4f0b0b;
  --red-soft: #fbeeee;
  --ink: #231a1a;
  --muted: #7d7373;
  --line: #eee6e6;
  --bg: #fbf9f8;
  --ok: #1f8a4c;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(79, 11, 11, .10);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
.btn {
  border: 0; border-radius: 12px; padding: 12px 18px; font-size: 15px; font-weight: 700;
  background: var(--red); color: #fff; transition: transform .1s, background .2s, opacity .2s;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn.ghost:hover { background: var(--red-soft); }
.btn.ok { background: var(--ok); }
.btn.ok:hover { background: #17703c; }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { background: #fff; color: #b3261e; border: 1.5px solid #e6bcb9; }
input, textarea, select {
  font-family: inherit; font-size: 15px; width: 100%; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink); outline: none; transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--red); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
.hidden { display: none !important; }

/* Giriş penceresi (kasa / mutfak / yönetim) */
.login {
  position: fixed; inset: 0; z-index: 100; background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login .box { background: #fff; border-radius: 20px; padding: 28px 24px; width: 100%; max-width: 340px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login img { width: 130px; background: var(--red); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.login h2 { margin: 0 0 4px; font-size: 20px; }
.login p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.login input { text-align: center; letter-spacing: 6px; font-size: 20px; margin-bottom: 12px; }
.login .err { color: #b3261e; font-size: 13px; min-height: 18px; margin-bottom: 8px; }

/* Üst bar (personel sayfaları) */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 18px;
  background: linear-gradient(90deg, var(--red-dark), var(--red)); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.topbar img { height: 42px; }
.topbar h1 { margin: 0; font-size: 18px; font-weight: 700; flex: 1; }
.topbar .pill { background: rgba(255,255,255,.18); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.topbar a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; opacity: .85; }
.topbar a:hover { opacity: 1; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #5be38c; display: inline-block; margin-right: 6px; }
.dot.off { background: #ffb4a8; }
