:root {
  --blue-950: #071a33;
  --blue-900: #0b2a4a;
  --blue-800: #113b66;
  --blue-700: #15588c;
  --turquoise-500: #15b8b2;
  --turquoise-100: #dff8f6;
  --gold-500: #c89b2c;
  --gold-100: #fff6d7;
  --ink-900: #132238;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-100: #eef2f7;
  --ink-050: #f7f9fc;
  --white: #ffffff;
  --green: #12a66a;
  --red: #d94848;
  --shadow: 0 18px 44px rgba(8, 32, 58, 0.12);
  --soft-shadow: 0 8px 24px rgba(8, 32, 58, 0.08);
  --radius: 8px;
  --sidebar-width: 286px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink-050);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink-900);
  background: var(--ink-050);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 15% 15%, rgba(21, 184, 178, 0.22), transparent 32%),
    linear-gradient(135deg, #06172e 0%, #092844 48%, #0e5a78 100%);
}

.login-shell {
  width: min(1120px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 20px;
}

.login-card,
.login-visual {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.login-card {
  padding: 42px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--turquoise-500), var(--blue-700));
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--turquoise-500);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-card h1 {
  margin: 0;
  color: var(--blue-950);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.login-copy {
  margin: 16px 0 26px;
  color: var(--ink-500);
}

.login-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-900);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input,
select {
  height: 43px;
  padding: 0 13px;
}

textarea {
  min-height: 96px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--turquoise-500);
  box-shadow: 0 0 0 4px rgba(21, 184, 178, 0.14);
}

.primary-button,
.ghost-button,
.secondary-button,
.danger-button,
.icon-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-button {
  min-height: 43px;
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-800), var(--turquoise-500));
  box-shadow: 0 10px 24px rgba(21, 88, 140, 0.2);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary-button.full {
  width: 100%;
}

.ghost-button,
.secondary-button {
  min-height: 39px;
  padding: 0 14px;
  color: var(--blue-800);
  background: var(--white);
  border: 1px solid #dbe3ed;
}

.secondary-button {
  background: var(--turquoise-100);
  border-color: rgba(21, 184, 178, 0.26);
}

.danger-button {
  min-height: 39px;
  padding: 0 14px;
  color: #8f1d1d;
  background: #fff1f1;
  border: 1px solid #ffd1d1;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
}

.alert.error {
  color: #8f1d1d;
  background: #fff1f1;
  border: 1px solid #ffd1d1;
}

.alert.success {
  color: #126443;
  background: #e8fff4;
  border: 1px solid #b8efd6;
}

.login-note {
  margin: 18px 0 0;
  color: var(--ink-500);
  font-size: 12px;
}

.login-visual {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.08);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.visual-grid article {
  min-height: 132px;
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.visual-grid span,
.visual-grid em {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
}

.visual-grid strong {
  display: block;
  margin: 14px 0 4px;
  font-size: 30px;
  line-height: 1;
}

.login-map {
  position: absolute;
  inset: 190px 26px 26px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(21, 184, 178, 0.2), rgba(200, 155, 44, 0.18)),
    radial-gradient(circle at 42% 54%, rgba(255,255,255,0.45), transparent 22%),
    radial-gradient(circle at 66% 44%, rgba(255,255,255,0.28), transparent 18%),
    #0b3553;
  border: 1px solid rgba(255,255,255,0.2);
}

.login-map::before {
  content: "";
  position: absolute;
  inset: 8% 12% 8% 10%;
  background: rgba(255, 255, 255, 0.15);
  clip-path: polygon(17% 51%, 27% 20%, 49% 12%, 77% 23%, 87% 49%, 72% 74%, 39% 83%, 21% 69%);
}

.login-map span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  color: var(--white);
  background: rgba(7, 26, 51, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.login-map span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 5px rgba(200, 155, 44, 0.18);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, var(--blue-950), #08294a 68%, #07344b);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.sidebar nav {
  display: grid;
  gap: 5px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 760;
  transition: background 0.18s ease, color 0.18s ease;
}

