﻿@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600&display=swap");

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

:root {
  --bg: #060c1a;
  --bg-2: #0a142a;
  --card: rgba(15, 22, 43, 0.82);
  --panel: rgba(13, 20, 36, 0.9);
  --stroke: rgba(255, 255, 255, 0.08);
  --text-main: #e9eef8;
  --text-muted: #9eb4d4;
  --accent-green: #7ef29a;
  --accent-blue: #5fd4ff;
  --accent-amber: #f6c76d;
  --glow: 0 24px 64px rgba(95, 212, 255, 0.18);
}

html, body {
  background-color: #050914;
}

body {
  font-family: "Space Grotesk", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #050914;
  background-image:
    -webkit-radial-gradient(circle at 10% 10%, rgba(95, 212, 255, 0.12), transparent 30%),
    -webkit-radial-gradient(circle at 90% 20%, rgba(126, 242, 154, 0.14), transparent 30%),
    -webkit-linear-gradient(310deg, #050914 0%, #081126 45%, #050914 100%);
  background-image:
    radial-gradient(circle at 10% 10%, rgba(95, 212, 255, 0.12), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(126, 242, 154, 0.14), transparent 30%),
    linear-gradient(140deg, #050914 0%, #081126 45%, #050914 100%);
  color: #e9eef8;
  min-height: 100vh;
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  -webkit-filter: blur(80px);
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
}

body::before {
  width: 340px;
  height: 340px;
  background: -webkit-radial-gradient(circle, rgba(95, 212, 255, 0.38), transparent 60%);
  background: radial-gradient(circle, rgba(95, 212, 255, 0.38), transparent 60%);
  top: -60px;
  left: -40px;
}

body::after {
  width: 420px;
  height: 420px;
  background: -webkit-radial-gradient(circle, rgba(126, 242, 154, 0.32), transparent 65%);
  background: radial-gradient(circle, rgba(126, 242, 154, 0.32), transparent 65%);
  bottom: -120px;
  right: -80px;
}

a {
  color: inherit;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.75rem 1.4rem 4.2rem;
}

/* ---------------- TOPBAR ---------------- */

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  background: linear-gradient(120deg, rgba(14, 22, 42, 0.92), rgba(11, 17, 34, 0.92));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  margin: 1rem auto;
  max-width: 1200px;
  box-shadow: var(--glow);
  z-index: 20;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(95, 212, 255, 0.08), rgba(126, 242, 154, 0.08));
  opacity: 0.6;
  pointer-events: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 1;
}

.logo-img {
  height: 58px;
  width: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: #060c1a;
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.brand-name {
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  z-index: 1;
}

.nav-links a {
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.86rem;
  position: relative;
  transition: color 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
  border-color: var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
  background: linear-gradient(120deg, var(--accent-green), var(--accent-blue));
  color: #04101f;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(95, 212, 255, 0.35);
}

.menu-toggle {
  display: none;
  border: 2px solid var(--accent-green);
  background: rgba(11, 20, 42, 0.95);
  color: var(--accent-green);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  z-index: 100;
}

/* ---------------- HERO ---------------- */

.hero {
  display: grid;
  gap: 2.2rem;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 2.3rem;
}

.hero-main {
  max-width: 640px;
  position: relative;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 10% -12% auto auto;
  height: 55%;
  width: 30%;
  background: radial-gradient(circle, rgba(95, 212, 255, 0.16), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-green);
  box-shadow: 0 0 14px rgba(126, 242, 154, 0.9);
}

.hero-title {
  font-size: clamp(2.5rem, 4.8vw, 3.65rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(130deg, var(--accent-green), var(--accent-blue));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(95, 212, 255, 0.25);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.05rem;
}

.btn {
  padding: 0.85rem 1.65rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease,
    filter 0.16s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(115deg, var(--accent-green), var(--accent-blue));
  color: #04101f;
  box-shadow: 0 18px 40px rgba(95, 212, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 22px 50px rgba(95, 212, 255, 0.42);
}

/* Spinner for login button */
.btn-login {
  position: relative;
  overflow: visible;
}
.btn-login .spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  border-top-color: rgba(255,255,255,0.9);
  animation: spin 0.9s linear infinite;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.btn-login.loading {
  pointer-events: none;
  opacity: 0.95;
}
.btn-login .btn-text.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--stroke);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------------- HERO MAP CARD ---------------- */

.hero-map-card {
  position: relative;
  background:
    radial-gradient(circle at 20% 10%, rgba(95, 212, 255, 0.1), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(126, 242, 154, 0.1), transparent 40%);
  border-radius: 1.2rem;
  padding: 1.25rem 1.4rem 1.05rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-map-card::before {
  content: "";
  position: absolute;
  inset: -30% 55% 25% -30%;
  background: radial-gradient(circle, rgba(95, 212, 255, 0.25), transparent 55%);
  opacity: 0.9;
}

.hero-map-card::after {
  content: "";
  position: absolute;
  inset: 55% -10% -40% 25%;
  background: radial-gradient(circle, rgba(126, 242, 154, 0.2), transparent 60%);
  opacity: 0.7;
}

.hero-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}

.hero-map-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.hero-map-value {
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-map-image {
  position: relative;
  padding: 0.9rem 1rem 0.4rem;
  z-index: 1;
}

.hero-map-preview {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 0%, rgba(95, 212, 255, 0.3), transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  min-height: 180px;
}

.hero-map-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(3, 10, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e9f2ff;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hero-map-fake {
  width: 160%;
  height: 160%;
  position: relative;
  left: -20%;
  top: -15%;
  filter: saturate(1.2);
  animation: gv-map-pan 18s linear infinite alternate;
}

/* Temas do mini-mapa */

.hero-map-preview[data-theme="agri"] .hero-map-fake {
  background:
    linear-gradient(120deg, rgba(40, 190, 120, 0.9), rgba(0, 120, 255, 0.7)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px, 22px 22px;
}

.hero-map-preview[data-theme="livestock"] .hero-map-fake {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4) 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.4) 2px, transparent 3px),
    linear-gradient(130deg, rgba(40, 170, 110, 0.9), rgba(2, 95, 155, 0.8));
}

.hero-map-preview[data-theme="mining"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(180, 110, 60, 0.9), rgba(50, 30, 20, 0.96)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
}

.hero-map-preview[data-theme="demining"] .hero-map-fake {
  background:
    repeating-linear-gradient(45deg, rgba(255, 85, 85, 0.85) 0, rgba(255, 85, 85, 0.85) 4px, transparent 4px, transparent 8px),
    radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.4) 3px, transparent 4px),
    linear-gradient(135deg, rgba(10, 10, 18, 1), rgba(80, 0, 10, 0.95));
}

