:root {
  --bg: #f5f5f9;
  --text: #1f1f36;
  --muted: #6b7280;
  --panel: #ffffff;
  --border: #e5e7eb;
  --primary-start: #1b1163;
  --primary-mid: #3c3c6e;
  --primary-end: #8b6cf7;
  --primary-text: #ffffff;
  --chip-bg: #eef2ff;
  --chip-text: #4338ca;
  --shadow: 0 15px 40px rgba(22, 30, 84, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.form-field-hidden {
  display: none !important;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--primary-start), var(--primary-mid) 50%, var(--primary-end));
  color: var(--primary-text);
  box-shadow: var(--shadow);
  z-index: 20;
  gap: 24px;
}

.top-bar .mobile-menu-button {
  display: none !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}

.brand small {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.2;
}

.input-autocomplete-trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.top-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
  align-items: center;
}

.top-actions .primary-btn,
.top-actions .ghost-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #312e81;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  box-shadow: 0 8px 16px rgba(49, 46, 129, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-actions .primary-btn:hover,
.top-actions .ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(49, 46, 129, 0.2);
}

.top-actions .primary-btn:active,
.top-actions .ghost-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(49, 46, 129, 0.16);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  color: var(--primary-text);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.25);
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:active {
  transform: translateY(0);
}

.primary-btn.full-width {
  width: 100%;
  justify-content: center;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #f9fafb;
  color: var(--muted);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ghost-btn:hover {
  background: #eef2ff;
  color: var(--text);
}

.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.16);
  color: var(--primary-text);
  font-weight: 600;
}

.top-actions .primary-btn,
.top-actions .ghost-btn,
.top-actions .menu-btn,
.top-actions button[type="button"],
.top-actions a {
  text-decoration: none;
}

.user-chip i {
  font-size: 16px;
}

.layout {
  display: grid;
  grid-template-columns: 340px 360px 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
}

