/* =====================================================================
   Cabos Connect — Design System
   Paleta centralizada em variáveis: para ajustar à logo oficial, altere
   apenas --brand, --brand-2 e --brand-ink abaixo.
   ===================================================================== */
:root {
  --brand: #1e9bff;
  --brand-2: #19e3d6;
  --brand-ink: #04121f;
  --brand-grad: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);

  --bg: #05080f;
  --bg-2: #080d18;
  --surface: #0c1322;
  --surface-2: #101a2d;
  --surface-3: #16223a;
  --line: rgba(148, 178, 226, 0.10);
  --line-2: rgba(148, 178, 226, 0.18);
  --text: #e8eef8;
  --text-2: #a4b1c7;
  --text-3: #6f7d95;

  --ok: #22c38e;
  --warn: #f5b94a;
  --danger: #ff5d6c;
  --info: #56a8ff;
  --accent: #19e3d6;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 20px 40px -24px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(30, 155, 255, .35), 0 10px 40px -10px rgba(30, 155, 255, .45);
  --sidebar-w: 268px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3f6fb;
  --bg-2: #eaf0f8;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #edf2f9;
  --line: rgba(15, 35, 70, 0.08);
  --line-2: rgba(15, 35, 70, 0.15);
  --text: #0c1628;
  --text-2: #465571;
  --text-3: #7b879c;
  --brand: #0a7ff0;
  --brand-2: #00b8b0;
  --shadow: 0 1px 2px rgba(10, 30, 60, .05), 0 12px 32px -18px rgba(10, 30, 60, .25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
code, .mono { font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace; font-size: .92em; }
::selection { background: rgba(30, 155, 255, .35); }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; letter-spacing: .02em; }
.upper { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 600; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pre { white-space: pre-line; }

/* ---------------------------------------------------------- layout app */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-right: 1px solid var(--line);
  padding: 20px 14px; scrollbar-width: thin;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-logo { height: 34px; width: auto; }
.brand-logo-lg { height: 44px; }
.nav-group { margin-top: 14px; }
.nav-group > .upper { color: var(--text-3); padding: 0 10px 6px; display: block; font-size: 10.5px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; font-size: 13.8px; position: relative; transition: .15s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.is-active { color: var(--text); background: linear-gradient(90deg, rgba(30,155,255,.16), rgba(30,155,255,.02)); }
.nav a.is-active::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--brand-grad);
}
.nav a.is-active .ic { color: var(--brand); }
.nav .count { margin-left: auto; font-size: 11px; background: var(--brand); color: #fff; border-radius: 99px; padding: 1px 7px; font-weight: 600; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.me:hover { background: var(--surface); }
.me .who { min-width: 0; }
.me .who strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { font-size: 12px; color: var(--text-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 14px 32px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.topbar .crumbs { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; min-width: 0; }
.topbar .crumbs a:hover { color: var(--text); }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; transition: .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--surface); }
.menu-toggle { display: none; }
.content { padding: 28px 32px 60px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 600; }
.page-head p { color: var(--text-2); margin-top: 4px; }
.page-head .tools { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------- grid */
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1fr) 340px; }
.g-main-wide { grid-template-columns: minmax(0, 1fr) 400px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
/* itens de grid/flex podem encolher abaixo do conteúdo (evita rolagem lateral no celular) */
.grid > *, .stack > *, .split > *, .hero .container > *, .auth > * { min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }

/* ---------------------------------------------------------- cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 0;
}
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-head h3 .ic { color: var(--brand); }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); }
.card-glow { position: relative; overflow: hidden; }
.card-glow::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px 160px at 0% 0%, rgba(30,155,255,.14), transparent 60%);
}

.stat { padding: 18px 20px; position: relative; overflow: hidden; }
.stat .label { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.stat .label .ic { color: var(--brand); }
.stat .value { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-top: 10px; letter-spacing: -.02em; }
.stat .hint { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.stat.tone-danger .value { color: var(--danger); }
.stat.tone-ok .value { color: var(--ok); }
.stat-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand-grad); opacity: .6; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font: 600 13.5px/1 var(--font); cursor: pointer; transition: .16s; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); }
.btn-primary {
  background: var(--brand-grad); color: #fff; border: 0; box-shadow: 0 8px 24px -10px rgba(30,155,255,.7);
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 30px -8px rgba(30,155,255,.8); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-danger { background: rgba(255,93,108,.1); color: var(--danger); border-color: rgba(255,93,108,.3); }
.btn-danger:hover { background: rgba(255,93,108,.18); border-color: var(--danger); }
.btn-ok { background: rgba(34,195,142,.12); color: var(--ok); border-color: rgba(34,195,142,.35); }
.btn-ok:hover { border-color: var(--ok); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field .help { font-size: 12px; color: var(--text-3); }
.field .error, .errorlist { color: var(--danger); font-size: 12.5px; margin: 0; padding: 0; list-style: none; }
.input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: 14px var(--font); outline: none; transition: .15s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30,155,255,.14); }
.textarea { height: auto; padding: 11px 13px; resize: vertical; min-height: 90px; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237b8aa3' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input-multi { height: auto; padding: 6px; }
.input-multi option { padding: 6px 8px; border-radius: 6px; }
input[type="color"].input { padding: 4px; width: 80px; }
.file { width: 100%; padding: 10px; border: 1px dashed var(--line-2); border-radius: 11px; background: var(--bg-2); color: var(--text-2); font-size: 13px; }
.file::file-selector-button { margin-right: 12px; border: 0; border-radius: 8px; padding: 7px 12px; background: var(--surface-3); color: var(--text); font-weight: 600; cursor: pointer; }
.check { width: 18px; height: 18px; accent-color: var(--brand); }
.field-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field-check label { color: var(--text); }
div.choice-list, ul.choice-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.choice-list > div, .choice-list > li { display: contents; }
.choice-list label {
  display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line-2); border-radius: 10px;
  cursor: pointer; font-size: 13.5px; color: var(--text); background: var(--bg-2);
}
.choice-list label:has(input:checked) { border-color: var(--brand); background: rgba(30,155,255,.1); }
.choice-list input { accent-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.input-icon .input { padding-left: 38px; }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--bg-2); transition: .2s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: rgba(30,155,255,.05); }
.dropzone .ic { color: var(--brand); }
.dropzone input { display: none; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ---------------------------------------------------------- filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters .input { height: 38px; width: auto; min-width: 180px; }
.filters .input-icon { flex: 1; min-width: 220px; max-width: 380px; }
.filters .input-icon .input { width: 100%; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 500; background: var(--surface); }
.pill:hover { color: var(--text); border-color: var(--line-2); }
.pill.is-active { background: rgba(30,155,255,.14); border-color: rgba(30,155,255,.5); color: var(--text); }

/* ---------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
.table th { text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .right { text-align: right; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table .strong { font-weight: 600; }
.table a.rowlink { font-weight: 600; }
.table a.rowlink:hover { color: var(--brand); }
.table tfoot td { font-weight: 700; border-top: 1px solid var(--line-2); }
.table-compact td, .table-compact th { padding: 9px 12px; }

/* ---------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); background: rgba(34,195,142,.1); border-color: rgba(34,195,142,.25); }
.badge-warn { color: var(--warn); background: rgba(245,185,74,.1); border-color: rgba(245,185,74,.25); }
.badge-danger { color: var(--danger); background: rgba(255,93,108,.1); border-color: rgba(255,93,108,.25); }
.badge-info { color: var(--info); background: rgba(86,168,255,.1); border-color: rgba(86,168,255,.25); }
.badge-accent { color: var(--accent); background: rgba(25,227,214,.1); border-color: rgba(25,227,214,.25); }
.badge-muted { color: var(--text-2); background: var(--surface-2); border-color: var(--line); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); padding: 3px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); }

/* ---------------------------------------------------------- avatar */
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--brand-grad); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; border-radius: 9px; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; border-radius: 15px; }

