/* =============================================
   UNICONS CRM — style.css
   Sistema de Propostas GM/FIAT
   Versão 1.0 · 2024
   ============================================= */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ─ PALETA UNICONS ─ */
  --uni-blue:        #3175ac;
  --uni-blue-dark:   #031B4E;
  --uni-blue-deep:   #020f30;
  --uni-orange:      #f68515;
  --uni-gray:        #cccccc;

  /* ─ UI TOKENS ─ */
  --blue-100:  #e8f1f8;
  --blue-200:  #c5ddef;
  --blue-500:  #3175ac;
  --blue-700:  #1f5a8a;
  --blue-900:  #031B4E;

  --orange-100: #fff3e2;
  --orange-500: #f68515;
  --orange-700: #c96a09;

  --neutral-50:  #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-900: #0f172a;

  --red-100: #fef2f2;
  --red-500: #ef4444;
  --red-600: #dc2626;

  --green-100: #ecfdf5;
  --green-500: #10b981;

  /* ─ LAYOUT ─ */
  --sidebar-w:    260px;
  --topbar-h:     60px;
  --content-max:  860px;

  /* ─ RADIUS ─ */
  --r-xs:  6px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;

  /* ─ SOMBRAS ─ */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(3,27,78,.07), 0 2px 8px rgba(3,27,78,.05);
  --shadow-lg: 0 8px 32px rgba(3,27,78,.12), 0 4px 16px rgba(3,27,78,.07);
  --shadow-xl: 0 20px 60px rgba(3,27,78,.18), 0 8px 24px rgba(3,27,78,.10);

  /* ─ TRANSIÇÕES ─ */
  --t-fast:   0.15s ease;
  --t-base:   0.2s ease;
  --t-slow:   0.35s cubic-bezier(.4,0,.2,1);
  --t-spring: 0.4s cubic-bezier(.34,1.56,.64,1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--neutral-100);
  color: var(--neutral-900);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--neutral-400); }

/* =============================================
   OVERLAYS
   ============================================= */

/* ── LOADING ── */
.loading-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(3, 27, 78, 0.88);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--t-slow);
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }

.loading-content { text-align: center; color: #fff; }

/* Anel animado de loading */
.loading-ring {
  display: inline-block; position: relative;
  width: 60px; height: 60px; margin-bottom: 24px;
}
.loading-ring div {
  box-sizing: border-box;
  display: block; position: absolute;
  width: 48px; height: 48px;
  margin: 6px;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: ring-spin 1.2s cubic-bezier(.5,0,.5,1) infinite;
}
.loading-ring div:nth-child(1) { border-top-color: var(--uni-orange); animation-delay: -.45s; }
.loading-ring div:nth-child(2) { border-top-color: rgba(246,133,21,.5); animation-delay: -.3s; }
.loading-ring div:nth-child(3) { border-top-color: rgba(246,133,21,.25); animation-delay: -.15s; }
.loading-ring div:nth-child(4) { border-top-color: rgba(246,133,21,.1); }

@keyframes ring-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text { font-size: 17px; font-weight: 600; margin-bottom: 6px; opacity: .95; }
.loading-sub  { font-size: 13px; opacity: .5; }

/* ── SUCCESS SCREEN ── */
.success-screen {
  position: fixed; inset: 0; z-index: 8999;
  background: rgba(3, 27, 78, 0.92);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  transition: opacity var(--t-slow);
}
.success-screen.hidden { opacity: 0; pointer-events: none; }

.success-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 52px 44px;
  max-width: 460px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: success-enter var(--t-spring) both;
}
@keyframes success-enter {
  from { transform: translateY(24px) scale(.94); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.success-icon-wrap {
  position: relative;
  width: 84px; height: 84px;
  margin: 0 auto 24px;
}
.success-icon-bg {
  position: absolute; inset: 0;
  background: var(--green-100);
  border-radius: 50%;
  animation: pulse-bg 2s ease infinite;
}
@keyframes pulse-bg {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: .7; }
}
.success-icon-svg {
  position: relative; z-index: 1;
  width: 84px; height: 84px;
  color: var(--green-500);
}

.success-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: var(--green-500);
  background: var(--green-100);
  padding: 4px 12px; border-radius: 99px;
  margin-bottom: 12px;
}
.success-title {
  font-size: 26px; font-weight: 800;
  color: var(--blue-900); letter-spacing: -.5px;
  margin-bottom: 10px;
}
.success-desc {
  font-size: 14px; color: var(--neutral-500); line-height: 1.7;
  margin-bottom: 28px;
}
.success-meta-box {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  text-align: left;
}
.success-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--neutral-200);
}
.success-meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.meta-label { font-size: 11px; font-weight: 600; color: var(--neutral-400); text-transform: uppercase; letter-spacing: .5px; }
.meta-value { font-size: 13px; font-weight: 600; color: var(--neutral-700); max-width: 230px; text-align: right; }