.hero-map-preview[data-theme="construction"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(180, 180, 190, 0.95), rgba(70, 80, 95, 1)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 1px, transparent 1px);
  background-size: 100% 100%, 26px 26px;
}

.hero-map-preview[data-theme="infra"] .hero-map-fake {
  background:
    linear-gradient(110deg, rgba(11, 98, 254, 0.92), rgba(8, 150, 190, 0.9)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0.3) 2px, transparent 2px, transparent 8px);
  background-size: 100% 100%, 100% 100%;
}

.hero-map-preview[data-theme="agri-ndvi"] .hero-map-fake {
  background:
    linear-gradient(120deg, rgba(40, 190, 120, 0.9), rgba(0, 120, 255, 0.7)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px, 22px 22px;
}

.hero-map-preview[data-theme="agri-solo"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(139, 92, 52, 0.9), rgba(62, 38, 19, 0.9)),
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.25) 2px, transparent 3px);
  background-size: 100% 100%, 18px 18px;
}

.hero-map-preview[data-theme="agri-aplicacao"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(255, 200, 87, 0.95), rgba(255, 140, 92, 0.9)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 100% 100%, 26px 26px;
}

.hero-map-preview[data-theme="livestock-pasto"] .hero-map-fake {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4) 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.4) 2px, transparent 3px),
    linear-gradient(130deg, rgba(40, 170, 110, 0.9), rgba(2, 95, 155, 0.8));
}

.hero-map-preview[data-theme="livestock-agua"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(0, 180, 210, 0.9), rgba(13, 60, 120, 0.95)),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35), transparent 55%);
  background-size: 100% 100%, 120% 120%;
}

.hero-map-preview[data-theme="livestock-rebanho"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(240, 120, 67, 0.9), rgba(120, 30, 12, 0.95)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25) 3px, transparent 4px),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.25) 3px, transparent 4px);
}

.hero-map-preview[data-theme="mining-volumes"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(180, 110, 60, 0.9), rgba(50, 30, 20, 0.96)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
}

.hero-map-preview[data-theme="mining-seguranca"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(255, 94, 91, 0.95), rgba(110, 21, 20, 0.95)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 0, rgba(255, 255, 255, 0.15) 2px, transparent 2px, transparent 6px);
}

.hero-map-preview[data-theme="mining-ambiente"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(80, 130, 100, 0.95), rgba(25, 60, 45, 0.95)),
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.15) 2px, transparent 3px);
  background-size: 100% 100%, 18px 18px;
}

.hero-map-preview[data-theme="demining-risco"] .hero-map-fake {
  background:
    repeating-linear-gradient(45deg, rgba(255, 85, 85, 0.85) 0, rgba(255, 85, 85, 0.85) 4px, transparent 4px, transparent 8px),
    radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.4) 3px, transparent 4px),
    linear-gradient(135deg, rgba(10, 10, 18, 1), rgba(80, 0, 10, 0.95));
}

.hero-map-preview[data-theme="demining-progresso"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(60, 170, 120, 0.9), rgba(20, 80, 60, 0.95)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px;
}