/* ---------------------------------------------------------- messages */
.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.8px; }
.flash-success { border-color: rgba(34,195,142,.35); background: rgba(34,195,142,.08); }
.flash-success .ic { color: var(--ok); }
.flash-error { border-color: rgba(255,93,108,.35); background: rgba(255,93,108,.08); }
.flash-error .ic { color: var(--danger); }
.flash-info .ic, .flash-warning .ic { color: var(--info); }
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(30,155,255,.3); background: linear-gradient(120deg, rgba(30,155,255,.1), rgba(25,227,214,.04)); }
.callout .ic { color: var(--brand); margin-top: 2px; }
.callout strong { display: block; margin-bottom: 2px; }
.callout-warn { border-color: rgba(245,185,74,.35); background: rgba(245,185,74,.07); }
.callout-warn .ic { color: var(--warn); }

/* ---------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 12px 11px; color: var(--text-2); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; white-space: nowrap; font-family: var(--font); }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--brand); }
.tab .n { font-size: 11px; background: var(--surface-3); border-radius: 99px; padding: 1px 7px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- stepper */
.stepper { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 4px 2px 2px; }
.step { flex: 1; min-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; text-align: center; }
.step::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px; background: var(--line-2); z-index: 0; }
.step:first-child::before { display: none; }
.step .bullet { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1.5px solid var(--line-2); color: var(--text-3); z-index: 1; font-size: 12px; font-weight: 700; }
.step span { font-size: 12px; color: var(--text-3); font-weight: 500; }
.step.done::before, .step.current::before { background: var(--brand-grad); }
.step.done .bullet { background: var(--brand-grad); border-color: transparent; color: #fff; }
.step.current .bullet { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px rgba(30,155,255,.15); }
.step.done span, .step.current span { color: var(--text); }

/* ---------------------------------------------------------- timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 24px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(30,155,255,.14); }
.timeline li::after { content: ""; position: absolute; left: 8.5px; top: 18px; bottom: -2px; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline .when { font-size: 11.5px; color: var(--text-3); }
.timeline .txt { font-size: 13.4px; }

/* ---------------------------------------------------------- chat */
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 520px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 78%; padding: 11px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.bubble.mine { align-self: flex-end; background: linear-gradient(120deg, rgba(30,155,255,.2), rgba(25,227,214,.1)); border-color: rgba(30,155,255,.3); }
.bubble.internal { border-style: dashed; border-color: rgba(245,185,74,.5); background: rgba(245,185,74,.06); }
.bubble .meta { font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; display: flex; gap: 8px; }
.bubble .body { white-space: pre-line; font-size: 13.8px; }

/* ---------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.gallery a { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* ---------------------------------------------------------- proposals */
.proposal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.proposal { display: flex; flex-direction: column; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--surface-2); padding: 22px; position: relative; }
.proposal.recommended { border-color: transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--brand-grad) border-box; border: 1.5px solid transparent; box-shadow: var(--glow); }
.proposal .ribbon { position: absolute; top: -11px; left: 22px; background: var(--brand-grad); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; letter-spacing: .04em; }
.proposal h4 { font-size: 17px; }
.proposal .price { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin: 14px 0 2px; letter-spacing: -.02em; }
.proposal ul { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.proposal li { display: flex; gap: 8px; font-size: 13.4px; color: var(--text-2); }
.proposal li .ic { color: var(--ok); margin-top: 2px; }
.proposal .actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 14px; }