.btn-nova-proposta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--blue-900);
  color: #fff;
  border: none; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all var(--t-base);
  box-shadow: 0 4px 14px rgba(3,27,78,.3);
}
.btn-nova-proposta svg { width: 18px; height: 18px; }
.btn-nova-proposta:hover {
  background: var(--blue-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49,117,172,.4);
}

/* =============================================
   APP SHELL
   ============================================= */
.app-shell { display: flex; min-height: 100vh; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--uni-blue-dark);
  position: fixed; top: 0; left: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  z-index: 200;
  transition: transform var(--t-slow);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.sidebar-logo { display: flex; align-items: center; }

.logo-img {
  height: 34px; max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.logo-fallback { display: flex; flex-direction: column; }
.lf-main {
  font-size: 17px; font-weight: 800;
  letter-spacing: 4px; color: #fff;
}
.lf-sub {
  font-size: 9px; font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255,255,255,.35);
  margin-top: -1px;
}

.sidebar-section-label {
  padding: 16px 20px 6px;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,.28);
}

.sidebar-nav { padding: 0 10px 8px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.5);
  font-size: 13.5px; font-weight: 500;
  transition: all var(--t-base);
  margin-bottom: 2px;
  cursor: pointer;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item span:not(.nav-badge):not(.nav-tag-soon) { flex: 1; }

.nav-item:hover:not(.nav-disabled) {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
}
.nav-item.active {
  background: var(--uni-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(49,117,172,.45);
}
.nav-item.nav-disabled { opacity: .38; cursor: default; }

.nav-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .5px;
  background: var(--uni-orange);
  color: #fff;
  padding: 2px 8px; border-radius: 99px;
}
.nav-tag-soon {
  font-size: 9px; font-weight: 600;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.35);
  padding: 2px 7px; border-radius: 99px;
  letter-spacing: .3px;
}

.sidebar-footer {
  margin-top: auto; padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.sidebar-user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: var(--r-sm);
}
.user-avatar {
  width: 34px; height: 34px;
  background: var(--uni-blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff; letter-spacing: .5px;
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; }
.user-name  { font-size: 13px; font-weight: 600; color: #fff; }
.user-role  { font-size: 11px; color: rgba(255,255,255,.4); }
.sidebar-brand-note {
  padding: 8px 10px 4px;
  font-size: 10px; color: rgba(255,255,255,.2);
  letter-spacing: .5px;
}

/* BACKDROP MOBILE */
.sidebar-backdrop {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  animation: fade-in .2s ease;
}
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }

/* ── MAIN ── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left var(--t-slow);
}

/* ── TOPBAR ── */
.topbar {
  position: sticky; top: 0;
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--neutral-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.topbar-left { display: flex; align-items: center; gap: 14px; }

.btn-menu {
  display: none;
  background: none; border: none;
  color: var(--neutral-500); cursor: pointer;
  padding: 6px; border-radius: var(--r-xs);
  transition: color var(--t-base);
}
.btn-menu svg { width: 20px; height: 20px; display: block; }
.btn-menu:hover { color: var(--neutral-900); }

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
}
.bc-root {
  font-size: 13px; color: var(--neutral-400); font-weight: 500;
}
.breadcrumb svg {
  width: 14px; height: 14px;
  color: var(--neutral-300);
}
.bc-current {
  font-size: 13px; font-weight: 600;
  color: var(--neutral-700);
}

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

.topbar-status {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--neutral-500); font-weight: 500;
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--green-500); border-radius: 50%;
  animation: blink 2.5s ease infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .35; }
}

