/**
 * Fiscaliza Cidade — Modern App-Like Theme Styles (v2.0.0-design)
 * Design Tokens: Light mode, civic-tech, mobile-first with desktop web app layout.
 */

:root {
  --fe-primary: #0B2B3C;
  --fe-secondary: #0D9488;
  --fe-accent: #14B8A6;
  --fe-bg: #F6F8FA;
  --fe-surface: #FFFFFF;
  --fe-surface-alt: #EDF4F5;
  --fe-text-primary: #102A3A;
  --fe-text-secondary: #64748B;
  --fe-border: #E2E8F0;
  --fe-success: #16A34A;
  --fe-warning: #F59E0B;
  --fe-danger: #DC2626;

  --fe-radius-card: 16px;
  --fe-radius-btn: 12px;
  --fe-radius-input: 12px;

  --fe-shadow-sm: 0 1px 3px rgba(16, 42, 58, 0.04), 0 1px 2px rgba(16, 42, 58, 0.02);
  --fe-shadow-md: 0 4px 12px rgba(16, 42, 58, 0.06), 0 2px 4px rgba(16, 42, 58, 0.02);
  --fe-shadow-lg: 0 12px 28px rgba(16, 42, 58, 0.09), 0 4px 8px rgba(16, 42, 58, 0.03);

  --fe-font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fe-font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body.fe-app-site {
  margin: 0;
  padding: 0;
  background-color: var(--fe-bg);
  color: var(--fe-text-primary);
  font-family: var(--fe-font-main);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.fe-app-site a {
  color: inherit;
  text-decoration: none;
}

body.fe-app-site button,
body.fe-app-site input,
body.fe-app-site select,
body.fe-app-site textarea {
  font-family: inherit;
}

body.fe-app-site :focus-visible {
  outline: 2px solid var(--fe-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fe-font-display);
  font-weight: 700;
  color: var(--fe-primary);
  margin-top: 0;
}

.fe-app-container {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.fec-skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--fe-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--fe-radius-btn);
  z-index: 99999;
}
.fec-skip:focus {
  top: 16px;
}

.fec-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */
.fe-app-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fe-border);
  z-index: 500;
  transition: box-shadow 0.2s ease;
}

