/*
 * Nebula Glass — Design System adaptado para Bootstrap 5
 * Tema dark-first com glassmorphism
 */

/* ============================= VARIÁVEIS ============================= */
:root {
  --bg: #0A0712;
  --surface: #161122;
  --border: #3B1E6D;
  --primary: #A855F7;
  --primary-dark: #7C3AED;
  --accent: #F472B6;
  --accent-light: #C084FC;
  --text: #E2E8F0;
  --text-2: #94A3B8;
  --text-3: #64748B;
  --success: #10B981;
  --success-light: #6EE7B7;
  --warning: #F59E0B;
  --danger: #EF4444;
  --danger-light: #FCA5A5;
  --info: #38BDF8;

  /* Override Bootstrap dark theme */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-primary: var(--primary);
  --bs-link-color: var(--accent-light);
  --bs-link-hover-color: var(--primary);
  --bs-border-color: var(--border);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Fundo com nebulosa sutil */
body {
  background-image:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(168,85,247,0.18), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(244,114,182,0.10), transparent 60%),
    radial-gradient(ellipse 800px 500px at 50% 110%, rgba(124,58,237,0.12), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ============================= GLASS CARD ============================= */
.glass-card {
  background: rgba(22,17,34,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(168,85,247,0.16);
  border-radius: 16px;
  animation: fadeInUp 260ms cubic-bezier(0.4,0,0.2,1) both;
}
.glass-card-strong {
  background: rgba(22,17,34,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(168,85,247,0.22);
  border-radius: 16px;
}

/* ============================= SIDEBAR ============================= */
.nebula-sidebar {
  width: 72px;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 0.25rem;
  background: rgba(22,17,34,0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(168,85,247,0.12);
  overflow-y: auto;
}
.nebula-sidebar .sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168,85,247,0.35), rgba(124,58,237,0.25));
  border: 1px solid rgba(168,85,247,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px -4px rgba(168,85,247,0.5);
}
.nebula-sidebar .sidebar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem;
  border-radius: 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 500;
  transition: all 150ms ease;
  width: 58px;
  text-align: center;
}
.nebula-sidebar .sidebar-link:hover {
  background: rgba(168,85,247,0.12);
  color: var(--accent-light);
}
.nebula-sidebar .sidebar-link.active {
  background: rgba(168,85,247,0.18);
  color: var(--primary);
}
.nebula-sidebar .sidebar-link svg {
  width: 22px;
  height: 22px;
}
.nebula-sidebar .sidebar-divider {
  width: 32px;
  height: 1px;
  background: rgba(59,30,109,0.4);
  margin: 0.5rem 0;
}

/* Área de conteúdo com sidebar */
.nebula-content {
  margin-left: 72px;
  min-height: 100vh;
}

/* ============================= NAVBAR TOP ============================= */
.nebula-navbar {
  background: rgba(10,7,18,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59,30,109,0.30);
}

/* ============================= INPUTS ============================= */
.nebula-input,
.nebula-select,
.nebula-textarea {
  background: rgba(22,17,34,0.60);
  border: 1px solid rgba(59,30,109,0.60);
  border-radius: 10px;
  color: var(--text);
  padding: 0.625rem 0.875rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  transition: border-color 150ms, box-shadow 150ms;
  min-height: 44px;
  width: 100%;
}
.nebula-input::placeholder { color: var(--text-3); }
.nebula-input:focus,
.nebula-select:focus,
.nebula-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.18);
}
.nebula-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}

