/* Röledeyiz UI v2 */
:root {
  --bg: #071018;
  --bg-2: #0a141e;
  --bg-3: #0d1a26;
  --surface: #0d1924;
  --surface-2: #101f2c;
  --surface-3: #132432;
  --border: #213242;
  --border-strong: #2b4052;
  --border-soft: #182735;
  --text: #f2f7fa;
  --text-dim: #b7c6d2;
  --text-faint: #7f93a5;
  --cyan: #23c9f5;
  --cyan-soft: #7fe5ff;
  --cyan-deep: #168cf0;
  --green: #43d99a;
  --amber: #f4bd4a;
  --red: #ff6678;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --shadow: 0 14px 40px rgba(0,0,0,.26);
  --shadow-lg: 0 26px 70px rgba(0,0,0,.38);
  --ring: 0 0 0 3px rgba(35,201,245,.15);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --maxw: 1240px;
  --topbar-h: 68px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(900px 420px at 82% -8%, rgba(35,201,245,.08), transparent 62%),
    radial-gradient(700px 420px at -8% 18%, rgba(22,140,240,.06), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.nav-open { overflow: hidden; }

::selection { background: rgba(35,201,245,.24); color: #fff; }
img { max-width: 100%; }
a { color: var(--cyan-soft); text-decoration: none; }
a:hover { color: var(--cyan); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

h1, h2, h3 {
  margin: 0 0 .5em;
  color: var(--text);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.65rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.08rem; }
p { margin-top: 0; }

.container { width: min(100%, var(--maxw)); margin: 0 auto; padding-inline: 18px; }

/* Header */
.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 1000;
  height: var(--topbar-h);
  background: rgba(7,16,24,.86);
  border-bottom: 1px solid rgba(43,64,82,.7);
  backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: -.025em;
}
.brand:hover { color: var(--text); }
.brand-logo { width: 39px; height: 39px; object-fit: contain; filter: drop-shadow(0 5px 16px rgba(35,201,245,.15)); }
.brand em { color: var(--cyan); font-style: normal; }

.nav-desktop { display: none; align-items: center; gap: 3px; margin-left: auto; min-width: 0; }
.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: .89rem;
  font-weight: 680;
  white-space: nowrap;
}
.nav-desktop a:hover { background: rgba(255,255,255,.035); color: var(--text); }
.nav-desktop a.active { background: rgba(35,201,245,.08); color: var(--cyan-soft); }
.nav-desktop-sep { width: 1px; height: 28px; margin: 0 7px; background: var(--border-soft); }
.nav-account {
  gap: 8px;
  padding: 4px 9px 4px 5px !important;
  border: 1px solid transparent;
  border-radius: 999px !important;
}
.nav-account:hover { border-color: var(--border); }
.nav-avatar { width: 31px; height: 31px; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid var(--border-strong); }
.nav-account-name { display: flex; flex-direction: column; line-height: 1.08; color: var(--text); font-size: .84rem; font-weight: 750; }
.nav-account-name small { margin-top: 3px; color: var(--cyan); font-family: var(--mono); font-size: .67rem; }

.nav-toggle {
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--border-strong); background: rgba(255,255,255,.05); }
.nav-toggle:focus-visible, .nav-toggle-close:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.nav-toggle-bar { width: 21px; height: 2px; border-radius: 9px; background: var(--text-dim); transition: transform .2s ease, opacity .2s ease; }
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: block;
  visibility: hidden;
  pointer-events: none;
}
body.nav-open .nav { visibility: visible; pointer-events: auto; }
.nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,7,11,.72);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .22s ease;
}
body.nav-open .nav-backdrop { opacity: 1; }
.nav-drawer {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  background: #0b1721;
  border-right: 1px solid var(--border);
  box-shadow: 22px 0 70px rgba(0,0,0,.45);
  transform: translateX(-102%);
  transition: transform .24s cubic-bezier(.2,.75,.2,1);
  overflow: hidden;
}
body.nav-open .nav-drawer { transform: translateX(0); }
.nav-drawer-head {
  min-height: 82px;
  padding: 17px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.nav-drawer-user { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--text); }
