:root {
  --bg: #050910;
  --bg-soft: #080e19;
  --panel: rgba(13, 21, 35, .78);
  --panel-solid: #0c1422;
  --panel-2: #101b2c;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .25);
  --text: #f5f8ff;
  --muted: #92a1b7;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-2: #0891b2;
  --blue: #3b82f6;
  --green: #34d399;
  --orange: #fb923c;
  --red: #fb7185;
  --purple: #a78bfa;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --header-height: 74px;
  --max: 1560px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 50% -20%, #10243a 0, var(--bg) 38%), var(--bg); font-family: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55; overflow-x: hidden; }
body.modal-open, body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(34, 211, 238, .25); color: white; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #070c14; }
::-webkit-scrollbar-thumb { background: #27354a; border: 3px solid #070c14; border-radius: 10px; }
.skip-link { position: fixed; z-index: 10000; top: -60px; left: 16px; background: var(--cyan); color: #001018; padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 10px; }

.ambient { position: fixed; z-index: -1; width: 480px; height: 480px; border-radius: 50%; filter: blur(120px); opacity: .12; pointer-events: none; }
.ambient-one { background: #22d3ee; top: 12%; left: -260px; }
.ambient-two { background: #7c3aed; top: 48%; right: -300px; }

.topbar { position: sticky; z-index: 1000; top: 0; height: var(--header-height); border-bottom: 1px solid var(--line); background: rgba(5, 9, 16, .78); backdrop-filter: blur(24px) saturate(135%); }
.header-inner { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.brand b { color: var(--cyan); }
.brand-mark { position: relative; display: inline-flex; align-items: flex-end; gap: 2px; width: 28px; height: 28px; padding: 5px; border: 1px solid rgba(34, 211, 238, .32); border-radius: 9px; background: linear-gradient(145deg, rgba(34, 211, 238, .15), rgba(59, 130, 246, .04)); overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid rgba(34, 211, 238, .32); border-radius: 50%; right: -5px; top: -5px; }
.brand-mark i { display: block; width: 4px; border-radius: 3px 3px 1px 1px; background: var(--cyan); box-shadow: 0 0 8px rgba(34, 211, 238, .5); }
.brand-mark i:nth-child(1) { height: 8px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 13px; opacity: .78; }
.brand-mark i:nth-child(3) { height: 18px; }
.brand-mark.small { width: 24px; height: 24px; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 2px; margin-left: auto; }
.desktop-nav a { position: relative; padding: 11px 12px; color: var(--muted); font-size: 13px; font-weight: 600; border-radius: 10px; transition: .2s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: white; background: rgba(255, 255, 255, .045); }
.desktop-nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; transform: translateX(-50%); border-radius: 3px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); cursor: pointer; transition: .2s ease; }
.icon-btn:hover { border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .07); }
.icon { display: inline-flex; width: 19px; height: 19px; }
.icon svg, .nav-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid #08101c; border-radius: 50%; background: var(--red); }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 750; letter-spacing: -.01em; cursor: pointer; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { color: #031015; background: linear-gradient(135deg, #54e8f5, #22d3ee 55%, #0ea5e9); box-shadow: 0 8px 24px rgba(34, 211, 238, .16), inset 0 1px rgba(255, 255, 255, .35); }
.button-primary:hover { box-shadow: 0 10px 30px rgba(34, 211, 238, .27); }
.button-secondary { color: #dce8f7; border-color: var(--line-strong); background: rgba(255, 255, 255, .055); }
.button-secondary:hover, .button-ghost:hover { border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .07); }
.button-ghost { color: #cbd5e1; border-color: var(--line); background: rgba(255, 255, 255, .025); }
.button-glass { color: white; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); backdrop-filter: blur(12px); }
.button-light { color: #07101a; background: #f7fbff; box-shadow: 0 14px 38px rgba(0, 0, 0, .18); }
.button-danger-ghost { color: #fda4af; border-color: rgba(244, 63, 94, .18); background: rgba(244, 63, 94, .06); }
.button-lg { min-height: 50px; padding: 0 22px; border-radius: 14px; font-size: 14px; }
.button-full { width: 100%; }
.menu-trigger { display: none; }
.avatar { flex: 0 0 auto; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(34, 211, 238, .2); border-radius: 50%; color: #a5f3fc; background: linear-gradient(145deg, #173043, #101827); font-size: 11px; font-weight: 800; }
.avatar.tiny { width: 24px; height: 24px; margin-right: -4px; border-color: rgba(34, 211, 238, .4); }
.avatar.small { width: 30px; height: 30px; font-size: 9px; }
.avatar.xl { width: 72px; height: 72px; font-size: 19px; }

.mobile-menu, .menu-backdrop { display: none; }
.app-main { min-height: calc(100vh - var(--header-height)); }
.content-section, .page-hero, .map-workspace, .listing-results, .listing-toolbar, .community-layout, .transport-metrics, .transport-workspace, .admin-shell, .admin-header, .admin-metrics { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.view-enter { animation: viewIn .4s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.page-loader, .route-loading { min-height: 70vh; display: grid; place-items: center; align-content: center; gap: 18px; color: var(--muted); }
.route-loading { min-height: 60vh; }
.route-loading span { width: 34px; height: 34px; border: 2px solid rgba(34, 211, 238, .14); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-orbit { position: relative; width: 76px; height: 76px; display: grid; place-items: center; }
.loader-orbit span { position: absolute; inset: 0; border: 1px solid rgba(34, 211, 238, .26); border-radius: 50%; animation: spin 2s linear infinite; }
.loader-orbit span:nth-child(2) { inset: 12px; border-color: rgba(167, 139, 250, .26); animation-direction: reverse; animation-duration: 1.4s; }
.loader-orbit i { width: 13px; height: 13px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 24px var(--cyan); }
.eyebrow { display: inline-block; color: #67e8f9; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -.045em; }
.section-heading h2 em, .page-hero h1 em, .transport-hero h1 em, .community-hero h1 em { color: var(--cyan); font-style: normal; }
.section-heading p { margin: 7px 0 0; color: var(--muted); }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; color: #8deaf4; border: 0; background: none; font-size: 12px; font-weight: 800; cursor: pointer; }
.text-button:hover { color: white; }
.demo-pill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 3px 7px; border: 1px solid rgba(167, 139, 250, .25); border-radius: 999px; color: #c4b5fd; background: rgba(124, 58, 237, .08); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.live-updated, .data-source { color: var(--muted); font-size: 10px; }
.live-updated i, .admin-live i, .transport-refresh > i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 3px var(--green); } }

/* Hero */
.hero-section { position: relative; width: min(100% - 40px, var(--max)); min-height: 650px; margin: 0 auto; padding: 82px 7.5% 68px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 6%; overflow: hidden; border-inline: 1px solid rgba(148, 163, 184, .05); }
.hero-grid-pattern { position: absolute; inset: 0; pointer-events: none; opacity: .12; background-image: linear-gradient(rgba(34, 211, 238, .17) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .17) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to right, black, transparent 70%); }
.hero-glow { position: absolute; width: 620px; height: 620px; right: -220px; top: -120px; border-radius: 50%; background: rgba(8, 145, 178, .14); filter: blur(90px); }
.hero-copy { position: relative; z-index: 2; }
.live-chip { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 21px; padding: 7px 11px; border: 1px solid rgba(52, 211, 153, .17); border-radius: 999px; color: #9debc9; background: rgba(16, 185, 129, .055); font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.live-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.5s infinite; }
.hero-copy h1 { margin: 0; max-width: 700px; font-size: clamp(45px, 5.4vw, 78px); line-height: .98; letter-spacing: -.07em; }
.hero-copy h1 em { color: transparent; background: linear-gradient(90deg, #67e8f9, #22d3ee 50%, #818cf8); background-clip: text; font-style: normal; }
.hero-copy > p { max-width: 570px; margin: 24px 0 0; color: #a8b5c7; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: #77869a; font-size: 9px; font-weight: 650; }
.hero-trust i { margin-right: 4px; color: var(--green); font-style: normal; }
.hero-visual { position: relative; z-index: 1; min-width: 0; }
.radar-card { position: relative; max-width: 510px; margin: 0 auto; padding: 16px; border: 1px solid rgba(34, 211, 238, .18); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(15, 27, 43, .84), rgba(7, 13, 24, .72)); box-shadow: 0 30px 90px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .045); backdrop-filter: blur(18px); transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.radar-top, .radar-bottom { display: flex; align-items: center; justify-content: space-between; }
.radar-top { padding: 2px 4px 13px; }
.radar-top span { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.radar-top span i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.radar-top small { color: var(--muted-2); font-size: 9px; }
.radar-map { position: relative; height: 310px; overflow: hidden; border: 1px solid rgba(34, 211, 238, .13); border-radius: 20px; background: radial-gradient(circle at 58% 52%, rgba(34, 211, 238, .16), transparent 18%), radial-gradient(circle at 58% 52%, transparent 0 35%, rgba(6, 15, 27, .35) 36%), linear-gradient(135deg, #0b1724, #07101c); }
.radar-map::before { content: ""; position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(34, 211, 238, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .12) 1px, transparent 1px); background-size: 36px 36px; }
.radar-map::after { content: ""; position: absolute; width: 2px; height: 130%; left: 58%; top: -15%; background: linear-gradient(transparent, rgba(34, 211, 238, .4), transparent); transform: rotate(42deg); box-shadow: 0 0 16px rgba(34, 211, 238, .4); }
.radar-ring { position: absolute; left: 58%; top: 52%; border: 1px solid rgba(34, 211, 238, .15); border-radius: 50%; transform: translate(-50%, -50%); }
.radar-ring.one { width: 110px; height: 110px; }
.radar-ring.two { width: 220px; height: 220px; }
.radar-ring.three { width: 350px; height: 350px; }
.radar-center { position: absolute; z-index: 2; left: 58%; top: 52%; width: 44px; height: 44px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 1px solid rgba(34, 211, 238, .4); border-radius: 50%; color: #bff8ff; background: rgba(8, 145, 178, .25); font-weight: 900; box-shadow: 0 0 35px rgba(34, 211, 238, .3); }
.radar-center i { position: absolute; inset: -9px; border: 1px solid rgba(34, 211, 238, .16); border-radius: 50%; animation: radarPulse 2.2s ease-out infinite; }
@keyframes radarPulse { to { transform: scale(1.5); opacity: 0; } }
.radar-pin { position: absolute; z-index: 3; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: rgba(8, 16, 28, .88); box-shadow: 0 5px 18px rgba(0, 0, 0, .4); animation: float 3s ease-in-out infinite; }
.radar-pin.p1 { left: 18%; top: 31%; }
.radar-pin.p2 { right: 14%; top: 58%; animation-delay: -.8s; }
.radar-pin.p3 { left: 31%; bottom: 15%; animation-delay: -1.5s; }
@keyframes float { 50% { transform: translateY(-6px); } }
.radar-bottom { gap: 12px; padding: 14px 5px 2px; }
.radar-bottom div { flex: 1; }
.radar-bottom b { display: block; font-size: 21px; line-height: 1; }
.radar-bottom small { color: var(--muted-2); font-size: 8px; }
.floating-update { position: absolute; z-index: 5; display: flex; align-items: center; gap: 9px; min-width: 190px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(9, 17, 29, .88); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.floating-update > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: rgba(34, 211, 238, .1); }
.floating-update small, .floating-update b { display: block; }
.floating-update small { color: var(--muted); font-size: 8px; }
.floating-update b { font-size: 10px; }
.update-one { top: 16%; right: -3%; }
.update-two { bottom: 13%; left: -8%; }

.stats-section, .connection-section, .home-map-section, .home-feed-section { padding-top: 76px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat-card { position: relative; min-height: 120px; display: flex; align-items: center; gap: 13px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 28, 46, .73), rgba(10, 17, 29, .65)); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.stat-card::before { content: ""; position: absolute; width: 70px; height: 70px; right: -35px; top: -35px; border-radius: 50%; background: var(--tone); filter: blur(28px); opacity: .2; }
.stat-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--tone) 9%, transparent); font-size: 16px; }
.stat-card small { display: block; color: var(--muted); font-size: 9px; font-weight: 700; white-space: nowrap; }
.stat-card b { display: block; margin: 2px 0; font-size: 28px; line-height: 1.1; letter-spacing: -.04em; }
.stat-card p { margin: 0; color: var(--muted-2); font-size: 8px; }
.tone-red { --tone: var(--red); } .tone-orange { --tone: var(--orange); } .tone-green { --tone: var(--green); } .tone-cyan { --tone: var(--cyan); } .tone-purple { --tone: var(--purple); } .tone-blue { --tone: var(--blue); }

/* Connection */
.connection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.connection-card { position: relative; display: grid; grid-template-columns: 5px 1fr; min-height: 235px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(14, 25, 40, .8), rgba(8, 15, 26, .7)); }
.connection-card.normal { --route-color: var(--green); } .connection-card.slow { --route-color: #fbbf24; } .connection-card.congested { --route-color: var(--orange); } .connection-card.blocked { --route-color: var(--red); }
.connection-line { position: relative; display: flex; justify-content: center; }
.connection-line::after { content: ""; position: absolute; top: 27px; bottom: -10px; width: 2px; background: linear-gradient(var(--route-color), transparent); opacity: .3; }
.connection-dot { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 4px; border: 3px solid color-mix(in srgb, var(--route-color) 35%, transparent); border-radius: 50%; background: var(--route-color); box-shadow: 0 0 18px color-mix(in srgb, var(--route-color) 60%, transparent); }
.connection-main { padding-left: 18px; }
.connection-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.connection-title small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.connection-title h3 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.03em; }
.traffic-state { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--route-color, var(--green)) 25%, transparent); border-radius: 999px; color: color-mix(in srgb, var(--route-color, var(--green)) 80%, white); background: color-mix(in srgb, var(--route-color, var(--green)) 8%, transparent); font-size: 9px; font-weight: 750; white-space: nowrap; }
.traffic-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--route-color, var(--green)); box-shadow: 0 0 8px var(--route-color, var(--green)); }
.state-normal { --route-color: var(--green); } .state-slow { --route-color: #fbbf24; } .state-congested { --route-color: var(--orange); } .state-blocked { --route-color: var(--red); } .state-unknown { --route-color: #64748b; }
.connection-main > p { min-height: 47px; margin: 20px 0 13px; color: var(--muted); font-size: 11px; }
.connection-main > p b { color: #cbd5e1; }
.connection-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; color: var(--muted-2); font-size: 8px; }

/* Map */
.home-map-card { position: relative; height: 560px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #0a121d; box-shadow: var(--shadow); }
.map-canvas { width: 100%; height: 100%; background: #09111c; }
.leaflet-container { font-family: inherit; }
.leaflet-tile-pane { filter: invert(1) hue-rotate(178deg) brightness(.72) contrast(1.05) saturate(.55); }
.leaflet-control-zoom { overflow: hidden; border: 1px solid var(--line-strong) !important; border-radius: 12px !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .3) !important; }
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; color: #cbd5e1 !important; border-color: var(--line) !important; background: rgba(10, 18, 30, .92) !important; line-height: 38px !important; }
.leaflet-control-attribution { color: #64748b !important; background: rgba(4, 9, 16, .78) !important; font-size: 8px !important; }
.leaflet-control-attribution a { color: #67e8f9 !important; }
.map-tooltip { padding: 8px 10px !important; border: 1px solid var(--line-strong) !important; border-radius: 10px !important; color: var(--text) !important; background: rgba(7, 13, 23, .94) !important; box-shadow: var(--shadow) !important; font-size: 9px !important; }
.map-tooltip::before { border-top-color: rgba(7, 13, 23, .94) !important; }
.route-tooltip b { color: var(--cyan); }
.report-marker-wrap, .stop-marker-wrap, .bus-marker-wrap, .picker-marker-wrap { background: none !important; border: 0 !important; }
.report-marker { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--marker-color); border-radius: 13px 13px 13px 4px; background: rgba(8, 17, 29, .95); box-shadow: 0 8px 24px rgba(0, 0, 0, .42), 0 0 18px color-mix(in srgb, var(--marker-color) 24%, transparent); transform: rotate(-5deg); transition: transform .2s; }
.report-marker span { font-size: 16px; transform: rotate(5deg); }
.report-marker i { position: absolute; width: 7px; height: 7px; right: -4px; top: -4px; border: 2px solid #0b1420; border-radius: 50%; background: var(--marker-color); }
.report-marker:hover { transform: rotate(0) scale(1.08); }
.stop-marker { width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid rgba(103, 232, 249, .8); border-radius: 50%; background: rgba(8, 47, 73, .9); box-shadow: 0 0 0 5px rgba(34, 211, 238, .11), 0 5px 14px rgba(0, 0, 0, .4); }
.stop-marker span { width: 4px; height: 4px; border-radius: 50%; background: #a5f3fc; }
.bus-marker { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--bus-color) 65%, white 10%); border-radius: 11px; color: white; background: linear-gradient(145deg, color-mix(in srgb, var(--bus-color) 80%, #0b1220), color-mix(in srgb, var(--bus-color) 45%, #07101a)); box-shadow: 0 7px 20px rgba(0, 0, 0, .46), 0 0 18px color-mix(in srgb, var(--bus-color) 35%, transparent); transition: filter .2s; }
.bus-marker b { position: absolute; right: -5px; top: -5px; min-width: 15px; height: 15px; padding: 0 3px; display: grid; place-items: center; border: 2px solid #08111e; border-radius: 999px; color: #051017; background: white; font-size: 7px; }
.bus-marker i { position: absolute; left: 5px; right: 5px; bottom: -5px; height: 3px; border-radius: 99px; background: var(--bus-color); box-shadow: 0 0 8px var(--bus-color); }
.bus-marker.bus-delayed { animation: delayBeacon 1s infinite alternate; }
@keyframes delayBeacon { to { filter: brightness(1.3); box-shadow: 0 0 25px color-mix(in srgb, var(--bus-color) 70%, transparent); } }
.bus-marker.bus-stopped .bus-glyph { transform: translateY(1px); }
.map-floating-card { position: absolute; z-index: 500; top: 22px; left: 22px; width: min(310px, calc(100% - 44px)); padding: 15px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 16px; background: rgba(8, 15, 26, .9); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.map-floating-card > button { width: 100%; display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 9px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: none; cursor: pointer; }
.map-floating-card > button i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 8px var(--dot); }
.map-floating-card b, .map-floating-card small { display: block; }
.map-floating-card b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.map-floating-card small { color: var(--muted); font-size: 7px; }
.map-floating-card > a { display: block; margin-top: 10px; color: #67e8f9; font-size: 9px; font-weight: 800; }
.map-center-controls { position: absolute; z-index: 500; right: 18px; top: 18px; display: flex; gap: 6px; }
.map-center-controls button, .map-quick-actions button { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; color: #cbd5e1; background: rgba(8, 15, 26, .9); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); font-size: 9px; font-weight: 750; cursor: pointer; backdrop-filter: blur(12px); }
.map-center-controls button:hover, .map-quick-actions button:hover { color: white; border-color: rgba(34, 211, 238, .38); }

/* Page heroes and listing */
.page-hero { min-height: 290px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 70px 4% 48px; }
.page-hero.compact { min-height: 245px; }
.page-hero h1 { margin: 7px 0 0; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.06em; }
.page-hero p { max-width: 680px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.page-hero-route { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.map-workspace { height: min(720px, calc(100vh - 120px)); min-height: 590px; display: grid; grid-template-columns: 292px 1fr; padding-bottom: 40px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.map-filter-panel { min-width: 0; padding: 22px 19px; overflow-y: auto; border-right: 1px solid var(--line); }
.filter-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.filter-head h2 { margin: 3px 0 0; font-size: 19px; }
.search-control { height: 43px; display: flex; align-items: center; gap: 8px; margin: 19px 0 5px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255, 255, 255, .035); }
.search-control:focus-within { border-color: rgba(34, 211, 238, .45); box-shadow: 0 0 0 3px rgba(34, 211, 238, .06); }
.search-control input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 10px; }
.search-control input::placeholder { color: var(--muted-2); }
.map-filter-panel fieldset { margin: 20px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); }
.map-filter-panel legend { margin-bottom: 9px; color: #d9e2ee; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.radio-row, .switch-row { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; cursor: pointer; }
.radio-row input { accent-color: var(--cyan); }
.switch-row input { position: absolute; opacity: 0; }
.switch-row > i { position: relative; width: 34px; height: 19px; border-radius: 99px; background: #253044; transition: .2s; }
.switch-row > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #94a3b8; transition: .2s; }
.switch-row input:checked + i { background: rgba(34, 211, 238, .35); }
.switch-row input:checked + i::after { left: 18px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.map-filter-panel select, .toolbar-selects select, .listing-toolbar > select, .form-grid select, .form-stack select, .form-grid input, .form-stack input, .form-grid textarea, .form-stack textarea { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: #dbe6f3; background: #0b1422; font-size: 10px; }
.form-grid textarea, .form-stack textarea { min-height: 95px; padding: 11px 12px; resize: vertical; }
.map-filter-panel select:focus, .toolbar-selects select:focus, .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus { border-color: rgba(34, 211, 238, .45); box-shadow: 0 0 0 3px rgba(34, 211, 238, .055); }
.map-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.map-legend b { grid-column: 1/-1; font-size: 9px; }
.map-legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.map-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.map-legend i.bus { border-radius: 3px; background: var(--purple); } .map-legend i.stop { background: #38bdf8; }
.map-main-panel { position: relative; min-width: 0; overflow: hidden; }
.map-quick-actions { position: absolute; z-index: 500; top: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.map-quick-actions button:first-child i, .map-quick-actions button:nth-child(2) i { color: var(--green); font-size: 7px; font-style: normal; }
.map-demo-label { position: absolute; z-index: 500; left: 50%; bottom: 15px; transform: translateX(-50%); padding: 7px 11px; border: 1px solid rgba(167, 139, 250, .22); border-radius: 999px; color: #c4b5fd; background: rgba(10, 16, 28, .9); font-size: 8px; white-space: nowrap; backdrop-filter: blur(12px); }
.map-search-results { position: absolute; z-index: 600; top: 58px; left: 18px; width: min(330px, calc(100% - 36px)); padding: 7px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(7, 13, 23, .96); box-shadow: var(--shadow); }
.map-search-results button { width: 100%; padding: 9px; border: 0; border-radius: 8px; text-align: left; background: none; cursor: pointer; }
.map-search-results button:hover { background: rgba(255, 255, 255, .05); }
.map-search-results b, .map-search-results span { display: block; }
.map-search-results b { font-size: 9px; } .map-search-results span, .map-search-results p { color: var(--muted); font-size: 8px; }
.listing-toolbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-pills button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .025); font-size: 9px; font-weight: 700; cursor: pointer; }
.filter-pills button.active { color: #062027; border-color: var(--cyan); background: var(--cyan); }
.toolbar-selects { display: flex; gap: 7px; }
.toolbar-selects select { width: auto; min-width: 140px; }
.search-control.compact { width: 210px; height: 40px; margin: 0; }
.listing-results { padding-top: 30px; padding-bottom: 80px; }
.result-summary { margin-bottom: 17px; color: var(--muted); font-size: 10px; }
.result-summary b { color: white; }
.result-summary span { display: inline-block; width: 70px; height: 1px; margin-left: 10px; vertical-align: middle; background: var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.report-card { position: relative; min-width: 0; min-height: 285px; display: flex; flex-direction: column; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(15, 25, 40, .82), rgba(9, 16, 28, .73)); cursor: pointer; transition: transform .22s, border-color .22s, box-shadow .22s; }
.report-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; opacity: .75; background: var(--red); }
.report-card.status-border-pending::before { background: #fbbf24; } .report-card.status-border-review::before { background: var(--orange); } .report-card.status-border-solved::before { background: var(--green); }
.report-card:hover, .report-card:focus { transform: translateY(-4px); border-color: rgba(34, 211, 238, .28); box-shadow: 0 22px 50px rgba(0, 0, 0, .28); outline: none; }
.report-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.category-chip { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 4px 7px; border: 1px solid color-mix(in srgb, var(--chip-color, #64748b) 25%, transparent); border-radius: 999px; color: color-mix(in srgb, var(--chip-color, #94a3b8) 76%, white); background: color-mix(in srgb, var(--chip-color, #64748b) 7%, transparent); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 7px; border: 1px solid color-mix(in srgb, var(--badge) 25%, transparent); border-radius: 999px; color: color-mix(in srgb, var(--badge) 80%, white); background: color-mix(in srgb, var(--badge) 8%, transparent); font-size: 7px; font-weight: 800; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--badge); }
.status-pending { --badge: #fbbf24; } .status-review { --badge: var(--orange); } .status-active { --badge: var(--red); } .status-solved { --badge: var(--green); }
.report-card h3 { margin: 18px 0 8px; font-size: 17px; line-height: 1.3; letter-spacing: -.03em; }
.report-card > p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.report-location { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 14px; color: #b4c1d1; font-size: 8px; }
.report-location > span { color: var(--cyan); }
.report-location small { flex-basis: 100%; color: var(--orange); }
.report-card footer { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 7px; }
.avatar-stack { display: flex; align-items: center; margin-right: auto; }
.avatar-stack > span { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #26354a; border-radius: 50%; color: #a5f3fc; background: #111f2e; font-size: 7px; font-weight: 800; }
.avatar-stack b { max-width: 85px; margin-left: 6px; overflow: hidden; color: #94a3b8; text-overflow: ellipsis; white-space: nowrap; }
.confirm-count { color: #a5b4c6; }
.card-demo-label { position: absolute; right: 14px; bottom: 7px; color: rgba(196, 181, 253, .55); font-size: 6px; text-transform: uppercase; }
.skeleton-card { min-height: 250px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.skeleton-card i, .skeleton-card b, .skeleton-card span { display: block; border-radius: 6px; background: linear-gradient(90deg, #101b2a, #172438, #101b2a); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-card i { width: 32px; height: 32px; } .skeleton-card b { width: 80%; height: 20px; margin-top: 25px; } .skeleton-card span { width: 100%; height: 10px; margin-top: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Transport */
.transport-hero { width: min(100% - 40px, var(--max)); min-height: 310px; margin: 0 auto; padding: 60px 5% 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.demo-banner { display: inline-flex; align-items: center; gap: 8px; color: #b9a8f5; font-size: 8px; }
.demo-banner span { padding: 3px 7px; border-radius: 5px; color: #fff; background: #6d28d9; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.transport-hero h1 { margin: 9px 0 0; font-size: clamp(38px, 4.8vw, 64px); line-height: 1; letter-spacing: -.06em; }
.transport-hero p { max-width: 670px; margin: 15px 0 0; color: var(--muted); }
.transport-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 25px; }
.transport-filters select { min-height: 39px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--text); background: #0b1422; font-size: 9px; }
.transport-filters label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.transport-filters input { accent-color: var(--cyan); }
.route-status-pills { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.transport-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 25px; }
.transport-workspace { height: min(720px, calc(100vh - 160px)); min-height: 610px; display: grid; grid-template-columns: 360px 1fr; margin-top: 18px; margin-bottom: 50px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.transport-list-panel { display: flex; min-width: 0; flex-direction: column; border-right: 1px solid var(--line); }
.transport-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 12px; border-bottom: 1px solid var(--line); }
.transport-tabs button { min-height: 40px; border: 0; border-radius: 10px; color: var(--muted); background: none; font-size: 10px; font-weight: 750; cursor: pointer; }
.transport-tabs button.active { color: white; background: rgba(34, 211, 238, .1); }
.transport-tabs b { margin-left: 4px; color: var(--cyan); }
.transport-list { flex: 1; overflow-y: auto; padding: 8px; }
.transport-list-item { width: 100%; min-height: 76px; display: grid; grid-template-columns: 43px 1fr auto 8px; align-items: center; gap: 10px; padding: 10px; border: 1px solid transparent; border-radius: 12px; text-align: left; background: none; cursor: pointer; transition: .18s; }
.transport-list-item:hover { border-color: var(--line); background: rgba(255, 255, 255, .035); }
.line-badge { min-width: 37px; height: 27px; display: inline-grid; place-items: center; padding: 0 6px; border: 1px solid color-mix(in srgb, var(--line-color) 45%, transparent); border-radius: 8px; color: color-mix(in srgb, var(--line-color) 70%, white); background: color-mix(in srgb, var(--line-color) 10%, transparent); font-size: 8px; font-weight: 900; white-space: nowrap; }
.line-badge.large { min-width: 42px; height: 34px; font-size: 10px; }
.transport-list-item > div { min-width: 0; }
.transport-list-item > div > b { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.transport-list-item > div > small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted-2); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.bus-status { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: color-mix(in srgb, var(--bus-color) 78%, white); font-size: 7px; }
.bus-status i { width: 4px; height: 4px; border-radius: 50%; background: var(--bus-color); box-shadow: 0 0 5px var(--bus-color); }
.eta { min-width: 36px; text-align: right; }
.eta b { display: block; color: white; font-size: 17px; line-height: 1; }
.eta small { color: var(--muted-2); font-size: 7px; }
.transport-list-item > span:last-child { color: var(--muted-2); }
.transport-map-wrap { position: relative; min-width: 0; overflow: hidden; }
.route-key { position: absolute; z-index: 500; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 6px; padding: 11px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(7, 13, 23, .9); box-shadow: var(--shadow); backdrop-filter: blur(15px); }
.route-key b { margin-bottom: 3px; font-size: 8px; text-transform: uppercase; }
.route-key span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 7px; }
.route-key i { width: 15px; height: 2px; border-radius: 3px; background: var(--route-color); box-shadow: 0 0 5px var(--route-color); }
.transport-refresh { position: absolute; z-index: 500; right: 15px; top: 15px; display: flex; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(7, 13, 23, .9); font-size: 7px; }
.transport-refresh b { color: white; }
.stop-list-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(34, 211, 238, .25); border-radius: 50%; color: #67e8f9; background: rgba(8, 145, 178, .08); }

/* Community */
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; padding-top: 25px; padding-bottom: 80px; }
.feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.feed-toolbar h2 { margin: 0; font-size: 20px; }
.feed-toolbar > div { display: flex; gap: 7px; }
.feed-toolbar input, .feed-toolbar select { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--text); background: #0b1422; font-size: 9px; }
.feed-toolbar input { width: 190px; padding: 0 11px; }
.feed-toolbar select { padding: 0 9px; }
.post-feed { display: flex; flex-direction: column; gap: 11px; }
.post-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(14, 24, 39, .8), rgba(8, 15, 26, .72)); }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head > div { min-width: 0; }
.post-head b, .post-head small { display: block; }
.post-head b { font-size: 10px; } .post-head small { color: var(--muted); font-size: 7px; }
.post-head .category-chip { margin-left: auto; }
.post-card h3 { margin: 17px 0 7px; font-size: 17px; }
.post-card > p { margin: 0; color: #a6b4c6; font-size: 10px; line-height: 1.7; white-space: pre-wrap; }
.post-card footer { display: flex; gap: 8px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.post-card footer button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: rgba(255, 255, 255, .025); font-size: 8px; cursor: pointer; }
.post-card footer button.active, .post-card footer .reaction-button.active { color: #fda4af; border-color: rgba(251, 113, 133, .25); background: rgba(251, 113, 133, .08); }
.post-comments { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 11px; background: rgba(255, 255, 255, .025); }
.post-comments > div { padding-left: 10px; border-left: 1px solid var(--line); }
.post-comments b { font-size: 8px; } .post-comments p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.community-sidebar { display: flex; flex-direction: column; gap: 13px; }
.side-panel { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12, 20, 33, .7); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.panel-title h3 { margin: 0; font-size: 14px; } .panel-title a { color: var(--cyan); font-size: 8px; font-weight: 800; }
.side-events { display: flex; flex-direction: column; gap: 8px; }
.event-card { display: grid; grid-template-columns: 47px 1fr; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .022); }
.event-date { width: 45px; height: 48px; display: grid; place-content: center; border: 1px solid rgba(34, 211, 238, .18); border-radius: 10px; text-align: center; background: rgba(34, 211, 238, .055); }
.event-date b, .event-date small { display: block; line-height: 1.1; }
.event-date b { font-size: 17px; } .event-date small { color: var(--cyan); font-size: 7px; text-transform: uppercase; }
.event-date.big { width: 54px; height: 56px; }
.event-card h4 { margin: 6px 0 4px; font-size: 10px; line-height: 1.35; }
.event-card p, .event-card > div > span { display: block; margin: 0; color: var(--muted); font-size: 7px; }
.side-lost { width: 100%; display: grid; grid-template-columns: 35px 1fr; gap: 9px; align-items: center; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: none; cursor: pointer; }
.side-lost > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(167, 139, 250, .08); }
.side-lost b, .side-lost small { display: block; } .side-lost b { font-size: 9px; } .side-lost small { color: var(--muted); font-size: 7px; }

/* Help and lost */
.help-summary { width: min(100% - 40px, var(--max)); margin: 0 auto 12px; display: grid; grid-template-columns: 160px 160px 1fr; gap: 10px; align-items: stretch; }
.help-summary > div, .help-summary > p { margin: 0; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 20, 33, .65); }
.help-summary > div { display: grid; grid-template-columns: 34px auto; align-items: center; column-gap: 10px; }
.help-summary > div > span { grid-row: 1/3; font-size: 19px; }
.help-summary b { font-size: 20px; line-height: 1; } .help-summary small { color: var(--muted); font-size: 8px; }
.help-summary > p { display: flex; align-items: center; color: var(--muted); font-size: 9px; }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.help-card { display: flex; flex-direction: column; min-height: 250px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(15, 25, 40, .8), rgba(9, 16, 28, .72)); }
.help-card.need { --help-color: var(--orange); } .help-card.offer { --help-color: var(--green); }
.help-kind { display: flex; align-items: center; justify-content: space-between; color: var(--help-color); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.help-kind span { padding: 4px 7px; border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .04); }
.help-card h3 { margin: 17px 0 7px; font-size: 16px; }
.help-card > p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.65; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.help-location { margin-top: 13px; color: #b2bfce; font-size: 8px; }
.help-card footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 7px; }
.help-card footer > span:nth-child(2) { margin-left: auto; }
.mini-action { min-height: 28px; padding: 0 8px; border: 1px solid rgba(52, 211, 153, .18); border-radius: 8px; color: var(--green); background: rgba(52, 211, 153, .055); font-size: 7px; cursor: pointer; }
.resolved-label { color: var(--green) !important; }
.lost-grid { width: min(100% - 40px, var(--max)); margin: 0 auto; padding: 30px 0 80px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lost-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12, 20, 33, .76); }
.lost-image { position: relative; height: 145px; display: grid; place-items: center; background: radial-gradient(circle, rgba(167, 139, 250, .13), transparent 55%), #0c1624; background-size: cover; background-position: center; }
.lost-image.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(5, 10, 18, .82)); }
.lost-image > span { position: relative; z-index: 1; font-size: 35px; }
.lost-image > small { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 3px 6px; border-radius: 5px; color: #c4b5fd; background: rgba(10, 8, 22, .8); font-size: 7px; }
.lost-content { padding: 17px; }
.lost-content h3 { margin: 10px 0 6px; font-size: 15px; }
.lost-content p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lost-content footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 7px; }
.lost-detail { padding: 0; }
.lost-detail-media { position: relative; height: 250px; display: grid; place-items: center; background: radial-gradient(circle, rgba(167, 139, 250, .15), transparent 55%), #0b1624; background-size: cover; background-position: center; }
.lost-detail-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(4, 9, 16, .88)); }
.lost-detail-media > span { position: relative; z-index: 1; font-size: 64px; }
.lost-detail-media > small { position: absolute; z-index: 2; top: 18px; right: 18px; padding: 4px 8px; border-radius: 6px; color: #c4b5fd; background: rgba(6, 8, 18, .8); font-size: 8px; }
.lost-detail-body { padding: 25px 28px 28px; }
.lost-detail-body h2 { margin: 8px 0; font-size: 25px; letter-spacing: -.045em; }
.lost-detail-body > p { color: var(--muted); font-size: 10px; line-height: 1.7; }
.lost-detail-body .privacy-note { padding: 13px; border: 1px solid rgba(52, 211, 153, .13); border-radius: 11px; background: rgba(52, 211, 153, .035); }
.contact-hint { padding: 11px; border: 1px solid var(--line); border-radius: 10px; }

/* Modals and forms */
#modalRoot { position: relative; z-index: 2000; }
.modal-overlay { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 24px; overflow-y: auto; background: rgba(2, 6, 12, .77); opacity: 0; backdrop-filter: blur(11px); transition: opacity .22s; }
.modal-overlay.open { opacity: 1; }
.modal { position: relative; width: min(100%, 620px); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid rgba(148, 163, 184, .21); border-radius: 23px; background: linear-gradient(145deg, #0e1929, #080f1b 75%); box-shadow: 0 35px 110px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 255, 255, .035); transform: translateY(12px) scale(.985); transition: transform .25s; }
.modal-overlay.open .modal { transform: none; }
.modal-lg { width: min(100%, 850px); } .modal-xl { width: min(100%, 1080px); } .modal-auth { width: min(100%, 880px); }
.modal-close { position: absolute; z-index: 5; top: 13px; right: 13px; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(5, 10, 18, .75); font-size: 20px; cursor: pointer; backdrop-filter: blur(10px); }
.modal-content { min-height: 100%; }
.form-modal, .notification-modal, .profile-modal, .search-modal, .entity-modal, .report-detail { padding: 30px; }
.form-modal > h2, .modal-title h2, .profile-modal h2, .wizard h2, .entity-modal h2, .report-detail h2 { margin: 5px 0 0; font-size: 25px; line-height: 1.2; letter-spacing: -.045em; }
.form-modal > p, .wizard-head p, .location-layout > div > p { color: var(--muted); font-size: 10px; }
.form-stack { display: flex; flex-direction: column; gap: 13px; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label, .form-stack label { display: flex; flex-direction: column; gap: 6px; color: #b6c2d1; font-size: 9px; font-weight: 700; }
.form-grid .span-2, .form-stack .span-2 { grid-column: 1/-1; }
.check-row { flex-direction: row !important; align-items: flex-start; line-height: 1.5; }
.check-row input { margin-top: 2px; accent-color: var(--cyan); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .025); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { min-height: 40px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); font-size: 9px; font-weight: 800; cursor: pointer; }
.segmented input:checked + span { color: #062027; background: var(--cyan); }
.modal-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.notification-list { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.notification-list a { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.notification-list a:hover { background: rgba(34, 211, 238, .04); }
.notification-list a > span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; background: rgba(34, 211, 238, .07); }
.notification-list b, .notification-list p, .notification-list small { display: block; margin: 0; }
.notification-list b { font-size: 9px; } .notification-list p { color: var(--muted); font-size: 8px; } .notification-list small { color: var(--muted-2); font-size: 7px; }
.profile-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile-head h2 { font-size: 21px; }
.profile-head p { margin: 4px 0; color: var(--muted); font-size: 9px; }
.profile-head > div > span { color: var(--cyan); font-size: 8px; }
.admin-link { display: block; margin: 18px 0 9px; color: #c4b5fd; text-align: center; font-size: 9px; font-weight: 800; }
.profile-password { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-password h3 { margin: 0; font-size: 13px; }
.search-box { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.search-box input { min-width: 0; border: 0; outline: 0; color: white; background: none; font-size: 14px; }
.search-box kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted-2); font-size: 7px; }
.search-results { min-height: 230px; padding: 10px; }
.search-hint { padding: 50px 20px; text-align: center; }
.search-hint p { color: var(--muted); font-size: 9px; }
.result-label { display: block; padding: 10px 8px 5px; color: var(--muted-2); font-size: 7px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.search-result { width: 100%; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 10px; padding: 9px; border: 0; border-radius: 10px; text-align: left; background: none; cursor: pointer; }
.search-result:hover { background: rgba(255, 255, 255, .04); }
.search-result > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--result-color, #22d3ee) 10%, transparent); }
.search-result b, .search-result small { display: block; }
.search-result b { font-size: 9px; } .search-result small { color: var(--muted); font-size: 7px; } .search-result i { color: var(--muted-2); font-style: normal; }
.entity-banner { min-height: 160px; display: flex; align-items: center; gap: 18px; padding: 28px; background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--entity-color, #22d3ee) 18%, transparent), transparent 60%); }
.entity-banner > span { width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--entity-color, #22d3ee) 35%, transparent); border-radius: 17px; color: white; background: color-mix(in srgb, var(--entity-color, #22d3ee) 17%, transparent); font-size: 25px; }
.entity-banner small { color: #a5f3fc; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.entity-banner.stop { --entity-color: #38bdf8; }
.entity-body { padding: 24px 28px 28px; }
.entity-status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 8px; }
.entity-status-row .bus-status { margin: 0; font-size: 8px; }
.entity-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.entity-stats div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .025); }
.entity-stats small, .entity-stats b { display: block; }
.entity-stats small { color: var(--muted); font-size: 7px; } .entity-stats b { margin-top: 3px; font-size: 10px; }
.info-alert, .delay-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 16px; padding: 10px; border: 1px solid rgba(34, 211, 238, .15); border-radius: 10px; color: #a5b4fc; background: rgba(99, 102, 241, .055); font-size: 8px; }
.delay-alert { color: #fdba74; border-color: rgba(251, 146, 60, .2); background: rgba(251, 146, 60, .06); }
.delay-alert span { color: var(--muted); }
.arrival-list { display: flex; flex-direction: column; gap: 5px; margin: 13px 0 17px; }
.arrival-row { width: 100%; display: grid; grid-template-columns: 48px 1fr auto 8px; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; text-align: left; background: rgba(255, 255, 255, .02); cursor: pointer; }
.arrival-row:hover { background: rgba(34, 211, 238, .04); }
.arrival-row b, .arrival-row small { display: block; } .arrival-row b { font-size: 9px; } .arrival-row small { margin: 0; }
.arrival-row strong { color: white; font-size: 9px; }
.fine-print { display: block; margin-top: 10px; color: var(--muted-2); text-align: center; font-size: 7px; }
.auth-shell { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 540px; }
.auth-visual { display: flex; flex-direction: column; justify-content: flex-end; padding: 42px; overflow: hidden; background: radial-gradient(circle at 20% 15%, rgba(34, 211, 238, .16), transparent 40%), radial-gradient(circle at 80% 80%, rgba(99, 102, 241, .12), transparent 40%), #0a1422; }
.auth-visual h2 { margin: 8px 0; font-size: 28px; line-height: 1.12; letter-spacing: -.05em; }
.auth-visual > p { margin: 0; color: var(--muted); font-size: 10px; }
.auth-orbit { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: auto; }
.auth-orbit i { position: absolute; inset: 0; border: 1px solid rgba(34, 211, 238, .2); border-radius: 50%; }
.auth-orbit i:nth-child(2) { inset: 20px; border-style: dashed; animation: spin 15s linear infinite; }
.auth-orbit b { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #062027; background: var(--cyan); box-shadow: 0 0 45px rgba(34, 211, 238, .3); }
.privacy-note { display: flex; gap: 9px; margin-top: 30px; padding-top: 17px; border-top: 1px solid var(--line); }
.privacy-note > span { color: var(--green); }
.privacy-note b, .privacy-note small { display: block; }
.privacy-note b { font-size: 9px; } .privacy-note small { color: var(--muted); font-size: 7px; }
.auth-form-wrap { display: flex; flex-direction: column; justify-content: center; padding: 45px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.auth-tabs button { min-height: 40px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: none; font-size: 9px; font-weight: 800; cursor: pointer; }
.auth-tabs button.active { color: white; border-color: var(--cyan); }
.auth-switch { margin: 15px 0 0; color: var(--muted); text-align: center; font-size: 8px; }
.auth-switch button { border: 0; color: var(--cyan); background: none; cursor: pointer; }

/* Wizard and detail */
.wizard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding: 28px 32px 21px; border-bottom: 1px solid var(--line); }
.wizard-head p { margin: 5px 0 0; }
.wizard-progress { display: flex; align-items: center; margin-top: 5px; }
.wizard-progress span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 8px; }
.wizard-progress span.active { color: #041217; border-color: var(--cyan); background: var(--cyan); }
.wizard-progress i { width: 28px; height: 1px; background: var(--line); }
.wizard-body { min-height: 420px; padding: 27px 32px; }
.wizard-step { display: none; animation: viewIn .25s ease; }
.wizard-step.active { display: block; }
.choice-grid { display: grid; gap: 11px; }
.choice-grid-3 { grid-template-columns: repeat(3, 1fr); }
.choice-card { min-height: 180px; display: flex; flex-direction: column; align-items: flex-start; padding: 19px; border: 1px solid var(--line); border-radius: 15px; text-align: left; background: rgba(255, 255, 255, .022); cursor: pointer; transition: .2s; }
.choice-card:hover, .choice-card.selected { border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .06); transform: translateY(-2px); }
.choice-card > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .045); font-size: 20px; }
.choice-card b { margin: 16px 0 5px; font-size: 11px; } .choice-card small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.privacy-banner { display: flex; gap: 10px; margin-top: 15px; padding: 12px; border: 1px solid rgba(52, 211, 153, .13); border-radius: 11px; color: #a7f3d0; background: rgba(16, 185, 129, .04); }
.privacy-banner > span { color: var(--green); }
.privacy-banner p { margin: 0; font-size: 8px; }
.wizard-foot { display: flex; justify-content: space-between; padding: 16px 32px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .12); }
.location-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 20px; }
.location-layout h3 { margin: 4px 0; font-size: 17px; }
.picker-map, .detail-map { min-height: 285px; height: 100%; border: 1px solid var(--line); border-radius: 14px; }
.picker-marker { width: 43px; height: 43px; display: grid; place-items: center; border: 2px solid var(--cyan); border-radius: 50% 50% 50% 10%; color: #031015; background: var(--cyan); box-shadow: 0 0 25px rgba(34, 211, 238, .5); transform: rotate(-45deg); }
.picker-marker span { transform: rotate(45deg); }
.selected-location { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px; border: 1px solid rgba(34, 211, 238, .16); border-radius: 11px; background: rgba(34, 211, 238, .045); }
.selected-location > span { color: var(--cyan); }
.selected-location b, .selected-location small { display: block; } .selected-location b { font-size: 9px; } .selected-location small { color: var(--muted); font-size: 7px; }
.image-upload-row { display: flex; align-items: center; gap: 13px; margin-top: 15px; }
.image-drop { position: relative; display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; cursor: pointer; }
.image-drop input { position: absolute; opacity: 0; pointer-events: none; }
.image-preview { width: 44px; height: 44px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 11px; background-size: cover; background-position: center; color: var(--cyan); font-size: 17px; }
.image-drop b, .image-drop small { display: block; } .image-drop b { font-size: 8px; } .image-drop small { color: var(--muted); font-size: 7px; }
.upload-status { color: var(--muted); font-size: 8px; }
.report-detail { padding: 0; }
.detail-media { height: 220px; position: relative; background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, .16), transparent 50%), #0c1624; background-size: cover; background-position: center; }
.detail-media-shade { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(4, 9, 16, .82)); }
.detail-topline { position: absolute; z-index: 2; top: 18px; left: 20px; display: flex; gap: 7px; }
.detail-content { padding: 25px 28px 30px; }
.detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.detail-title > div { min-width: 0; }
.category-label { color: var(--cyan); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.detail-title h2 { font-size: 25px; }
.detail-title p { color: var(--muted); font-size: 10px; line-height: 1.7; }
.confirm-button { flex: 0 0 auto; min-height: 39px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid rgba(34, 211, 238, .22); border-radius: 11px; color: #a5f3fc; background: rgba(34, 211, 238, .06); font-size: 8px; font-weight: 800; cursor: pointer; }
.confirm-button b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: #061216; background: var(--cyan); }
.confirm-button.confirmed { color: #86efac; border-color: rgba(52, 211, 153, .2); background: rgba(52, 211, 153, .06); }
.confirm-button.confirmed b { background: var(--green); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0; padding: 12px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.detail-map { height: 200px; min-height: 200px; margin: 16px 0; }
.history-section, .comments-section { margin-top: 24px; }
.history-section h3, .comments-section h3, .section-title-row h3 { margin: 0; font-size: 13px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; }
.section-title-row > span { color: var(--muted); font-size: 8px; }
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 14px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 8px; min-height: 62px; }
.timeline-item > i { position: relative; z-index: 2; width: 10px; height: 10px; margin-top: 2px; border: 2px solid var(--cyan); border-radius: 50%; background: #0a1422; }
.timeline-item > span { position: absolute; top: 12px; bottom: 0; left: 4px; width: 1px; background: var(--line); }
.timeline-item b { font-size: 8px; text-transform: uppercase; }
.timeline-item p { margin: 2px 0; color: #b7c3d2; font-size: 8px; }
.timeline-item small { color: var(--muted-2); font-size: 7px; }
.comment-list { display: flex; flex-direction: column; gap: 9px; margin: 13px 0; }
.comment-list .empty-state { min-height: 130px; }
.comment { display: grid; grid-template-columns: 30px 1fr; gap: 9px; }
.comment > div > div { display: flex; align-items: center; gap: 8px; }
.comment b { font-size: 8px; } .comment small { color: var(--muted-2); font-size: 7px; } .comment p { margin: 3px 0 0; color: #aebac9; font-size: 8px; }
.comment-form { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.comment-form input { min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: white; background: #0a1320; font-size: 8px; }
.comment-form.standalone { margin: 20px 0; }
.empty-state { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.empty-orbit { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid rgba(34, 211, 238, .18); border-radius: 50%; color: var(--cyan); background: rgba(34, 211, 238, .05); font-size: 20px; }
.empty-state h3 { margin: 0; font-size: 14px; }
.empty-state p { max-width: 340px; margin: 6px 0 14px; color: var(--muted); font-size: 9px; }

/* Admin */
.access-denied { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lock-orbit { width: 85px; height: 85px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid rgba(167, 139, 250, .2); border-radius: 50%; color: #c4b5fd; background: rgba(124, 58, 237, .06); box-shadow: 0 0 0 18px rgba(124, 58, 237, .025), 0 0 0 36px rgba(124, 58, 237, .015); font-size: 25px; }
.access-denied h1 { margin: 6px 0; font-size: 34px; }
.access-denied p { margin: 0 0 20px; color: var(--muted); }
.admin-header { min-height: 230px; display: flex; align-items: flex-end; justify-content: space-between; padding: 55px 3% 35px; }
.admin-header h1 { margin: 6px 0; font-size: 42px; letter-spacing: -.055em; }
.admin-header p { margin: 0; color: var(--muted); }
.admin-live { color: #a7f3d0; font-size: 9px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; padding-bottom: 18px; }
.admin-shell { min-height: 620px; display: grid; grid-template-columns: 210px 1fr; margin-bottom: 70px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(12, 20, 33, .7); }
.admin-nav { padding: 15px; border-right: 1px solid var(--line); }
.admin-nav button { width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; text-align: left; color: var(--muted); background: none; font-size: 9px; font-weight: 750; cursor: pointer; }
.admin-nav button.active, .admin-nav button:hover { color: white; background: rgba(34, 211, 238, .08); }
.admin-content { min-width: 0; }
.admin-tab { display: none; padding: 24px; }
.admin-tab.active { display: block; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.admin-panel-head h2 { margin: 0; font-size: 19px; }
.admin-panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.admin-panel-head input { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: white; background: #0a1320; font-size: 8px; }
.admin-head-actions { display: flex; gap: 6px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.admin-table { width: 100%; min-width: 700px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 8px; }
.admin-table th { color: var(--muted-2); background: rgba(255, 255, 255, .025); text-transform: uppercase; letter-spacing: .08em; }
.admin-table td b, .admin-table td small { display: block; }
.admin-table td small { color: var(--muted); font-size: 7px; }
.admin-table select { min-height: 31px; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; color: white; background: #0a1422; font-size: 8px; }
.table-action { min-height: 29px; margin: 2px; padding: 0 8px; border: 1px solid rgba(34, 211, 238, .18); border-radius: 8px; color: var(--cyan); background: rgba(34, 211, 238, .05); font-size: 7px; cursor: pointer; }
.table-action.danger { color: #fda4af; border-color: rgba(251, 113, 133, .18); background: rgba(251, 113, 133, .05); }
.admin-card-list, .admin-transport-grid { display: flex; flex-direction: column; gap: 7px; }
.admin-card-list article, .admin-transport-grid article { display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.admin-card-list article > span:first-child, .admin-transport-grid article > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--category-color, var(--route-color)); background: rgba(255, 255, 255, .04); }
.admin-card-list b, .admin-card-list small, .admin-transport-grid b, .admin-transport-grid small { display: block; }
.admin-card-list b, .admin-transport-grid b { font-size: 9px; } .admin-card-list small, .admin-transport-grid small { color: var(--muted); font-size: 7px; }
.admin-card-list .on, .admin-card-list .off { color: var(--green); font-size: 7px; }
.admin-card-list button, .admin-transport-grid button { min-height: 29px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: none; font-size: 7px; cursor: pointer; }
.admin-transport-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; }
.admin-transport-grid h3 { grid-column: 1/-1; margin: 0 0 4px; font-size: 12px; }
.admin-transport-grid section { display: flex; flex-direction: column; gap: 6px; }
.admin-transport-grid article { grid-template-columns: 43px 1fr auto; }
.health-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.health-grid div { padding: 30px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .025); }
.health-grid b, .health-grid span { display: block; } .health-grid b { font-size: 31px; } .health-grid span { color: var(--muted); font-size: 8px; }

/* Feed extras */
.home-panels { display: grid; grid-template-columns: 1.15fr .85fr; gap: 15px; }
.home-panels > div { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12, 20, 33, .65); }
.compact-report-list { display: flex; flex-direction: column; }
.compact-report-list > button { width: 100%; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: none; cursor: pointer; }
.compact-report-list b, .compact-report-list small { display: block; } .compact-report-list b { font-size: 9px; } .compact-report-list small { color: var(--muted); font-size: 7px; }
.category-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--category-color) 8%, transparent); }
.event-mini-list { display: flex; flex-direction: column; gap: 8px; }
.event-mini-list article { display: grid; grid-template-columns: 43px 1fr; align-items: center; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.event-mini-list article > div:last-child > b, .event-mini-list article > div:last-child > span { display: block; }
.event-mini-list b { font-size: 9px; } .event-mini-list span { color: var(--muted); font-size: 7px; }
.event-mini-list .demo-pill { margin-top: 4px; }
.cta-band { width: min(100% - 40px, var(--max)); min-height: 180px; margin: 85px auto; padding: 35px 5%; display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid rgba(34, 211, 238, .18); border-radius: var(--radius-lg); background: radial-gradient(circle at 75% 50%, rgba(34, 211, 238, .18), transparent 35%), linear-gradient(135deg, #0a2230, #0b1626); }
.cta-band h2 { margin: 5px 0; font-size: 27px; letter-spacing: -.04em; }
.cta-band p { margin: 0; color: var(--muted); font-size: 10px; }

/* Toast and footer */
.toast-root { position: fixed; z-index: 4000; right: 18px; bottom: 18px; width: min(360px, calc(100vw - 36px)); display: flex; flex-direction: column; gap: 7px; pointer-events: none; }
.toast { display: grid; grid-template-columns: 29px 1fr 20px; align-items: start; gap: 9px; padding: 11px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(10, 17, 29, .95); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: .25s; backdrop-filter: blur(18px); pointer-events: auto; }
.toast.show { opacity: 1; transform: none; }
.toast-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #062017; background: var(--green); font-weight: 900; }
.toast-error .toast-icon { color: #fff; background: var(--red); }
.toast-info .toast-icon { color: #06121e; background: var(--cyan); }
.toast strong { display: block; font-size: 9px; }
.toast p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.toast button { border: 0; color: var(--muted); background: none; cursor: pointer; }
.site-footer { border-top: 1px solid var(--line); background: rgba(3, 7, 13, .8); }
.footer-inner { width: min(100% - 40px, var(--max)); min-height: 170px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; }
.footer-brand .brand-mark { vertical-align: middle; margin-right: 7px; }
.footer-brand b { font-size: 11px; letter-spacing: .1em; }
.footer-brand p { margin: 7px 0 0; color: var(--muted); font-size: 8px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 8px; font-weight: 700; }
.footer-note { justify-self: end; max-width: 280px; color: var(--muted); text-align: right; }
.footer-note p { margin: 7px 0 0; font-size: 7px; }
.footer-bottom { min-height: 48px; padding: 0 max(20px, calc((100% - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 7px; }
.footer-bottom a { color: #67e8f9; }

@media (max-width: 1280px) {
  .desktop-nav a { padding-inline: 9px; }
  .header-inner { gap: 15px; }
  .hero-section { padding-inline: 4%; gap: 3%; }
  .hero-copy h1 { font-size: clamp(43px, 5vw, 66px); }
  .update-one { right: -7%; }
  .update-two { left: -4%; }
  .stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stat-card { padding: 15px; }
  .stat-icon { width: 33px; height: 33px; }
  .transport-workspace { grid-template-columns: 330px 1fr; }
  .card-grid, .help-grid, .lost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 1024px) {
  :root { --header-height: 68px; }
  .header-inner { padding-inline: 18px; }
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-trigger { display: inline-grid; }
  .mobile-menu { position: fixed; z-index: 1500; top: 0; right: 0; width: min(360px, 88vw); height: 100dvh; display: flex; flex-direction: column; padding: 22px; background: #08101b; box-shadow: -30px 0 80px rgba(0, 0, 0, .5); transform: translateX(105%); transition: transform .28s; }
  .mobile-menu.open { transform: none; }
  .menu-backdrop { position: fixed; z-index: 1400; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(2, 6, 12, .68); backdrop-filter: blur(6px); transition: .25s; }
  .menu-backdrop:has(+ *) { transition: .25s; }
  body.menu-open .menu-backdrop { visibility: visible; opacity: 1; }
  .mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .mobile-menu nav { display: flex; flex-direction: column; padding: 18px 0; }
  .mobile-menu nav a { min-height: 51px; display: flex; align-items: center; gap: 13px; padding: 0 10px; border-radius: 11px; color: #c7d1de; font-size: 13px; font-weight: 700; }
  .mobile-menu nav a.active, .mobile-menu nav a:hover { color: white; background: rgba(34, 211, 238, .07); }
  .nav-icon { width: 25px; height: 25px; display: grid; place-items: center; color: var(--cyan); font-size: 18px; }
  .mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
  .hero-section { min-height: auto; padding: 72px 4% 65px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 620px; width: 100%; margin: 25px auto 0; }
  .update-one { right: -2%; } .update-two { left: -2%; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .connection-grid { grid-template-columns: 1fr; }
  .home-map-card { height: 600px; }
  .map-workspace { height: auto; min-height: 650px; grid-template-columns: 250px 1fr; }
  .page-hero { min-height: 250px; padding-top: 50px; }
  .transport-workspace { height: 680px; grid-template-columns: 310px 1fr; }
  .community-layout { grid-template-columns: 1fr; }
  .community-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-transport-grid { grid-template-columns: 1fr; }
  .admin-transport-grid h3 { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1/-1; justify-self: start; text-align: left; }
}

@media (max-width: 768px) {
  .header-actions .search-trigger { display: none; }
  .report-trigger { width: 42px; padding: 0; font-size: 0; }
  .report-trigger span { font-size: 20px; }
  .content-section, .page-hero, .map-workspace, .listing-results, .listing-toolbar, .community-layout, .transport-metrics, .transport-workspace, .admin-shell, .admin-header, .admin-metrics, .hero-section, .transport-hero, .help-summary, .lost-grid, .cta-band, .footer-inner { width: min(100% - 24px, var(--max)); }
  .hero-section { padding: 60px 5% 55px; }
  .hero-copy h1 { font-size: clamp(43px, 11vw, 66px); }
  .hero-copy > p { font-size: 14px; }
  .radar-map { height: 270px; }
  .floating-update { min-width: 165px; transform: scale(.9); }
  .update-one { top: 12%; right: -7%; }
  .update-two { bottom: 10%; left: -7%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-heading h2 { font-size: 27px; }
  .stats-section, .connection-section, .home-map-section, .home-feed-section { padding-top: 58px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:last-child { grid-column: 1/-1; }
  .home-map-card { height: 520px; }
  .map-floating-card { top: 12px; left: 12px; }
  .home-panels { grid-template-columns: 1fr; }
  .cta-band { margin: 55px auto; align-items: flex-start; flex-direction: column; }
  .page-hero { min-height: 225px; align-items: flex-start; flex-direction: column; justify-content: flex-end; padding: 44px 2% 34px; }
  .page-hero h1 { font-size: 39px; }
  .page-hero-route { align-items: flex-start; }
  .map-workspace { min-height: 0; display: flex; flex-direction: column-reverse; border-radius: 18px; }
  .map-main-panel { height: 56dvh; min-height: 430px; }
  .map-filter-panel { max-height: 360px; border-right: 0; border-top: 1px solid var(--line); }
  .listing-toolbar { align-items: stretch; flex-direction: column; padding: 15px 0; }
  .filter-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-pills button { flex: 0 0 auto; }
  .toolbar-selects { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar-selects select { min-width: 0; }
  .search-control.compact { grid-column: 1/-1; width: 100%; }
  .card-grid, .help-grid, .lost-grid { grid-template-columns: 1fr; }
  .transport-hero { align-items: flex-start; flex-direction: column; padding-top: 45px; }
  .route-status-pills { align-items: flex-start; }
  .transport-metrics { grid-template-columns: repeat(2, 1fr); }
  .transport-workspace { height: auto; min-height: 0; display: flex; flex-direction: column; margin-bottom: 30px; }
  .transport-map-wrap { order: -1; height: 52dvh; min-height: 410px; }
  .transport-list-panel { min-height: 380px; border-right: 0; }
  .community-sidebar { grid-template-columns: 1fr; }
  .feed-toolbar { align-items: stretch; flex-direction: column; }
  .feed-toolbar > div { display: grid; grid-template-columns: 1fr 130px; }
  .feed-toolbar input { width: 100%; }
  .help-summary { grid-template-columns: 1fr 1fr; }
  .help-summary > p { grid-column: 1/-1; }
  .admin-header { min-height: 200px; align-items: flex-start; flex-direction: column; justify-content: flex-end; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-nav button { flex: 0 0 auto; width: auto; }
  .admin-tab { padding: 16px; }
  .admin-panel-head { align-items: flex-start; flex-direction: column; }
  .admin-head-actions { flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 35px 0; }
  .footer-links { flex-wrap: wrap; }
  .footer-note { grid-column: auto; }
  .modal-overlay { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 94dvh; border-radius: 23px 23px 0 0; }
  .form-modal, .notification-modal, .profile-modal, .search-modal, .entity-modal, .report-detail { padding: 24px 18px; }
  .report-detail { padding: 0; }
  .choice-grid-3 { grid-template-columns: 1fr; }
  .choice-card { min-height: 105px; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; }
  .choice-card > span { grid-row: 1/3; }
  .choice-card b { margin: 2px 0 0; }
  .wizard-head { padding: 23px 18px 17px; }
  .wizard-progress { display: none; }
  .wizard-body { min-height: 430px; padding: 20px 18px; }
  .wizard-foot { padding: 13px 18px; }
  .location-layout { grid-template-columns: 1fr; }
  .picker-map { min-height: 250px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-wrap { min-height: 500px; padding: 35px 24px; }
  .detail-content { padding: 21px 18px 25px; }
  .detail-title { flex-direction: column; }
  .entity-body { padding: 20px 18px 24px; }
}

@media (max-width: 480px) {
  :root { --header-height: 62px; }
  .header-inner { padding-inline: 12px; gap: 7px; }
  .brand { gap: 7px; font-size: 13px; }
  .brand-mark { width: 25px; height: 25px; }
  .header-actions { gap: 5px; }
  .icon-btn, .report-trigger { width: 38px; height: 38px; }
  .login-trigger { width: 38px !important; height: 38px; min-height: 38px; padding: 0 !important; font-size: 0 !important; }
  .login-trigger .avatar { width: 27px; height: 27px; }
  .login-trigger > span:last-child:not(.avatar) { display: none; }
  .hero-section { width: 100%; padding: 49px 18px 48px; }
  .hero-copy h1 { font-size: clamp(40px, 13.4vw, 57px); }
  .hero-copy > p { font-size: 12px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-trust { display: grid; gap: 7px; }
  .radar-card { padding: 10px; border-radius: 20px; transform: none; }
  .radar-map { height: 235px; }
  .radar-bottom b { font-size: 17px; }
  .floating-update { display: none; }
  .stats-grid { gap: 8px; }
  .stat-card { min-height: 100px; gap: 9px; padding: 13px; }
  .stat-icon { width: 32px; height: 32px; font-size: 14px; }
  .stat-card small { font-size: 7px; }
  .stat-card b { font-size: 23px; }
  .stat-card p { display: none; }
  .connection-card { min-height: 255px; padding: 19px 15px; }
  .connection-title { flex-direction: column; }
  .connection-main { padding-left: 12px; }
  .home-map-card { height: 520px; border-radius: 18px; }
  .map-center-controls { top: auto; right: 10px; bottom: 48px; }
  .map-floating-card { width: calc(100% - 24px); }
  .cta-band { padding: 25px 20px; border-radius: 18px; }
  .cta-band h2 { font-size: 23px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .page-hero { width: calc(100% - 24px); padding: 39px 2% 28px; }
  .page-hero h1 { font-size: 34px; }
  .page-hero p { font-size: 11px; }
  .page-hero .button { width: 100%; }
  .map-workspace { width: 100%; border-radius: 0; }
  .map-main-panel { min-height: 430px; }
  .map-quick-actions { top: 10px; right: 10px; left: 10px; justify-content: center; }
  .map-demo-label { bottom: 9px; max-width: 85%; overflow: hidden; text-overflow: ellipsis; }
  .listing-results { padding-top: 20px; }
  .report-card { min-height: 270px; padding: 17px; }
  .transport-hero h1 { font-size: 39px; }
  .transport-filters { display: grid; grid-template-columns: 1fr; }
  .transport-filters label { min-height: 36px; }
  .transport-metrics { gap: 8px; }
  .transport-metrics .stat-card { min-height: 95px; }
  .transport-map-wrap { min-height: 390px; }
  .route-key { display: none; }
  .help-summary { width: calc(100% - 24px); }
  .help-card { min-height: 260px; }
  .feed-toolbar > div { grid-template-columns: 1fr; }
  .feed-toolbar select { min-height: 38px; }
  .admin-metrics { gap: 8px; }
  .admin-metrics .stat-card { min-height: 95px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-stack .span-2 { grid-column: auto; }
  .entity-stats { grid-template-columns: 1fr 1fr; }
  .detail-media { height: 150px; }
  .detail-title h2 { font-size: 21px; }
  .comment-form { grid-template-columns: 1fr auto; }
  .comment-form .avatar { display: none; }
  .wizard-body { min-height: 470px; }
  .wizard-foot .button { padding-inline: 13px; }
  .image-upload-row { align-items: flex-start; flex-direction: column; }
  .health-grid { grid-template-columns: 1fr; }
  .toast-root { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
}

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