.search-panel,
.results-panel {
  background: var(--panel);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

.search-panel {
  border-right: 1px solid var(--border);
}

.results-panel {
  border-right: 1px solid var(--border);
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-title {
  font-size: 18px;
  font-weight: 600;
}

.panel-subtitle {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.filters-section {
  gap: 18px;
}

.filters-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.filters-actions .primary-btn {
  justify-content: center;
}

.mobile-menu-button,
.mobile-toolbar,
.mobile-panel-close {
  display: none;
}

.mobile-menu-button {
  display: none !important;
  border: none;
  background: transparent;
  color: var(--primary-text);
  padding: 8px;
  font-size: 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: 12px;
}

.mobile-menu-button i {
  pointer-events: none;
}

.mobile-overlay {
  display: none;
}

.ghost-small {
  align-self: center;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
}

.filters-actions .ghost-btn {
  flex: 0 0 auto;
}

.filters-actions .primary-btn {
  flex: 1;
  justify-content: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.filter-group label {
  font-weight: 500;
}

.filter-group > label,
.panel-section h3,
.results-header .panel-title {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.filter-group input,
.filter-group select,
.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus,
.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-icon {
  position: relative;
}

.input-icon input {
  padding-right: 36px;
}

.input-icon i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip i {
  font-size: 12px;
}

.chip.active {
  background: var(--chip-bg);
  border-color: transparent;
  color: var(--chip-text);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.results-panel .results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.results-panel .results-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
  flex: 1;
  overflow-y: auto;
  padding: 10px 4px 6px 0;
  margin-right: -4px;
}

.result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.result-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.result-card.active {
  border-color: #6366f1;
  background: #f8f7ff;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-header-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header-actions:empty {
  display: none;
}

.card-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.card-action-btn:hover {
  background: rgba(99, 102, 241, 0.2);
}

.card-action-btn:active {
  transform: translateY(1px);
}

.card-action-btn i {
  pointer-events: none;
}

.card-name-link {
  color: inherit;
  text-decoration: none;
}

.card-name-link:hover {
  text-decoration: underline;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-protected {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.contact-placeholder {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-toggle {
  align-self: flex-start;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-links a {
  color: var(--primary-mid);
  font-weight: 500;
}

.contact-protected--profile {
  margin-top: 12px;
}

.contact-message-btn {
  margin-top: 16px;
}

.card-body .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.meta-condensed {
  font-size: 12px;
  color: #6b7280;
}

.card-about {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.badge-list,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0f2f1;
  color: #047857;
}

.badge.aluno_palicurso {
  background: #fef9c3;
  color: #b45309;
}

.badge.prof_palicurso {
  background: #ede9fe;
  color: #6d28d9;
}

.service {
  font-size: 11px;
  font-weight: 500;
  background: #f3f4f6;
  color: #4b5563;
  padding: 4px 10px;
  border-radius: 8px;
}

.map-section {
  flex: 1;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100%;
}

.admin-sidebar {
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  gap: 24px;
}

.admin-sidebar h2 {
  font-size: 18px;
  font-weight: 600;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.admin-nav button.active,
.admin-nav button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-content {
  background: var(--bg);
  padding: 32px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.admin-card {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.card-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-value {
  font-size: 28px;
  font-weight: 700;
}

.admin-table-container {
  background: var(--panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background: #f3f4f6;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.admin-table tbody tr:hover {
  background: #f9fafb;
}

.admin-table tbody tr.is-selected {
  background: #eef2ff;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.admin-split-left,
.admin-split-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.admin-split-right {
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.detail-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.detail-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-section h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #fff;
}

.detail-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.detail-value {
  font-size: 14px;
  color: var(--text);
  white-space: pre-line;
}

.detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  min-height: 220px;
}

.detail-placeholder i {
  font-size: 26px;
}

.detail-form {
  gap: 24px;
}

.detail-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-field.full-width {
  grid-column: 1 / -1;
}

.detail-field-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.detail-field input,
.detail-field select,
.detail-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.detail-field input.readonly {
  background: #f3f4f6;
  color: var(--muted);
  cursor: not-allowed;
}

.detail-field input:focus,
.detail-field select:focus,
.detail-field textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.checkbox-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.checkbox-item input {
  margin: 0;
}

.danger-btn {
  border: 1px solid rgba(185, 28, 28, 0.2);
  color: #b91c1c;
}

.danger-btn:hover {
  border-color: rgba(185, 28, 28, 0.4);
}

@media (max-width: 960px) {
  .admin-split {
    grid-template-columns: 1fr;
  }

  .admin-split-right {
    order: -1;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill.pending {
  background: #fef3c7;
  color: #b45309;
}

.status-pill.approved {
  background: #dcfce7;
  color: #047857;
}

.status-pill.rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill.inactive {
  background: #e5e7eb;
  color: #374151;
}

.status-pill.neutral {
  background: #e0e7ff;
  color: #3730a3;
}

.register-layout {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 36px;
  min-height: 0;
}

.register-form-panel {
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow-y: auto;
  max-width: 760px;
  width: 100%;
}

.register-form-panel .registration-form {
  padding: 32px 36px 48px;
}

.registration-form.is-locked {
  opacity: 0.5;
  filter: grayscale(0.1);
}

.register-header {
  padding: 32px 36px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verification-alert {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
  color: #1e3a8a;
}

.verification-alert i {
  font-size: 22px;
  margin-top: 2px;
}

.verification-alert .verification-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verification-alert strong {
  font-size: 15px;
}

.verification-alert p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.verification-alert .ghost-btn {
  align-self: flex-start;
  border-color: rgba(59, 130, 246, 0.35);
  background: transparent;
  color: #1e3a8a;
  font-size: 13px;
}

.verification-alert .ghost-btn:hover {
  background: rgba(59, 130, 246, 0.15);
}

.verification-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #eef2ff, #f8fafc);
  font-family: 'Inter', 'Montserrat', sans-serif;
}

.verification-container {
  width: min(480px, 100%);
  padding: 32px 16px;
}

.verification-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.verification-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.verification-icon.success {
  background: rgba(34, 197, 94, 0.12);
  color: #047857;
}

.verification-icon.error {
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
}

.verification-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f36;
}

.verification-card p {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

.verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.profile-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f9fafb;
}

.profile-status-message {
  font-size: 14px;
  color: var(--text);
}

.profile-status-note {
  font-size: 13px;
  color: var(--muted);
}

.register-header h1 {
  font-size: 26px;
  font-weight: 700;
}

.register-header p {
  color: var(--muted);
  line-height: 1.6;
}

.coordinate-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.coordinate-tools .ghost-btn {
  gap: 6px;
}

.coordinate-tools .ghost-btn.is-active {
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  color: #fff;
  border-color: transparent;
}

.coordinate-status {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #f9fafb;
  border: 1px dashed var(--border);
}

.coordinate-status.ready {
  color: #047857;
  border-color: #047857;
  background: #ecfdf5;
}

.coordinate-status.manual {
  color: #2563eb;
  border-color: #2563eb;
  background: #eff6ff;
}

.coordinate-status.error {
  color: #b91c1c;
  border-color: #b91c1c;
  background: #fef2f2;
}

.map-help {
  position: absolute;
  left: 20px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 24, 39, 0.85);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.35);
}

.hidden {
  display: none !important;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state i {
  font-size: 32px;
  margin-bottom: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 40;
}

.modal-content {
  background: #ffffff;
  width: min(900px, 100%);
  max-height: 100%;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.45);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 32px 36px;
}

.message-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.message-form input,
.message-form textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.message-form input:focus,
.message-form textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.message-form textarea {
  resize: vertical;
  min-height: 140px;
}

.message-form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.form-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.captcha-container {
  margin-top: 4px;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 32px 36px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section h3 {
  font-size: 16px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.form-grid small {
  font-size: 12px;
  color: var(--muted);
}


.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-group label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.checkbox-group input[type='checkbox'] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.domicile-radius {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f9fafb;
}

.radius-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.radius-label input[type='range'] {
  width: 100%;
}

.radius-value {
  font-size: 13px;
  color: var(--muted);
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.disclaimer {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.form-feedback {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid transparent;
}

.form-feedback.success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.form-feedback.error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #1f2937;
  color: white;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.4);
  z-index: 45;
  font-size: 14px;
}

.toast.success {
  background: #047857;
}

.toast.error {
  background: #b91c1c;
}

.auth-body {
  background: linear-gradient(160deg, #111827, #1f2937);
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
}

.auth-panel {
  background: var(--panel);
  width: min(420px, 100%);
  padding: 32px 36px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-panel h1 {
  font-size: 24px;
  font-weight: 700;
}

.auth-panel p {
  color: var(--muted);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.auth-form input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 15px;
}

.auth-form .password-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.password-input {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input input {
  width: 100%;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #4338ca;
  background: rgba(67, 56, 202, 0.12);
  outline: none;
}

.password-toggle i {
  font-size: 16px;
}

.auth-form .captcha-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form .captcha-note {
  font-size: 12px;
  color: var(--muted);
}

.auth-submit {
  margin-top: 8px;
  justify-content: center;
}

.auth-error {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.auth-feedback {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
}

.auth-feedback.success {
  background: #dcfce7;
  color: #047857;
  border: 1px solid #bbf7d0;
}

.auth-feedback.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.profile-body {
  background: linear-gradient(145deg, #eef2ff, #fff);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.profile-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 80px;
}

.profile-card {
  background: #ffffff;
  width: min(780px, 100%);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(46, 38, 133, 0.14);
  padding: 40px clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.profile-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
}

.profile-location {
  font-size: 1rem;
  color: #64748b;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.profile-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #4338ca;
  text-decoration: none;
  cursor: pointer;
}

.profile-action:hover {
  background: rgba(99, 102, 241, 0.16);
}

.profile-action button {
  border: none;
}

.profile-section h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.profile-list,
.profile-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
}

.profile-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-contact-list a {
  color: #4338ca;
  text-decoration: none;
}

.profile-contact-list a:hover {
  text-decoration: underline;
}

.profile-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: #334155;
}

.profile-error i {
  font-size: 2rem;
  color: #f97316;
}

@media (max-width: 720px) {
  .profile-card {
    padding: 32px 24px;
  }

  .profile-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-action {
    justify-content: center;
  }
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.auth-links {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-links a {
  font-size: 13px;
  color: #4338ca;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.landing-body {
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding: 64px 0 120px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(280px, 1fr);
  gap: 56px;
  align-items: center;
  padding: 0 6vw;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 700;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-primary {
  padding-left: 20px;
  padding-right: 24px;
}

.hero-secondary {
  background: transparent;
  border-color: rgba(99, 102, 241, 0.25);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.metric-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-card strong {
  font-size: 1.6rem;
  color: #4338ca;
}

.metric-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: clamp(320px, 60vw, 700px);
  max-width: min(700px, 100%);
  height: auto;
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(30, 64, 175, 0.2);
  border: 6px solid rgba(255, 255, 255, 0.85);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.14);
  padding: 8px 14px;
  border-radius: 999px;
}

.section-header h2 {
  margin-top: 16px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.35;
}

.feature-section {
  padding: 0 6vw;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 30px 60px rgba(67, 56, 202, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card i {
  font-size: 1.8rem;
  color: #4338ca;
}

.feature-card h3 {
  font-size: 1.25rem;
}

.workflow {
  padding: 0 6vw;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.workflow-steps li {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-steps h3 {
  font-size: 1.1rem;
}

.testimonial {
  padding: 0 6vw;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(220px, 1fr);
  gap: 48px;
  align-items: center;
}

.testimonial-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 30px 80px rgba(76, 29, 149, 0.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-content i {
  color: rgba(67, 56, 202, 0.35);
  font-size: 2rem;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.95rem;
}

.testimonial-decoration {
  width: clamp(220px, 30vw, 280px);
  height: clamp(220px, 30vw, 280px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.24), rgba(99, 102, 241, 0));
  border: 1px solid rgba(99, 102, 241, 0.25);
  transform: rotate(-8deg);
}

.cta-section {
  padding: 0 6vw;
}

.cta-content {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.92), rgba(139, 92, 246, 0.88));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px clamp(28px, 8vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 30px 80px rgba(59, 7, 100, 0.25);
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.landing-footer {
  margin-top: auto;
  padding: 40px 6vw 48px;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand img {
  width: 140px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
}

.landing-footer small {
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.85rem;
}

.detail-note {
  font-size: 13px;
  color: var(--muted);
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 320px 1fr;
  }

  .register-layout {
    padding: 24px;
  }

  .register-form-panel {
    max-width: 100%;
  }

  .admin-layout {
    grid-template-columns: 220px 1fr;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-illustration {
    min-height: 280px;
  }


  .testimonial {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    text-align: left;
  }

  .testimonial-decoration {
    justify-self: center;
    transform: rotate(0deg);
  }
}

@media (max-width: 900px) {
  .mobile-menu-enabled {
    overflow-x: hidden;
  }

  .mobile-menu-enabled .top-bar {
    position: sticky;
    top: 0;
    z-index: 150;
  }

  .mobile-menu-enabled .top-bar .mobile-menu-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .mobile-menu-enabled .top-actions {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80%);
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    padding: 96px 24px 32px;
    flex-direction: column;
    gap: 18px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 160;
    pointer-events: none;
    margin-left: 0;
  }

  .mobile-menu-enabled.mobile-menu-open .top-actions {
    transform: translateX(0);
    pointer-events: auto;
  }

  .mobile-menu-enabled .top-actions .ghost-btn,
  .mobile-menu-enabled .top-actions .primary-btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-menu-enabled .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 140;
    display: none;
  }

  .mobile-menu-enabled.mobile-menu-open .mobile-overlay,
  .mobile-menu-enabled.filters-open .mobile-overlay {
    display: block;
  }

  .mobile-menu-enabled.mobile-menu-open,
  .mobile-menu-enabled.filters-open {
    overflow: hidden;
  }

  .map-page .mobile-toolbar {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
  }

  .map-page .mobile-toolbar .ghost-btn {
    flex: 1;
    justify-content: center;
    border: 1px solid var(--border);
    background: #f8fafc;
  }

  .map-page .mobile-toolbar .ghost-btn.active {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: #ffffff;
    border-color: transparent;
  }

  .map-page .mobile-toolbar .ghost-btn i {
    margin-right: 6px;
  }

  .map-page .layout {
    display: flex;
    flex-direction: column;
  }

  .map-page .search-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 85%);
    max-width: 340px;
    background: #ffffff;
    z-index: 170;
    padding: 96px 24px 32px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: none;
  }

  .map-page.filters-open .search-panel {
    transform: translateX(0);
  }

  .map-page .mobile-panel-close {
    display: inline-flex;
    position: absolute;
    top: 28px;
    right: 22px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
  }

  .map-page .results-panel {
    border-right: none;
    padding: 16px 16px 80px;
    order: 2;
    flex: 1 1 auto;
  }

  .map-page .map-section {
    order: 3;
    display: none;
    height: 340px;
  }

  .map-page.mobile-map-visible .map-section {
    display: block;
  }

  .map-page:not(.mobile-map-visible) .results-panel {
    min-height: calc(100vh - 140px);
  }

  .map-page #map {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .search-panel,
  .results-panel {
    border-right: none;
  }

  .register-form-panel,
  padding: 16px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-nav button {
    flex: 1 1 140px;
  }
}

@media (max-width: 720px) {
  .landing {
    gap: 72px;
    padding: 36px 0 80px;
  }

  .hero,
  .feature-section,
  .workflow,
  .testimonial,
  .cta-section {
    padding: 0 24px;
  }

  .hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .cta-content {
    text-align: left;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .landing-footer {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #eef2ff;
  color: #4f46e5;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.icon-btn.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.icon-btn.danger:hover {
  background: #fecaca;
}

@media (max-width: 1080px) {
  .layout {
    display: flex;
    flex-direction: column;
  }

  .search-panel {
    width: 100%;
    max-height: 60vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .results-panel {
    width: 100%;
    max-height: 40vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .map-section {
    height: 40vh;
  }

  .modal {
    padding: 16px;
  }

  .modal-content {
    border-radius: var(--radius-md);
  }
}

@media (max-width: 640px) {
  .top-bar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand small {
    font-size: 11px;
  }

  .primary-btn.full-width,
  .top-actions .primary-btn {
    width: 100%;
    justify-content: center;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-actions .primary-btn,
  .hero-actions .ghost-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .hero-illustration {
    gap: 18px;
    flex-direction: column;
  }

}
