/* Strony poza mapą: logowanie, regulamin, polityka prywatności, moje konto, panel administracyjny. */
:root {
  --bg: #0a1520; --bg2: #0f1e2c; --card: rgba(19, 35, 51, .72); --card-solid: #13232f; --line: rgba(143, 179, 204, .16);
  --line2: rgba(143, 179, 204, .28); --text: #e8f0f6; --muted: #8fa6b8; --dim: #5f7486;
  --accent: #ff8a3d; --accent2: #e4472e; --blue: #48aff0; --green: #3dcc91; --yellow: #ffc940; --red: #ff6b6b;
  --radius: 18px; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 15px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* tło: poświaty i poziomice */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(900px 600px at 12% 8%, rgba(72, 175, 240, .16), transparent 60%),
  radial-gradient(800px 600px at 92% 88%, rgba(255, 138, 61, .14), transparent 60%),
  linear-gradient(160deg, #0d1c29, #08121b 70%); }
.backdrop svg { position: absolute; inset: -10%; width: 120%; height: 120%; opacity: .5; animation: drift 60s linear infinite alternate; }
.backdrop::after { content: ""; position: absolute; inset: 0; background-image:
  linear-gradient(rgba(143,179,204,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(143,179,204,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
@keyframes drift { to { transform: translate(-3%, 2%) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .backdrop svg { animation: none; } }

/* ---------- logowanie ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 460px); gap: 56px;
  max-width: 1280px; margin: 0 auto; padding: 48px 40px; align-items: start; }
.auth-card { position: sticky; top: 32px; margin-top: 96px; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.brand img { height: 64px; }
.hero h1 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; margin-bottom: 16px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), #ffc36b 45%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 30px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feat { position: relative; padding: 16px 16px 15px; border-radius: 14px; background: rgba(19, 35, 51, .55); border: 1px solid var(--line);
  backdrop-filter: blur(8px); transition: transform .2s, border-color .2s, background .2s; overflow: hidden; }
.feat:hover { transform: translateY(-3px); border-color: var(--line2); background: rgba(24, 44, 63, .7); }
.feat .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(72,175,240,.22), rgba(72,175,240,.06)); color: var(--blue); }
.feat:nth-child(3n+2) .ic { background: linear-gradient(135deg, rgba(255,138,61,.25), rgba(255,138,61,.06)); color: var(--accent); }
.feat:nth-child(3n) .ic { background: linear-gradient(135deg, rgba(61,204,145,.22), rgba(61,204,145,.06)); color: var(--green); }
.feat h3 { font-size: 14.5px; margin: 0 0 3px; }
.feat p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.auth-card { padding: 30px 30px 24px; }
.auth-card h2 { font-size: 22px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: 12px; background: rgba(8, 18, 27, .6);
  border: 1px solid var(--line); margin-bottom: 22px; }
.seg button { border: 0; border-radius: 9px; padding: 9px; font: 600 14px var(--font); color: var(--muted); background: transparent; cursor: pointer; }
.seg button.on { background: linear-gradient(180deg, #1f3a52, #183044); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 4px 14px -6px rgba(0,0,0,.6); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input { position: relative; display: flex; align-items: center; }
.input svg.i { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.input input, .input textarea, .input select { width: 100%; padding: 11px 13px 11px 40px; border-radius: 11px; border: 1px solid var(--line2);
  background: rgba(8, 18, 27, .55); color: var(--text); font: 15px var(--font); outline: none; transition: border-color .15s, box-shadow .15s; }
.input textarea { padding-left: 13px; resize: vertical; min-height: 64px; }
.input input:focus, .input textarea:focus, .input select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(72,175,240,.18); }
.input .eye { position: absolute; right: 8px; border: 0; background: none; color: var(--dim); cursor: pointer; padding: 6px; display: flex; }
.input .eye:hover { color: var(--text); }
.input .eye svg.i { position: static; }
.input input[type=password], .input input[name=haslo] { padding-right: 42px; }
.meter { height: 4px; border-radius: 4px; background: rgba(143,179,204,.15); margin-top: 7px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .25s, background .25s; }
.hint { font-size: 12px; color: var(--dim); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 4px 0 16px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 11px 18px;
  font: 600 15px var(--font); cursor: pointer; color: #fff; text-decoration: none !important; transition: transform .1s, filter .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { width: 100%; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 10px 24px -10px rgba(228,71,46,.7); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(143,179,204,.1); color: var(--text); border: 1px solid var(--line2); }
.btn-ghost:hover { background: rgba(143,179,204,.18); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn-blue { background: #1b6fa8; } .btn-blue:hover { background: #2380c0; }
.btn-green { background: #1d8a5f; } .btn-green:hover { background: #22a06e; }
.btn-red { background: rgba(255,107,107,.14); color: #ff9b9b; border: 1px solid rgba(255,107,107,.35); }
.btn-red:hover { background: rgba(255,107,107,.24); }
.linkbtn { border: 0; background: none; color: var(--blue); font: inherit; font-size: 13.5px; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }
.msg { display: none; padding: 11px 13px; border-radius: 11px; font-size: 14px; margin-bottom: 14px; border: 1px solid; }
.msg.show { display: flex; gap: 9px; }
.msg.err { background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.35); color: #ffb3b3; }
.msg.ok { background: rgba(61,204,145,.1); border-color: rgba(61,204,145,.35); color: #a6f0cf; }
.msg.info { background: rgba(72,175,240,.1); border-color: rgba(72,175,240,.35); color: #b5ddf7; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim);
  display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.auth-foot a { color: var(--muted); }
.view[hidden] { display: none !important; }
.badge-approval { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 11px; background: rgba(255,201,64,.08);
  border: 1px dashed rgba(255,201,64,.35); color: #f3dc9b; font-size: 12.5px; margin-bottom: 16px; }

@media (max-width: 1080px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; padding: 28px 16px 40px; gap: 28px; }
  .auth .hero { display: contents; }
  .auth .hero > * { order: 2; }
  .auth .hero .brand { order: 0; }
  .auth-card { order: 1; position: static; margin-top: 0; }
  .brand { margin-bottom: 18px; justify-content: center; }
  .brand img { height: 52px; }
}
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } .auth-card { padding: 22px 18px 18px; } }

/* ---------- dokumenty (regulamin, polityka) i moje konto ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 24px; background: rgba(10, 21, 32, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar img { height: 38px; display: block; }
.topbar nav { display: flex; gap: 6px; flex-wrap: wrap; }
.doc { max-width: 860px; margin: 32px auto 64px; padding: 36px 44px; }
.doc h1 { font-size: 32px; font-weight: 800; }
.doc .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.doc h2 { font-size: 19px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.doc h2 .n { color: var(--accent); font-variant-numeric: tabular-nums; }
.doc p, .doc li { color: #c9d7e2; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 5px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255,138,61,.08); border: 1px solid rgba(255,138,61,.3); margin: 18px 0; }
.callout svg.i { color: var(--accent); margin-top: 2px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.toc a { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(143,179,204,.08); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 700px) { .doc { margin: 16px 12px 40px; padding: 22px 18px; } .topbar { padding: 10px 16px; } .topbar img { height: 32px; } }

.acc { max-width: 980px; margin: 28px auto 60px; padding: 0 20px; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.acc .card { padding: 22px 24px; }
.acc .wide { grid-column: 1 / -1; }
.acc h2 { font-size: 17px; display: flex; gap: 9px; align-items: center; }
.acc h2 svg.i { color: var(--blue); }
.profile { display: flex; gap: 18px; align-items: center; }
.avatar { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font: 800 22px var(--font); color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue)); flex: none; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 12px 0 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
@media (max-width: 760px) { .acc { grid-template-columns: 1fr; padding: 0 12px; } }

/* tabele i znaczniki (konto, panel) */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 600;
  padding: 10px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; position: sticky; top: 0; background: var(--card-solid); z-index: 1; }
.tbl th[data-sort] { cursor: pointer; } .tbl th[data-sort]:hover { color: var(--text); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(143,179,204,.05); }
.tbl tbody tr.click { cursor: pointer; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.aktywne { color: var(--green); background: rgba(61,204,145,.1); border-color: rgba(61,204,145,.25); }
.tag.oczekuje { color: var(--yellow); background: rgba(255,201,64,.1); border-color: rgba(255,201,64,.25); }
.tag.zablokowane { color: var(--red); background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.25); }
.tag.admin { color: var(--accent); background: rgba(255,138,61,.1); border-color: rgba(255,138,61,.3); }
.tag.admin::before { display: none; }
.tag.plain { color: var(--muted); background: rgba(143,179,204,.08); } .tag.plain::before { display: none; }
.empty { text-align: center; padding: 34px 10px; color: var(--dim); }
.empty svg.i { width: 34px; height: 34px; margin-bottom: 6px; color: var(--dim); }