.nav-drawer-user strong { display: block; font-size: .95rem; }
.nav-drawer-id { min-width: 0; }
.nav-drawer-edit { display: block; margin-top: 4px; color: var(--text-faint); font-size: .76rem; }
.nav-drawer-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid var(--border-strong); box-shadow: 0 0 0 4px rgba(35,201,245,.06); }
.nav-toggle-close {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
}
.nav-drawer-links { padding: 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1; }
.nav-drawer-links a {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-radius: 11px;
  color: var(--text-dim);
  font-weight: 720;
}
.nav-drawer-links a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav-drawer-links a.active { background: rgba(35,201,245,.09); color: var(--cyan-soft); box-shadow: inset 3px 0 0 var(--cyan); }
.nav-drawer-divider { height: 1px; margin: 9px 4px; background: var(--border-soft); }
.nav-drawer-links .btn { margin-top: 8px; justify-content: center; }
.nav-drawer-foot { padding: 12px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border-soft); }
.nav-drawer-foot form { margin: 0; }

/* Buttons */
.btn {
  min-height: 42px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 760;
  font-size: .91rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn-primary { color: #041118; background: linear-gradient(180deg, #4fdcff, var(--cyan)); box-shadow: 0 8px 24px rgba(35,201,245,.16); }
.btn-primary:hover { color: #041118; background: #75e5ff; box-shadow: 0 9px 28px rgba(35,201,245,.23); }
.btn-ghost { color: var(--text-dim); background: rgba(255,255,255,.025); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--border-strong); }
.btn-danger { color: var(--red); background: rgba(255,102,120,.04); border-color: rgba(255,102,120,.3); }
.btn-danger:hover { background: rgba(255,102,120,.1); border-color: rgba(255,102,120,.52); }
.btn-sm { min-height: 35px; padding: 7px 11px; font-size: .82rem; border-radius: 9px; }
.btn-block { width: 100%; }
button:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; color: var(--text-dim); font-size: .82rem; font-weight: 740; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field input[type="date"], .field input[type="time"],
.field select, .field textarea, .lp-select, .map-search-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: 0;
  background: #09141e;
  color: var(--text);
  font-size: .95rem;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.field textarea { min-height: 125px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .lp-select:focus, .map-search-input:focus { border-color: rgba(35,201,245,.78); box-shadow: var(--ring); background: #0b1721; }
.field input::placeholder, .field textarea::placeholder, .map-search-input::placeholder { color: #667b8c; }
.field .hint, .hint { margin-top: 6px; color: var(--text-faint); font-size: .76rem; }
.field .err, .err { margin-top: 6px; color: var(--red); font-size: .79rem; }
.check { display: flex; align-items: center; gap: 8px; margin: 3px 0 16px; cursor: pointer; color: var(--text-dim); font-size: .9rem; }
.check input { width: 17px; height: 17px; accent-color: var(--cyan); }

/* Main content */
.page { padding: 28px 0 64px; min-height: calc(100vh - var(--topbar-h)); }
.page-head, .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1, .section-head h1 { margin: 0; }
.section-head > div:first-child { max-width: 760px; }
.section-head p, .page-head + .muted { margin-bottom: 0; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: .84rem; }
.grid-2, .grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.card {
  position: relative;
  margin-bottom: 16px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16,31,44,.92), rgba(12,24,34,.96));
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.card:hover { border-color: var(--border-strong); }
.card.hero {
  min-height: 360px;
  padding: clamp(34px, 7vw, 72px) clamp(20px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(12,29,41,.78), rgba(8,19,28,.92)),
    radial-gradient(520px 220px at 50% 0%, rgba(35,201,245,.15), transparent 70%);
}
.card.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .25;
  background-image: linear-gradient(rgba(127,229,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(127,229,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.card.hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(35,201,245,.13);
  border-radius: 50%;
  top: -120px;
  right: -60px;
  box-shadow: 0 0 0 44px rgba(35,201,245,.025), 0 0 0 88px rgba(35,201,245,.015);
  z-index: -1;
}
.card.hero .kicker { margin-bottom: 10px; color: var(--cyan); font-size: .73rem; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; }
.card.hero h1 { margin-bottom: 12px; font-size: clamp(2.35rem, 7vw, 4.3rem); }
.card.hero p { width: min(100%, 680px); margin: 0 auto 24px; color: var(--text-dim); font-size: clamp(.98rem, 2vw, 1.08rem); }
.auth-card { max-width: 460px; margin: 30px auto; }

.flash { margin-bottom: 16px; padding: 13px 15px; border: 1px solid; border-radius: 12px; font-size: .9rem; font-weight: 650; }
.flash.success { color: #7eeab8; background: rgba(67,217,154,.07); border-color: rgba(67,217,154,.25); }
.flash.error { color: #ff8d9b; background: rgba(255,102,120,.07); border-color: rgba(255,102,120,.25); }
.flash.info { color: var(--cyan-soft); background: rgba(35,201,245,.07); border-color: rgba(35,201,245,.24); }

.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; margin-bottom: 9px; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(6,15,23,.38); }
.list-row:hover { border-color: var(--border); background: rgba(255,255,255,.02); }
.list-row .main { flex: 1; min-width: 0; }
.list-row .title { color: var(--text); font-weight: 760; overflow-wrap: anywhere; }
.list-row .sub { margin-top: 3px; color: var(--text-faint); font-size: .82rem; }
.empty { padding: 28px 12px; color: var(--text-faint); text-align: center; }
.stat-card { padding: 20px 16px; text-align: center; }
.stat-card .title { color: var(--cyan-soft); font-size: 1.8rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.stat-card .sub { margin-top: 2px; color: var(--text-faint); font-size: .81rem; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid transparent; border-radius: 999px; font-size: .74rem; font-weight: 760; line-height: 1.2; }
.chip.cyan { color: var(--cyan-soft); background: rgba(35,201,245,.08); border-color: rgba(35,201,245,.14); }
.chip.green { color: #78e9b6; background: rgba(67,217,154,.08); border-color: rgba(67,217,154,.14); }
.chip.amber { color: #ffd677; background: rgba(244,189,74,.08); border-color: rgba(244,189,74,.14); }
.chip.red { color: #ff92a0; background: rgba(255,102,120,.08); border-color: rgba(255,102,120,.14); }
.chip.plain { color: var(--text-dim); background: rgba(255,255,255,.035); border-color: var(--border-soft); }
.callsign-badge { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid rgba(35,201,245,.23); border-radius: 7px; background: rgba(35,201,245,.06); color: var(--cyan-soft); font-family: var(--mono); font-size: .76em; font-weight: 850; letter-spacing: .035em; }

/* Map page */
.map-page-head { align-items: center; }
.map-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.map-stat { padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-dim); font-size: .78rem; font-weight: 720; }
.map-stat strong { color: var(--text); font-variant-numeric: tabular-nums; }
.map-stat.live strong { color: #7eeab8; }
.map-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; align-items: start; }
.map-main { min-width: 0; }
.map-toolbar { display: flex; gap: 9px; margin-bottom: 10px; align-items: center; }
.map-search { position: relative; flex: 1; min-width: 0; }
.map-search-input { padding-left: 40px; height: 44px; background: rgba(9,20,30,.94); }
.map-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.map-tool-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text-dim); cursor: pointer; }
.map-tool-btn:hover { color: var(--cyan-soft); border-color: var(--border-strong); background: var(--surface-2); }
.map-shell { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--shadow); }
#map { width: 100%; height: min(72vh, 760px); min-height: 560px; background: #071018; }
.map-hint { position: absolute; z-index: 500; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 7px 10px; border: 1px solid rgba(43,64,82,.85); border-radius: 9px; background: rgba(7,16,24,.88); color: var(--text-faint); font-size: .72rem; backdrop-filter: blur(10px); pointer-events: none; }
.map-side { min-width: 0; }
.map-panel { margin-bottom: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, rgba(15,30,42,.96), rgba(10,21,30,.97)); }
.map-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 11px; }
.map-panel-head h2, .map-panel-head h3 { margin: 0; }
.map-panel-sub { margin: -3px 0 12px; color: var(--text-faint); font-size: .8rem; }
.active-relay-list { display: flex; flex-direction: column; gap: 7px; }
.active-relay-btn { width: 100%; padding: 10px 11px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-soft); border-radius: 11px; background: rgba(5,14,21,.38); color: var(--text); text-align: left; cursor: pointer; }
.active-relay-btn:hover { border-color: var(--border); background: rgba(255,255,255,.025); }
.active-relay-pulse { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(67,217,154,.1); }
.active-relay-info { flex: 1; min-width: 0; }
.active-relay-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; font-weight: 760; }
.active-relay-meta { display: block; margin-top: 2px; color: var(--text-faint); font-size: .72rem; }
.active-relay-count { flex: none; color: #7eeab8; font-size: .78rem; font-weight: 820; }
.map-empty { padding: 20px 8px; color: var(--text-faint); font-size: .86rem; text-align: center; }

.leaflet-container { font-family: var(--font); }
.leaflet-control-zoom { border: 1px solid var(--border) !important; border-radius: 11px !important; overflow: hidden; box-shadow: 0 7px 22px rgba(0,0,0,.22) !important; }
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 36px !important; border: 0 !important; border-bottom: 1px solid var(--border-soft) !important; background: rgba(10,20,30,.95) !important; color: var(--text) !important; }
.leaflet-control-zoom a:last-child { border-bottom: 0 !important; }
.leaflet-control-zoom a:hover { background: var(--surface-2) !important; color: var(--cyan-soft) !important; }
.leaflet-control-attribution { padding: 2px 5px !important; background: rgba(7,16,24,.82) !important; color: #748898 !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: #8fa9ba !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #0c1a25; color: var(--text); }
.leaflet-popup-content-wrapper { border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 55px rgba(0,0,0,.42); }
.leaflet-popup-content { min-width: 210px; margin: 14px 15px 15px; }
.leaflet-popup-close-button { top: 5px !important; right: 5px !important; color: var(--text-faint) !important; }
.leaflet-popup-close-button:hover { color: var(--text) !important; }
.rly-pop-name { padding-right: 16px; margin-bottom: 4px; color: var(--text); font-weight: 820; font-size: .98rem; }
.rly-pop-city { margin-bottom: 9px; color: var(--text-faint); font-size: .76rem; }
.rly-pop-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.rly-pop-desc { padding-top: 8px; border-top: 1px solid var(--border-soft); color: var(--text-dim); font-size: .78rem; line-height: 1.45; }
.rly-pop-live { display: flex; align-items: center; gap: 7px; margin: 9px 0 2px; color: #7eeab8; font-size: .78rem; font-weight: 760; }
.rly-pop-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(67,217,154,.1); }
.rly-marker { border: 0 !important; background: transparent !important; }
.rly-pin { position: relative; width: 30px; height: 30px; transform: translate(-1px,-2px); display: grid; place-items: center; }
.rly-pin-core { width: 14px; height: 14px; border: 3px solid #071018; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(35,201,245,.18), 0 8px 22px rgba(0,0,0,.35); }
.rly-marker.is-live .rly-pin-core { width: 16px; height: 16px; background: var(--green); box-shadow: 0 0 0 5px rgba(67,217,154,.17), 0 0 18px rgba(67,217,154,.36); }
.rly-pin-count { position: absolute; right: -7px; top: -8px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border: 2px solid #071018; border-radius: 999px; background: var(--green); color: #03100b; font-size: .64rem; font-weight: 900; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.user-location-marker { width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: var(--cyan-deep); box-shadow: 0 0 0 7px rgba(22,140,240,.17), 0 5px 16px rgba(0,0,0,.3); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(35,201,245,.16) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: #113246 !important; color: var(--cyan-soft) !important; font-weight: 850; box-shadow: inset 0 0 0 1px rgba(127,229,255,.25); }

/* Check-in */
.checkin-card { margin: 0; padding: 16px; }
.checkin-card::before { content: none; }
.checkin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.checkin-title { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.checkin-title h3 { margin: 0 0 3px; }
.checkin-title p { margin: 0; color: var(--text-faint); font-size: .8rem; }
.checkin-dot { width: 9px; height: 9px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(67,217,154,.1); }
.checkin-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.checkin-form .checkin-select { min-width: 0; }
.checkin-btn { white-space: nowrap; }
.chip-form { display: inline-flex; align-items: center; gap: 2px; }
.checkin-chip .chip { color: #7eeab8; background: rgba(67,217,154,.08); border-color: rgba(67,217,154,.16); }
.chip-x { width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-faint); cursor: pointer; }
.chip-x:hover { color: var(--red); background: rgba(255,102,120,.08); }
.checkin-cta { margin: 0; text-align: center; }
.checkin-cta p { margin: 0; }

/* Forum */
.cat-card { padding: 0; margin-bottom: 18px; }
.cat-card-head { padding: 18px 18px 4px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cat-card-head h3 { margin: 0 0 3px; }
.cat-desc { margin: 0; color: var(--text-faint); font-size: .83rem; }
.cat-count { flex: none; padding: 4px 9px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.025); color: var(--text-faint); font-size: .72rem; font-weight: 760; }
.cat-toolbar { padding: 10px 18px 7px; display: flex; align-items: center; justify-content: space-between; gap: 9px; flex-wrap: wrap; }
.topic-list { padding: 0 10px 10px; }
.t-w { display: flex; align-items: stretch; gap: 12px; margin-bottom: 6px; padding: 0 7px; border: 1px solid var(--border-soft); border-radius: 11px; background: rgba(6,15,23,.32); color: inherit; }
.t-w:hover { border-color: var(--border); background: rgba(255,255,255,.025); }
.t-main { flex: 1; min-width: 0; padding: 11px 4px; }
.t-main .title { color: var(--text); font-size: .94rem; font-weight: 760; overflow-wrap: anywhere; }
.t-main .sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; color: var(--text-faint); font-size: .76rem; }
.t-badges { display: inline-flex; gap: 3px; margin-left: 4px; }
.t-badges .chip { padding: 1px 5px; }
.t-replies { min-width: 56px; padding: 8px 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid var(--border-soft); text-align: center; }
.t-replies .n { color: var(--cyan-soft); font-size: 1rem; font-weight: 850; line-height: 1; }
.t-replies .lbl { margin-top: 3px; color: var(--text-faint); font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; }

/* Admin */
.admin-layout { display: grid; gap: 16px; }
.admin-side { padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.admin-side-title { padding: 9px 11px 6px; color: var(--text-faint); font-size: .69rem; font-weight: 820; text-transform: uppercase; letter-spacing: .08em; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 10px; color: var(--text-dim); font-weight: 710; }
.admin-nav a:hover { background: rgba(255,255,255,.035); color: var(--text); }
.admin-nav a.active { background: rgba(35,201,245,.08); color: var(--cyan-soft); }
.admin-nav-count { padding: 1px 7px; border: 1px solid var(--border-soft); border-radius: 999px; color: var(--text-faint); background: var(--bg-2); font-size: .7rem; font-weight: 760; }
.admin-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.admin-search input[type="search"] { width: 100%; min-height: 43px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; outline: 0; background: var(--bg-2); color: var(--text); }
.admin-search input:focus { border-color: var(--cyan); box-shadow: var(--ring); }
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pager-btn { padding: 7px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-dim); font-size: .82rem; font-weight: 720; }
.pager-btn:hover { color: var(--text); border-color: var(--border-strong); }
.pager-info { color: var(--text-faint); font-size: .8rem; }

/* Footer */
.footer { margin-top: 14px; padding: 28px 18px max(38px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border-soft); color: var(--text-faint); text-align: center; font-size: .79rem; }
.footer .foot-links { margin-bottom: 11px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--cyan-soft); }

@media (min-width: 680px) {
  .container { padding-inline: 22px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .map-layout { grid-template-columns: minmax(0,1fr) 330px; }
  .map-side { position: sticky; top: calc(var(--topbar-h) + 16px); }
}

@media (min-width: 1024px) {
  .nav-toggle, .nav { display: none !important; }
  .nav-desktop { display: flex; }
  body.nav-open { overflow: auto; }
}

@media (min-width: 860px) {
  .admin-layout { grid-template-columns: 230px minmax(0,1fr); align-items: start; }
  .admin-side { position: sticky; top: calc(var(--topbar-h) + 16px); }
}

@media (max-width: 679px) {
  :root { --topbar-h: 62px; }
  .container { padding-inline: 14px; }
  .brand-logo { width: 35px; height: 35px; }
  .brand { font-size: 1.08rem; }
  .page { padding-top: 20px; }
  .card { padding: 16px; border-radius: 15px; }
  .card.hero { min-height: 330px; margin-inline: 0; }
  .map-page-head { align-items: flex-start; }
  .map-summary { width: 100%; }
  .map-toolbar { gap: 7px; }
  #map { height: 62svh; min-height: 430px; }
  .map-shell { border-radius: 14px; }
  .map-hint { display: none; }
  .checkin-form { grid-template-columns: 1fr; }
  .checkin-btn { width: 100%; }
  .cat-card-head { flex-direction: column; }
  .t-replies { min-width: 48px; padding-inline: 8px; }
  .footer .foot-links { gap: 10px 14px; }
}

@media (max-width: 420px) {
  .map-stat { font-size: .72rem; }
  .map-tool-btn { width: 42px; height: 42px; }
  .map-search-input { height: 42px; }
  #map { min-height: 390px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
