/* ═══════════════════════════════════════════════════════════════════
   VIC — CSS Provisório "Quadradinho Bonito"
   Compatível com Tailwind v4.
   Tudo dentro de @layer base — Tailwind utilities sempre ganham.
   ═══════════════════════════════════════════════════════════════════ */

/* ── VARIÁVEIS GLOBAIS ── */
:root {
  --vic-bg: #f7f4fb;
  --vic-surface: #ffffff;
  --vic-surface-alt: #f3eef8;
  --vic-border: #e4dceb;
  --vic-border-strong: #cfc2e0;
  --vic-text: #1a0a35;
  --vic-text-soft: #4a4060;
  --vic-text-faint: #7a7090;
  --vic-primary: #230059;
  --vic-primary-light: #3d1b6e;
  --vic-primary-lighter: #ede0ff;
  --vic-accent: #fda326;
  --vic-accent-hover: #f09000;
  --vic-success: #16a34a;
  --vic-success-bg: #f0fdf4;
  --vic-warning: #f59e0b;
  --vic-warning-bg: #fffbeb;
  --vic-danger: #dc2626;
  --vic-danger-bg: #fef2f2;
  --vic-info: #0891b2;
  --vic-info-bg: #ecfeff;
  --vic-radius: 4px;
  --vic-radius-lg: 8px;
  --vic-shadow-sm: 0 1px 2px rgba(35,0,89,.05);
  --vic-shadow: 0 1px 3px rgba(35,0,89,.08), 0 1px 2px rgba(35,0,89,.04);
  --vic-shadow-md: 0 4px 6px rgba(35,0,89,.06), 0 2px 4px rgba(35,0,89,.04);
  --vic-transition: 150ms ease;
}

/* ── TUDO DENTRO DE @layer base — Tailwind utilities ganham na cascade ── */
@layer base {

/* ── RESET SUAVE ── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--vic-text);
  background: var(--vic-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── TIPOGRAFIA ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--vic-text);
  line-height: 1.3;
  margin: 0 0 0.5em;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 0.75em; }

a {
  color: var(--vic-primary);
  text-decoration: none;
  transition: color var(--vic-transition);
}
a:hover { color: var(--vic-primary-light); }

small { font-size: 0.8125rem; }
/* .text-sm, .text-xs removidos — conflitam com Tailwind */

/* ── LAYOUT ── */
.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px calc(var(--dock-space, 60px) + 16px + var(--sab, 0px));
}

@media (min-width: 768px) {
  .app {
    padding: 24px 24px 40px;
    max-width: 1080px;
  }
}

/* ── PAGE HEADER ── */
.page-header,
[class*="page-header"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-header h1,
.page-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--vic-primary);
}

/* ── CARDS (só .card — card-vic vem do Tailwind @utility) ── */
.card {
  background: var(--vic-surface);
  border: 1px solid var(--vic-border);
  border-radius: var(--vic-radius-lg);
  padding: 16px;
  box-shadow: var(--vic-shadow-sm);
  transition: box-shadow var(--vic-transition);
}

.card:hover {
  box-shadow: var(--vic-shadow);
}

.card + .card {
  margin-top: 12px;
}

.card-header,
.card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--vic-text);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body,
.card-content {
  font-size: 0.875rem;
  color: var(--vic-text-soft);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--vic-border);
}