/* ---------------------------------------------------------- kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.kcol { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 300px; }
.kcol-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 12px; }
.kcol-head strong { font-size: 13.5px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px; margin-bottom: 10px; }
.kcard:hover { border-color: var(--line-2); }
.kcard .t { font-weight: 600; font-size: 13.8px; }
.kcard select { height: 30px; font-size: 12px; margin-top: 10px; }

/* ---------------------------------------------------------- bars (charts) */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-top: 10px; }
.bars .col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.bars .pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.bars .bar { width: 38%; max-width: 22px; border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; transition: height .6s ease; }
.bars .bar.in { background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.bars .bar.out { background: color-mix(in srgb, var(--danger) 70%, transparent); }
.bars .lbl { font-size: 11.5px; color: var(--text-3); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.hbar .track { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--brand-grad); border-radius: 99px; }
.funnel-row { display: grid; grid-template-columns: 200px 1fr 36px; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; }
.funnel-row .track { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.funnel-row .fill { height: 100%; border-radius: 99px; background: var(--brand-grad); }

/* ---------------------------------------------------------- misc */
.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty .ic { color: var(--text-3); margin-bottom: 10px; }
.empty h4 { color: var(--text); font-size: 15px; margin-bottom: 4px; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { display: block; font-weight: 600; font-size: 13.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .sub { font-size: 12.5px; color: var(--text-3); }
.cat-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(30,155,255,.1); color: var(--brand); flex: none; border: 1px solid rgba(30,155,255,.2); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 13.6px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; word-break: break-word; }
.pagination { display: flex; gap: 6px; justify-content: flex-end; align-items: center; padding: 14px 16px; font-size: 13px; color: var(--text-2); }
.doc-item { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.doc-item + .doc-item { margin-top: 10px; }
.perm-table td { padding: 10px 12px; }
.perm-table div.level-radio { display: flex; gap: 6px; flex-wrap: wrap; }
.perm-table div.level-radio label { padding: 5px 9px; font-size: 12px; gap: 6px; }
.money-lg { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.divider-label { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 18px 0; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pix-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line-2); }
.pix-box code { flex: 1; word-break: break-all; }

dialog.modal { border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8); }
dialog.modal::backdrop { background: rgba(2, 5, 12, .7); backdrop-filter: blur(4px); }
dialog.modal .card-head { border-bottom: 1px solid var(--line); }
dialog.modal[open] { animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.formset-row { display: grid; grid-template-columns: 140px 1fr 90px 80px 130px 110px 36px; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.formset-row.sale { grid-template-columns: 1fr 90px 80px 130px 110px 36px; }
.formset-row .input { height: 38px; font-size: 13.5px; }
.formset-head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.formset-row .line-total { height: 38px; display: flex; align-items: center; justify-content: flex-end; font-weight: 600; }
.formset-row .del { display: flex; align-items: center; justify-content: center; height: 38px; }
.formset-row .del input { display: none; }
.formset-row.deleted { opacity: .35; }
.totals { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 14px; }
.totals .grand { font-family: var(--font-display); font-size: 22px; font-weight: 600; }

/* ---------------------------------------------------------- auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); }
.auth-visual { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 20% 10%, rgba(30,155,255,.22), transparent 60%), radial-gradient(700px 500px at 90% 90%, rgba(25,227,214,.15), transparent 60%), #03060c; display: flex; flex-direction: column; justify-content: space-between; padding: 44px; border-right: 1px solid var(--line); }
.auth-visual h2 { font-size: 38px; font-weight: 600; max-width: 520px; line-height: 1.12; }
.auth-visual p { color: var(--text-2); max-width: 460px; margin-top: 14px; font-size: 15.5px; }
.auth-points { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.auth-points div { display: flex; gap: 12px; align-items: center; color: var(--text-2); font-size: 14px; }
.auth-points .ic { color: var(--brand-2); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 28px; font-weight: 600; }
.auth-card .sub { color: var(--text-2); margin: 6px 0 26px; }
.auth-card.wide { max-width: 620px; }
.fiber-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; pointer-events: none; }

/* ---------------------------------------------------------- landing */
.site { background: var(--bg); color: var(--text); overflow-x: hidden; }
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: .25s; }
.site-nav.scrolled { background: rgba(5,8,15,.8); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-nav .in { max-width: 1240px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 28px; }
.site-nav nav { display: flex; gap: 26px; margin-left: 20px; }
.site-nav nav a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.site-nav nav a:hover { color: var(--text); }
.site-nav .cta { margin-left: auto; display: flex; gap: 10px; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 90px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1100px 600px at 75% 30%, rgba(30,155,255,.20), transparent 60%), radial-gradient(800px 500px at 10% 90%, rgba(25,227,214,.10), transparent 60%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(148,178,226,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,178,226,.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; border: 1px solid rgba(30,155,255,.35); background: rgba(30,155,255,.08); font-size: 13px; color: var(--text-2); }
.eyebrow b { background: var(--brand-grad); color: #fff; border-radius: 99px; padding: 2px 8px; font-size: 11px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 20px; }
.hero .lead { font-size: 18px; color: var(--text-2); max-width: 580px; line-height: 1.6; }
.hero .ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats strong { font-family: var(--font-display); font-size: 28px; display: block; }
.hero-stats span { color: var(--text-3); font-size: 13px; }
.rack { position: relative; border-radius: 28px; border: 1px solid var(--line-2); background: linear-gradient(160deg, #0d1628, #060a14); box-shadow: 0 50px 100px -40px rgba(30,155,255,.45); padding: 26px; overflow: hidden; }
.rack::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 50% 0%, rgba(30,155,255,.25), transparent 70%); pointer-events: none; }
.rack-unit { height: 38px; border-radius: 8px; background: #0a1120; border: 1px solid rgba(148,178,226,.12); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.rack-unit .port { width: 14px; height: 11px; border-radius: 2px; background: #111c31; border: 1px solid rgba(148,178,226,.14); position: relative; }
.rack-unit .port.on::after { content: ""; position: absolute; top: -5px; left: 4px; width: 4px; height: 3px; border-radius: 1px; background: var(--brand-2); box-shadow: 0 0 6px var(--brand-2); animation: blink 2.4s infinite; }
.rack-unit .port.on:nth-child(3n)::after { animation-delay: .6s; background: var(--brand); box-shadow: 0 0 6px var(--brand); }
.rack-unit .port.on:nth-child(4n)::after { animation-delay: 1.3s; }
.rack-unit .led { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.rack-unit.server { height: 52px; background: linear-gradient(90deg, #0c1528, #0a1120); }
.rack-unit.server .slots { display: flex; gap: 4px; }
.rack-unit.server .slots i { width: 26px; height: 30px; border-radius: 3px; background: repeating-linear-gradient(0deg, #122038 0 2px, #0b1426 2px 4px); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.float-card { position: absolute; background: rgba(12,19,34,.85); backdrop-filter: blur(12px); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; z-index: 3; }
.float-card .ic { color: var(--brand-2); }
.float-card strong { display: block; font-size: 14px; }
.float-card span { font-size: 12px; color: var(--text-3); }
.fc-1 { left: -34px; top: 18%; animation: floaty 6s ease-in-out infinite; }
.fc-2 { right: -24px; bottom: 14%; animation: floaty 7s ease-in-out infinite reverse; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.logos-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: var(--bg-2); }
.logos-strip .container { display: flex; gap: 44px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: var(--text-3); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.logos-strip span { display: inline-flex; gap: 10px; align-items: center; }
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .upper { color: var(--brand-2); }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; margin-top: 12px; letter-spacing: -.03em; }
.section-head p { color: var(--text-2); font-size: 17px; margin-top: 16px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); transition: .25s; position: relative; overflow: hidden; }
.service:hover { border-color: rgba(30,155,255,.45); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(30,155,255,.4); }
.service .cat-ic { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 20px; }
.service h3 { font-size: 18px; margin-bottom: 8px; }
.service p { color: var(--text-2); font-size: 14.5px; }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.process .p { padding: 24px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.process .p::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 13px; color: var(--brand); font-weight: 600; }
.process .p h4 { font-size: 16px; margin: 14px 0 6px; }
.process .p p { font-size: 13.5px; color: var(--text-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--text-2); }
.checks .ic { color: var(--brand-2); margin-top: 2px; }
.mock { border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface); padding: 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.cta-band { border-radius: 28px; padding: 64px; background: radial-gradient(600px 300px at 90% 10%, rgba(25,227,214,.25), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(30,155,255,.3), transparent 60%), var(--surface); border: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; max-width: 640px; }
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--text-3); font-size: 13.5px; margin-top: 60px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- print (propostas) */
.doc-page { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.doc-sheet { background: #fff; color: #0c1628; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.doc-cover { padding: 44px 48px; background: radial-gradient(500px 240px at 100% 0%, rgba(25,227,214,.35), transparent 60%), linear-gradient(135deg, #04101f, #0a1d3a); color: #fff; }
.doc-cover h1 { font-size: 30px; font-weight: 600; margin-top: 30px; }
.doc-cover .meta { display: flex; gap: 30px; margin-top: 18px; color: rgba(255,255,255,.7); font-size: 13px; flex-wrap: wrap; }
.doc-body { padding: 40px 48px; font-size: 14px; line-height: 1.65; }
.doc-body h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: #0a7ff0; margin: 30px 0 12px; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-body th { text-align: left; background: #f1f5fb; padding: 9px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #53627c; }
.doc-body td { padding: 9px 10px; border-bottom: 1px solid #e6ebf3; }
.doc-body .total-box { margin-top: 18px; margin-left: auto; width: 320px; border: 1px solid #e0e7f1; border-radius: 12px; padding: 14px 18px; }
.doc-body .total-box div { display: flex; justify-content: space-between; padding: 3px 0; }
.doc-body .total-box .g { font-size: 20px; font-weight: 700; color: #0a1d3a; border-top: 1px solid #e0e7f1; margin-top: 6px; padding-top: 10px; }
.doc-actions { display: flex; justify-content: space-between; margin-bottom: 18px; gap: 10px; }

@media print {
  body { background: #fff; }
  .doc-actions, .no-print { display: none !important; }
  .doc-page { padding: 0; max-width: none; }
  .doc-sheet { box-shadow: none; border-radius: 0; }
  .doc-cover { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g-main-wide { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.6); }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 12px 16px; }
  .topbar .crumbs { display: none; }
  .content { padding: 20px 16px 50px; }
  .g-3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .hero .container, .split { grid-template-columns: 1fr; }
  .rack-wrap { display: none; }
  .site-nav nav { display: none; }
  .formset-row, .formset-row.sale { grid-template-columns: 1fr 1fr; }
  .formset-row .desc { grid-column: 1 / -1; }
  .formset-head { display: none; }
}
@media (max-width: 640px) {
  .bars { gap: 4px; }
  .bars .lbl { font-size: 10px; }
  .page-head .row, .page-head form { flex-wrap: wrap; }
  .page-head .row .input { flex: 1; min-width: 140px; }
  .g-2, .g-4, .form-grid, .services, .process { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 22px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .hbar, .funnel-row { grid-template-columns: 110px 1fr auto; }
  .cta-band { padding: 36px 24px; }
  .doc-cover, .doc-body { padding: 28px 22px; }
  .site-nav .cta .btn-ghost { display: none; }
}
