@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-1: #eaf2ff;
  --bg-2: #f8fafc;
  --card: #ffffff;
  --card-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #073b8f;
  --brand-2: #0b4bb3;
  --brand-soft: #e7efff;
  --navy: #0f172a;
  --ok: #07855b;
  --ok-soft: #d1fae5;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --mine: #4f46e5;
  --mine-soft: #e0e7ff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(7, 59, 143, .08);
  --shadow-lg: 0 20px 55px rgba(7, 59, 143, .14);
  --side-w: 264px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-1: #0b1222;
    --bg-2: #0f172a;
    --card: #131c31;
    --card-2: #182238;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --line: #243049;
    --brand: #60a5fa;
    --brand-2: #3b82f6;
    --brand-soft: #172a4d;
    --navy: #020617;
    --ok: #34d399;
    --ok-soft: #0f2f26;
    --warn: #fbbf24;
    --warn-soft: #3a2a0c;
    --bad: #f87171;
    --bad-soft: #3b1414;
    --mine: #a5b4fc;
    --mine-soft: #232a55;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 20px 55px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1200px 600px at 0% -10%, var(--bg-1), transparent 70%), var(--bg-2);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0 0 6px; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 8px; }
a { color: var(--brand); }
code { background: var(--card-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; padding: 48px 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

/* ===== keret: oldalsáv + fejléc ===== */
.shell { min-height: 100vh; }
.side {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: var(--side-w);
  background: var(--navy); color: #cbd5e1;
  padding: 18px 14px; padding-top: max(18px, env(safe-area-inset-top));
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(-100%); transition: transform .22s ease;
}
.side.open { transform: none; box-shadow: var(--shadow-lg); }
.scrim { display: none; position: fixed; inset: 0; z-index: 25; background: rgba(15, 23, 42, .45); }
.scrim.open { display: block; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; color: #fff; }
.side .brand b { display: block; font-size: 15px; }
.side .brand span { font-size: 12px; color: #94a3b8; }
.side .sep { margin: 16px 10px 6px; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .08em; }
.side a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  color: #cbd5e1; text-decoration: none; font-weight: 500; font-size: 14px;
}
.side a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side a.on { background: linear-gradient(135deg, #0b4bb3, #073b8f); color: #fff; font-weight: 600; box-shadow: 0 8px 20px rgba(11, 75, 179, .35); }
.side a .ic { width: 22px; text-align: center; font-size: 16px; }
.side .me { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side .me .who { display: flex; gap: 10px; align-items: center; padding: 6px 6px 10px; color: #fff; }

.logo-tile {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #0b4bb3, #073b8f); font-size: 20px; flex: none;
  box-shadow: 0 6px 16px rgba(7, 59, 143, .35);
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px;
}
.side .avatar { background: rgba(255, 255, 255, .1); color: #fff; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .title { flex: 1; min-width: 0; }
.topbar .title b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title span { font-size: 12px; color: var(--muted); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; font-size: 18px; cursor: pointer; color: var(--text); padding: 0; min-height: 0;
}

main { max-width: 1080px; margin: 0 auto; padding: 20px 16px 110px; }

.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20;
  display: flex; padding: 6px; gap: 4px;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
}
.tabbar a {
  flex: 1; text-align: center; padding: 6px 2px; text-decoration: none; border-radius: 14px;
  color: var(--muted); font-size: 11px; font-weight: 600;
}
.tabbar a span { display: block; font-size: 19px; line-height: 1.35; }
.tabbar a.on { background: var(--brand-soft); color: var(--brand); }

@media (min-width: 960px) {
  .side { transform: none; }
  .scrim, .scrim.open { display: none; }
  .shell { padding-left: var(--side-w); }
  #menu-btn { display: none; }
  .tabbar { display: none; }
  main { padding: 28px 32px 40px; }
}

/* ===== oldalfejléc ===== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { margin: 0; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }

/* ===== kártyák ===== */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card + .card, .card + .grid, .grid + .card, .hero + .card, .card + .hero { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.hero {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px; color: #fff;
  background: radial-gradient(500px 220px at 100% 0%, rgba(96, 165, 250, .45), transparent 60%), linear-gradient(135deg, #0b4bb3, #073b8f 55%, #0f172a);
  box-shadow: var(--shadow-lg);
}
.hero .eyebrow { color: #bfdbfe; }
.hero h2 { color: #fff; font-size: 20px; }
.hero .muted { color: #c7d7f5; }
.hero .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hero .chip-lite { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); color: #fff; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.hero .btn { background: #fff; color: var(--brand); border-color: #fff; }
.hero .car-emoji { position: absolute; right: 18px; top: 14px; font-size: 54px; opacity: .9; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .3)); }

.kpi-card { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.kpi-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; }
.kpi { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.tone-brand .ico { background: var(--brand-soft); }
.tone-ok .ico { background: var(--ok-soft); }
.tone-warn .ico { background: var(--warn-soft); }
.tone-bad .ico { background: var(--bad-soft); }
a.kpi-card:hover { border-color: var(--brand); }

/* magyar rendszámtábla */
.plate {
  display: inline-flex; align-items: stretch; border: 2px solid #111827; border-radius: 6px; overflow: hidden;
  background: #fff; color: #111827; font-weight: 800; letter-spacing: .06em; font-size: 14px; line-height: 1;
  vertical-align: middle; white-space: nowrap;
}
.plate i { font-style: normal; background: #1d4ed8; color: #fde047; font-size: 9px; padding: 3px 4px; display: flex; align-items: flex-end; }
.plate span { padding: 4px 7px; }
.plate.lg { font-size: 26px; border-width: 3px; border-radius: 9px; }
.plate.lg i { font-size: 13px; padding: 5px 6px; }
.plate.lg span { padding: 7px 12px; }

/* ===== gombok, mezők ===== */
button, .btn {
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 12px; padding: 9px 16px; min-height: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; transition: transform .05s, background .15s, box-shadow .15s;
}
button:hover, .btn:hover { border-color: #cbd5e1; }
button:active, .btn:active { transform: translateY(1px); }
button.primary, .btn.primary {
  background: linear-gradient(135deg, #0b4bb3, #073b8f); border-color: transparent; color: #fff;
  box-shadow: 0 8px 20px rgba(7, 59, 143, .25);
}
button.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: var(--bad-soft); }
button.ghost { border-color: transparent; background: transparent; }
button.sm, .btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
button:disabled { opacity: .5; cursor: default; }
button.block { width: 100%; }

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
input, select, textarea {
  font: inherit; width: 100%; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 18%, transparent); background: var(--card); }
textarea { min-height: 100px; resize: vertical; }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--text); font-weight: 500; margin-bottom: 10px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 3px 10px; background: var(--card-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.badge.mine { background: var(--mine-soft); color: var(--mine); border-color: transparent; }

.list > * { padding: 13px 0; border-bottom: 1px solid var(--line); }
.list > *:first-child { padding-top: 0; }
.list > *:last-child { border-bottom: 0; padding-bottom: 0; }

.item { display: flex; gap: 12px; align-items: center; }
.item .date-tile {
  width: 48px; flex: none; text-align: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); padding: 5px 0;
  font-weight: 800; font-size: 18px; line-height: 1.1;
}
.item .date-tile small { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chip { border-radius: 999px; padding: 7px 14px; min-height: 36px; white-space: nowrap; font-weight: 600; font-size: 13px; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.empty { text-align: center; padding: 26px 12px; color: var(--muted); }
.empty .big { font-size: 38px; display: block; margin-bottom: 6px; }

/* ===== naptár ===== */
/* minmax(0, 1fr): a cellák szövege nem tolhatja szélesebbre az oszlopokat (mobilon kilógott) */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.cal .day {
  min-height: 62px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  padding: 6px; font-size: 12px; text-align: left; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start; font-weight: 500; box-shadow: none;
  min-width: 0; overflow: hidden;
}
.cal .day b { font-size: 15px; }
.cal .day .who { font-size: 10px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.cal .day.free { background: color-mix(in srgb, var(--ok-soft) 55%, var(--card)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.cal .day.free b { color: var(--text); }
.cal .day.taken { background: var(--card-2); color: var(--muted); }
.cal .day.mine { background: var(--mine-soft); color: var(--mine); border-color: var(--mine); }
.cal .day.req { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.cal .day.booked { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); align-items: flex-start; text-align: left; }
.cal .day.booked b { color: var(--bad); }
.cal .day.booked .who { font-weight: 700; }
.cal .day .sub { font-size: 9.5px; opacity: .85; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.carcal-big .day { min-height: 58px; padding: 6px 8px; }
.carcal-big .day .who { font-size: 11px; }
/* Hazavitel (partner kezdőlap): engedélyezve / elutasítva / engedélyre vár */
.th-ok { background: var(--ok-soft); border: 2px solid var(--ok); }
.th-ok .th-big { font-size: 26px; font-weight: 900; color: var(--ok); letter-spacing: .5px; line-height: 1.1; margin-bottom: 4px; }
.th-no { background: var(--bad-soft); border: 2px solid var(--bad); color: var(--bad); }
.th-wait { background: var(--warn-soft); border: 2px solid var(--warn); }
.th-fee { background: var(--bad-soft); border: 2px solid var(--bad); border-radius: 12px; padding: 12px 14px; margin: 8px 0 12px; }
.th-fee p { margin: 6px 0; font-size: 15px; }
.th-fee-big { font-size: 18px; font-weight: 900; color: var(--bad); margin-bottom: 4px; }

/* Havi naptár: szabad helyek sávja a lap tetején (elkülönül az autók naptárától) */
.free-band { background: linear-gradient(135deg, #0b4bb3, #073b8f); color: #fff; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.free-band .fb-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.free-band .fb { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px 7px; border-radius: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font: inherit; cursor: pointer; }
.free-band .fb .n i { font-style: normal; font-weight: 600; opacity: .85; margin-right: 3px; font-size: 9.5px; }
.free-band .fb small { font-size: 10px; text-transform: uppercase; opacity: .75; }
.free-band .fb b { font-size: 16px; line-height: 1.1; }
.free-band .fb .n { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; color: #fff; }
.free-band .fb .n.ok { background: #10b981; }
.free-band .fb .n.warn { background: #f59e0b; }
.free-band .fb .n.bad { background: #ef4444; }
.free-band .fb.past { opacity: .45; }
.free-band .fb.today { border-color: #fff; border-width: 2px; }
.free-band .fb.sel { background: #fff; color: var(--brand); }
.free-band .fb.sel small { opacity: 1; }
.cal .day.past { opacity: .4; }
.cal .day.sel { background: linear-gradient(135deg, #0b4bb3, #073b8f); color: #fff; border-color: transparent; }
.cal .day.sel b { color: #fff; }
.cal .day.today { box-shadow: 0 0 0 2px var(--brand-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.month-nav b { font-size: 17px; text-transform: capitalize; }

/* ===== teszt sáv, visszajelzés ===== */
.test-banner {
  background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  padding: 9px 16px; font-size: 13px; text-align: center; font-weight: 500;
}
.fb-btn {
  position: fixed; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 19;
  border-radius: 999px; min-height: 40px; padding: 8px 14px; font-size: 13px;
  background: var(--navy); color: #fff; border: 0; box-shadow: var(--shadow-lg);
}
@media (min-width: 960px) { .fb-btn { bottom: 24px; } }

/* ===== kis képernyő (telefon) ===== */
html, body { overflow-x: clip; }
@media (max-width: 560px) {
  main { padding-left: 12px; padding-right: 12px; }
  .card, .book-summary { padding: 14px 12px; }
  .cal { gap: 3px; }
  .cal .dow { font-size: 10px; }
  .cal .day { min-height: 48px; padding: 4px 3px; border-radius: 8px; }
  .cal .day b { font-size: 13px; }
  .cal .day .who { font-size: 8.5px; }
  .fb-btn { width: 48px; height: 48px; padding: 0; min-height: 0; font-size: 0; }
  .fb-btn::before { content: '💡'; font-size: 22px; }
  h1 { font-size: 22px; }
}

.cq-alert {
  display: flex; gap: 12px; align-items: flex-start; margin: 14px 0;
  background: var(--bad-soft); color: var(--text); border: 2px solid var(--bad); border-radius: var(--radius); padding: 14px 16px;
}
.cq-alert b { color: var(--bad); }
.cq-alert .cq-ic { font-size: 28px; line-height: 1; }
.nav-badge {
  margin-left: auto; background: #ef4444; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center;
}
.inbox-alert {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; text-decoration: none; color: var(--text);
  background: var(--brand-soft); border: 2px solid var(--brand-2); border-radius: var(--radius); padding: 12px 16px;
}
.inbox-alert .ic { font-size: 24px; }
.change-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 400; color: var(--text); margin: 0; font-size: 14px; }
.change-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.pref-box { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; margin: 10px 0 14px; }
.pref-box > label:first-child { color: var(--text); font-size: 14px; }
.wait-box { background: var(--card-2); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.wait-box.on { background: var(--warn-soft); border: 1px solid var(--warn); }
.freed-alert {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px;
  background: var(--ok-soft); border: 2px solid var(--ok); border-radius: var(--radius); padding: 14px 16px;
}
.freed-alert b { color: var(--ok); }
.hero-neighbors { margin-top: 12px; font-size: 13px; color: #dbeafe; display: grid; gap: 4px; }
.hero-neighbors b { color: #fff; }
.neighbors { margin-top: 4px; display: grid; gap: 2px; }
.request-box { background: var(--warn-soft); border-radius: 12px; padding: 10px 12px; margin: 10px 0 14px; }

/* ===== díjazási útmutató ===== */
.guide-hero { border: 2px solid var(--brand-soft); }
.formula {
  background: var(--warn-soft); color: var(--text); border-radius: 12px; padding: 12px 14px; margin: 12px 0;
  font-weight: 700; text-align: center; font-size: 15px;
}
.guide-note { border-left: 4px solid var(--brand-2); background: var(--brand-soft); padding: 10px 12px; margin: 10px 0; border-radius: 0; }
.guide-note.tone-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.guide-list { margin: 6px 0; padding-left: 20px; }
.guide-list li { margin: 6px 0; }

/* ===== partner foglalás ===== */
.admin-for {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 16px;
}
.admin-for label { margin: 0; font-size: 14px; color: var(--text); }
.admin-for select { flex: 1; min-width: 200px; }
.admin-for.on { border: 2px solid var(--warn); background: var(--warn-soft); }
.book-summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; display: grid; gap: 14px; margin-bottom: 14px;
}
.book-summary .month-nav b { font-size: 18px; }
.sum-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum-stats > div { background: var(--card-2); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; }
.sum-stats .kpi { font-size: 26px; }
.seg { display: inline-flex; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; min-height: 34px; padding: 5px 14px; border-radius: 9px; font-size: 13px; color: var(--muted); box-shadow: none; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

.daystrip {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 4px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.dpill {
  flex: none; width: 66px; min-height: 0; padding: 8px 4px; border-radius: 16px; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 500;
  background: var(--card); border: 1px solid var(--line); box-shadow: none;
}
.dpill small { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.dpill b { font-size: 20px; line-height: 1.1; }
.dpill span { font-size: 11px; color: var(--ok); font-weight: 600; white-space: nowrap; }
.dpill.full span { color: var(--bad); }
.dpill.mine { background: var(--mine-soft); border-color: var(--mine); }
.dpill.mine span { color: var(--mine); font-size: 14px; }
.dpill.past { opacity: .45; }
.dpill.on { background: linear-gradient(135deg, #0b4bb3, #073b8f); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(7, 59, 143, .3); }
.dpill.on small, .dpill.on span { color: #dbeafe; }

.cargrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.carcard { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--card); transition: border-color .15s; }
.carcard:hover { border-color: var(--brand-2); }
.carcard.taken { background: var(--card-2); opacity: .6; }
.carcard.taken:hover { border-color: var(--line); }
.carcard.mine { border-color: var(--mine); background: var(--mine-soft); }
.my-day { background: var(--mine-soft); color: var(--mine); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ===== táblázatok ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--card-2); }
th, td { border-bottom: 1px solid var(--line); padding: 11px 14px; text-align: left; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.card .table-wrap { box-shadow: none; border-radius: var(--radius-sm); }

.month th, .month td { border-right: 1px solid var(--line); padding: 0; text-align: center; min-width: 58px; }
.month th { padding: 8px 2px; }
.month th:first-child, .month td:first-child {
  position: sticky; left: 0; background: var(--card); text-align: left; padding: 8px 12px; min-width: 150px; z-index: 1;
}
.month th:first-child { background: var(--card-2); }
.month td button {
  width: 100%; min-height: 46px; border: 0; border-radius: 0; padding: 2px; font-size: 11px; font-weight: 700; background: transparent; box-shadow: none;
}
.month td button:hover { background: var(--card-2); }
.month td.has button { background: var(--brand-soft); color: var(--brand); }
.month td.adhoc button { background: var(--warn-soft); color: var(--warn); }
.month td.req button { background: var(--bad-soft); color: var(--bad); }
.month td.past button { opacity: .5; }
.month th.we { color: var(--bad); }
.month th.today { background: var(--brand-soft); color: var(--brand); }
.month .wish { display: block; font-size: 10px; font-weight: 500; color: var(--muted); }

/* ===== fotók ===== */
.steps { display: flex; gap: 8px; margin-bottom: 14px; }
.steps .step { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.steps .step.done { background: var(--ok); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.slot {
  position: relative; border: 2px dashed var(--line); border-radius: 16px; min-height: 116px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 8px; text-align: center; cursor: pointer; overflow: hidden; background: var(--card-2);
  font-weight: 600; color: var(--text); margin: 0; transition: border-color .15s;
}
.slot:hover { border-color: var(--brand-2); }
.slot.done { border-style: solid; border-color: var(--ok); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.slot span { position: relative; font-weight: 700; font-size: 13px; }
.slot .ic { position: relative; font-size: 24px; }
.slot input { display: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs a img { width: 100px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ===== modális ablak, értesítés ===== */
dialog {
  border: 0; border-radius: 24px; padding: 0; width: min(540px, calc(100vw - 24px));
  background: var(--card); color: var(--text); max-height: calc(100vh - 40px); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); }
.modal-body { padding: 22px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }

#toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100vw - 32px); z-index: 50; font-weight: 600;
}
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--bad); }

/* ===== belépés ===== */
/* ---- Belépőoldal: „Éjszakai neon” (2026-10-26) – sötét háttér, mozgó izzó fények, üvegkártya ---- */
.neon { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 32px 16px; overflow: hidden; background: #050816; color: #e2e8f0; font-family: Inter, system-ui, sans-serif; }
.neon-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; will-change: transform; }
.neon-glow.g1 { width: 520px; height: 520px; background: #2563eb; left: -140px; top: -160px; animation: neon-float 9s ease-in-out infinite alternate; }
.neon-glow.g2 { width: 460px; height: 460px; background: #a21caf; right: -120px; bottom: -180px; animation: neon-float 11s ease-in-out infinite alternate-reverse; }
.neon-glow.g3 { width: 300px; height: 300px; background: #0ea5e9; right: 18%; top: -120px; opacity: .3; animation: neon-float 13s ease-in-out infinite alternate; }
.neon-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(99,102,241,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,.12) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 25%, transparent 72%); mask-image: radial-gradient(circle at 50% 45%, #000 25%, transparent 72%); }
@keyframes neon-float { to { transform: translate(60px, 40px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .neon-glow { animation: none; } }
.neon-card { position: relative; z-index: 1; width: min(410px, 100%); padding: 36px 30px 28px; border-radius: 28px; background: rgba(15, 23, 42, .55);
  border: 1px solid rgba(148, 163, 184, .22); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, .15), 0 30px 80px rgba(0, 0, 0, .55); }
.neon-logo { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; font-size: 34px; background: #0b1229;
  box-shadow: 0 0 0 2px #6366f1, 0 0 28px #6366f1, 0 0 64px rgba(168, 85, 247, .6); animation: neon-pulse 3.2s ease-in-out infinite; }
@keyframes neon-pulse { 50% { box-shadow: 0 0 0 2px #8b5cf6, 0 0 36px #8b5cf6, 0 0 80px rgba(236, 72, 153, .55); } }
.neon-card h1 { text-align: center; margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(90deg, #60a5fa, #c084fc, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.neon-sub { text-align: center; color: #94a3b8; margin: 6px 0 20px; font-size: 14.5px; }
.neon-pill { display: block; width: fit-content; margin: 0 auto 18px; font-size: 12px; font-weight: 600; color: #6ee7b7; padding: 5px 12px; border-radius: 999px;
  background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .35); }
.neon-field { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
.neon-field .ic { position: absolute; left: 15px; font-size: 16px; opacity: .75; pointer-events: none; }
.neon-field input { width: 100%; height: 54px; padding: 0 48px 0 44px; border-radius: 15px; font-size: 16px; color: #e2e8f0; background: rgba(2, 6, 23, .6);
  border: 1px solid rgba(148, 163, 184, .25); transition: border-color .15s, box-shadow .15s; }
.neon-field input::placeholder { color: #64748b; }
.neon-field input:focus { outline: none; border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99, 102, 241, .22), 0 0 22px rgba(129, 140, 248, .35); }
.neon-field input:-webkit-autofill { -webkit-text-fill-color: #e2e8f0; -webkit-box-shadow: 0 0 0 40px #0b1229 inset; caret-color: #e2e8f0; }
.neon-eye { position: absolute; right: 8px; width: 38px; height: 38px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; font-size: 16px; opacity: .6; }
.neon-eye:hover { opacity: 1; background: rgba(148, 163, 184, .15); }
.neon-btn { width: 100%; height: 56px; margin-top: 6px; border: 0; border-radius: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899); background-size: 200% 100%;
  box-shadow: 0 0 30px rgba(139, 92, 246, .55); transition: transform .12s, box-shadow .15s, background-position .4s; }
.neon-btn:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 0 42px rgba(236, 72, 153, .55); }
.neon-btn i { font-style: normal; transition: transform .15s; }
.neon-btn:hover i { transform: translateX(3px); }
.neon-btn.loading span::after { content: '…'; }
.neon-btn.loading i { animation: neon-spin .8s linear infinite; }
@keyframes neon-spin { to { transform: rotate(360deg); } }
.neon-help { font-size: 12.5px; color: #94a3b8; text-align: center; margin: 16px 0 0; line-height: 1.45; }
.neon-foot { position: relative; z-index: 1; font-size: 12px; color: #64748b; margin: 0; }
.neon .test-banner { color: #0f172a; }
@media (max-width: 480px) { .neon-card { padding: 30px 20px 22px; border-radius: 24px; } .neon-card h1 { font-size: 27px; } .neon-glow.g1 { width: 380px; height: 380px; } }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login .card { width: min(420px, 100%); padding: 28px; border-radius: 28px; box-shadow: var(--shadow-lg); }
.login .head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.login .logo-tile { width: 56px; height: 56px; border-radius: 16px; font-size: 28px; background: var(--navy); }
.login h1 { font-size: 22px; margin: 0; }
.login .head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* Hazavitel (éjszakai járműhasználat) napi jelzése */
.th-alert b { color: var(--warn); }
.th-box { margin-bottom: 14px; padding: 14px 16px; }
.th-box.yes { border-color: var(--brand); background: var(--brand-soft); }
/* Reggeli átvételi checklist */
.mc-card { border: 2px solid var(--warn); }
.mc-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.seg button { border: 0; border-radius: 0; background: var(--card); color: var(--text); padding: 8px 16px; font-weight: 600; box-shadow: none; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--brand); color: #fff; }
/* A nap terve: vállalt Túrák + visszaszámlálás a sorba álláshoz */
.day-plan { margin: 10px 0 4px; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); display: grid; gap: 4px; text-align: left; }
@media (prefers-color-scheme: dark) { .day-plan { background: rgba(255, 255, 255, .05); } }
/* Csabai HUB (beágyazva, teljes szélességben) */
main.wide { max-width: none; padding: 10px 10px 20px; }
.hub-frame { display: block; width: 100%; height: calc(100vh - 140px); min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }