:root {
  --color-primary: #146c94;
  --color-primary-dark: #0b3d56;
  --color-accent: #e0a32f;
  --color-text: #101828;
  --color-muted: #526070;
  --color-surface: #ffffff;
  --color-background: #f4f7f8;
  --color-border: #d8e2e8;
  --color-dark: #07161f;
  --shadow-soft: 0 16px 36px rgba(16, 24, 40, 0.1);
  --shadow-strong: 0 24px 60px rgba(16, 24, 40, 0.22);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.55;
}

/* Bloqueio de rolagem manual */
body.body-lock {
  overflow: hidden !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 248, 0.94);
  border-bottom: 1px solid rgba(216, 226, 232, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-md);
  background: var(--color-primary-dark);
  color: #fff;
}

.nav-toggle {
  display: grid;
  gap: 0.25rem;
  width: 2.7rem;
  height: 2.7rem;
  place-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  background: var(--color-text);
}

.mobile-header-action {
  display: inline-flex;
  margin-left: auto;
}

.mobile-header-action .button {
  min-height: 2.55rem;
  padding: 0.58rem 0.85rem;
}

.header-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 1rem;
  right: 1rem;
  display: none;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.header-nav.is-open {
  display: block;
}

.header-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-weight: 700;
}

.header-nav button {
  display: block;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.header-nav a:hover,
.header-nav a.is-active,
.header-nav button:hover {
  background: #eaf3f7;
  color: var(--color-primary-dark);
}

.mobile-nav-action {
  display: block;
}

.header-actions {
  display: none;
}

.header-actions form,
.mobile-user-actions form,
.hero-actions form {
  margin: 0;
}

.mobile-user-bar {
  border-top: 1px solid rgba(216, 226, 232, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-user-inner {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.mobile-user-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 320px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  line-height: 1.15;
}

.user-avatar,
.user-avatar-placeholder {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.user-avatar-placeholder {
  display: grid;
  place-items: center;
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.user-chip-info {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.user-chip strong {
  color: var(--color-text);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip span {
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-wrap {
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(20, 108, 148, 0.24);
}

.button-secondary {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.notification-link {
  position: relative;
  gap: 0.45rem;
}

.notification-link.has-unread {
  border-color: var(--color-accent);
}

.notification-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.16);
}

.button-danger {
  background: #b42318;
  color: #fff;
  box-shadow: 0 12px 24px rgba(180, 35, 24, 0.18);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.button-ghost-primary {
  background: rgba(20, 108, 148, 0.05);
  color: var(--color-primary-dark);
  border-color: transparent;
}

.hero {
  min-height: 78vh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 22, 31, 0.9), rgba(7, 22, 31, 0.55)),
    url("/img/hero-moto.jpg") center/cover no-repeat;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: end;
  min-height: 78vh;
  padding: 5rem 0 4rem;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.12rem;
}

.hero p,
.public-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.mini-metric {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.mini-metric strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}

.mini-metric span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.admin-monitoring-metrics .mini-metric {
  border-color: var(--color-border);
  background: #fff;
  backdrop-filter: none;
}

.admin-monitoring-metrics .mini-metric span {
  color: var(--color-muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p,
.muted {
  color: var(--color-muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

.rental-request-layout {
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.rental-date-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rental-plan-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.rental-plan-options legend {
  margin-bottom: 0.4rem;
  font-weight: 900;
}

.rental-plan-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
}

.rental-plan-card.is-selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(58, 151, 213, 0.14);
}

.rental-plan-card span {
  display: grid;
  gap: 0.2rem;
}

.rental-plan-card small {
  color: var(--color-muted);
  font-weight: 700;
}

.rental-plan-card b {
  color: var(--color-primary-dark);
}

.rental-estimate {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(58, 151, 213, 0.26);
  border-radius: var(--radius-md);
  background: #f7fbfe;
}

.rental-estimate p {
  margin: 0.35rem 0;
}

.cards-grid,
.security-grid,
.catalog-grid {
  grid-template-columns: 1fr;
}

.card,
.feature-card,
.panel,
.cta-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.card,
.feature-card,
.panel {
  padding: 1.35rem;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: #eaf3f7;
  color: var(--color-primary);
  font-weight: 900;
}

.split-section {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.media-frame {
  overflow: hidden;
  min-height: 320px;
  border-radius: var(--radius-lg);
  background: #d8e2e8;
  box-shadow: var(--shadow-strong);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-list,
.list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-list {
  margin-top: 1.4rem;
}

.content-list li,
.list li {
  padding: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  color: var(--color-muted);
}

.security-band {
  background: #eaf3f7;
}

.cta-panel {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--color-dark);
  color: #fff;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.public-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 22, 31, 0.88), rgba(20, 108, 148, 0.62)),
    url("/img/rastreamento.jpg") center/cover no-repeat;
}

.public-hero-inner {
  display: grid;
  align-items: end;
  min-height: 48vh;
  padding: 4.5rem 0;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}

.catalog-toolbar > div {
  min-width: 0;
}

.catalog-toolbar h1 {
  margin-bottom: 0.4rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.catalog-toolbar .button {
  width: 100%;
}

.catalog-toolbar span {
  display: block;
}

.notice {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  font-weight: 700;
}

.notice-success {
  border-color: #9bd3ad;
  background: #effaf2;
  color: #116329;
}

.notice-error {
  border-color: #f3b3ad;
  background: #fff1f0;
  color: #912018;
}

.interest-box {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.interest-box form {
  margin: 0;
}

.interest-box .button {
  width: 100%;
}

.card-admin-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.moto-photo-slot,
.moto-photo-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #eaf3f7;
  color: var(--color-muted);
  font-weight: 800;
  text-align: center;
}

.moto-photo-slot img,
.moto-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moto-crop-editor {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfdff;
}

.moto-crop-editor.is-hidden {
  display: none;
}

.moto-crop-canvas {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #d8e2e8;
}

/* Ajustes para foto de perfil circular */
[data-user-photo-modal] .moto-crop-canvas {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

[data-user-photo-modal] .moto-photo-preview {
  margin: 0 auto;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.moto-crop-controls {
  display: grid;
  gap: 0.8rem;
}

.moto-crop-controls label {
  display: grid;
  gap: 0.35rem;
  color: var(--color-muted);
  font-weight: 800;
}

.moto-crop-controls input[type="range"] {
  width: 100%;
  padding: 0;
}

/* Classes utilitárias de visibilidade */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.is-hidden {
  display: none !important;
}

.badge {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-sm);
  background: #e9f8ef;
  color: #16733a;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge-pending {
  background: #fff4e5;
  color: #93370d;
}

.badge-ready {
  background: #e9f8ef;
  color: #16733a;
}

.badge-gold {
  background: #fff4e5;
  color: #93370d;
}

.badge-silver {
  background: #f0f4f8;
  color: #475467;
}

.badge-bronze {
  background: #f2f4f7;
  color: #344054;
}

.document-status-panel {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.document-status-panel > .badge:not(.doc-status-fixed) {
  display: none;
}

.document-status-panel > .doc-status-fixed {
  width: fit-content;
}

.document-status-panel > .notice:not(.doc-lock-fixed),
.document-status-panel > p.muted:not(.doc-meta-fixed) {
  display: none;
}

.document-checklist {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-weight: 800;
}

.document-checklist .is-complete {
  color: #16733a;
}

dl {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

dt {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 800;
}

.accent-panel {
  border-color: rgba(224, 163, 47, 0.55);
  background: #fffaf0;
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--color-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 22, 31, 0.68);
}

.auth-modal {
  position: relative;
  display: grid;
  width: min(100%, 920px);
  max-height: min(92vh, 760px);
  overflow: auto;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(7, 22, 31, 0.72);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.auth-visual {
  padding: 2rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7, 22, 31, 0.92), rgba(20, 108, 148, 0.82)),
    url("/img/hero-moto.jpg") center/cover no-repeat;
}

.auth-visual h2 {
  margin-bottom: 0.7rem;
}

.auth-visual p {
  color: rgba(255, 255, 255, 0.82);
}

.auth-switch {
  display: inline-flex;
  gap: 0.3rem;
  margin-top: 1.2rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
}

.auth-switch a {
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.auth-switch a.is-active {
  background: #fff;
  color: var(--color-primary-dark);
}

.auth-form {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
}

fieldset {
  display: grid;
  gap: 1.2rem;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fbfdff;
}

legend {
  padding: 0 0.75rem;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grid-2 {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

.field, label {
  display: grid;
  gap: 0.4rem;
  font-weight: 800;
}

.form-control-static {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #f4f7f8;
  color: var(--color-muted);
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field input,
.field select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
}

.form-link {
  color: var(--color-primary);
  font-weight: 800;
}

.form-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.form-message {
  min-height: 1.5rem;
  margin: 0;
  color: var(--color-muted);
  font-weight: 700;
}

.form-message.is-empty {
  min-height: 0;
}

.form-message.is-error {
  color: #b42318;
}

.telemetry-page {
  display: grid;
  gap: 1.2rem;
  width: 100%;
}

.telemetry-page > * {
  min-width: 0;
}

.telemetry-layout {
  display: grid;
  gap: 1rem;
}

.telemetry-dl {
  grid-template-columns: 1fr;
}

.telemetry-dl > div {
  min-width: 0;
}

.telemetry-map-panel {
  display: grid;
  gap: 0.8rem;
}

.fleet-map-panel {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.fleet-map-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.fleet-map-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.fleet-map-header p {
  margin: 0.2rem 0 0;
}

.fleet-map-note {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #f8fafc;
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.telemetry-map,
.telemetry-map-empty {
  overflow: hidden;
  width: 100%;
  height: 320px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #eaf3f7;
}

.fleet-map,
.fleet-map-empty {
  height: clamp(300px, 42vh, 520px);
}

.telemetry-map-empty {
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

.telemetry-map.is-hidden,
.telemetry-map-empty.is-hidden {
  display: none;
}

.telemetry-map .leaflet-popup-content {
  margin: 0.8rem 1rem;
  color: var(--color-text);
  line-height: 1.45;
}

.moto-location-icon {
  background: transparent;
  border: 0;
}

.moto-location-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--moto-marker-color, #3A97D5);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.28);
}

.moto-location-glyph {
  width: 24px;
  height: 24px;
  background: #ffffff;
  mask: url("/icons/motorcycle-of-big-size-black-silhouette.png") center / contain no-repeat;
  -webkit-mask: url("/icons/motorcycle-of-big-size-black-silhouette.png") center / contain no-repeat;
}

.observer-location-status {
  min-height: 1.25rem;
  margin: -0.35rem 0 0;
  font-size: 0.86rem;
}

.observer-location-status.is-hidden {
  display: none;
}

.observer-location-icon {
  background: transparent;
  border: 0;
}

.observer-location-marker {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.observer-location-marker::before {
  position: absolute;
  inset: 0;
  content: "";
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.observer-location-marker::after {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.35);
}

.fleet-map-popup {
  display: grid;
  gap: 0.3rem;
  min-width: 190px;
}

.fleet-map-popup-action {
  width: fit-content;
  min-height: 2.25rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
}

.fleet-gold-offer {
  display: grid;
  gap: 0.45rem;
  min-width: 190px;
}

.fleet-gold-offer > span:first-child {
  display: grid;
  gap: 0.15rem;
}

.fleet-gold-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fleet-gold-actions .button {
  min-height: 2.25rem;
  padding: 0.5rem 0.7rem;
}

.gold-request-form {
  display: grid;
  gap: 0.65rem;
}

.gold-request-option {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 800;
}

.gold-request-option input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.telemetry-table-wrap {
  overflow-x: auto;
}

.telemetry-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.telemetry-table th,
.telemetry-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.telemetry-table th {
  color: var(--color-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.tracker-simulator h2 {
  margin-top: 0;
}

.simulator-panel {
  display: grid;
  gap: 1rem;
}

.simulator-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-muted);
  font-weight: 800;
}

.simulator-status.is-sending {
  border-color: rgba(22, 163, 74, 0.35);
  background: #ecfdf3;
  color: #067647;
}

.simulator-status.is-stopped {
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff4f2;
  color: #b42318;
}

.simulator-form-grid {
  display: grid;
  gap: 0.9rem;
}

.simulator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.simulator-check {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-weight: 800;
}

.simulator-check input {
  width: 1.1rem;
  height: 1.1rem;
}

.simulator-readout dd {
  overflow-wrap: anywhere;
}

.simulator-log {
  display: grid;
  gap: 0.5rem;
  min-height: 3rem;
  margin: 0;
  padding-left: 1.3rem;
}

.simulator-log li {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.simulator-log li.is-ok {
  border-color: rgba(22, 163, 74, 0.25);
}

.simulator-log li.is-error {
  border-color: rgba(180, 35, 24, 0.25);
  color: #b42318;
}

.monitoring-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.monitoring-freshness {
  margin: 0;
  font-weight: 800;
}

.locmoto-section {
  padding-top: 2rem;
}

.locmoto-page {
  max-width: 760px;
}

.locmoto-page h1 {
  font-size: clamp(2rem, 8vw, 3.25rem);
}

.locmoto-switches {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.locmoto-response-body {
  min-height: 9rem;
  max-height: 18rem;
  overflow: auto;
  margin: 0;
  padding: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #07161f;
  color: #f4f7f8;
  font-size: 0.86rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-trackers-page select {
  width: 100%;
  min-width: 11rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
}

.admin-secret-panel {
  border-color: rgba(22, 163, 74, 0.28);
  background: #f6fef9;
}

.admin-secret-panel.is-error {
  border-color: rgba(180, 35, 24, 0.28);
  background: #fff4f2;
}

.admin-secret-panel h2,
.admin-secret-panel p {
  margin: 0;
}

.admin-tracker-form {
  align-items: end;
}

.admin-tracker-submit {
  align-self: end;
}

.admin-trackers-table {
  min-width: 980px;
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-table-actions .button {
  min-height: 2.6rem;
  padding: 0.65rem 0.85rem;
}

.admin-table-check {
  min-width: 7rem;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.notifications-list {
  display: grid;
  gap: 0.9rem;
}

.notification-item {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.notification-item.is-unread {
  border-left: 5px solid var(--color-primary);
}

.notification-item h2 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.1rem;
}

.notification-status {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: #eaf3f7;
  color: var(--color-primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.notification-actions form {
  margin: 0;
}

.owner-motos-strip {
  margin-bottom: 2.5rem;
  text-align: center;
}

.owner-motos-strip h2 {
  margin-bottom: 0.35rem;
}

.owner-motos-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
  width: min(100%, 980px);
  margin: 1.4rem auto 0;
}

.owner-moto-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.35rem;
  width: clamp(120px, 18vw, 158px);
  min-height: 190px;
  padding: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.owner-moto-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 108px;
  height: 82px;
  border: 3px solid #fff;
  border-radius: var(--radius-md);
  background: #eaf3f7;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.owner-moto-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-moto-plate {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 900;
}

.owner-moto-name {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.4em;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.owner-moto-status {
  margin-top: 0.25rem;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-sm);
  background: #eaf3f7;
  color: var(--color-primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.owner-moto-status-disponivel {
  background: #e9f8ef;
  color: #16733a;
}

.owner-moto-status-alugada,
.owner-moto-status-indisponivel {
  background: #fff4e5;
  color: #93370d;
}

.owner-moto-status-manutencao,
.owner-moto-status-em_analise {
  background: #fff1f0;
  color: #912018;
}

.empty-state {
  padding: 1.35rem;
}

.notice-page {
  min-height: 58vh;
  display: grid;
  align-items: center;
}

.notice-page-inner {
  max-width: 760px;
}

.notice-panel {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.notice-panel h1 {
  margin-top: 0;
}

.notice-panel p {
  max-width: 58ch;
}

.how-hero {
  padding: 3rem 0 2rem;
  background: #f7fbfe;
}

.how-hero-inner,
.how-split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.how-hero-copy h1 {
  color: #0f2633;
}

.how-hero-copy p,
.how-highlight p,
.how-card p,
.how-step p,
.how-final p {
  color: var(--color-muted);
}

.how-hero-media,
.how-image-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #d8e2e8;
  box-shadow: var(--shadow-strong);
}

.how-hero-media img,
.how-image-panel img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.how-highlight {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: #3a97d5;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.how-highlight .eyebrow,
.how-highlight p {
  color: rgba(255, 255, 255, 0.88);
}

.how-highlight h2 {
  margin-bottom: 0.4rem;
}

.how-card-grid {
  grid-template-columns: 1fr;
}

.how-card {
  padding: 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.how-card span,
.how-step span {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.8rem;
  border-radius: var(--radius-md);
  background: #e7f4fd;
  color: #3a97d5;
  font-weight: 900;
}

.how-blue-band {
  background: #e7f4fd;
}

.how-steps {
  display: grid;
  gap: 0.8rem;
}

.how-step {
  padding: 1rem;
  border: 1px solid rgba(58, 151, 213, 0.24);
  border-radius: var(--radius-lg);
  background: #fff;
}

.how-step p {
  margin: 0;
  font-weight: 800;
}

.how-security {
  background: #f7fbfe;
}

.how-final {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #0f2633;
  color: #fff;
}

.how-final .eyebrow {
  color: #8ed0fb;
}

@media (min-width: 720px) {
  .container {
    width: min(100% - 3rem, var(--container));
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cards-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  }

  .catalog-toolbar,
  .cta-panel,
  .footer-inner {
    flex-direction: row;
  }

  .catalog-toolbar {
    align-items: center;
  }

  .catalog-toolbar .button {
    width: auto;
  }

  .cta-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .auth-modal {
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  }

  .auth-visual,
  .auth-form {
    padding: 2.4rem;
  }

  .how-hero-inner,
  .how-split {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  }

  .how-highlight {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .how-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .how-card-grid.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-steps.horizontal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .telemetry-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  }

  .telemetry-dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simulator-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rental-date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rental-plan-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rental-request-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    gap: 2rem;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-header-action {
    display: none;
  }

  .header-nav {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .header-nav ul {
    flex-direction: row;
    align-items: center;
  }

  .mobile-nav-action {
    display: none;
  }

  .header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
  }

  .mobile-user-bar {
    display: none;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .how-hero {
    padding: 4.5rem 0 2.5rem;
  }

  .how-steps.horizontal {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