.sidebar nav a span {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.sidebar nav a:hover,
.sidebar nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.sidebar nav a.active span {
  background: var(--turquoise-500);
  box-shadow: 0 0 0 4px rgba(21, 184, 178, 0.16);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-footer p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.sidebar-footer a {
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 86px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid #e2e8f0;
}

.user-chip > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-800);
  font-weight: 900;
}

.user-chip strong,
.user-chip small {
  display: block;
}

.user-chip strong {
  font-size: 13px;
}

.user-chip small {
  color: var(--ink-500);
  font-size: 12px;
}

.screen {
  padding: 28px;
}

.section-stack {
  display: grid;
  gap: 20px;
}

.hero-panel,
.panel,
.metric-card,
.chart-card,
.table-card,
.profile-card,
.report-card,
.setting-row,
.map-panel {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.hero-panel {
  min-height: 176px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(7, 26, 51, 0.94), rgba(17, 59, 102, 0.9)),
    radial-gradient(circle at 78% 22%, rgba(21, 184, 178, 0.3), transparent 28%);
  color: var(--white);
}

.hero-panel h2 {
  margin: 0 0 10px;
  max-width: 800px;
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-panel p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.hero-stat {
  min-width: 186px;
  align-self: stretch;
  padding: 16px;
  display: grid;
  align-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat span,
.hero-stat small {
  color: rgba(255, 255, 255, 0.72);
}

.hero-stat strong {
  display: block;
  margin: 4px 0;
  font-size: 34px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 136px;
  padding: 16px;
  display: grid;
  align-content: space-between;
}

.metric-card span {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  font-size: 25px;
  line-height: 1.08;
}

.metric-card em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.chart-card,
.table-card,
.panel,
.map-panel {
  padding: 18px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.card-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.card-header p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 13px;
}

.chart-canvas {
  width: 100%;
  min-height: 290px;
}

.mini-chart {
  min-height: 180px;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 62px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink-100);
}

.bar-fill {
  height: 100%;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-700), var(--turquoise-500));
}

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

.data-table th,
.data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--ink-500);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: #f8fbff;
}

.clickable-row {
  cursor: pointer;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status.verified {
  color: #106341;
  background: #e8fff4;
}

.status.verified::before {
  background: var(--green);
}

.status.pending {
  color: #7d5a08;
  background: var(--gold-100);
}

.status.pending::before {
  background: var(--gold-500);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.filters label {
  min-width: 190px;
}

.filters .search {
  min-width: 280px;
  flex: 1;
}

.trend-list {
  display: grid;
  gap: 11px;
}

.trend-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}

.trend-item:last-child {
  border-bottom: 0;
}

.trend-item strong,
.trend-item small {
  display: block;
}

.trend-item small {
  color: var(--ink-500);
}

.trend-item span {
  color: var(--green);
  font-weight: 900;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue-800);
  background: var(--turquoise-100);
  font-size: 12px;
  font-weight: 850;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.yucatan-map {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 184, 178, 0.13), rgba(200, 155, 44, 0.16)),
    #ecf7fb;
  border: 1px solid #d8e9ef;
}

.yucatan-map::before {
  content: "";
  position: absolute;
  inset: 7% 9% 7% 8%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(223, 248, 246, 0.92));
  clip-path: polygon(15% 48%, 24% 19%, 45% 8%, 73% 18%, 88% 38%, 82% 65%, 61% 81%, 34% 86%, 19% 70%);
  border: 1px solid rgba(21, 184, 178, 0.2);
  filter: drop-shadow(0 18px 28px rgba(8, 32, 58, 0.12));
}

.heat-zone {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 155, 44, 0.5), rgba(21, 184, 178, 0.24) 45%, transparent 72%);
  pointer-events: none;
}

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue-700);
  box-shadow: 0 6px 14px rgba(7, 26, 51, 0.22);
  cursor: pointer;
}