.fe-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.fe-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fe-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fe-secondary), var(--fe-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.fe-brand-icon .fec-icon {
  width: 20px;
  height: 20px;
}

.fe-brand-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.fe-brand-title {
  font-family: var(--fe-font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fe-primary);
}

.fe-brand-title strong {
  color: var(--fe-accent);
}

.fe-brand-city {
  font-size: 11px;
  font-weight: 600;
  color: var(--fe-text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fe-header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fe-header-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.fe-header-menu a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--fe-radius-btn);
  font-size: 14px;
  font-weight: 600;
  color: var(--fe-text-secondary);
  transition: all 0.18s ease;
}

.fe-header-menu a:hover {
  color: var(--fe-primary);
  background: var(--fe-surface-alt);
}

.fe-header-menu a.fe-nav-active {
  color: var(--fe-secondary);
  background: var(--fe-surface-alt);
}

.fe-btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fe-secondary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--fe-radius-btn);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.2);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.fe-btn-header-cta:hover {
  background: var(--fe-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   APP BUTTONS & BADGES
   ========================================================================== */
.fe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--fe-radius-btn);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.fe-btn:active {
  transform: scale(0.98);
}

.fe-btn-primary {
  background: var(--fe-secondary);
  color: #fff !important;
}

.fe-btn-primary:hover {
  background: var(--fe-primary);
  box-shadow: var(--fe-shadow-sm);
}

.fe-btn-outline {
  background: #fff;
  border-color: var(--fe-border);
  color: var(--fe-text-primary) !important;
}

.fe-btn-outline:hover {
  border-color: var(--fe-secondary);
  color: var(--fe-secondary) !important;
  background: var(--fe-surface-alt);
}

.fe-app-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fe-app-badge-recebida           { background: #FEF3C7; color: #92400E; }
.fe-app-badge-publicada          { background: #D1FAE5; color: #065F46; }
.fe-app-badge-encaminhada        { background: #DBEAFE; color: #1E40AF; }
.fe-app-badge-resposta_recebida  { background: #EDE9FE; color: #5B21B6; }
.fe-app-badge-solucao_informada  { background: #CCFBF1; color: #115E59; }
.fe-app-badge-solucao_verificada { background: #A7F3D0; color: #064E3B; font-weight: 800; }
.fe-app-badge-rejeitada          { background: #FEE2E2; color: #991B1B; }

/* ==========================================================================
   HOMEPAGE DASHBOARD
   ========================================================================== */
.fe-app-main {
  flex-grow: 1;
}

.fe-dashboard-view {
  padding: 24px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 1. Welcome Card */
.fe-welcome-card {
  background: linear-gradient(135deg, var(--fe-primary) 0%, #164057 100%);
  color: #fff;
  border-radius: var(--fe-radius-card);
  padding: 36px 32px;
  box-shadow: var(--fe-shadow-md);
  position: relative;
  overflow: hidden;
}

.fe-welcome-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.fe-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.fe-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fe-accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.3);
}

.fe-welcome-content h1 {
  color: #fff;
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 10px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.fe-welcome-content p {
  color: #CBD5E1;
  font-size: 16px;
  max-width: 620px;
  margin: 0 0 24px 0;
  line-height: 1.55;
}

.fe-welcome-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fe-welcome-actions .fe-btn-primary {
  background: var(--fe-accent);
  color: var(--fe-primary) !important;
  font-weight: 800;
}
.fe-welcome-actions .fe-btn-primary:hover {
  background: #fff;
}

.fe-welcome-actions .fe-btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
}
.fe-welcome-actions .fe-btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Section block common header */
.fe-section-header {
  margin-bottom: 18px;
}

.fe-section-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.fe-section-header p {
  margin: 0;
  font-size: 13px;
  color: var(--fe-text-secondary);
}

.fe-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.fe-link-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fe-secondary);
  transition: color 0.15s ease;
}
.fe-link-all:hover {
  color: var(--fe-primary);
}

/* 2. Quick Categories Grid */
.fe-category-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.fe-category-tile {
  background: var(--fe-surface);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-card);
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--fe-shadow-sm);
  transition: all 0.18s ease;
}

.fe-category-tile:hover {
  transform: translateY(-2px);
  border-color: var(--fe-secondary);
  box-shadow: var(--fe-shadow-md);
}

.fe-category-tile:active {
  transform: scale(0.97);
}

.fe-category-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.fe-category-tile-icon .fec-icon {
  width: 22px;
  height: 22px;
}

.fe-category-tile-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--fe-text-primary);
  line-height: 1.25;
}

/* 3. City Overview Metrics */
.fe-metrics-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.fe-metric-app-card {
  background: var(--fe-surface);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--fe-shadow-sm);
}

.fe-metric-number {
  font-family: var(--fe-font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--fe-primary);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.fe-metric-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fe-text-secondary);
}

.fe-metric-highlight {
  border-left: 4px solid var(--fe-secondary);
  background: linear-gradient(to right, var(--fe-surface-alt), #fff);
}

/* 4. Recent Reports Cards */
.fe-reports-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.fe-report-app-card {
  background: var(--fe-surface);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-card);
  overflow: hidden;
  box-shadow: var(--fe-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fe-report-app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--fe-shadow-md);
}

.fe-card-thumb {
  position: relative;
  height: 170px;
  background: #E2E8F0;
  overflow: hidden;
}

.fe-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fe-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
}

.fe-card-thumb .fe-app-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.fe-card-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fe-card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--fe-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fe-card-title {
  font-size: 16px;
  margin: 0 0 6px 0;
  color: var(--fe-primary);
  line-height: 1.3;
}

.fe-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fe-text-secondary);
  margin: 0 0 14px 0;
}
.fe-card-location .fec-icon {
  width: 15px;
  height: 15px;
  color: var(--fe-secondary);
}