.topbar-brand {
  font-size: 11px; font-weight: 800;
  letter-spacing: 3.5px;
  color: var(--blue-900);
  opacity: .3;
}

/* ── CONTENT WRAP ── */
.content-wrap {
  flex: 1;
  padding: 28px 32px 48px;
  max-width: calc(var(--content-max) + 64px);
  width: 100%;
  margin: 0 auto;
}

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 24px; }
.page-header-inner {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}

.page-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.8px;
  color: var(--uni-blue); background: var(--blue-100);
  padding: 4px 12px; border-radius: 99px;
  margin-bottom: 10px;
}
.page-chip svg { width: 12px; height: 12px; }

.page-title {
  font-size: 24px; font-weight: 800;
  color: var(--blue-900); letter-spacing: -.5px;
  line-height: 1.2; margin-bottom: 6px;
}
.page-subtitle {
  font-size: 13.5px; color: var(--neutral-500); line-height: 1.65;
  max-width: 500px;
}

.page-header-badge {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--neutral-200);
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 12.5px; font-weight: 500; color: var(--neutral-500);
  white-space: nowrap; flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.page-header-badge svg { width: 15px; height: 15px; color: var(--uni-orange); }

/* =============================================
   FORM CARDS
   ============================================= */
.form-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), border-color var(--t-base);
  animation: card-up .4s ease backwards;
}
.form-card:hover { box-shadow: var(--shadow-md); }

.form-card:nth-child(1) { animation-delay: .04s; }
.form-card:nth-child(2) { animation-delay: .08s; }
.form-card:nth-child(3) { animation-delay: .12s; }
.form-card:nth-child(4) { animation-delay: .16s; }
.form-card:nth-child(5) { animation-delay: .20s; }
.form-card:nth-child(6) { animation-delay: .24s; }
.form-card:nth-child(7) { animation-delay: .28s; }

@keyframes card-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── CARD HEADER ── */
.card-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px; padding-bottom: 18px;
  border-bottom: 1px solid var(--neutral-200);
}
.card-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--blue-100); color: var(--uni-blue);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
.card-icon--orange { background: var(--orange-100); color: var(--uni-orange); }
.card-icon svg { width: 20px; height: 20px; }

.card-header-text { flex: 1; }
.card-title { font-size: 15px; font-weight: 700; color: var(--neutral-900); letter-spacing: -.2px; }
.card-desc  { font-size: 12.5px; color: var(--neutral-500); margin-top: 2px; }

.card-step {
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  color: var(--neutral-400);
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  padding: 4px 10px; border-radius: 99px;
  flex-shrink: 0;
}
.card-step--orange { color: var(--uni-orange); background: var(--orange-100); border-color: #fcd9a4; }

/* ── FORM GRID ── */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid.grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── FIELD GROUP ── */
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group.col-full { grid-column: 1 / -1; }
.field-group.col-uf { max-width: 110px; }

/* ── LABELS ── */
.field-label {
  font-size: 12.5px; font-weight: 600;
  color: var(--neutral-700); letter-spacing: .05px;
}
.req { color: var(--uni-orange); margin-left: 1px; }

/* ── INPUTS ── */
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 10px 13px;
  background: #fff;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--r-sm);
  font-size: 13.5px; font-family: inherit;
  color: var(--neutral-900);
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
  outline: none;
  -webkit-appearance: none;
}
.field-input::placeholder,
.field-textarea::placeholder { color: var(--neutral-400); font-size: 13px; }

