/* ============================================================================
   GLG ENGENHARIA — OnWebProcess® 3.0 PRO
   Design System: Luminous Apple Liquid Glass + Atelier Monet Ground (#F4F7F9)
   + Deep Naval Header (#041022) — Irmão Visual Oficial do VolumERIC® 3.0 PRO
   ============================================================================ */

:root {
  --navy-950: #041022;
  --navy-900: #071936;
  --navy-800: #0d274d;
  --ground-light: #f2f6fa;
  --ground-warm: #eef3f8;
  --ink-900: #0a192f;
  --ink-700: #283b56;
  --ink-500: #526580;
  --ink-400: #7a8da6;
  --cyan-500: #00a8e8;
  --cyan-400: #00e5ff;
  --blue-600: #0284c7;
  --blue-700: #0369a1;
  --emerald-600: #059669;
  --amber-500: #d97706;
  --red-500: #dc2626;

  /* Apple Liquid Glass Optical Tokens */
  --glass-white: rgba(255, 255, 255, 0.86);
  --glass-white-strong: rgba(255, 255, 255, 0.93);
  --glass-border: rgba(255, 255, 255, 0.92);
  --glass-rim: rgba(14, 42, 78, 0.09);
  --glass-shadow:
    0 18px 42px -12px rgba(8, 25, 52, 0.13),
    0 4px 12px -2px rgba(8, 25, 52, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);

  --glass-dark: rgba(6, 19, 40, 0.84);
  --glass-dark-border: rgba(125, 211, 252, 0.24);

  --radius-xl: 20px;
  --radius-lg: 15px;
  --radius-md: 11px;
  --radius-pill: 999px;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(1100px 520px at 8% -4%, rgba(0, 168, 232, 0.11), transparent 62%),
    radial-gradient(950px 480px at 94% 4%, rgba(2, 132, 199, 0.09), transparent 60%),
    linear-gradient(180deg, #f6f9fc 0%, #edf2f7 100%);
  -webkit-font-smoothing: antialiased;
}

/* Lock strict SVG/IMG sizing inside brand header so logos NEVER expand */
.brand-emblem-lock {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-emblem-lock svg,
.brand-emblem-lock img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  display: block;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseSweep {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 0.96; }
}

.anim-propeller {
  transform-origin: 60px 60px;
  animation: spinSlow 9s linear infinite;
}

.anim-beam {
  transform-origin: 60px 28px;
  animation: spinSlow 11s linear infinite;
}

.anim-sonar {
  animation: pulseSweep 3.2s ease-in-out infinite;
}

/* ============================================================================
   TOPBAR INSTITUCIONAL (#041022) — Idêntico em Hierarquia ao VolumERIC 3.0 PRO
   ============================================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: linear-gradient(90deg, #030d1d 0%, #071936 55%, #051329 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 10px 28px rgba(3, 12, 28, 0.24);
  color: #ffffff;
}

.topbar-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: rgba(148, 163, 184, 0.28);
  flex-shrink: 0;
}

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

.brand-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
  line-height: 1.2;
}

.brand-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-product {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.brand-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.38);
  color: #67e8f9;
}

.brand-subtitle {
  font-size: 11px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 310px;
}

/* Navigation Pills inside Topbar */
.nav-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 5px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px);
}

.nav-step-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.22s var(--ease-spring);
  white-space: nowrap;
}

.nav-step-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.nav-step-btn.active {
  background: linear-gradient(135deg, #00a8e8 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 168, 232, 0.42);
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-step-btn.active .step-num {
  background: rgba(4, 16, 34, 0.28);
}

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

.btn-trial {
  appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.48);
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.22), rgba(2, 132, 199, 0.36));
  color: #f0f9ff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  white-space: nowrap;
}

.btn-trial:hover {
  background: linear-gradient(135deg, #00a8e8, #0284c7);
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.portal-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.22);
  transition: all 0.2s ease;
}

.portal-link:hover {
  color: #ffffff;
  border-color: rgba(125, 211, 252, 0.5);
}

/* ============================================================================
   PROJECT CONTEXT RIBBON (Resumo Vivo Sempre Visível)
   ============================================================================ */
.context-ribbon {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--glass-rim);
}

.context-ribbon-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ingest-grid > *,
.twin-3d-layout > *,
.deliverables-layout > * {
  min-width: 0;
}

.project-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.project-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-700);
  background: rgba(2, 132, 199, 0.1);
  padding: 4px 9px;
  border-radius: 7px;
  white-space: nowrap;
}

.project-title-input {
  flex: 1;
  max-width: 480px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.18s ease;
}