.fe-card-meta-bar {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--fe-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.fe-card-date {
  color: var(--fe-text-secondary);
}

.fe-card-action-link {
  font-weight: 700;
  color: var(--fe-secondary);
}

/* Empty State */
.fe-app-empty-state {
  background: var(--fe-surface);
  border: 1px dashed var(--fe-border);
  border-radius: var(--fe-radius-card);
  padding: 40px 20px;
  text-align: center;
}

.fe-empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px auto;
  color: #94A3B8;
}

.fe-empty-state-icon .fec-icon {
  width: 44px;
  height: 44px;
}

.fe-app-empty-state h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.fe-app-empty-state p {
  font-size: 14px;
  color: var(--fe-text-secondary);
  max-width: 440px;
  margin: 0 auto;
}

/* 5. Map Preview */
.fe-home-map-container {
  background: var(--fe-surface);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-card);
  overflow: hidden;
  box-shadow: var(--fe-shadow-sm);
}

/* FAQ items */
.fe-app-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fe-faq-item {
  background: var(--fe-surface);
  border: 1px solid var(--fe-border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--fe-shadow-sm);
}

.fe-faq-question {
  font-weight: 700;
  font-size: 15px;
  color: var(--fe-primary);
  cursor: pointer;
  list-style: none;
}
.fe-faq-question::-webkit-details-marker {
  display: none;
}

.fe-faq-answer {
  margin: 12px 0 0 0;
  font-size: 14px;
  color: var(--fe-text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   MULTI-STEP REPORT WIZARD
   ========================================================================== */
.fe-app-form-wizard {
  max-width: 720px;
  margin: 24px auto 60px auto;
  padding: 0 16px;
}

.fe-wizard-header {
  text-align: center;
  margin-bottom: 24px;
}

.fe-wizard-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fe-secondary);
  background: var(--fe-surface-alt);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.fe-wizard-header h2 {
  font-size: 26px;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
}

.fe-wizard-header p {
  color: var(--fe-text-secondary);
  margin: 0;
  font-size: 14px;
}

/* Progress bar */
.fe-wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 10px;
}

.fe-wizard-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.fe-node-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fe-surface);
  border: 2px solid var(--fe-border);
  color: var(--fe-text-secondary);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.fe-node-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--fe-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fe-wizard-step-node.fe-step-active .fe-node-circle {
  background: var(--fe-secondary);
  border-color: var(--fe-secondary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18);
}

.fe-wizard-step-node.fe-step-active .fe-node-text {
  color: var(--fe-secondary);
}

.fe-wizard-step-node.fe-step-completed .fe-node-circle {
  background: var(--fe-primary);
  border-color: var(--fe-primary);
  color: #fff;
}

.fe-wizard-step-line {
  flex-grow: 1;
  height: 2px;
  background: var(--fe-border);
  margin: 0 8px;
  margin-bottom: 18px;
  transition: background 0.2s ease;
}

.fe-wizard-step-line.fe-line-active {
  background: var(--fe-primary);
}

/* Step Panes */
.fe-wizard-form {
  background: var(--fe-surface);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-card);
  padding: 32px 28px;
  box-shadow: var(--fe-shadow-md);
}

.fe-step-intro {
  margin-bottom: 22px;
}

.fe-step-intro h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.fe-step-intro p {
  color: var(--fe-text-secondary);
  font-size: 13px;
  margin: 0;
}

/* Step 1: Photo Picker */
.fe-photo-picker-box {
  position: relative;
  border: 2px dashed var(--fe-border);
  border-radius: var(--fe-radius-card);
  background: var(--fe-bg);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.fe-photo-picker-box:hover {
  border-color: var(--fe-secondary);
  background: var(--fe-surface-alt);
}

.fe-photo-picker-box input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.fe-picker-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px;
}

.fe-camera-icon {
  font-size: 38px;
  margin-bottom: 6px;
}