/* ============================= BOTÕES ============================= */
.btn-nebula-primary {
  background: linear-gradient(90deg, #A855F7, #7C3AED);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  border: none;
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.10);
  transition: all 160ms cubic-bezier(0.4,0,0.2,1);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-nebula-primary:hover {
  box-shadow: 0 8px 22px -6px #A855F7;
  transform: scale(1.02);
  color: #fff;
}
.btn-nebula-primary:active { transform: scale(0.99); }

.btn-nebula-secondary {
  background: rgba(168,85,247,0.10);
  border: 1px solid rgba(59,30,109,0.9);
  color: #C084FC;
  font-weight: 500;
  padding: 0.65rem 1.1rem;
  border-radius: 14px;
  transition: all 150ms;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-nebula-secondary:hover {
  background: rgba(168,85,247,0.20);
  color: #fff;
}

.btn-nebula-danger {
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.30);
  color: #FCA5A5;
  font-weight: 500;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  transition: all 150ms;
}
.btn-nebula-danger:hover { background: rgba(239,68,68,0.20); }

.btn-nebula-ghost {
  color: #94A3B8;
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  transition: all 150ms;
}
.btn-nebula-ghost:hover {
  background: rgba(168,85,247,0.08);
  color: #fff;
}

/* ============================= BADGES / PILLS ============================= */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill-purple  { background: rgba(168,85,247,0.15); color: #C084FC; border-color: rgba(168,85,247,0.30); }
.pill-amber   { background: rgba(245,158,11,0.15); color: #FCD34D; border-color: rgba(245,158,11,0.30); }
.pill-emerald { background: rgba(16,185,129,0.15); color: #6EE7B7; border-color: rgba(16,185,129,0.30); }
.pill-rose    { background: rgba(244,114,182,0.15); color: #F9A8D4; border-color: rgba(244,114,182,0.30); }
.pill-slate   { background: rgba(100,116,139,0.15); color: #CBD5E1; border-color: rgba(100,116,139,0.30); }
.pill-danger  { background: rgba(239,68,68,0.15);   color: #FCA5A5; border-color: rgba(239,68,68,0.30); }

/* ============================= DRAWER ============================= */
.nebula-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 480px;
  background: rgba(10,7,18,0.95);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-left: 1px solid rgba(168,85,247,0.18);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.6);
}
.nebula-drawer.open { transform: translateX(0); }

.nebula-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.60);
  backdrop-filter: blur(3px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.nebula-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================= TABELA ============================= */
.history-row {
  cursor: pointer;
  transition: background-color 160ms;
}
.history-row:hover { background: rgba(168,85,247,0.06); }

/* ============================= METRIC CARD ============================= */
.metric-card {
  position: relative;
  overflow: hidden;
  background: rgba(22,17,34,0.75);
  border: 1px solid rgba(168,85,247,0.16);
  border-radius: 16px;
  padding: 1.25rem;
  transition: transform 200ms, border-color 200ms, box-shadow 200ms;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168,85,247,0.40);
  box-shadow: 0 12px 30px -12px rgba(168,85,247,0.35);
}
.metric-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(168,85,247,0.16), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms;
}
.metric-card:hover::before { opacity: 1; }

.metric-number {
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #F5E8FF 0%, #C084FC 60%, #A855F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-number.master {
  background: linear-gradient(180deg, #FFEAB0 0%, #FCD34D 60%, #F59E0B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================= SPINNER ============================= */
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(168,85,247,0.30);
  border-top-color: #A855F7;
  border-radius: 999px;
  animation: coe-spin 700ms linear infinite;
}
@keyframes coe-spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* ============================= ANIMAÇÕES ============================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes numberPop {
  0%   { opacity: 0; transform: scale(0.6); filter: blur(6px); }
  60%  { opacity: 1; transform: scale(1.06); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
.anim-pop  { animation: numberPop 520ms cubic-bezier(0.22,1,0.36,1) both; }
.anim-fade { animation: fadeIn 300ms ease both; }

/* ============================= TOAST ============================= */
.nebula-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(22,17,34,0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(168,85,247,0.35);
  color: var(--text);
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all 220ms ease;
  font-size: 0.85rem;
}
.nebula-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ============================= SIGIL ============================= */
.sigil {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(168,85,247,0.35), rgba(124,58,237,0.25));
  border: 1px solid rgba(168,85,247,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -10px rgba(168,85,247,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ============================= SCROLLBAR ============================= */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.25); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(168,85,247,0.45); }

/* ============================= MISC ============================= */
.divider { border-top: 1px solid rgba(59,30,109,0.35); }
.subtle-ring { box-shadow: 0 0 0 1px rgba(168,85,247,0.14) inset; }
input[type="date"] { color-scheme: dark; }

/* Focus ring */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #A855F7;
  outline-offset: 2px;
}

/* Avatar */
.avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: linear-gradient(135deg, rgba(168,85,247,0.30), rgba(124,58,237,0.30));
  border: 1px solid rgba(168,85,247,0.20);
  color: var(--accent-light);
}

/* ============================= RESPONSIVIDADE ============================= */
@media (max-width: 767.98px) {
  .nebula-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    width: 100%;
    height: auto;
    min-height: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 0.5rem 0;
    gap: 0;
    border-right: none;
    border-top: 1px solid rgba(168,85,247,0.12);
    z-index: 35;
  }
  .nebula-sidebar .sidebar-logo,
  .nebula-sidebar .sidebar-divider {
    display: none;
  }
  .nebula-sidebar .sidebar-link {
    width: auto;
    padding: 0.4rem 0.5rem;
    font-size: 0.55rem;
  }
  .nebula-sidebar .sidebar-link svg {
    width: 20px;
    height: 20px;
  }
  .nebula-content {
    margin-left: 0;
    padding-bottom: 70px;
  }
}

/* ============================= DASHBOARD — STAT CARDS ============================= */
.stat-card {
  position: relative;
  overflow: hidden;
  background: rgba(22,17,34,0.72);
  border: 1px solid rgba(168,85,247,0.18);
  border-radius: 18px;
  padding: 1.25rem 1.4rem 1.1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  animation: fadeInUp 320ms cubic-bezier(0.4,0,0.2,1) both;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(168,85,247,0.10);
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168,85,247,0.42);
  box-shadow: 0 16px 40px -14px rgba(168,85,247,0.30);
}
.stat-card.accent-amber::after  { background: rgba(251,191,36,0.10); }
.stat-card.accent-rose::after   { background: rgba(244,114,182,0.10); }
.stat-card.accent-emerald::after { background: rgba(16,185,129,0.10); }

.stat-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168,85,247,0.15);
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}
.stat-icon.amber   { background: rgba(251,191,36,0.15); }
.stat-icon.rose    { background: rgba(244,114,182,0.15); }
.stat-icon.emerald { background: rgba(16,185,129,0.15); }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #F5E8FF 0%, #C084FC 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.stat-number.amber {
  background: linear-gradient(180deg, #FEF3C7 0%, #FBBF24 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-number.rose {
  background: linear-gradient(180deg, #FCE7F3 0%, #F472B6 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-number.emerald {
  background: linear-gradient(180deg, #D1FAE5 0%, #10B981 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-top: 0.35rem;
  line-height: 1.4;
}
.stat-sub {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.2rem;
}

/* ============================= DASHBOARD — CALCULADORA ============================= */
.calc-glass {
  background: rgba(22,17,34,0.78);
  border: 1px solid rgba(168,85,247,0.22);
  border-radius: 20px;
  padding: 1.6rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  height: 100%;
}
.calc-glass h6 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  margin-bottom: 1rem;
}

/* ============================= DASHBOARD — BENTO GRID ============================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.bento-grid .metric-card { padding: 1rem; }
.bento-grid .metric-number { font-size: 2.5rem; }
.bento-synthesis {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(124,58,237,0.08));
  border-color: rgba(168,85,247,0.28);
}
@media (max-width: 991.98px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================= DASHBOARD — CHART TABS ============================= */
.chart-tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.chart-tab {
  padding: 0.28rem 0.75rem;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(168,85,247,0.22);
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
}
.chart-tab:hover {
  background: rgba(168,85,247,0.12);
  color: var(--text);
}
.chart-tab.active {
  background: rgba(168,85,247,0.22);
  border-color: var(--primary);
  color: #fff;
}

/* ============================= DASHBOARD — MINI MAP CARDS ============================= */
.mini-map-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(168,85,247,0.10);
  transition: background 180ms, border-color 180ms;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.mini-map-card:last-child { margin-bottom: 0; }
.mini-map-card:hover {
  background: rgba(168,85,247,0.08);
  border-color: rgba(168,85,247,0.28);
}
.mini-map-meta { flex: 1; min-width: 0; }
.mini-map-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-map-date { font-size: 0.72rem; color: var(--text-3); margin-top: 0.15rem; }
.mini-map-pills {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.mini-pill {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 99px;
  background: rgba(168,85,247,0.15);
  color: #C084FC;
  letter-spacing: 0.03em;
}
.mini-pill.master { background: rgba(251,191,36,0.15); color: #FBBF24; }
.mini-map-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* ============================= DASHBOARD — LAST MAP WIDGET ============================= */
.last-map-widget {
  background: rgba(22,17,34,0.72);
  border: 1px solid rgba(168,85,247,0.18);
  border-radius: 20px;
  padding: 1.4rem;
  backdrop-filter: blur(14px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.last-map-widget h6 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  margin: 0;
}
.last-map-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.last-map-number-cell {
  text-align: center;
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.12);
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
}
.last-map-number-cell .num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #F5E8FF 0%, #C084FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.last-map-number-cell .num.master {
  background: linear-gradient(180deg, #FEF3C7 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.last-map-number-cell .lbl { font-size: 0.58rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }

/* ============================= DASHBOARD — HERO ============================= */
.dashboard-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.25rem;
  background: linear-gradient(90deg, #fff 0%, #C084FC 60%, #F472B6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-muted-sm { font-size: 0.875rem; color: var(--text-2); margin: 0; }

/* ============================= DASHBOARD — SECTION HEADER ============================= */
.section-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  margin-bottom: 0;
}

/* ============================= DASHBOARD — RESULTADO HEADER ============================= */
.result-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(168,85,247,0.12);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.result-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.result-date {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ============================= DASHBOARD — EMPTY STATE ============================= */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-3);
}
.empty-state svg { opacity: 0.3; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.85rem; margin: 0; }

/* ============================= DASHBOARD — FIELD ERROR ============================= */
.field-error { font-size: 0.75rem; color: var(--danger-light); margin-top: 0.3rem; }

/* Login/Register card centered */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}

/* ── Filtro inteligente da tabela de Mapas Pessoais ───────────────────── */
.mp-filtro-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
  max-width: 100%;
}
.mp-filtro-icon {
  position: absolute;
  left: 10px;
  color: var(--text-3);
  pointer-events: none;
}
.mp-filtro-input {
  width: 100%;
  padding: 0.4rem 2rem 0.4rem 2rem;
  background: rgba(22,17,34,0.60);
  border: 1px solid rgba(59,30,109,0.60);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  transition: border-color 150ms, box-shadow 150ms;
  min-height: 32px;
}
.mp-filtro-input::placeholder { color: var(--text-3); }
.mp-filtro-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.18);
}
.mp-filtro-input:focus ~ .mp-filtro-icon { color: var(--primary); }
.mp-filtro-clear {
  position: absolute;
  right: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 5px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: all 140ms;
  padding: 0;
}
.mp-filtro-clear:hover {
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.25);
  color: #fca5a5;
}