.project-title-input:hover,
.project-title-input:focus {
  outline: none;
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.ribbon-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  font-size: 12px;
  color: var(--ink-700);
}

.metric-pill strong {
  color: var(--ink-900);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric-pill.ok {
  background: rgba(5, 150, 105, 0.09);
  border-color: rgba(5, 150, 105, 0.28);
  color: #065f46;
}

.metric-pill.ok strong {
  color: #047857;
}

/* ============================================================================
   APPLE LIQUID GLASS CARDS & CONTAINERS
   ============================================================================ */
.workspace {
  max-width: 1680px;
  margin: 0 auto;
  padding: 18px 20px 32px;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeSlideIn 0.26s var(--ease-spring);
}

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

.glass-card {
  background: var(--glass-white);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  outline: 1px solid var(--glass-rim);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.45;
}

/* ============================================================================
   VIEW 1: ENTRADA MULTI-ARQUIVOS ILIMITADA & FONTES PÚBLICAS AO VIVO
   ============================================================================ */
.ingest-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.92fr;
  gap: 20px;
  align-items: start;
}

.preset-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.preset-card {
  appearance: none;
  text-align: left;
  padding: 13px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.09);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  font-family: inherit;
}

.preset-card:hover {
  background: #ffffff;
  border-color: var(--cyan-500);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.11);
}

.preset-card.active {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid var(--blue-600);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.14);
}

.preset-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-700);
  background: rgba(2, 132, 199, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.preset-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 3px;
}

.preset-desc {
  display: block;
  font-size: 11.5px;
  color: var(--ink-500);
}

/* Dropzone Multi-Arquivos */
.dropzone {
  border: 2px dashed rgba(2, 132, 199, 0.38);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.72) 0%, rgba(255, 255, 255, 0.92) 100%);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.22s var(--ease-spring);
  cursor: pointer;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--cyan-500);
  background: rgba(224, 242, 254, 0.65);
  transform: scale(1.005);
}

.dropzone-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7, #00a8e8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.25);
}

.dropzone h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-900);
}

.dropzone p {
  margin: 0 auto 14px;
  max-width: 540px;
  font-size: 13px;
  color: var(--ink-500);
}

.format-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.format-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--ink-700);
}

.dropzone-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.26);
  transition: all 0.2s var(--ease-spring);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.34);
}

.btn-secondary {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: var(--ink-900);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.btn-secondary:hover {
  border-color: var(--blue-600);
  color: var(--blue-700);
  background: #f8fafc;
}

/* File Inventory Table */
.inventory-box {
  margin-top: 18px;
}

.inventory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.inventory-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-700);
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.clean-table th {
  text-align: left;
  padding: 9px 12px;
  background: rgba(241, 245, 249, 0.9);
  color: var(--ink-700);
  font-weight: 700;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.clean-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  color: var(--ink-900);
}

.clean-table tr:last-child td {
  border-bottom: none;
}

.btn-icon-remove {
  appearance: none;
  border: none;
  background: rgba(220, 38, 38, 0.08);
  color: var(--red-500);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-icon-remove:hover {
  background: rgba(220, 38, 38, 0.16);
}

/* Live External Data Sources Panel */
.search-bar-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.input-field,
.select-field {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: var(--ink-900);
  font-family: inherit;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-field:focus,
.select-field:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.port-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.port-chip {
  appearance: none;
  border: 1px solid rgba(2, 132, 199, 0.22);
  background: rgba(240, 249, 255, 0.85);
  color: var(--blue-700);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.16s ease;
}

.port-chip:hover {
  background: var(--blue-600);
  color: #ffffff;
}

.coord-pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 14px;
}

.field-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 4px;
}

.live-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.live-source-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: 13px 14px;
}

.live-source-card .src-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-700);
  margin-bottom: 6px;
}

.live-source-card .src-main {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.live-source-card .src-sub {
  font-size: 11.5px;
  color: var(--ink-500);
  margin-top: 3px;
}

/* ============================================================================
   VIEW 2: PLANTA INTERATIVA 2D (SPATIAL CANVAS + FLOATING LIQUID GLASS DOCKS)
   ============================================================================ */
.spatial-stage {
  position: relative;
  height: calc(100vh - 172px);
  min-height: 610px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: var(--glass-shadow);
  background: #dbe6f0;
}

#map2d {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-hud-top {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 650;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--glass-dark);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-dark-border);
  box-shadow: 0 12px 30px rgba(4, 16, 34, 0.34);
}

.hud-basemap-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.hud-basemap-btn.active,
.hud-basemap-btn:hover {
  background: rgba(0, 168, 232, 0.28);
  color: #ffffff;
}