/* ── BOTÕES (btn-vic-primary/secondary vêm do Tailwind @utility) ── */
.btn,
button[type="submit"],
.btn-primary,
.btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: var(--vic-radius);
  cursor: pointer;
  transition: all var(--vic-transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary,
.btn.primary {
  background: var(--vic-primary);
  color: #fff;
  border-color: var(--vic-primary);
}

.btn-primary:hover,
.btn.primary:hover {
  background: var(--vic-primary-light);
  border-color: var(--vic-primary-light);
  box-shadow: var(--vic-shadow-sm);
}

.btn-secondary,
.btn.accent {
  background: transparent;
  color: var(--vic-primary);
  border: 1px solid var(--vic-primary);
}

.btn-secondary:hover,
.btn.accent:hover {
  background: var(--vic-primary-lighter);
}

.btn-ghost,
.btn-outline,
.btn.light {
  background: transparent;
  color: var(--vic-text-soft);
  border: 1px solid var(--vic-border);
}

.btn-ghost:hover,
.btn-outline:hover,
.btn.light:hover {
  background: var(--vic-surface-alt);
  border-color: var(--vic-border-strong);
  color: var(--vic-text);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 10px 24px;
  font-size: 0.9375rem;
}

.btn-accent,
.btn-warning {
  background: var(--vic-accent);
  color: var(--vic-text);
  border-color: var(--vic-accent);
}

.btn-accent:hover,
.btn-warning:hover {
  background: var(--vic-accent-hover);
}

.btn-danger {
  background: var(--vic-danger);
  color: #fff;
  border-color: var(--vic-danger);
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Grupo de botões */
.btn-group,
.actions,
.button-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── FORMULÁRIOS ── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
textarea,
select,
.input-vic,
.form-control {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--vic-text);
  background: var(--vic-surface);
  border: 1px solid var(--vic-border);
  border-radius: var(--vic-radius);
  transition: border-color var(--vic-transition), box-shadow var(--vic-transition);
  outline: none;
}

input:focus,
textarea:focus,
select:focus,
.input-vic:focus,
.form-control:focus {
  border-color: var(--vic-primary-light);
  box-shadow: 0 0 0 3px rgba(35, 0, 89, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: var(--vic-text-faint);
}

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

label,
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--vic-text);
  margin-bottom: 4px;
}

.form-group,
.field-group {
  margin-bottom: 16px;
}

.form-help,
.help-text {
  font-size: 0.75rem;
  color: var(--vic-text-faint);
  margin-top: 4px;
}

.form-error,
.error-text,
.errorlist li {
  font-size: 0.75rem;
  color: var(--vic-danger);
  margin-top: 4px;
}

.errorlist {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

/* Checkbox / Radio */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--vic-primary);
}

/* ── TABELAS ── */
table,
.table-vic {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  background: var(--vic-surface);
  border: 1px solid var(--vic-border);
  border-radius: var(--vic-radius-lg);
  overflow: hidden;
}

thead {
  background: var(--vic-surface-alt);
}

th {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vic-text-faint);
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--vic-border);
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--vic-border);
  color: var(--vic-text-soft);
  vertical-align: middle;
}

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

tr:hover td {
  background: rgba(35, 0, 89, 0.02);
}

/* ── BADGES ── */
.badge,
.badge-vic,
[class*="badge-"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-success,
.badge-ativo {
  background: var(--vic-success-bg);
  color: var(--vic-success);
}

.badge-warning,
.badge-pendente {
  background: var(--vic-warning-bg);
  color: #b45309;
}

.badge-danger,
.badge-inativo {
  background: var(--vic-danger-bg);
  color: var(--vic-danger);
}

.badge-info {
  background: var(--vic-info-bg);
  color: var(--vic-info);
}

.badge-neutral,
.badge-default {
  background: var(--vic-surface-alt);
  color: var(--vic-text-soft);
}

.badge-primary {
  background: var(--vic-primary-lighter);
  color: var(--vic-primary);
}

/* ── ALERTAS ── */
.alert,
.alert-vic {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--vic-radius);
  font-size: 0.8125rem;
  margin-bottom: 16px;
  border-left: 3px solid;
}

.alert-success { background: var(--vic-success-bg); border-color: var(--vic-success); color: #15803d; }
.alert-warning { background: var(--vic-warning-bg); border-color: var(--vic-warning); color: #92400e; }
.alert-danger,
.alert-error { background: var(--vic-danger-bg); border-color: var(--vic-danger); color: #991b1b; }
.alert-info { background: var(--vic-info-bg); border-color: var(--vic-info); color: #155e75; }

/* ── MODAL ── */
.modal,
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(4px);
  padding: 16px;
}

.modal.show,
.modal-overlay[style*="display: block"],
.modal-overlay[style*="display: flex"] {
  display: flex;
}

.modal-content,
.modal-dialog {
  background: var(--vic-surface);
  border: 1px solid var(--vic-border);
  border-radius: var(--vic-radius-lg);
  box-shadow: var(--vic-shadow-md);
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  animation: vic-modal-in 200ms ease;
}

@keyframes vic-modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vic-border);
}

.modal-header h2,
.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--vic-border);
}