.hero-map-preview[data-theme="demining-acesso"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(255, 187, 92, 0.95), rgba(140, 65, 12, 0.95)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0, rgba(0, 0, 0, 0.25) 4px, transparent 4px, transparent 10px);
  background-size: 100% 100%, 12px 12px;
}

.hero-map-preview[data-theme="construction-avanco"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(180, 180, 190, 0.95), rgba(70, 80, 95, 1)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 1px, transparent 1px);
  background-size: 100% 100%, 26px 26px;
}

.hero-map-preview[data-theme="construction-seguranca"] .hero-map-fake {
  background:
    repeating-linear-gradient(45deg, rgba(255, 200, 0, 0.9), rgba(255, 200, 0, 0.9) 8px, transparent 8px, transparent 16px),
    linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(10, 10, 20, 0.95));
}

.hero-map-preview[data-theme="construction-qualidade"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(120, 200, 255, 0.9), rgba(15, 40, 90, 0.95)),
    radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.3) 3px, transparent 4px);
  background-size: 100% 100%, 22px 22px;
}

.hero-map-preview[data-theme="infra-pavimento"] .hero-map-fake {
  background:
    linear-gradient(110deg, rgba(11, 98, 254, 0.92), rgba(8, 150, 190, 0.9)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0.3) 2px, transparent 2px, transparent 8px);
  background-size: 100% 100%, 100% 100%;
}

.hero-map-preview[data-theme="infra-pontes"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(150, 120, 255, 0.9), rgba(50, 30, 120, 0.95)),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35) 3px, transparent 4px);
  background-size: 100% 100%, 24px 24px;
}

.hero-map-preview[data-theme="infra-drenagem"] .hero-map-fake {
  background:
    linear-gradient(135deg, rgba(0, 180, 200, 0.95), rgba(0, 90, 130, 0.95)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 100% 100%, 18px 18px;
}

@keyframes gv-map-pan {
  0%   { transform: translate3d(0, 0, 0) scale(1.02); }
  50%  { transform: translate3d(-6%, 4%, 0) scale(1.05); }
  100% { transform: translate3d(4%, -4%, 0) scale(1.03); }
}

/* Tabs */

.hero-map-footer {
  padding: 0.6rem 0.9rem 1rem;
  position: relative;
  z-index: 2;
}

.map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}



.map-tab {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.75rem;
  line-height: 1.2;
  color: rgba(220, 228, 244, 0.7);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.map-tab:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
  color: #e9f2ff;
}

.map-tab.active {
  background: #0f62fe;
  border-color: transparent;
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(15, 98, 254, 0.5),
    0 10px 20px rgba(0, 0, 0, 0.35);
}

.hero-map-value {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.map-changing {
  opacity: 0;
  transform: translateY(4px);
}

/* ---------------- SECTIONS GENÉRICAS ---------------- */

.section {
  padding: 3.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(95, 212, 255, 0.05), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(126, 242, 154, 0.05), transparent 40%);
  pointer-events: none;
  opacity: 0.9;
}