.fe-picker-placeholder strong {
  font-size: 15px;
  color: var(--fe-primary);
}

.fe-picker-placeholder small {
  font-size: 12px;
  color: var(--fe-text-secondary);
  max-width: 320px;
}

.fe-picker-preview {
  position: relative;
  width: 100%;
}

.fe-picker-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #0F172A;
  display: block;
}

.fe-preview-overlay {
  padding: 12px;
  background: rgba(15, 23, 42, 0.75);
}

.fe-btn-replace {
  background: #fff;
  border: 1px solid var(--fe-border);
  padding: 6px 14px;
  border-radius: var(--fe-radius-btn);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Step 2: Form Grid */
.fe-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .fe-form-grid {
    grid-template-columns: 1fr;
  }
}

.fe-field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}

.fe-field-label strong {
  color: var(--fe-primary);
}

.fe-field-label em {
  color: var(--fe-danger);
  font-style: normal;
}

.fe-field-label span {
  color: var(--fe-text-secondary);
  font-weight: normal;
}

.fe-field-label input,
.fe-field-label select,
.fe-field-label textarea {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-input);
  background: #FAFCFD;
  font-size: 14px;
  transition: all 0.15s ease;
}

.fe-field-label input:focus,
.fe-field-label select:focus,
.fe-field-label textarea:focus {
  border-color: var(--fe-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

/* GPS Interaction */
.fe-gps-interaction-card {
  background: var(--fe-surface-alt);
  border: 1px solid var(--fe-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.fe-gps-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fe-btn-gps {
  background: #fff;
  font-size: 13px;
  min-height: 40px;
}

.fe-gps-status {
  font-size: 12px;
  color: var(--fe-text-secondary);
}

.fe-wizard-mini-map {
  height: 200px;
  width: 100%;
  border-radius: 8px;
  margin-top: 12px;
  border: 1px solid var(--fe-border);
}

/* Step 3: Category Radio Cards */
.fe-category-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.fe-category-radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FAFCFD;
  border: 1px solid var(--fe-border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fe-category-radio-card:hover {
  border-color: var(--fe-secondary);
  background: #fff;
}

.fe-category-radio-card input {
  accent-color: var(--fe-secondary);
}

.fe-category-radio-card.fe-cat-checked {
  border-color: var(--fe-secondary);
  background: #F0FDF4;
  box-shadow: 0 0 0 1px var(--fe-secondary);
}

.fe-cat-label-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--fe-primary);
}

/* Step 4: Review */
.fe-review-card {
  background: var(--fe-bg);
  border: 1px solid var(--fe-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}

.fe-review-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.fe-review-photo-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #CBD5E1;
  flex-shrink: 0;
}

.fe-review-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fe-review-main-info {
  flex-grow: 1;
}

.fe-review-category-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--fe-secondary);
}

.fe-review-main-info h4 {
  font-size: 16px;
  margin: 2px 0;
}

.fe-review-main-info p {
  font-size: 12px;
  color: var(--fe-text-secondary);
  margin: 0;
}

.fe-btn-edit-step {
  background: #fff;
  border: 1px solid var(--fe-border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fe-text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.fe-review-desc-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--fe-border);
  font-size: 13px;
}

.fe-review-desc-box p {
  margin: 4px 0 0 0;
  color: var(--fe-text-secondary);
}

.fe-review-gps-badge {
  margin-top: 10px;
  font-size: 12px;
  color: var(--fe-secondary);
  font-weight: 600;
}

.fe-app-checkbox-label {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fe-text-secondary);
  margin-bottom: 24px;
  cursor: pointer;
}

.fe-app-checkbox-label input {
  margin-top: 3px;
  accent-color: var(--fe-secondary);
}

.fe-hp {
  display: none !important;
}

/* Wizard Navigation buttons */
.fe-wizard-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

/* Success Card */
.fe-wizard-success-card {
  text-align: center;
  padding: 30px 20px;
  animation: feFadeIn 0.3s ease;
}