.field-input:hover,
.field-select:hover,
.field-textarea:hover { border-color: var(--neutral-300); }

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--uni-blue);
  box-shadow: 0 0 0 3px rgba(49,117,172,.13);
}

.field-input.is-error,
.field-select.is-error {
  border-color: var(--red-500);
  background: var(--red-100);
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.field-input.is-valid { border-color: var(--green-500); }

/* ── SELECT ── */
.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 34px; cursor: pointer;
}
.field-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%233175ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field-select option:first-child { color: var(--neutral-400); }

/* ── TEXTAREA ── */
.field-textarea {
  resize: vertical; min-height: 120px;
  line-height: 1.65;
}
.textarea-counter {
  font-size: 11px; color: var(--neutral-400);
  text-align: right; margin-top: 4px;
  display: block;
}

/* ── ERRORS ── */
.field-error {
  font-size: 11.5px; font-weight: 500;
  color: var(--red-500);
  display: none;
  animation: err-in .2s ease;
}
.field-error.show { display: block; }
@keyframes err-in {
  from { opacity:0; transform: translateY(-3px); }
  to   { opacity:1; transform: none; }
}

/* =============================================
   EVIDÊNCIAS (CHECKBOXES)
   ============================================= */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.ev-item { cursor: pointer; }
.ev-item--wide { grid-column: span 2; }

.ev-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }

.ev-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--neutral-50);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--r-sm);
  transition: all var(--t-base);
  position: relative; overflow: hidden;
  user-select: none;
}

.ev-item:hover .ev-card {
  border-color: var(--uni-blue);
  background: var(--blue-100);
}

.ev-checkbox:checked + .ev-card {
  border-color: var(--uni-blue);
  background: var(--blue-100);
  box-shadow: 0 0 0 3px rgba(49,117,172,.12);
}

.ev-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  background: #fff;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--uni-blue);
  box-shadow: var(--shadow-xs);
  transition: all var(--t-base);
}
.ev-icon--warn { color: var(--uni-orange); }
.ev-icon svg { width: 15px; height: 15px; }

.ev-checkbox:checked + .ev-card .ev-icon {
  background: var(--uni-blue); color: #fff;
  box-shadow: 0 2px 8px rgba(49,117,172,.35);
}
.ev-checkbox:checked + .ev-card .ev-icon--warn { background: var(--uni-orange); }

.ev-card span {
  font-size: 13px; font-weight: 500;
  color: var(--neutral-700); flex: 1;
  transition: color var(--t-base);
}
.ev-checkbox:checked + .ev-card span { color: var(--blue-900); font-weight: 600; }

.ev-check-indicator {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1.5px solid var(--neutral-300);
  border-radius: 4px; background: #fff;
  transition: all var(--t-base);
  position: relative;
}
.ev-checkbox:checked + .ev-card .ev-check-indicator {
  background: var(--uni-blue); border-color: var(--uni-blue);
}
.ev-checkbox:checked + .ev-card .ev-check-indicator::after {
  content: '';
  position: absolute; top: 1px; left: 4px;
  width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* =============================================
   UPLOAD
   ============================================= */
.upload-zone {
  border: 2px dashed var(--neutral-300);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base);
  overflow: hidden;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--uni-blue);
  background: var(--blue-100);
}
.upload-zone.drag-over .upload-icon-wrap {
  background: var(--uni-blue); color: #fff;
  transform: scale(1.06);
}

input[type="file"] { display: none; }

.upload-zone-inner {
  padding: 40px 20px; text-align: center;
  pointer-events: none;
}

