:root {
  /* IT Community logo: cyan #0AB6E4, violet #6329B4, teal #008A6E — on black. */
  --bg: #05070d; --panel: #0d1118; --raise: #141a24; --line: #1e2633; --ink: #eef2f8; --muted: #8b93a7;
  --brand: #0ab6e4; --brand-ink: #00161c; --violet: #7d4deb; --teal: #2fd3a0; --amber: #ffb547; --coral: #ff6b8b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 700; border: 0; cursor: pointer; font-size: 15px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn.danger { background: transparent; color: var(--coral); border: 1px solid #5a2326; }
.muted { color: var(--muted); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--raise); color: var(--muted); font-size: 12px; font-weight: 600; }
.tag.on { background: rgba(10, 182, 228, .14); color: var(--brand); }

/* landing */
header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.3px; color: var(--ink); }
.logo img { display: block; height: 34px; width: auto; }
body { background: radial-gradient(1200px 600px at 85% -10%, rgba(99, 41, 180, .22), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(10, 182, 228, .12), transparent 60%), var(--bg); background-attachment: fixed; }
.logo b { color: var(--brand); }
.hero { padding: 64px 0 48px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 18px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin-bottom: 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.phone { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 26px; display: grid; gap: 18px; }
.rings { display: flex; justify-content: space-around; }
.ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.rings small { display: block; font-size: 11px; letter-spacing: 1.4px; color: var(--muted); text-align: center; font-weight: 700; margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--raise); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-size: 20px; }
.stat span { font-size: 12px; color: var(--muted); }
section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 30px; letter-spacing: -.6px; margin-bottom: 10px; }
.lead { color: var(--muted); max-width: 680px; margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.num { font-size: 34px; font-weight: 800; background: linear-gradient(90deg, var(--brand), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-logo { width: 72px; height: 72px; margin-bottom: 18px; }
.steps { counter-reset: step; }
.steps .card h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 14px; margin-right: 10px; }
footer { padding: 32px 0 48px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

/* admin */
.tabs { display: flex; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.tabs button { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-weight: 600; cursor: pointer; font: inherit; }
.tabs button.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.table { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
input, select { background: #080b11; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; }
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.code { font-family: ui-monospace, monospace; font-size: 15px; letter-spacing: 2px; color: var(--amber); font-weight: 700; }
/* Dark map like the app: the OSM tiles inverted, the routes keep their colours. */
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.6); }
.leaflet-container { background: #0d1118; }
#map { height: 520px; border-radius: 16px; border: 1px solid var(--line); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--raise); margin-bottom: 16px; }
.notice.error { background: #2a1416; color: #ffb4b6; }
.auth { max-width: 440px; margin: 48px auto; display: grid; gap: 14px; }
.auth-logo { margin: 0 auto; }
.stack { display: grid; gap: 12px; }
.tabs.center { justify-content: center; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--brand); }
.btn:disabled { opacity: .6; cursor: wait; }
.person { display: flex; align-items: center; gap: 10px; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.tag.brand { background: rgba(155, 107, 255, .16); color: var(--violet); }
tr.off td { opacity: .55; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.summary .stat { background: var(--panel); border: 1px solid var(--line); }
.hint { margin-bottom: 12px; font-size: 14px; }
.swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mini-map { height: 320px; border-radius: 14px; border: 1px solid var(--line); margin-top: 8px; }
#who { font-size: 14px; }
.chart { width: 100%; height: 160px; display: block; }
.detail { margin-top: 18px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .grid { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(2, 1fr); }
}

/* legal pages: privacy, terms, account deletion */
.doc .wrap { width: min(820px, 100% - 32px); }
.doc .wrap.narrow { width: min(560px, 100% - 32px); }
.doc-langs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.doc article { padding: 28px 0 36px; border-top: 1px solid var(--line); }
.doc article h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.8px; margin-bottom: 6px; }
.doc article h2 { font-size: 19px; margin: 26px 0 8px; }
.doc article p, .doc article li { color: #c9d1de; font-size: 15.5px; }
.doc article p { margin: 10px 0; }
.doc article ul, .doc article ol { padding-left: 22px; display: grid; gap: 6px; }
.doc article b { color: var(--ink); }
.doc .card h1 { font-size: 28px; }
.doc .card p { color: #c9d1de; }
.doc .small { font-size: 13px; }
.doc-foot { padding: 24px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.notice.ok { background: rgba(47, 211, 160, .12); color: #9ef0d2; }

/* admin: dashboard and toolbar */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 14px; }
.kpis .stat { background: var(--panel); border: 1px solid var(--line); padding: 14px; }
.kpis .stat b { font-size: 24px; letter-spacing: -.5px; }
.kpis .stat small { display: block; margin-top: 4px; color: var(--teal); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid2 .card h3 { margin-bottom: 10px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input[type=search] { flex: 1 1 260px; }
.toolbar #count { margin-left: auto; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(3, 1fr); } .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
