:root {
  --accent: #E86F00;
  --accent-ink: #b85600;
  --accent-soft: #fff3e8;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #1d1d1b;
  --muted: #6b6b66;
  --line: #e4e3df;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --ok: #1e7a46;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
[hidden] { display: none !important; }

/* Yükleniyor */
.boot { display: grid; place-items: center; height: 100vh; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Kart */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Marka */
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent) url("favicon.svg") center/cover; }

/* Giriş ekranları */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 380px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-card .brand { margin-bottom: 8px; }
.auth-card h1, .auth-card p { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.field input {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.hint { color: var(--muted); font-weight: 400; font-size: 12px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.pw-toggle:hover { background: var(--bg); color: var(--ink); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 13px; }
.row-between { display: flex; justify-content: space-between; align-items: center; }

/* Butonlar */
.btn { font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-ink); }
.btn-block { width: 100%; padding: 11px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover, .btn-ghost.active { background: var(--accent-soft); border-color: #f3c9a1; color: var(--accent-ink); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link:hover { color: var(--ink); }

/* Üst çubuk */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 10px 20px;
  background: var(--surface); border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tab:hover { background: var(--bg); color: var(--ink); }
.tab.active { background: var(--accent-soft); color: var(--accent-ink); }
.count { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.count:empty { display: none; }
.tab.active .count { background: #fff; color: var(--accent-ink); }
.top-actions { display: flex; align-items: center; gap: 8px; }

/* Kullanıcı menüsü */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.menu-pop { position: absolute; right: 0; top: 42px; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; z-index: 20; }
.menu-email { padding: 8px 10px; color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }
.menu-pop button { display: block; width: 100%; text-align: left; font: inherit; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.menu-pop button:hover { background: var(--bg); }

/* İçerik */
.content { padding: 20px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.empty { padding: 40px 24px; text-align: center; }
.empty-title { font-size: 28px; font-weight: 700; margin: 0 0 6px; }

/* Bildirim */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 10px 16px; border-radius: 8px; color: #fff; font-weight: 500; box-shadow: var(--shadow); z-index: 100; max-width: calc(100vw - 32px); }
.toast-ok { background: var(--ok); }
.toast-err { background: var(--danger); }

/* Mobil */
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .tabs { order: 3; flex-basis: 100%; }
  .top-actions { margin-left: auto; }
  .top-actions .btn { padding: 7px 10px; }
  .content { padding: 16px; }
}