.pin::after {
  content: attr(data-name);
  position: absolute;
  left: 18px;
  top: -8px;
  max-width: 160px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue-950);
  background: var(--white);
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.pin:hover::after,
.pin.active::after {
  opacity: 1;
}

.pin.Cenotes {
  background: var(--turquoise-500);
}

.pin.Restaurantes {
  background: var(--gold-500);
}

.pin.Museos {
  background: var(--blue-800);
}

.pin.Playas {
  background: #178ed0;
}

.pin.Tours {
  background: #2f7d63;
}

.pin.Hoteles {
  background: #6a7fbf;
}

.pin.Transporte {
  background: #53616f;
}

.preview-card {
  padding: 16px;
}

.preview-image,
.profile-hero {
  background-position: center;
  background-size: cover;
}

.preview-image {
  height: 148px;
  margin: -16px -16px 14px;
  border-radius: 8px 8px 0 0;
  background-color: var(--blue-800);
}

.preview-card h3 {
  margin: 0 0 8px;
}

.preview-card p {
  margin: 0 0 14px;
  color: var(--ink-500);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.profile-card {
  overflow: hidden;
}

.profile-hero {
  height: 260px;
  background-color: var(--blue-800);
}

.profile-content {
  padding: 22px;
}

.profile-heading {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: -64px;
}

.logo-badge {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 4px solid var(--white);
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--turquoise-500));
  box-shadow: var(--soft-shadow);
  font-size: 26px;
  font-weight: 950;
}

.profile-heading h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-500);
  font-size: 13px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.info-box {
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.info-box span {
  display: block;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
}

.info-box strong,
.info-box a {
  display: block;
  margin-top: 4px;
  color: var(--ink-900);
  word-break: break-word;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.service-card h4 {
  margin: 0 0 6px;
}

.service-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
}

.analytics-list {
  display: grid;
  gap: 12px;
}

.analytics-list article {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.analytics-list span {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
}

.analytics-list strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-builder {
  display: grid;
  gap: 12px;
}

.service-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.report-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.report-card h3 {
  margin: 0;
}

.report-card p {
  margin: 0;
  color: var(--ink-500);
}

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

.settings-list {
  display: grid;
  gap: 12px;
}

.setting-row {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.setting-row h3,
.setting-row p {
  margin: 0;
}

.setting-row p {
  color: var(--ink-500);
  font-size: 13px;
}

.toggle {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #c8d2df;
  cursor: pointer;
}

.toggle::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 3px 8px rgba(0,0,0,0.16);
  transition: transform 0.18s ease;
}

.toggle.active {
  background: var(--turquoise-500);
}

.toggle.active::after {
  transform: translateX(20px);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: 360px;
  padding: 13px 15px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-950);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  padding: 34px;
  text-align: center;
  color: var(--ink-500);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fbfdff;
}

.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--white);
  border: 1px solid #dbe3ed;
}

.mobile-menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-900);
}

@media (max-width: 1260px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 460px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: var(--sidebar-width);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: inline-block;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    display: none;
  }

  .grid-2,
  .grid-3,
  .map-layout,
  .profile-layout,
  .report-grid,
  .form-grid,
  .file-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .login-body,
  .screen {
    padding: 16px;
  }

  .login-card {
    padding: 28px;
  }

  .visual-grid,
  .metrics-grid,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .login-map {
    position: relative;
    inset: auto;
    height: 320px;
    margin-top: 16px;
  }

  .topbar {
    padding: 16px;
  }

  .filters label,
  .filters .search {
    min-width: 100%;
  }

  .bar-row {
    grid-template-columns: 110px minmax(0, 1fr) 46px;
  }

  .data-table {
    min-width: 760px;
  }

  .table-scroll {
    overflow-x: auto;
  }

  .service-entry {
    grid-template-columns: 1fr;
  }
}