.fe-success-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--fe-success);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.fe-wizard-success-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.fe-wizard-success-card p {
  color: var(--fe-text-secondary);
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 24px auto;
}

.fe-success-protocol-box {
  background: var(--fe-surface-alt);
  border: 1px solid var(--fe-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
}

.fe-protocol-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--fe-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.fe-protocol-item strong {
  font-size: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.5px;
  color: var(--fe-primary);
}

.fe-copy-token-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--fe-border);
  border-radius: 10px;
  padding: 4px 5px 4px 12px;
  gap: 8px;
  margin-top: 5px;
  box-sizing: border-box;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.fe-copy-token-group code {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--fe-secondary);
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe-btn-copy {
  flex-shrink: 0;
  background: var(--fe-surface-alt);
  color: var(--fe-text-primary);
  border: 1px solid var(--fe-border);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.fe-btn-copy:hover {
  background: var(--fe-secondary);
  color: #ffffff;
  border-color: var(--fe-secondary);
}

.fe-btn-copy.fe-btn-copied {
  background: var(--fe-success) !important;
  color: #ffffff !important;
  border-color: var(--fe-success) !important;
}

.fe-success-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.fe-success-actions-row .fe-btn {
  width: 100%;
  min-height: 48px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--fe-radius-btn);
  box-sizing: border-box;
}

/* ==========================================================================
   INTERACTIVE MAP EXPERIENCE & SHEET
   ========================================================================== */
.fe-app-map-view {
  max-width: 1280px;
  margin: 20px auto 40px auto;
  padding: 0 16px;
  position: relative;
}

.fe-map-app-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  background: var(--fe-surface);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-card);
  padding: 14px 18px;
  box-shadow: var(--fe-shadow-sm);
}

.fe-map-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fe-map-filter-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--fe-text-secondary);
  text-transform: uppercase;
}

.fe-map-filter-group select {
  min-height: 40px;
  border: 1px solid var(--fe-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  background: #FAFCFD;
}

.fe-map-wrapper-card {
  position: relative;
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-card);
  overflow: hidden;
  box-shadow: var(--fe-shadow-sm);
  background: #fff;
}

.fe-app-leaflet-map {
  height: 520px;
  width: 100%;
}

.fe-map-status-pill {
  position: absolute;
  top: 12px;
  left: 60px;
  z-index: 400;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--fe-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--fe-text-primary);
  box-shadow: var(--fe-shadow-sm);
}

/* Bottom Sheet for Mobile & Side Panel for Desktop */
.fe-map-preview-sheet {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 330px;
  max-width: calc(100% - 40px);
  background: #ffffff;
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-card);
  padding: 16px;
  box-shadow: 0 10px 25px -5px rgba(11, 43, 60, 0.25), 0 8px 10px -6px rgba(11, 43, 60, 0.15);
  z-index: 1000;
  animation: feSlideUp 0.22s ease-out;
}

@media (max-width: 768px) {
  .fe-map-preview-sheet {
    position: fixed;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    border-radius: 16px;
    z-index: 1200;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }
}

.fe-sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(241, 245, 249, 0.9);
  border-radius: 50%;
  font-size: 18px;
  line-height: 26px;
  text-align: center;
  color: var(--fe-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 2;
}

.fe-sheet-close:hover {
  background: var(--fe-border);
  color: var(--fe-text-primary);
}

.fe-sheet-photo {
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--fe-surface-alt);
}

.fe-sheet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fe-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-right: 28px;
}

.fe-sheet-protocol {
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
  color: var(--fe-text-secondary);
}

.fe-sheet-title {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--fe-text-primary);
  line-height: 1.3;
}

.fe-sheet-location {
  margin: 0 0 14px 0;
  font-size: 12px;
  color: var(--fe-text-secondary);
  line-height: 1.4;
}