.section-header {
  margin-bottom: 1.7rem;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* ---------------- CARDS / GRIDS ---------------- */

.feature-grid {
  display: grid;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  padding: 1.3rem 1.25rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: -30% 50% 45% -20%;
  background: radial-gradient(circle, rgba(95, 212, 255, 0.09), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(130deg, rgba(14, 22, 42, 0.95), rgba(9, 16, 32, 0.92));
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  margin-bottom: 0.55rem;
  box-shadow: 0 12px 24px rgba(95, 212, 255, 0.3);
}

.feature-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.feature-tag {
  font-size: 0.78rem;
  color: var(--accent-green);
}

/* SECTORES */

.sectors-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sector-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: #e4e9f5;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.sector-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.sector-icon {
  font-size: 2rem;
}

.sector-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.sector-card p {
  color: rgba(220, 228, 244, 0.7);
  font-size: 0.95rem;
}

.sector-arrow {
  margin-top: auto;
  font-size: 0.85rem;
  color: #7cd4ff;
  transition: 0.2s;
}

.sector-card:hover .sector-arrow {
  transform: translateX(4px);
}

/* ---------------- CTA / FORM ---------------- */

.cta-inner {
  border-radius: 1.3rem;
  border: 1px solid var(--stroke);
  padding: 1.95rem 1.65rem;
  background: linear-gradient(135deg, rgba(95, 212, 255, 0.08), rgba(8, 16, 30, 0.98));
  display: grid;
  gap: 1.55rem;
  align-items: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
}

.cta-title {
  font-size: 1.32rem;
  margin-bottom: 0.35rem;
}

.cta-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cta-form {
  display: grid;
  gap: 0.75rem;
  max-width: 380px;
}

.form-row {
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
}

label {
  color: var(--text-muted);
}

input,
textarea {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.85rem;
  border: 1px solid var(--stroke);
  padding: 0.7rem 0.85rem;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(95, 212, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(95, 212, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.form-success {
  display: none;
  font-size: 0.82rem;
  color: var(--accent-green);
}

/* ---------------- VÍDEOS ---------------- */

.video-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.video-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.2rem;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: 0.25s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
}

.video-thumb-container {
  position: relative;
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #050814;
}

/* camada animada que simula o vídeo */
.video-fake-layer {
  position: absolute;
  inset: 0;
  animation: gv-video-pan 16s linear infinite alternate;
  filter: saturate(1.1);
}

/* Ícone de Play */
.video-play-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  pointer-events: none;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Label textual dentro do “player” */
.video-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(3, 10, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  color: #e9f2ff;
  animation: gv-label-pulse 3.5s ease-in-out infinite;
}

/* Animação base (pan suave) */
@keyframes gv-video-pan {
  0%   { transform: translate3d(0, 0, 0) scale(1.02); }
  50%  { transform: translate3d(-6%, 4%, 0) scale(1.05); }
  100% { transform: translate3d(4%, -4%, 0) scale(1.03); }
}

/* Pequeno “respirar” na label */
@keyframes gv-label-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.92; }
  50%      { transform: translateY(-2px); opacity: 1; }
}

/* Estilos específicos de cada vídeo */

.video-thumb-agri .video-fake-layer {
  background:
    linear-gradient(120deg, rgba(40, 190, 120, 0.9), rgba(0, 120, 255, 0.7)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px, 22px 22px;
}

.video-thumb-mining .video-fake-layer {
  background:
    linear-gradient(135deg, rgba(180, 110, 60, 0.95), rgba(50, 30, 20, 0.98)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
}

.video-thumb-construction .video-fake-layer {
  background:
    linear-gradient(120deg, rgba(190, 190, 210, 0.95), rgba(70, 80, 95, 1)),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.18) 0, rgba(0, 0, 0, 0.18) 4px, transparent 4px, transparent 8px);
  background-size: 100% 100%, 32px 32px;
}

.video-title {
  margin-top: 0.7rem;
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---------------- MODAL DE VÍDEO ---------------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.95));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.video-modal-dialog {
  position: relative;
  max-width: 960px;
  width: 92%;
  aspect-ratio: 16 / 9;
  z-index: 1;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  animation: videoModalPop 0.25s ease forwards;
}

@keyframes videoModalPop {
  from {
    transform: scale(0.92);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.video-modal-inner,
.video-modal-content {
  width: 100%;
  height: 100%;
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Botão de fechar */

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.07);
}

/* ---------------- ADMIN / TABELAS ---------------- */

.projects-header-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.projects-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  flex: 1;
}

.summary-card {
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(circle at 0% 0%, rgba(95, 212, 255, 0.18), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(126, 242, 154, 0.12), transparent 60%),
    rgba(7, 12, 26, 0.95);
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.summary-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.summary-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.summary-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.projects-controls {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
  min-width: 190px;
}

.projects-controls label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

#projects-filter {
  background: rgba(15, 22, 43, 0.92);
  border-radius: 999px;
  border: 1px solid var(--stroke);
  padding: 0.45rem 0.9rem;
  color: var(--text-main);
  font-size: 0.85rem;
}

/* Tabela */

.projects-table-container {
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: rgba(8, 13, 27, 0.96);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.projects-table thead {
  background: rgba(255, 255, 255, 0.03);
}

.projects-table th,
.projects-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-align: left;
}