.upload-icon-wrap {
  width: 56px; height: 56px;
  background: var(--blue-100); color: var(--uni-blue);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  transition: all var(--t-base);
}
.upload-icon-wrap svg { width: 28px; height: 28px; }

.upload-headline { font-size: 14.5px; font-weight: 600; color: var(--neutral-700); margin-bottom: 4px; }
.upload-sub      { font-size: 13px; color: var(--neutral-500); margin-bottom: 8px; }

.upload-link {
  background: none; border: none;
  color: var(--uni-blue); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  text-decoration: underline; text-underline-offset: 3px;
  pointer-events: all;
}
.upload-link:hover { color: var(--blue-900); }

.upload-hint {
  font-size: 11.5px; color: var(--neutral-400);
  background: var(--neutral-100);
  display: inline-block;
  padding: 4px 12px; border-radius: 99px;
}

/* ── FILE LIST ── */
.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.file-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--r-sm);
  animation: card-up .25s ease;
}

.file-type-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.file-type-icon.type-pdf { background: #fef2f2; color: var(--red-500); }
.file-type-icon.type-img { background: var(--blue-100); color: var(--uni-blue); }
.file-type-icon svg { width: 18px; height: 18px; }

.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 13px; font-weight: 600; color: var(--neutral-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 11px; color: var(--neutral-400); margin-top: 2px; }

.file-remove-btn {
  background: none; border: none;
  color: var(--neutral-400); cursor: pointer;
  padding: 5px; border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast); flex-shrink: 0;
}
.file-remove-btn svg { width: 15px; height: 15px; }
.file-remove-btn:hover { background: var(--red-100); color: var(--red-500); }

/* =============================================
   FORM FOOTER & SUBMIT
   ============================================= */
.form-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  animation: card-up .4s .3s ease backwards;
}

.footer-info {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--neutral-500);
}
.footer-info svg { width: 15px; height: 15px; color: var(--uni-blue); flex-shrink: 0; }
.footer-info strong { color: var(--uni-orange); }

.btn-submit {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 28px;
  background: var(--blue-900);
  color: #fff; border: none;
  border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: all var(--t-base);
  box-shadow: 0 4px 14px rgba(3,27,78,.3);
  position: relative; overflow: hidden;
}
.btn-submit svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent);
}
.btn-submit:hover {
  background: var(--uni-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49,117,172,.4);
}
.btn-submit:active { transform: none; }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  max-width: 380px;
  transform: translateY(80px); opacity: 0;
  transition: all var(--t-slow);
}
.toast.toast-show { transform: none; opacity: 1; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }

.toast-error { background: #1a1a2e; color: #fff; }
.toast-error svg { color: var(--red-500); }

.toast-success { background: var(--blue-900); color: #fff; }
.toast-success svg { color: var(--green-500); }

.toast-info { background: var(--blue-900); color: #fff; }
.toast-info svg { color: var(--uni-blue); }

/* =============================================
   RESPONSIVO — MOBILE
   ============================================= */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.is-open { transform: none; }
  .sidebar-backdrop { display: block; }

  .main-content { margin-left: 0; }
  .btn-menu { display: flex; }

  .topbar-status { display: none; }
  .topbar { padding: 0 18px; }

  .content-wrap { padding: 20px 18px 40px; }

  .page-header-badge { display: none; }
  .page-title { font-size: 20px; }

  .form-card { padding: 20px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid.grid-3 { grid-template-columns: 1fr; }
  .field-group.col-uf { max-width: 100%; }

  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .ev-item--wide { grid-column: span 1; }

  .form-footer { flex-direction: column; align-items: stretch; }
  .btn-submit { justify-content: center; }

  .toast { bottom: 16px; right: 16px; left: 16px; max-width: 100%; }
}

@media (max-width: 480px) {
  .evidence-grid { grid-template-columns: 1fr; }
  .success-card { padding: 36px 24px; }
  .success-title { font-size: 22px; }
}