/* ── Harmonia Conjugal ──────────────────────────────────────────────── */

/* Pílula HC (número 1-9) */
.hc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  background: rgba(168,85,247,0.20);
  color: #C084FC;
  border: 1px solid rgba(168,85,247,0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Badge da classificação na tabela */
.hc-class-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: normal;
  line-height: 1.3;
}

/* Banner da classificação (compartilhado) */
.hc-classif-banner {
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  text-align: center;
}
.hc-classif-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.10em; opacity: 0.75; margin-bottom: 0.2rem;
}
.hc-classif-title { font-size: 1rem; font-weight: 800; }

/* Card de cada cônjuge */
.hc-spouse-card {
  background: rgba(22,17,34,0.55);
  border: 1px solid rgba(168,85,247,0.18);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.hc-spouse-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.10em; color: #C084FC; margin-bottom: 0.25rem;
}
.hc-spouse-name { font-size: 1rem; font-weight: 700; color: #fff; }
.hc-spouse-birth { font-size: 0.78rem; color: var(--text-3); margin-bottom: 0.75rem; }

.hc-stats { display: flex; gap: 0.6rem; margin-bottom: 0.85rem; }
.hc-stat {
  flex: 1;
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.15);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  text-align: center;
}
.hc-stat-label {
  display: block; font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3);
}
.hc-stat-val { display: block; font-size: 1.05rem; font-weight: 800; color: #fff; }
.hc-stat-main {
  background: rgba(168,85,247,0.18);
  border-color: rgba(168,85,247,0.45);
}
.hc-stat-val-main {
  font-size: 1.4rem;
  background: linear-gradient(135deg, #F472B6, #C084FC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hc-relacoes {
  font-size: 0.78rem; color: var(--text-2);
  background: rgba(168,85,247,0.04);
  border-left: 3px solid rgba(168,85,247,0.4);
  padding: 0.55rem 0.8rem;
  border-radius: 0 8px 8px 0;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.hc-relacoes strong { color: #fff; font-weight: 700; }

.hc-keywords {
  font-size: 0.78rem; color: #C084FC;
  font-style: italic;
  margin-bottom: 0.4rem;
}
.hc-significado {
  background: rgba(14,165,233,0.10);
  border-left: 3px solid #0EA5E9;
  padding: 0.55rem 0.8rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.6rem;
}
.hc-significado-label {
  font-size: 0.68rem; font-weight: 700; color: #38BDF8;
  margin-bottom: 0.2rem;
}
.hc-significado-text { font-size: 0.78rem; color: var(--text-1); line-height: 1.55; }

.hc-interp { font-size: 0.78rem; color: var(--text-1); line-height: 1.65; }
.hc-interp p { margin: 0 0 0.5rem; }

/* Bloco de metadata específica da classificação (Vibra/Atrai/Oposto/Passivo) */
.hc-meta-block {
  background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.20);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.hc-meta-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #C084FC; margin-bottom: 0.4rem;
}
.hc-meta-text { font-size: 0.78rem; color: var(--text-1); line-height: 1.6; }
.hc-meta-text p { margin: 0 0 0.4rem; }

.hc-marriage-date {
  font-size: 0.78rem; color: var(--text-3); text-align: center;
  font-style: italic; margin-top: 0.5rem;
}
.hc-marriage-date strong { color: var(--text-1); font-style: normal; }