.floating-dock-left {
  position: absolute;
  top: 14px;
  left: 14px;
  bottom: 14px;
  width: 318px;
  z-index: 620;
  overflow-y: auto;
  padding: 16px;
  border-radius: 18px;
  background: var(--glass-white-strong);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.floating-dock-right {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 284px;
  max-height: calc(100% - 28px);
  z-index: 620;
  overflow-y: auto;
  padding: 16px;
  border-radius: 18px;
  background: var(--glass-white-strong);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.dock-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-900);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.control-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
}

.toggle-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-600);
  cursor: pointer;
}

.tool-callout {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.22);
  font-size: 12px;
  color: var(--ink-700);
  line-height: 1.4;
}

.color-legend-bar {
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(90deg, #08306b 0%, #0284c7 35%, #2dd4bf 68%, #fef08a 100%);
  margin: 6px 0 4px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.legend-minmax {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
}

.map-cursor-bar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 650;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--glass-dark);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--glass-dark-border);
}

/* ============================================================================
   VIEW 3: MODELO 3D INTERATIVO & PERFIL ESTRATIGRÁFICO
   ============================================================================ */
.twin-3d-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.canvas-3d-wrap {
  position: relative;
  height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 50% 25%, #102a4c 0%, #051124 100%);
  border: 1px solid rgba(15, 23, 42, 0.14);
}

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

.overlay-3d-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: none;
}

.overlay-3d-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(6, 19, 40, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
}

.overlay-3d-bottom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(6, 19, 40, 0.78);
  color: #cbd5e1;
  font-size: 11.5px;
  pointer-events: none;
}

.profile-canvas-box {
  height: 410px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.09);
  padding: 10px;
  position: relative;
}

#profileCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.borehole-cards-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.bh-mini-card {
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 119, 6, 0.28);
  font-size: 11.5px;
}

.bh-mini-card strong {
  color: var(--ink-900);
  display: block;
  margin-bottom: 2px;
}

/* ============================================================================
   VIEW 4: RELATÓRIOS, PLANILHAS & PLANTAS PRONTAS
   ============================================================================ */
.kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-exec-card {
  background: var(--glass-white-strong);
  border: 1px solid var(--glass-border);
  outline: 1px solid var(--glass-rim);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--glass-shadow);
}

.kpi-exec-card .k-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-exec-card .k-val {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 5px 0 3px;
  font-variant-numeric: tabular-nums;
}

.kpi-exec-card .k-sub {
  font-size: 12px;
  color: var(--ink-500);
}

.deliverables-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.board-preview-frame {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 12px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-preview-frame img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.export-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.export-item-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  transition: all 0.2s var(--ease-spring);
}

.export-item-btn:hover {
  border-color: var(--blue-600);
  background: #f0f9ff;
  transform: translateX(3px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
}

.exp-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exp-ext {
  min-width: 54px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 9px;
  background: linear-gradient(135deg, #071936, #0d274d);
  color: #7dd3fc;
}

.exp-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
}

.exp-desc {
  display: block;
  font-size: 11.5px;
  color: var(--ink-500);
}

/* ============================================================================
   MODAL DE ASSINATURA / 10 DIAS GRÁTIS & TOASTS
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(4, 16, 34, 0.58);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 28px 60px rgba(4, 16, 34, 0.35);
}

.plan-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.plan-option {
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 11px;
  cursor: pointer;
  text-align: center;
}

.plan-option.selected {
  border-color: var(--blue-600);
  background: #f0f9ff;
}

.toast-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2500;
  padding: 12px 18px;
  border-radius: 14px;
  background: #071936;
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 32px rgba(4, 16, 34, 0.32);
  font-size: 13px;
  font-weight: 600;
  display: none;
}

.toast-banner.show {
  display: block;
}

/* Responsive Breakpoints */
@media (max-width: 1180px) {
  .ingest-grid,
  .twin-3d-layout,
  .deliverables-layout {
    grid-template-columns: 1fr;
  }
  .kpi-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .floating-dock-left {
    width: 265px;
  }
  .floating-dock-right {
    display: none;
  }
}

@media (max-width: 760px) {
  .preset-strip,
  .live-cards-grid,
  .kpi-grid-4,
  .plan-selector {
    grid-template-columns: 1fr;
  }
  .coord-pair-row {
    grid-template-columns: 1fr;
  }
  .spatial-stage {
    height: 680px;
  }
  .floating-dock-left {
    position: static;
    width: 100%;
    height: auto;
    border-radius: 0;
  }
  #map2d {
    height: 400px;
  }
  .nav-steps {
    width: 100%;
    overflow-x: auto;
  }
}
