:root {
  --vit-blue: #1155cc;
  --vit-blue-dark: #0b2f73;
  --vit-gold: #f5c542;
  --vit-ink: #111827;
  --vit-muted: #64748b;
  --vit-bg: #f6f8fc;
  --vit-panel: #ffffff;
  --vit-border: #dce3ef;
}

* {
  letter-spacing: 0;
}

body {
  background: var(--vit-bg);
  color: var(--vit-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  text-decoration: none;
}

.auth-shell,
.public-shell {
  min-height: 100vh;
}

.brand-mark {
  align-items: center;
  color: var(--vit-ink);
  display: inline-flex;
  font-weight: 800;
  gap: .6rem;
}

.brand-icon {
  align-items: center;
  background: var(--vit-blue);
  border-radius: 8px;
  color: var(--vit-gold);
  display: inline-flex;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.btn-primary {
  --bs-btn-bg: var(--vit-blue);
  --bs-btn-border-color: var(--vit-blue);
  --bs-btn-hover-bg: var(--vit-blue-dark);
  --bs-btn-hover-border-color: var(--vit-blue-dark);
}

.btn-warning {
  --bs-btn-bg: var(--vit-gold);
  --bs-btn-border-color: var(--vit-gold);
  --bs-btn-color: #111827;
  --bs-btn-hover-color: #111827;
}

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

.sidebar {
  background: #0b1220;
  color: #e5edf9;
  padding: 1.1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar a {
  align-items: center;
  border-radius: 8px;
  color: #d9e6fb;
  display: flex;
  gap: .7rem;
  margin: .18rem 0;
  padding: .72rem .8rem;
}

.sidebar a.active,
.sidebar a:hover {
  background: rgba(17, 85, 204, .25);
  color: #fff;
}

.sidebar .count {
  background: var(--vit-gold);
  border-radius: 999px;
  color: #111827;
  font-size: .72rem;
  font-weight: 700;
  margin-left: auto;
  padding: .12rem .45rem;
}

.main {
  min-width: 0;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--vit-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 70px;
  padding: .8rem 1.4rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-body {
  padding: 1.4rem;
}

.panel {
  background: var(--vit-panel);
  border: 1px solid var(--vit-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.panel-header {
  align-items: center;
  border-bottom: 1px solid var(--vit-border);
  display: flex;
  gap: .8rem;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.panel-body {
  padding: 1.1rem;
}

.kpi {
  min-height: 128px;
  padding: 1rem;
}

.kpi .value {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  font-weight: 800;
}

.muted {
  color: var(--vit-muted);
}

.badge-soft {
  background: #eef4ff;
  border: 1px solid #d7e5ff;
  border-radius: 999px;
  color: var(--vit-blue-dark);
  font-weight: 700;
  padding: .3rem .55rem;
}

.status-frio { background: #eaf2ff; color: #174ea6; }
.status-tibio { background: #fff7e0; color: #946200; }
.status-caliente { background: #ffe9e7; color: #b42318; }
.status-listo { background: #e8fff3; color: #0b6b3a; }
.status-cliente { background: #e8f7ff; color: #075985; }
.status-perdido { background: #f1f5f9; color: #475569; }

.kanban {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  overflow-x: auto;
  padding-bottom: .4rem;
}

.kanban-column {
  background: #f8fafc;
  border: 1px solid var(--vit-border);
  border-radius: 8px;
  min-height: 240px;
  padding: .8rem;
}

.kanban-card {
  background: #fff;
  border: 1px solid var(--vit-border);
  border-radius: 8px;
  margin-bottom: .7rem;
  padding: .8rem;
}

.landing-hero {
  background: linear-gradient(135deg, #0b1220, #1155cc 64%, #14213d);
  color: #fff;
  overflow: hidden;
  padding: 4rem 0 3rem;
  position: relative;
}

.landing-hero::after {
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  opacity: .35;
  position: absolute;
}

.landing-hero > .container {
  position: relative;
  z-index: 1;
}

.section-band {
  padding: 3rem 0;
}

.feature-card,
.product-card,
.post-card {
  background: #fff;
  border: 1px solid var(--vit-border);
  border-radius: 8px;
  height: 100%;
  padding: 1rem;
}

.chat-widget {
  background: #fff;
  border: 1px solid var(--vit-border);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
  max-width: 370px;
  position: fixed;
  right: 18px;
  width: calc(100vw - 36px);
  z-index: 50;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  max-height: 360px;
  overflow-y: auto;
  padding: 1rem;
}

.bubble {
  border-radius: 8px;
  max-width: 86%;
  padding: .68rem .78rem;
}

.bubble.dana {
  align-self: flex-start;
  background: #eef4ff;
}

.bubble.lead {
  align-self: flex-end;
  background: var(--vit-blue);
  color: #fff;
}

.mobile-menu-button {
  display: none;
}

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

  .sidebar {
    height: auto;
    position: static;
  }

  .sidebar.collapsed nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .page-body {
    padding: 1rem;
  }

  .table-responsive-card table,
  .table-responsive-card thead,
  .table-responsive-card tbody,
  .table-responsive-card th,
  .table-responsive-card td,
  .table-responsive-card tr {
    display: block;
  }

  .table-responsive-card thead {
    display: none;
  }

  .table-responsive-card tr {
    background: #fff;
    border: 1px solid var(--vit-border);
    border-radius: 8px;
    margin-bottom: .8rem;
    padding: .7rem;
  }

  .table-responsive-card td {
    border: 0;
    padding: .35rem 0;
  }

  .table-responsive-card td::before {
    color: var(--vit-muted);
    content: attr(data-label);
    display: block;
    font-size: .78rem;
    font-weight: 700;
  }
}