.projects-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.projects-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* TAGS */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.tag-agri .tag-dot { background: #7ef29a; }
.tag-pec .tag-dot  { background: #f6c76d; }
.tag-min .tag-dot  { background: #5fd4ff; }
.tag-constr .tag-dot { background: #f38ba8; }
.tag-infra .tag-dot  { background: #b4befe; }
.tag-dem .tag-dot    { background: #fab387; }
.tag-other .tag-dot  { background: #cba6f7; }

/* ---------------- FOOTER ---------------- */

.footer {
  padding: 1.9rem 1.6rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ================================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================================
   Standard breakpoints used throughout this stylesheet:
   
   Desktop:  min-width: 769px   (multi-column layouts, expanded navigation)
   Tablet:   max-width: 1024px  (reduced columns, stacked grids)
   Mobile:   max-width: 768px   (single column, hamburger menu, simplified UI)
   
   Always use these exact values for consistency.
   ================================================================================ */

@media (min-width: 769px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.08fr);
  }

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

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

@media (max-width: 768px) {
  .topbar {
    position: relative;
    margin: 1rem 1rem 0.5rem;
    flex-wrap: wrap;
    z-index: 9000;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: #0b1428;
    border-radius: 12px;
    border: 1px solid rgba(95, 212, 255, 0.3);
    padding: 0.5rem 0;
    display: none;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    min-width: 200px;
  }

  .nav-links a {
    padding: 0.9rem 1.4rem;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    color: #e9eef8;
    text-decoration: none;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(95, 212, 255, 0.2);
    color: #5fd4ff;
  }

  .nav-links.show {
    display: flex;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   MINI-PAINEL POR SECTOR (NDVI / SOLO / APLICAÇÃO, ETC.)
   Reutilizado em todas as páginas de sector.
   ============================== */

.sector-mini {
  margin-top: 0.7rem;
  position: relative;
  z-index: 1;
}

.sector-mini-metric {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.9rem;
  border-radius: 999px;
  background: rgba(3, 10, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.sector-mini-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sector-mini-tab {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 9, 22, 0.94);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.24rem 0.9rem;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.sector-mini-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  transform: translateY(-1px);
}

.sector-mini-tab.is-active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  color: #04101f;
  border-color: rgba(95, 212, 255, 0.8);
  box-shadow:
    0 0 12px rgba(95, 212, 255, 0.35),
    0 12px 30px rgba(0, 0, 0, 0.65);
}

/* === Micro animações premium para o mini-mapa e mini painéis === */

.hero-map-card {
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
  transform-origin: center;
}

.hero-map-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  border-color: rgba(126, 242, 154, 0.4);
}

.hero-map-preview {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}

.hero-map-card:hover .hero-map-preview {
  transform: scale(1.02);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.85);
  border-color: rgba(95, 212, 255, 0.5);
}

/* Animação rápida quando muda de tab / métrica */
.hero-map-preview.map-switching {
  animation: gv-map-switch 0.32s ease-out;
}

@keyframes gv-map-switch {
  0% {
    transform: scale(0.98) translateY(2px);
    opacity: 0.75;
  }
  60% {
    transform: scale(1.02) translateY(-1px);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mini-painel NDVI / Solo / Aplicação por sector */

.sector-mini-panel {
  margin-top: 0.9rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 0 0, rgba(126, 242, 154, 0.18), transparent 55%),
    rgba(5, 14, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sector-mini-metric {
  font-size: 0.78rem;
  color: var(--text-main);
  font-weight: 500;
  padding-inline: 0.35rem;
  white-space: nowrap;
}

.sector-mini-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sector-mini-tab {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.24rem 0.7rem;
  font-size: 0.74rem;
  background: rgba(7, 14, 32, 0.95);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.18s ease;
}

.sector-mini-tab:hover {
  border-color: rgba(126, 242, 154, 0.7);
  color: var(--text-main);
  box-shadow: 0 0 0 1px rgba(126, 242, 154, 0.4);
  transform: translateY(-1px);
}

.sector-mini-tab.is-active {
  background: linear-gradient(135deg, #1fb0ff, #7ef29a);
  color: #020617;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

/* ===========================================================
   🔥 MINI-MAPAS REAIS PARA TODAS AS PÁGINAS (GAIA / GEOVISION)
   =========================================================== */

/* ——————————————— AGRICULTURA ——————————————— */
.hero-map-preview[data-theme="agri-ndvi"] .hero-map-fake {
  background-image: url("../img/Dashboard de agro.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map-preview[data-theme="agri-solo"] .hero-map-fake {
  background-image: url("../img/Solo npk 2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map-preview[data-theme="agri-aplicacao"] .hero-map-fake {
  background-image: url("../img/drone spraying application.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ——————————————— PECUÁRIA ——————————————— */
.hero-map-preview[data-theme="livestock-pasto"] .hero-map-fake {
  background-image: url("../img/Pasto NDVI.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map-preview[data-theme="livestock-agua"] .hero-map-fake {
  background-image: url("../img/Mapeamento Inicial do Rebanho.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map-preview[data-theme="livestock-rebanho"] .hero-map-fake {
  background-image: url("../img/Termico do gado.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ——————————————— MINERAÇÃO ——————————————— */
.hero-map-preview[data-theme="mining-volumes"] .hero-map-fake {
  background-image: url("../img/MINERAÇÃO.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map-preview[data-theme="mining-seguranca"] .hero-map-fake {
  background-image: url("../img/MINERAÇÃO2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map-preview[data-theme="mining-ambiente"] .hero-map-fake {
  background-image: url("../img/PHOTOGRAMMETRY 3D MESH MAP.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ——————————————— DESMINAGEM ——————————————— */
.hero-map-preview[data-theme="demining-progresso"] .hero-map-fake {
  background-image: url("../img/DESMINAGEM (DASHBOARD COMPLETO.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map-preview[data-theme="demining-acesso"] .hero-map-fake {
  background-image: url("../img/DESMINAGEM (CORREDOR SEGURO _ SAFE CORRIDOR.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map-preview[data-theme="demining-risco"] .hero-map-fake {
  background-image: url("../img/DESMINAGEM (Mapa Técnico + Heatmap de Risco.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ——————————————— CONSTRUÇÃO ——————————————— */
.hero-map-preview[data-theme="construction-avanco"] .hero-map-fake {
  background-image: url("../img/Progresso de Obra.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map-preview[data-theme="construction-seguranca"] .hero-map-fake {
  background-image: url("../img/Deteção de Fissuras _ Geotecnia.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map-preview[data-theme="construction-qualidade"] .hero-map-fake {
  background-image: url("../img/Dashboard Técnico de Obra.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ——————————————— INFRAESTRUTURAS ——————————————— */
.hero-map-preview[data-theme="infra-pavimento"] .hero-map-fake {
  background-image: url("../img/Mapa LIDAR _ DSM _ DTM com Drone Industrial.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map-preview[data-theme="infra-pontes"] .hero-map-fake {
  background-image: url("../img/INSPEÇÃO DE INFRAESTRUTURA _ PONTE2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-map-preview[data-theme="infra-drenagem"] .hero-map-fake {
  background-image: url("../img/barragem IoT + Sensores Estruturais.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===========================================================
   🎬 THUMBS DOS VÍDEOS (INDEX)
   =========================================================== */

.video-thumb-agri .video-fake-layer {
  background:
    linear-gradient(120deg, rgba(40, 190, 120, 0.9), rgba(0, 120, 255, 0.7)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px, 22px 22px;
}

.video-thumb-mining .video-fake-layer {
  background:
    linear-gradient(135deg, rgba(180, 110, 60, 0.95), rgba(50, 30, 20, 0.98)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
}

.video-thumb-construction .video-fake-layer {
  background:
    linear-gradient(120deg, rgba(190, 190, 210, 0.95), rgba(70, 80, 95, 1)),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.18) 0, rgba(0, 0, 0, 0.18) 4px, transparent 4px, transparent 8px);
  background-size: 100% 100%, 32px 32px;
}

/* =========================================================
   🏠 HOMEPAGE – MINI-MAPA MOSTRA APENAS DASHBOARDS
   ========================================================= */

.hero-map-card .hero-map-preview[data-theme="agri"] {
  background: url("../img/Dashboard de agro.png") center/cover no-repeat;
}

.hero-map-card .hero-map-preview[data-theme="livestock"] {
  background: url("../img/Mapeamento Inicial do Rebanho.png") center/cover no-repeat;
}

.hero-map-card .hero-map-preview[data-theme="mining"] {
  background: url("../img/MINERAÇÃO (Dashboard Técnico Completo.png")
              center/cover no-repeat;
}

.hero-map-card .hero-map-preview[data-theme="demining"] {
  background: url("../img/DESMINAGEM (DASHBOARD COMPLETO.png")
              center/cover no-repeat;
}

.hero-map-card .hero-map-preview[data-theme="construction"] {
  background: url("../img/Dashboard Técnico de Obra.png") center/cover no-repeat;
}

.hero-map-card .hero-map-preview[data-theme="infra"] {
  background: url("../img/BARRAGENS (DASHBOARD TÉCNICO REALISTA + UI SaaS).png")
              center/cover no-repeat;
}


/* =========================================
   🌐 MINI-MAPAS DAS PÁGINAS INTERNAS COM FOTO REAL
   Aplicado diretamente no .hero-map-preview
   ========================================= */

/* AGRICULTURA */
.hero-map-preview[data-theme="agri-ndvi"] {
  background: url("../img/Dashboard de agro.png") center/cover no-repeat;
}

.hero-map-preview[data-theme="agri-solo"] {
  background: url("../img/Solo npk 2.png") center/cover no-repeat;
}

.hero-map-preview[data-theme="agri-aplicacao"] {
  background: url("../img/drone spraying application.png") center/cover no-repeat;
}

/* PECUÁRIA */
.hero-map-preview[data-theme="livestock-pasto"] {
  background: url("../img/Pasto NDVI.png") center/cover no-repeat;
}

.hero-map-preview[data-theme="livestock-agua"] {
  background: url("../img/Mapeamento Inicial do Rebanho.png") center/cover no-repeat;
}

.hero-map-preview[data-theme="livestock-rebanho"] {
  background: url("../img/Termico do gado.png") center/cover no-repeat;
}

/* MINERAÇÃO */
.hero-map-preview[data-theme="mining-volumes"] {
  background: url("../img/MINERAÇÃO.png") center/cover no-repeat;
}

.hero-map-preview[data-theme="mining-seguranca"] {
  background: url("../img/MINERAÇÃO2.png") center/cover no-repeat;
}

.hero-map-preview[data-theme="mining-ambiente"] {
  background: url("../img/PHOTOGRAMMETRY 3D MESH MAP.png") center/cover no-repeat;
}

/* DESMINAGEM */
.hero-map-preview[data-theme="demining-progresso"] {
  background: url("../img/DESMINAGEM (DASHBOARD COMPLETO.png") center/cover no-repeat;
}

.hero-map-preview[data-theme="demining-acesso"] {
  background: url("../img/DESMINAGEM (CORREDOR SEGURO _ SAFE CORRIDOR.png")
              center/cover no-repeat;
}

.hero-map-preview[data-theme="demining-risco"] {
  background: url("../img/DESMINAGEM (Mapa Técnico + Heatmap de Risco.png")
              center/cover no-repeat;
}

/* CONSTRUÇÃO */
.hero-map-preview[data-theme="construction-avanco"] {
  background: url("../img/Progresso de Obra.png") center/cover no-repeat;
}

.hero-map-preview[data-theme="construction-seguranca"] {
  background: url("../img/Deteção de Fissuras _ Geotecnia.png") center/cover no-repeat;
}

.hero-map-preview[data-theme="construction-qualidade"] {
  background: url("../img/Dashboard Técnico de Obra.png") center/cover no-repeat;
}

/* INFRAESTRUTURAS */
.hero-map-preview[data-theme="infra-pavimento"] {
  background: url("../img/Mapa LIDAR _ DSM _ DTM com Drone Industrial.png")
              center/cover no-repeat;
}

.hero-map-preview[data-theme="infra-pontes"] {
  background: url("../img/INSPEÇÃO DE INFRAESTRUTURA _ PONTE2.png")
              center/cover no-repeat;
}

.hero-map-preview[data-theme="infra-drenagem"] {
  background: url("../img/barragem IoT + Sensores Estruturais.png")
              center/cover no-repeat;
}

/* ÍCONES NOS CARDS DO PAINEL */

.stat-card {
  position: relative;
}

.stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.stat-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-green);
  stroke-width: 1.6;
  fill: none;
}

/* opções de cor ligeiramente diferentes por tipo, se quiseres variar */
.stat-icon-cattle svg {
  stroke: var(--accent-amber);
}

.stat-icon-chemicals svg,
.stat-icon-water svg {
  stroke: var(--accent-blue);
}

/* ===================== APP SHELL (ADMIN & DASHBOARD) ===================== */

.app-body {
  background: radial-gradient(circle at top left, #0f172a 0, #020617 45%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
}

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

.app-sidebar {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 1));
  border-right: 1px solid var(--border);
  padding: 1.4rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.app-logo-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.app-logo-small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: #020617;
}

.app-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.app-logo-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-logo-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.app-menu {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.86rem;
}

.app-menu a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border-radius: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-menu a:hover {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
}

.app-menu a.active {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.app-sidebar-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-logout {
  padding-left: 0;
}

.app-main {
  padding: 1.7rem 1.9rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.4rem;
}

.app-title {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.app-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 540px;
}

.app-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.app-pill-admin {
  border-color: rgba(248, 250, 252, 0.7);
}

.app-user-email {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--text-main);
}

.app-section {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.95);
  padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.app-section + .app-section {
  margin-top: 0.5rem;
}

.app-section-title {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.app-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Ajuste dos cards no dashboard/admin */
.app-section .stats-grid {
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .app-main {
    padding: 1.2rem 1.2rem 2rem;
  }
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .app-header-meta {
    align-items: flex-start;
  }
}

/* LOGIN / LOJA FINO AJUSTE (usa classes já existentes) */

.login-page {
  padding-top: 2.4rem;
}

.login-status {
  display: none;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.login-status-error {
  color: #f97373;
}

.login-status-success {
  color: var(--accent-green);
}

.store-page .hero {
  margin-top: 2rem;
}

.store-hero-card {
  max-width: 380px;
}

.store-page .plans-grid {
  margin-top: 1.2rem;
}

/* ===================== LOJA / COMÉRCIO ===================== */

.store-page .hero {
  margin-top: 2rem;
}

.store-hero-card {
  max-width: 380px;
}

/* Filtros comerciais */

.store-filters {
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.96);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
}

.store-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.store-filters-row-bottom {
  align-items: center;
}

.store-filter-group {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.store-filter-group label {
  color: var(--text-muted);
}

.store-filter-group select {
  background: rgba(15, 23, 42, 0.97);
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.5rem 0.8rem;
  color: var(--text-main);
  font-size: 0.86rem;
  outline: none;
}

.store-filter-group select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.store-filter-btn {
  padding-inline: 1.2rem;
}

/* Simulador + Carrinho */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.2rem;
  margin-top: 0.6rem;
}

.cart-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.96);
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  font-size: 0.9rem;
}

.cart-title {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.cart-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.cart-form .form-row label {
  color: var(--text-muted);
}

.cart-form select,
.cart-form input,
.cart-form textarea {
  width: 100%;
}

.cart-btn {
  margin-top: 0.4rem;
}

.cart-summary {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 1));
}

.cart-items {
  margin-top: 0.4rem;
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.6rem 0.5rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.cart-item-total {
  border-style: dashed;
  background: rgba(15, 23, 42, 0.98);
}

.cart-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cart-item-title {
  font-size: 0.9rem;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-next {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 0.6rem;
}

/* FAQ Loja */

.faq-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.6rem;
}

.faq-item {
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
}

.faq-item h3 {
  font-size: 0.96rem;
  margin-bottom: 0.3rem;
}

.faq-item p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .store-filters-row {
    flex-direction: column;
  }
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-remove {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 999px;
}

.cart-remove:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #f97373;
}

/* ===================== RODAPÉ LOJA / MÉTODOS DE PAGAMENTO ===================== */

.footer-main {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand-block {
  max-width: 420px;
}

.footer-brand-line {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.35rem;
}

.footer-brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-brand-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-payments {
  max-width: 420px;
}

.footer-payments h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer-payments-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.payment-icon-slot {
  min-width: 110px;
  min-height: 40px;
  border-radius: 0.7rem;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.25rem 0.5rem;
}

/* Quando tiveres imagens dentro do slot */
.payment-icon-slot img {
  max-height: 24px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ====== LOJA / PAGAMENTOS ====== */

.store-hero {
  align-items: stretch;
}

.store-hero-card {
  margin-top: 0.8rem;
}

.store-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.store-category-tabs .pill {
  cursor: default;
}

.store-payments .payment-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: rgba(8, 15, 34, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.payment-strip img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
}

.payment-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Pequena melhoria visual nos cards da loja */
.plan-note {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

  /* GV toast notifications */
  .gv-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
  }
  .gv-toast {
    pointer-events: auto;
    min-width: 220px;
    max-width: 360px;
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    font-size: 0.95rem;
    line-height: 1.2;
    transition: transform .18s ease, opacity .18s ease;
    transform: translateY(-6px);
    opacity: 0;
  }
  .gv-toast.gv-toast--show {
    transform: translateY(0);
    opacity: 1;
  }
  .gv-toast--success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.22);
    color: #eaffef;
  }
  .gv-toast--error {
    background: rgba(255,60,60,0.10);
    border: 1px solid rgba(255,60,60,0.22);
    color: #ffecec;
  }
  .gv-toast .toast-title {
    font-weight: 600;
    margin-bottom: 2px;
  }
  .gv-toast .toast-msg {
    opacity: 0.95;
  }

/* =========================
   Dashboard layout upgrade
   ========================= */

.dash-shell{
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 80px;
}

.dash-topbar{
  position: sticky;
  top: 10px;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 24px rgba(0,0,0,0.28);
}

@media (max-width: 768px) {
  .dash-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  
  .dash-topbar-left {
    min-width: 0;
    justify-content: center;
  }
  
  .dash-topbar-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .dash-select {
    flex: 1;
    min-width: 100px;
    max-width: 140px;
    font-size: 12px;
    height: 32px;
    padding: 0 8px;
  }
  
  .btn-primary, .btn-danger {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
  
  .dash-pill {
    font-size: 11px;
    padding: 6px 10px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.dash-topbar-left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 260px;
}

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

.dash-dot{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  box-shadow: 0 0 18px rgba(56,189,248,0.25);
}

.dash-brand h1{
  font-size: 14px;
  letter-spacing: 0.14em;
  margin: 0;
}

.dash-brand small{
  display:block;
  margin-top: 2px;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  letter-spacing: 0.02em;
}

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

.dash-select{
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
  outline: none;
}

.dash-pill{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

.btn-primary{
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #061d14;
  font-weight: 700;
}

.btn-danger{
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #fb7185, #f97316);
  color: #210608;
  font-weight: 700;
}

.section-title{
  margin: 22px 2px 10px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.16em;
  font-size: 12px;
  text-transform: uppercase;
}

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

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

.kpi-card{
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

.kpi-card .kpi-label{
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kpi-card .kpi-value{
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
}

.content-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

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

.card{
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 24px rgba(0,0,0,0.26);
}

.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-header h3{
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.badge{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
}

/* Modal (criar conta) */
.modal-backdrop{
  position: fixed;
  inset: 0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.modal{
  width: min(640px, 92vw);
  border-radius: 18px;
  background: rgba(12, 18, 32, 0.92);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 40px rgba(0,0,0,0.45);
  padding: 16px;
}

.modal h2{
  margin: 6px 6px 12px;
  font-size: 18px;
}

.modal .row{
  display:flex;
  gap: 10px;
}

.modal .row > *{
  flex:1;
}

.modal input, .modal select{
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  outline: none;
}

.modal .actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* Chat widget */
.chat-toggle{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #062016;
  box-shadow: 0 8px 26px rgba(0,0,0,0.4);
  cursor: pointer;
  z-index: 60;
}
.chat-panel{
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: min(360px, 90vw);
  background: rgba(10, 16, 28, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  z-index: 60;
}
.chat-panel header{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  color: #e5e7eb;
}
.chat-panel main{
  padding: 12px;
  max-height: 260px;
  overflow-y: auto;
  display:flex;
  flex-direction:column;
  gap:8px;
  color: #e5e7eb;
  font-size: 14px;
}
.chat-msg{
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
}
.chat-msg.me{
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.25);
}
.chat-panel footer{
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display:flex;
  gap: 8px;
}
.chat-input{
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: #e5e7eb;
}
.chat-send{
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #062016;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}