.fe-sheet-btn {
  width: 100%;
  min-height: 38px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.fe-map-list-section {
  margin-top: 32px;
}

/* ==========================================================================
   OCCURRENCE DETAILS SCREEN
   ========================================================================== */
.fe-occurrence-detail-view {
  padding: 24px 0 60px;
}

.fe-detail-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.fe-btn-back {
  font-size: 14px;
  font-weight: 700;
  color: var(--fe-secondary);
}

.fe-detail-protocol {
  font-size: 13px;
  font-weight: 700;
  color: var(--fe-text-secondary);
}

.fe-detail-card-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 820px) {
  .fe-detail-card-layout {
    grid-template-columns: 1fr;
  }
}

.fe-detail-media-card {
  background: var(--fe-surface);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-card);
  overflow: hidden;
  box-shadow: var(--fe-shadow-sm);
}

.fe-detail-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.fe-detail-content-card {
  background: var(--fe-surface);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-card);
  padding: 28px;
  box-shadow: var(--fe-shadow-sm);
  display: flex;
  flex-direction: column;
}

.fe-detail-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.fe-cat-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--fe-secondary);
  background: var(--fe-surface-alt);
  padding: 4px 10px;
  border-radius: 12px;
}

.fe-detail-title {
  font-size: 22px;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.fe-detail-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fe-text-secondary);
  font-size: 14px;
  margin: 0 0 20px 0;
}
.fe-detail-subtitle .fec-icon {
  width: 16px;
  height: 16px;
  color: var(--fe-secondary);
}

.fe-detail-info-row {
  margin-bottom: 12px;
  font-size: 14px;
}

.fe-detail-desc-box {
  background: var(--fe-bg);
  border: 1px solid var(--fe-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 14px;
}
.fe-detail-desc-box p {
  margin: 6px 0 0 0;
  color: var(--fe-text-primary);
}

.fe-detail-evidence-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
  font-size: 14px;
}
.fe-detail-evidence-box p {
  margin: 6px 0 0 0;
  color: #166534;
}

.fe-detail-actions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.fe-btn-whatsapp {
  background: #25D366;
  color: #fff !important;
}

.fe-detail-timeline-wrap {
  border-top: 1px solid var(--fe-border);
  padding-top: 20px;
}

.fe-detail-timeline-wrap h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.fe-public-timeline {
  list-style: none;
  padding: 0 0 0 16px;
  margin: 0;
  border-left: 2px solid var(--fe-border);
}

.fe-public-timeline li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 12px;
}

.fe-tl-dot {
  position: absolute;
  left: -21px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fe-secondary);
  border: 2px solid #fff;
}

.fe-tl-body strong {
  font-size: 13px;
  color: var(--fe-primary);
}

.fe-tl-note {
  font-size: 12px;
  font-style: italic;
  margin: 4px 0;
  color: var(--fe-text-secondary);
}

.fe-tl-body small {
  font-size: 11px;
  color: var(--fe-text-secondary);
}

/* ==========================================================================
   TRACKING VIEW
   ========================================================================== */
.fe-app-tracking-view {
  max-width: 640px;
  margin: 24px auto 60px auto;
  padding: 0 16px;
}