/* ── ESTADO VAZIO ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--vic-text-faint);
}

.empty-state i,
.empty-state .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.875rem;
  max-width: 320px;
  margin: 0 auto;
}

/* ── LISTA ── */
.list-group,
.item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-group-item,
.item-list > li,
.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--vic-border);
  font-size: 0.875rem;
  transition: background var(--vic-transition);
}

.list-group-item:last-child,
.item-list > li:last-child {
  border-bottom: none;
}

.list-group-item:hover,
.item-list > li:hover {
  background: rgba(35, 0, 89, 0.02);
}

/* ── PILLS / CHIPS ── */
.pill,
.chip,
.chip-vic,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--vic-surface-alt);
  border: 1px solid var(--vic-border);
  border-radius: 4px;
  color: var(--vic-text-soft);
  white-space: nowrap;
}

.pill.active,
.chip.active,
.tag.active {
  background: var(--vic-primary-lighter);
  border-color: var(--vic-primary);
  color: var(--vic-primary);
  font-weight: 600;
}

/* ── TABS ── */
.app-tabs,
.tabs,
.nav-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--vic-border);
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.app-tabs a,
.tabs a,
.tabs button,
.nav-tabs .tab,
.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--vic-text-faint);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--vic-transition);
}

.app-tabs a:hover,
.tabs a:hover,
.tabs button:hover,
.tab-item:hover {
  color: var(--vic-text);
}

.app-tabs a.active,
.tabs a.active,
.tabs button.active,
.tab-item.active {
  color: var(--vic-primary);
  border-bottom-color: var(--vic-primary);
  font-weight: 600;
}

/* ── BREADCRUMBS ── */
.breadcrumb,
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--vic-text-faint);
  margin-bottom: 12px;
}

.breadcrumb a { color: var(--vic-text-faint); }
.breadcrumb a:hover { color: var(--vic-primary); }
.breadcrumb .separator { opacity: 0.4; }

/* ── DIVIDER ── */
hr,
.divider,
.divider-vic {
  border: none;
  height: 1px;
  background: var(--vic-border);
  margin: 16px 0;
}

/* ── AVATAR ── */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--vic-primary-lighter);
  color: var(--vic-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm { width: 28px; height: 28px; font-size: 0.6875rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1.1rem; }

/* ── STAT CARDS (Painel) ── */
.stat-card {
  background: var(--vic-surface);
  border: 1px solid var(--vic-border);
  border-radius: var(--vic-radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--vic-primary);
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--vic-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Grid de stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

/* ── GRID UTILITÁRIOS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vic-text-faint);
  margin-bottom: 8px;
}

/* ── DOCK (bottom navigation) ── */
.unity-dock {
  background: var(--vic-surface);
  border-top: 1px solid var(--vic-border);
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}

.unity-dock .dock-icon {
  color: var(--vic-text-faint);
  font-size: 18px;
  transition: color var(--vic-transition);
}

.unity-dock .dock-icon.active,
.unity-dock .dock-icon:hover {
  color: var(--vic-primary);
}

.unity-dock .dock-lbl {
  font-size: 0.5625rem;
  font-weight: 600;
}

/* ── VIC MASCOT (balão flutuante) — posicionamento garantido ── */
.vic-mascot {
  position: fixed;
  z-index: 102;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile: mascot integrado ao dock */
@media (max-width: 767px) {
  .vic-mascot {
    right: 0;
    bottom: 0;
    width: 64px;
    height: calc(58px + var(--sab, env(safe-area-inset-bottom, 0px)));
    display: flex;
    align-items: flex-start;
    padding-top: 9px;
    justify-content: center;
    background: var(--vic-surface);
    border-top: 1px solid var(--vic-border);
    border-left: 1px solid var(--vic-border);
    border-radius: 0;
  }

  /* Dock deixa espaço para o mascot */
  .unity-dock {
    width: calc(100% - 64px) !important;
  }
}

/* VIC Chat panel — garantir z-index e posição */
.vic-chat {
  z-index: 103;
}

/* ── SKELETON LOADING ── */
.skeleton,
[class*="skeleton"] {
  background: linear-gradient(90deg, var(--vic-surface-alt) 25%, var(--vic-border) 50%, var(--vic-surface-alt) 75%);
  background-size: 200% 100%;
  animation: vic-shimmer 1.5s infinite;
  border-radius: 4px;
  color: transparent !important;
}

@keyframes vic-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── TOOLTIP ── */
[title] {
  position: relative;
}

/* ── SCROLLBAR SUTIL ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--vic-border-strong);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--vic-text-faint); }

/* ── TRANSIÇÕES GLOBAIS ── */
* {
  scroll-behavior: smooth;
}

/* ── SELECTION ── */
::selection {
  background: var(--vic-primary-lighter);
  color: var(--vic-primary);
}

/* ── PRINT ── */
@media print {
  .unity-dock,
  .vic-mascot,
  #vic-chat,
  #bg-canvas-container,
  .app-tabs,
  .modal,
  .modal-overlay {
    display: none !important;
  }

  .app {
    max-width: 100%;
    padding: 0;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ── DARK MODE OVERRIDE ── */
[data-theme="dark"] {
  --vic-bg: #0f0f1a;
  --vic-surface: #1a1a2e;
  --vic-surface-alt: #22223a;
  --vic-border: #2d2d45;
  --vic-border-strong: #3d3d5c;
  --vic-text: #e8e6f0;
  --vic-text-soft: #a8a4b8;
  --vic-text-faint: #6b6880;
  --vic-primary-lighter: rgba(93, 45, 140, 0.2);
  --vic-shadow-sm: 0 1px 2px rgba(0,0,0,.2);
  --vic-shadow: 0 1px 3px rgba(0,0,0,.3);
  --vic-shadow-md: 0 4px 6px rgba(0,0,0,.3);
}

/* ═══════════════════════════════════════════════════════════════════
   BOOTSTRAP-LIKE — Classes usadas nos templates de avaliação
   ═══════════════════════════════════════════════════════════════════ */

/* ── Grid Bootstrap ── */
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.row > [class*="col-"] { padding: 0 8px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-4 { flex: 0 0 100%; max-width: 100%; }
.col-md-6 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

/* Gutter Bootstrap */
.g-2 { gap: 8px; }
.g-3 { gap: 12px; }
.g-4 { gap: 16px; }

/* ── Card Bootstrap ── */
.card {
  background: var(--vic-surface);
  border: 1px solid var(--vic-border);
  border-radius: var(--vic-radius-lg);
  box-shadow: var(--vic-shadow-sm);
  overflow: hidden;
}

.card.border-0,
.card.border-0 { border: none; }

.card.shadow-sm { box-shadow: var(--vic-shadow); }

.card-body { padding: 16px; }
.card-body.p-0 { padding: 0; }
.card-body.p-4 { padding: 16px; }

.card-header {
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  border-bottom: 1px solid var(--vic-border);
  background: var(--vic-surface-alt);
}

.card-header.bg-danger {
  background: var(--vic-danger) !important;
  color: #fff;
  border-bottom-color: #b91c1c;
}

.card-header.bg-warning {
  background: var(--vic-warning) !important;
  border-bottom-color: #d97706;
}

/* ── Table Bootstrap ── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--vic-border);
  vertical-align: middle;
}

.table th {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vic-text-faint);
  text-align: left;
}

.table-sm th,
.table-sm td { padding: 8px 10px; }

.table-light,
thead.table-light { background: var(--vic-surface-alt); }
thead.table-light th { background: transparent; }

.table-danger,
tr.table-danger td { background: var(--vic-danger-bg); }

.table tr:hover td { background: rgba(35, 0, 89, 0.02); }

/* ── Badge Bootstrap ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
}

.bg-primary { background: var(--vic-primary) !important; color: #fff; }
.bg-success { background: var(--vic-success) !important; color: #fff; }
.bg-warning { background: var(--vic-warning) !important; color: #fff; }
.bg-danger { background: var(--vic-danger) !important; color: #fff; }
.bg-info { background: var(--vic-info) !important; color: #fff; }
.bg-red-100 { background: #fee2e2 !important; }
.bg-violet-100 { background: #ede0ff !important; }

/* ── Alert Bootstrap ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--vic-radius);
  font-size: 0.8125rem;
  margin-bottom: 16px;
  border-left: 3px solid;
}

.alert-danger { background: var(--vic-danger-bg); border-color: var(--vic-danger); color: #991b1b; }
.alert-success { background: var(--vic-success-bg); border-color: var(--vic-success); color: #15803d; }
.alert-warning { background: var(--vic-warning-bg); border-color: var(--vic-warning); color: #92400e; }

/* ── Form Bootstrap ── */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-select,
.form-control {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.875rem;
  border: 1px solid var(--vic-border);
  border-radius: var(--vic-radius);
  background: var(--vic-surface);
  color: var(--vic-text);
  transition: border-color var(--vic-transition);
}

.form-select:focus,
.form-control:focus {
  border-color: var(--vic-primary-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(35, 0, 89, 0.08);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  width: auto;
  accent-color: var(--vic-primary);
}

.form-check-label {
  font-size: 0.8125rem;
  cursor: pointer;
}

/* ── Button Bootstrap ── */
.btn-warning {
  background: var(--vic-warning);
  color: #fff;
  border-color: var(--vic-warning);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--vic-text-soft);
  border: 1px solid var(--vic-border);
}

.btn-outline-secondary:hover {
  background: var(--vic-surface-alt);
}

.btn-lg { padding: 10px 24px; font-size: 0.9375rem; }

/* ── Tipografia Bootstrap ── */
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fs-6 { font-size: 0.875rem !important; }

.h4, h4 { font-size: 1.125rem; font-weight: 700; }

.text-muted { color: var(--vic-text-faint) !important; }
.text-primary { color: var(--vic-primary) !important; }
.text-success { color: var(--vic-success) !important; }
.text-danger { color: var(--vic-danger) !important; }
.text-warning { color: #b45309 !important; }
.text-white { color: #fff !important; }
.text-dark { color: var(--vic-text) !important; }

.text-center { text-align: center; }

/* ── Display / Flex Bootstrap ── */
.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.d-inline-block { display: inline-block; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow-1 { flex-grow: 1; }
.flex-column { flex-direction: column; }

/* ── Spacing Bootstrap ── */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.ms-2 { margin-left: 8px !important; }
.me-2 { margin-right: 8px !important; }
.ml-auto { margin-left: auto !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-5 { padding-top: 24px !important; padding-bottom: 24px !important; }
.p-2 { padding: 8px !important; }
.p-4 { padding: 16px !important; }
.px-3 { padding-left: 12px !important; padding-right: 12px !important; }
.px-5 { padding-left: 24px !important; padding-right: 24px !important; }
.ps-3 { padding-left: 12px !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* ── Misc Bootstrap ── */
.border { border: 1px solid var(--vic-border); }
.border-0 { border: 0 !important; }
.border-danger { border-color: var(--vic-danger) !important; }
.rounded { border-radius: var(--vic-radius); }
.shadow-sm { box-shadow: var(--vic-shadow); }
.opacity-75 { opacity: 0.75; }

.btn-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--vic-text-faint);
  padding: 4px;
}

/* ── Modal Bootstrap ── */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--vic-border);
}

.modal-body {
  padding: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   UTILITÁRIOS u-* — Classes legadas do projeto
   ═══════════════════════════════════════════════════════════════════ */

/* Display */
.u-flex { display: flex; }
.u-inline-block { display: inline-block; }
.u-block { display: block; }

/* Alignment */
.u-items-c { align-items: center; }
.u-justify-center { justify-content: center; }
.u-text-center { text-align: center; }
.u-text-left { text-align: left; }

/* Gap */
.u-gap-8 { gap: 8px; }
.u-gap-12 { gap: 12px; }
.u-gap-16 { gap: 16px; }
.u-gap-20 { gap: 20px; }

/* Font */
.u-font-black { font-weight: 900; }
.u-font-bold { font-weight: 700; }
.u-font-semi { font-weight: 600; }
.u-font-medium { font-weight: 500; }

/* Text */
.u-text-base { font-size: 0.875rem; }
.u-text-md { font-size: 1rem; }
.u-text-sm { font-size: 0.8125rem; }
.u-text-xs { font-size: 0.75rem; }
.u-uppercase { text-transform: uppercase; }
.u-tracking-wide { letter-spacing: 0.05em; }

/* Colors */
.u-ink-main { color: var(--vic-text); }
.u-ink-soft { color: var(--vic-text-soft); }
.u-ink-faint { color: var(--vic-text-faint); }
.u-ink-white { color: #fff; }
.u-bg-soft { background: var(--vic-surface-alt); }

/* Margin */
.u-m-0 { margin: 0; }
.u-mb-6 { margin-bottom: 6px; }
.u-mb-8 { margin-bottom: 8px; }
.u-mb-16 { margin-bottom: 16px; }
.u-mt-2 { margin-top: 2px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-16 { margin-top: 16px; }
.u-mr-4 { margin-right: 4px; }
.u-ml-8 { margin-left: 8px; }
.u-ml-12 { margin-left: 12px; }
.u-ml-16 { margin-left: 16px; }

/* Padding */
.u-p-0 { padding: 0; }
.u-p-16 { padding: 16px; }
.u-p-20 { padding: 20px; }
.u-pl-0 { padding-left: 0; }
.u-px-10 { padding-left: 10px; padding-right: 10px; }
.u-px-20 { padding-left: 20px; padding-right: 20px; }
.u-py-6 { padding-top: 6px; padding-bottom: 6px; }

/* Border/Shape */
.u-rounded-full { border-radius: 6px; }
.u-border-none { border: none; }
.u-w-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC — Reforços para Home, Perfil e Avaliação
   ═══════════════════════════════════════════════════════════════════ */

/* ── Home: ivc-card-clean refinement ── */
.ivc-card-clean {
  background: var(--vic-surface);
  border: 1px solid var(--vic-border);
  border-radius: var(--vic-radius-lg);
  box-shadow: var(--vic-shadow-sm);
  transition: box-shadow var(--vic-transition);
}

.ivc-card-clean:hover {
  box-shadow: var(--vic-shadow);
}

/* ── Perfil: hero gradient ── */
.hero-gradient-vic {
  background: linear-gradient(135deg, #1a0a35 0%, #230059 35%, #3d1b6e 70%, #5e2d8c 100%);
}

/* ── Perfil: shape octagonal ── */
.shape-octo {
  clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
}

.shape-octo-sm {
  border-radius: 6px;
}

/* ── Avaliação: nivel bars ── */
.nivel-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.nivel-bar {
  height: 8px;
  border-radius: 4px;
  transition: width 300ms ease;
  min-width: 2px;
}

.nivel-ABAIXO_BASICO { background: var(--vic-danger); }
.nivel-BASICO { background: var(--vic-warning); }
.nivel-ADEQUADO { background: var(--vic-success); }
.nivel-AVANCADO { background: var(--vic-primary); }

/* ── Hide scrollbar helper ── */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Profile link hover ── */
.profile-link {
  transition: color var(--vic-transition);
}
.profile-link:hover {
  color: var(--vic-accent) !important;
}

/* ── Connection list (perfil card) ── */
.connection-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Breadcrumb map (perfil card) ── */
.breadcrumb-map {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--vic-text-faint);
  margin-bottom: 12px;
}

/* ── Vic header (perfil card) ── */
.vic-header {
  margin-bottom: 12px;
}

/* ── Vic card (perfil card) ── */
.vic-card {
  background: var(--vic-surface);
  border: 1px solid var(--vic-border);
  border-radius: var(--vic-radius-lg);
  padding: 16px;
}

/* ── Profile pic ── */
.profile-pic {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--vic-primary-lighter);
}

/* ── Btn Reação (perfil card) ── */
.btn-reacao {
  padding: 4px 10px;
  border: 1px solid var(--vic-border);
  border-radius: var(--vic-radius);
  background: var(--vic-surface-alt);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all var(--vic-transition);
}

.btn-reacao:hover {
  border-color: var(--vic-primary);
  background: var(--vic-primary-lighter);
}

} /* ── FIM @layer base ── */