.fe-app-card {
  background: var(--fe-surface);
  border: 1px solid var(--fe-border);
  border-radius: var(--fe-radius-card);
  padding: 28px;
  box-shadow: var(--fe-shadow-md);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.fe-toast-container {
  position: fixed;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

@media (min-width: 769px) {
  .fe-toast-container {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .fe-toast-container {
    top: 16px;
    left: 16px;
    right: 16px;
    align-items: center;
  }
}

.fe-toast {
  pointer-events: auto;
  background: var(--fe-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: var(--fe-shadow-lg);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: feToastIn 0.2s ease-out;
  transition: opacity 0.2s ease;
}

.fe-toast-success { background: #065F46; }
.fe-toast-error   { background: #991B1B; }
.fe-toast-info    { background: var(--fe-primary); }

@keyframes feToastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes feFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes feSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER (DESKTOP) & BOTTOM NAV (MOBILE)
   ========================================================================== */
.fe-app-footer {
  background: var(--fe-primary);
  color: #94A3B8;
  padding: 48px 0 36px 0;
  margin-top: auto;
  border-top: 1px solid #1E3A4C;
}

.fe-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.fe-footer-brand-col .fe-brand-title {
  color: #fff;
}

.fe-footer-brand-col .fe-brand-city {
  color: #64748B;
}

.fe-footer-description {
  font-size: 13px;
  margin: 12px 0 14px 0;
  color: #94A3B8;
  max-width: 360px;
}

.fe-footer-disclaimer {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: #64748B;
  max-width: 420px;
}

.fe-footer-nav-col, .fe-footer-info-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fe-footer-nav-col h4, .fe-footer-info-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 6px;
}

.fe-footer-nav-col a {
  font-size: 13px;
  color: #94A3B8;
  transition: color 0.15s ease;
}

.fe-footer-nav-col a:hover {
  color: #fff;
}

.fe-footer-info-col p {
  font-size: 12px;
  margin: 0;
  color: #64748B;
}

/* Mobile Fixed Bottom Navigation */
.fe-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body.fe-app-site {
    padding-bottom: calc(88px + max(20px, env(safe-area-inset-bottom, 20px)));
  }

  .fe-app-container {
    width: calc(100% - 24px);
  }

  .fe-header-nav {
    display: none; /* Desktop menu hidden on mobile */
  }

  .fe-app-footer {
    display: none; /* Simplified on mobile to feel like native app */
  }

  /* Form & Wizard Mobile Optimization */
  .fe-page-shell {
    padding-top: 14px;
    padding-bottom: 20px;
  }

  .fe-wizard-header {
    margin-bottom: 18px;
  }

  .fe-wizard-header h2 {
    font-size: 21px;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
  }

  .fe-wizard-header p {
    font-size: 13px;
  }

  .fe-wizard-progress {
    margin-bottom: 20px;
    padding: 0 4px;
  }

  .fe-node-circle {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .fe-node-text {
    font-size: 10px;
  }

  .fe-wizard-form {
    padding: 20px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .fe-step-intro {
    margin-bottom: 16px;
  }

  .fe-step-intro h3 {
    font-size: 17px;
  }

  .fe-step-intro p {
    font-size: 12.5px;
  }

  .fe-photo-picker-box {
    min-height: 180px;
  }

  .fe-picker-placeholder {
    padding: 18px 12px;
  }

  .fe-camera-icon {
    font-size: 32px;
  }

  .fe-category-selection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .fe-category-radio-card {
    padding: 10px 10px;
  }

  .fe-cat-label-text {
    font-size: 12.5px;
  }

  .fe-wizard-mini-map {
    height: 180px;
  }

  .fe-wizard-success-card {
    padding: 8px 0;
  }

  .fe-wizard-success-card h2 {
    font-size: 20px;
  }

  .fe-wizard-success-card p {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .fe-app-card {
    padding: 20px 16px;
  }

  /* Mobile Fixed Bottom Navigation with iOS Home-Bar Safe Area */
  .fe-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: max(22px, env(safe-area-inset-bottom, 22px));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--fe-border);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(11, 43, 60, 0.08);
    box-sizing: border-box;
  }

  .fe-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    flex: 1;
    color: var(--fe-text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
    padding: 0 4px;
  }

  .fe-bottom-item .fec-icon {
    width: 22px;
    height: 22px;
  }

  .fe-bottom-item.fe-bottom-active {
    color: var(--fe-secondary);
  }

  /* Center Highlight button for 'Registrar' */
  .fe-bottom-highlight {
    position: relative;
    top: 0;
  }

  .fe-highlight-circle {
    width: 48px;
    height: 48px;
    margin-top: -22px;
    margin-bottom: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fe-secondary), var(--fe-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
    border: 3.5px solid #ffffff;
    transition: transform 0.15s ease;
  }

  .fe-highlight-circle:active {
    transform: scale(0.92);
  }

  .fe-highlight-circle .fec-icon {
    width: 24px;
    height: 24px;
  }
}

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