:root {
  --bg: #0c1117;
  --bg2: #121820;
  --card: #1a2129;
  --card2: #212a34;
  --panel: #1a2129;
  --text: #ffffff;
  --muted: #7a828b;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.13);
  --brand: #f93842;
  --brand-dark: #d42e37;
  --charcoal: #1a2129;
  --pri: #f93842;
  --pri2: #ff6b72;
  --gold: #f93842;
  --gold2: #ff6b72;
  --ok: #3dd68c;
  --warn: #f5a524;
  --err: #f93842;
  --danger: #f93842;
  --glow: rgba(249, 56, 66, 0.28);
  --glow-gold: rgba(249, 56, 66, 0.14);
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
  --shadow-sm: 0 6px 22px rgba(0, 0, 0, 0.26);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;
  --font: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --display: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --content-max: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea { font-family: inherit; }

a { color: var(--pri2); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: none; }

#app {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 55% at 85% -5%, rgba(249, 56, 66, 0.14), transparent 58%),
    radial-gradient(ellipse 55% 45% at 8% 95%, rgba(255, 255, 255, 0.035), transparent 52%),
    radial-gradient(ellipse 40% 35% at 50% 40%, rgba(26, 33, 41, 0.55), transparent 70%),
    var(--bg);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  height: var(--header-h);
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 17, 23, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 14px;
  text-transform: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.brand-mark-logo {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.brand-mark-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand .brand-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand .brand-name strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-transform: none;
}

.brand-accent { color: var(--brand); }

.brand .brand-name span {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(249, 56, 66, 0.15);
  border: 1px solid rgba(249, 56, 66, 0.35);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 11px;
}

.shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 36px 32px 72px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  margin: 22px 0;
  box-shadow: var(--shadow-sm);
}

.card h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.card h2 .badge {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  letter-spacing: 0.02em;
  text-transform: none;
  background: rgba(255, 255, 255, 0.03);
}

#loginView,
#loginView.login-card {
  max-width: 420px;
  margin: 56px auto 40px;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
}

#loginView::before { display: none; content: none; }

.login-hero {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.login-logo {
  width: min(200px, 64vw);
  height: auto;
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.login-kicker {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand) !important;
}

.login-hero h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  color: #fff;
  line-height: 1.2;
}

.login-tagline,
.login-hero p.login-tagline {
  margin: 0 auto;
  max-width: 32ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.login-hint {
  margin-top: 20px;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
  color: var(--muted);
}

#loginView label { margin-top: 16px; }

#loginView button.primary {
  background: var(--brand);
  color: #fff;
  margin-top: 22px;
  padding: 14px 18px;
  letter-spacing: 0.02em;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-dark);
  box-shadow: 0 8px 24px var(--glow);
}

#loginView button.primary:hover {
  background: var(--brand-dark);
  filter: none;
}

label {
  display: block;
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.01em;
}

input, select, textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line2);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: none;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(249, 56, 66, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 56, 66, 0.15);
}

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

button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

button.primary,
.primary {
  background: var(--brand) !important;
  color: #fff !important;
  width: 100%;
  margin-top: 14px;
  box-shadow: 0 8px 22px var(--glow);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-dark) !important;
}

button.primary:hover,
.primary:hover {
  background: var(--brand-dark) !important;
  filter: none;
}

button.ghost {
  background: transparent;
  color: #c8ccd0;
  border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

button.ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

button.soft {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

button.soft:hover {
  border-color: var(--line2);
  background: rgba(255, 255, 255, 0.07);
}

button.sm {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
  width: auto;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  align-items: center;
  border-bottom: 0;
  margin: 0 0 28px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tabs button {
  background: transparent;
  color: var(--muted);
  border: 0;
  border-bottom: 0;
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  box-shadow: none;
  margin-bottom: 0;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.tabs button.active {
  color: #fff !important;
  border-color: transparent;
  border-bottom: 0 !important;
  background: rgba(249, 56, 66, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(249, 56, 66, 0.28);
}

.tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.tabs .spacer { flex: 1; min-width: 8px; }

.tabs a.muted {
  font-size: 13px !important;
  padding: 12px 10px;
  color: var(--muted);
}

.tabs a.muted:hover { color: var(--brand); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.err { color: var(--err); min-height: 1.2em; font-size: 13px; margin-top: 10px; }
.ok { color: #b8bec4; white-space: pre-wrap; font-size: 13px; margin-top: 10px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.5; }

.grid.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 10px 0 12px;
}

.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.kpi::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
  opacity: 0.7;
}

.kpi .label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kpi .v {
  font-size: 28px;
  font-weight: 600;
  margin-top: 12px;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.1;
}

.kpi .v.pos { color: #fff; }
.kpi .v.neg { color: var(--err); }

.channel-grid, .unit-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.channel-item, .unit-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px;
  background: rgba(0, 0, 0, 0.18);
}

.channel-item .name, .unit-item .name { font-weight: 600; margin-bottom: 4px; }
.channel-item .meta, .unit-item .meta { color: var(--muted); font-size: 12px; line-height: 1.45; }

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.source-pill.airbnb { color: #fff; border-color: rgba(249, 56, 66, 0.4); background: rgba(249, 56, 66, 0.12); }
.source-pill.booking { color: #c8d0d8; border-color: var(--line2); background: rgba(255, 255, 255, 0.04); }
.source-pill.direto { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.source-pill.erp { color: #aaa; border-color: var(--line2); background: rgba(0, 0, 0, 0.2); }
.source-pill.outro { color: var(--muted); border-color: var(--line); }

.table-wrap {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }

th, td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  position: sticky;
  top: 0;
}

tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
td.num { font-variant-numeric: tabular-nums; }
td.net-pos { color: #fff; font-weight: 600; }
td.net-neg { color: var(--err); font-weight: 600; }

.list { display: grid; gap: 12px; }

.list-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px;
  background: rgba(0, 0, 0, 0.18);
}

.list-item .title { font-weight: 600; margin-bottom: 4px; }
.list-item .meta { color: var(--muted); font-size: 12px; line-height: 1.5; }
.list-item .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
  text-transform: none;
  background: rgba(255, 255, 255, 0.04);
  color: #ccc;
}

.tag.ok { color: #fff; background: rgba(61, 214, 140, 0.12); border-color: rgba(61, 214, 140, 0.35); }
.tag.warn { color: #f5d08a; background: rgba(245, 165, 36, 0.1); border-color: rgba(245, 165, 36, 0.3); }
.tag.muted { color: var(--muted); }

.empty {
  text-align: center;
  padding: 56px 28px;
  color: var(--muted);
  border: 1px dashed var(--line2);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.14);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.55;
}

.empty .ico { font-size: 24px; margin-bottom: 12px; opacity: 0.75; }

.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  padding: 20px 4px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  border-top-color: var(--brand);
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-width: 360px;
  font-size: 13px;
  display: none;
}

.toast.show { display: block; animation: fadein .2s ease; }
.toast.err { border-color: rgba(249, 56, 66, 0.55); }
.toast.ok { border-color: rgba(61, 214, 140, 0.4); }

@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.form-grid {
  display: grid;
  gap: 6px 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.form-actions .primary { width: auto; margin: 0; min-width: 148px; }

.page-narrow { max-width: 520px; margin: 40px auto; padding: 0 16px 40px; }

.preview {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  max-height: 280px;
  object-fit: cover;
}

.cam-actions { display: flex; gap: 8px; margin-top: 10px; }

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0 28px;
  font-size: 13px;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  color: #ccc;
}

.subtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
  border-bottom: 0;
  padding: 4px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.subtabs button {
  background: transparent;
  color: var(--muted);
  border: 0;
  border-bottom: 0;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 500;
  box-shadow: none;
  margin-bottom: 0;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.subtabs button.active {
  color: #fff;
  border-bottom: 0;
  background: rgba(249, 56, 66, 0.16);
  box-shadow: inset 0 0 0 1px rgba(249, 56, 66, 0.28);
}

.subtabs button:hover { color: #fff; }
.subpanel { margin-top: 4px; }

.dre-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.dre-row:last-child { border-bottom: 0; }

.dre-row.total {
  font-weight: 700;
  background: rgba(249, 56, 66, 0.08);
  border-radius: var(--radius-sm);
  margin-top: 10px;
  border: 1px solid rgba(249, 56, 66, 0.25);
}

.dre-row .lbl { color: var(--muted); }

.currency-btn {
  font-weight: 600;
  letter-spacing: 0.04em;
  border-color: var(--line) !important;
  color: #fff !important;
  min-width: 72px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  text-transform: uppercase;
  font-size: 11px;
}

.currency-btn:hover { background: rgba(255, 255, 255, 0.06); color: #fff !important; }

.auto-refresh-chip {
  align-self: center;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  white-space: nowrap;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auto-refresh-chip.busy {
  color: #fff;
  border-color: rgba(249, 56, 66, 0.45);
  background: rgba(249, 56, 66, 0.12);
}

.auto-refresh-chip.off {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.avail-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 16px;
}

.avail-toolbar-right {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.avail-date-label {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--muted);
}

.avail-date-label input[type="date"] {
  margin-top: 6px;
  width: auto;
  min-width: 160px;
}

.kanban-board {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: flex-start;
  min-height: 420px;
}

.kanban-col {
  flex: 0 0 270px;
  max-width: 290px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none;
}

.kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.kanban-col-head .title {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(249, 56, 66, 0.2);
}

.kanban-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  letter-spacing: 0;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 120px;
}

.kanban-col.drag-over {
  border-color: rgba(249, 56, 66, 0.55);
  box-shadow: 0 0 0 3px rgba(249, 56, 66, 0.12);
}

.kanban-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging { opacity: 0.55; transform: none; }
.kanban-card:hover { border-color: var(--line2); }

.kanban-card .apt {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  font-family: var(--display);
  letter-spacing: -0.01em;
}

.kanban-card .addr { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.kanban-card .guest { font-size: 12px; font-weight: 600; margin-top: 6px; }
.kanban-card .meta { color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 4px; }

.kanban-card .money {
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  margin-top: 8px;
}

.kanban-empty {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 20px 8px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

.company-switch {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  align-self: center;
}

.company-switch select {
  margin: 0;
  width: auto;
  min-width: 140px;
  max-width: 200px;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Ensure session dock never leaks onto login */
#headerAppControls[hidden],
.header-right[hidden],
#headerAppControls.hidden,
.header-right.hidden {
  display: none !important;
}


.command-dock {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.dock-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
  flex: 0 0 1px;
  margin: 0 2px;
}

.dock-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font);
}

.dock-live:hover { background: rgba(255, 255, 255, 0.05); }
.dock-live.busy { color: #fff; background: rgba(249, 56, 66, 0.1); }
.dock-live.off { color: var(--muted); }

.dock-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand) !important;
  box-shadow: 0 0 0 0 rgba(249, 56, 66, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

.dock-live:not(.off):not(.busy) .dock-pulse { background: var(--brand) !important; }
.dock-live.busy .dock-pulse { background: var(--pri2) !important; animation: none; }
.dock-live.off .dock-pulse { background: #555 !important; box-shadow: none; animation: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 56, 66, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(249, 56, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 56, 66, 0); }
}

.dock-user.user-chip {
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  max-width: 220px;
  color: #c8ccd0;
  background: transparent;
}

.dock-user .avatar {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(249, 56, 66, 0.35);
  color: #fff;
  background: rgba(249, 56, 66, 0.15);
  border-radius: 50%;
  font-size: 10px;
}

.dock-company {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 9px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 12px 6px;
  background: transparent;
  justify-content: center;
}

.dock-company select {
  margin: 0;
  min-width: 120px;
  max-width: 160px;
  padding: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #fff;
  letter-spacing: 0;
  outline: none;
  box-shadow: none !important;
  text-transform: none;
}

.dock-company select:focus {
  border-color: transparent;
  box-shadow: none !important;
}

.dock-currency {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-radius: 12px;
  padding: 11px 15px;
  min-width: auto;
  cursor: pointer;
  font-family: var(--font);
  text-transform: uppercase;
}

.dock-currency:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

.dock-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: #aeb4ba;
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--font);
}

.dock-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.dock-icon-btn.dock-danger:hover {
  color: #fff;
  background: rgba(249, 56, 66, 0.14);
}

.dock-ico { font-size: 13px; line-height: 1; opacity: 0.9; }

@media (max-width: 1100px) {
  .dock-lbl { display: none; }
  .dock-user.user-chip span {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  .command-dock {
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
    border-radius: 14px;
    gap: 2px;
  }
  .header-right { width: 100%; }
  .top {
    flex-wrap: wrap;
    gap: 12px;
    height: auto;
    min-height: var(--header-h);
    padding: 12px 16px;
  }
  .dock-divider { display: none; }
  .dock-currency,
  .dock-icon-btn {
    border-left: 0;
    border-radius: 10px;
  }
  .dock-live { border-radius: 10px; }
}

@media (max-width: 640px) {
  .top { padding: 12px 14px; }
  .shell { padding: 18px 14px 40px; }
  .card { padding: 18px 16px 16px; margin: 14px 0; }
  .kpi .v { font-size: 20px; }
  th, td { padding: 10px 10px; }
  #loginView,
  #loginView.login-card {
    margin: 28px auto 24px;
    padding: 28px 20px 24px;
    border-radius: 14px;
  }
  .login-hero h1 { font-size: 24px; }
  .tabs button {
    padding: 10px 12px;
    font-size: 12px;
  }
  .brand .brand-name strong { font-size: 14px; }
  .brand-mark,
  .brand-mark-logo { width: 40px; height: 40px; }
}


/* ========== SMART AIRB visual redesign 2.0 ========== */

.shell { padding: 40px 32px 80px; }

.card {
  padding: 30px 30px 26px;
  margin: 22px 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%), var(--card);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
  transform: translateY(-1px);
}
.card h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

/* Login cinematic */
#loginView.login-cinematic,
#loginView.login-card.login-cinematic {
  position: relative;
  overflow: hidden;
  max-width: 460px;
  margin: 72px auto 56px;
  padding: 48px 40px 40px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(255,255,255,0.035), transparent 42%),
    rgba(26, 33, 41, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(249, 56, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: loginIn .6s var(--ease) both;
}

.login-glow {
  position: absolute;
  inset: -45% -25% auto -25%;
  height: 78%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(249, 56, 66, 0.28), transparent 58%),
    radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.05), transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 5s ease-in-out infinite;
}

.login-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(circle at 78% 18%, rgba(249, 56, 66, 0.18), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.04), transparent 32%),
    linear-gradient(135deg, transparent 40%, rgba(249, 56, 66, 0.04) 100%);
}

#loginView .login-hero,
#loginView .login-form {
  position: relative;
  z-index: 1;
}

#loginView .login-hero {
  text-align: center;
  margin-bottom: 36px;
  animation: loginSlide .65s var(--ease) .06s both;
}

#loginView .login-form {
  animation: loginSlide .65s var(--ease) .14s both;
}

#loginView .login-kicker {
  color: #f93842 !important;
  letter-spacing: 0.2em !important;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 14px;
}

#loginView .login-hero h1 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin: 0 0 14px;
}

#loginView .login-tagline {
  font-size: 15px;
  line-height: 1.6;
  color: #8a929b;
  max-width: 30ch;
  margin: 0 auto;
}

#loginView .login-logo {
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 12px 36px rgba(249, 56, 66, 0.14);
}

#loginView button.primary {
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-top: 26px;
  box-shadow: 0 12px 32px rgba(249, 56, 66, 0.36);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
#loginView button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(249, 56, 66, 0.45);
}
#loginView button.primary:active { transform: translateY(0); }

#loginView input {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.34);
}
#loginView input:focus {
  border-color: rgba(249, 56, 66, 0.55);
  box-shadow: 0 0 0 4px rgba(249, 56, 66, 0.14);
}

#loginView label { margin-top: 18px; font-size: 12px; letter-spacing: 0.02em; }

@keyframes loginIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes loginSlide {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #loginView.login-cinematic,
  #loginView .login-hero,
  #loginView .login-form,
  .login-glow,
  .card,
  .kpi,
  .tabs button { animation: none !important; transition: none !important; }
}

/* Tabs polish */
.tabs button {
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.tabs button.active {
  background: rgba(249, 56, 66, 0.18);
}
.tabs button:focus-visible {
  outline: 2px solid rgba(249, 56, 66, 0.55);
  outline-offset: 2px;
}
.tabs a.muted {
  padding: 11px 14px !important;
  border-radius: var(--radius-pill);
}

.command-dock {
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.command-dock:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.dock-live,
.dock-currency,
.dock-icon-btn {
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.dock-live:focus-visible,
.dock-currency:focus-visible,
.dock-icon-btn:focus-visible,
button.soft:focus-visible,
button.ghost:focus-visible,
button.primary:focus-visible {
  outline: 2px solid rgba(249, 56, 66, 0.55);
  outline-offset: 2px;
}

.kpi {
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  cursor: default;
}
.kpi:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.list-item,
.channel-item,
.unit-item,
.kanban-card {
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.list-item:hover,
.channel-item:hover,
.unit-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}
.kanban-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

/* Dash hero */
.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 2px 0 28px;
  padding: 10px 4px 6px;
  animation: loginSlide .5s var(--ease) both;
}
.dash-greeting {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f93842;
}
.dash-title {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
}
.dash-sub {
  margin: 0;
  font-size: 15px;
  max-width: 44ch;
  line-height: 1.55;
  color: var(--muted);
}
.dash-hero-meta { flex-shrink: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.pill-soft {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aeb4ba;
}

.kpis-hero {
  gap: 18px;
  margin: 0 0 10px;
}
.kpis-hero .kpi {
  padding: 24px 24px 22px;
  border-radius: var(--radius);
}
.kpis-hero .kpi-hero,
.kpi.kpi-hero {
  grid-column: span 2;
  background:
    linear-gradient(145deg, rgba(249, 56, 66, 0.18), rgba(26, 33, 41, 0.35) 52%),
    #1a2129;
  border-color: rgba(249, 56, 66, 0.32);
  box-shadow: 0 18px 48px rgba(249, 56, 66, 0.12);
}
.kpis-hero .kpi-hero .v,
.kpi.kpi-hero .v {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.kpis-hero .kpi-hero .label,
.kpi.kpi-hero .label {
  color: #ff8a90;
}

.dash-banner {
  border-radius: var(--radius);
  padding: 20px 22px;
}

.empty.empty-state {
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(26, 33, 41, 0.5);
}
.empty-state .ico {
  font-size: 32px;
  margin-bottom: 16px;
  opacity: 0.88;
}
.empty-state .empty-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 10px;
}
.empty-state .empty-body {
  font-size: 14px;
  color: #7a828b;
  max-width: 38ch;
  margin: 0 auto;
  line-height: 1.55;
}

button.primary,
.primary {
  border-radius: 14px !important;
}

@media (max-width: 720px) {
  .kpis-hero .kpi-hero,
  .kpi.kpi-hero { grid-column: span 1; }
  .dash-title { font-size: 26px; }
  #loginView.login-cinematic {
    margin: 36px auto 28px;
    padding: 36px 24px 30px;
    border-radius: 18px;
  }
  #loginView .login-hero h1 { font-size: 28px; }
  .shell { padding: 22px 14px 56px; }
  .card { padding: 22px 18px 20px; }
  .tabs {
    padding: 5px;
    gap: 4px;
  }
  .tabs button {
    padding: 10px 12px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .brand-mark,
  .brand-mark-logo { width: 42px; height: 42px; border-radius: 12px; }
  th, td { padding: 14px 14px; }
}


/* Module refresh (Fleet mirror) */
.module-refresh-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 14px;
}
.module-refresh-btn {
  border-radius: var(--radius-pill);
  letter-spacing: 0;
}
.module-refresh-btn.is-spinning {
  animation: smart-spin 0.7s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}
@keyframes smart-spin { to { transform: rotate(360deg); } }
.module-refresh-meta {
  font-size: 12px;
  min-width: 7.5rem;
  text-align: right;
}


/* SMART AIRB sprint tony — pulso + skeleton + empty CTA */
.pulso-band {
  margin: 0 0 22px;
  padding: 18px 20px 16px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(249, 56, 66, 0.12), rgba(26, 33, 41, 0.55) 48%),
    var(--charcoal);
  border: 1px solid rgba(249, 56, 66, 0.22);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}
.pulso-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pulso-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ff8a90;
}
.pulso-date { font-size: 12px; }
.pulso-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pulso-metric {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(12, 17, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.pulso-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.pulso-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.empty-state .empty-cta {
  margin-top: 22px;
  width: auto;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Soft skeleton on per-module Refresh */
.module-skeleton {
  display: none;
  margin: 0 0 18px;
  pointer-events: none;
}
.module-skeleton.is-on { display: block; }
.tab.is-refreshing > :not(.module-refresh-bar):not(.module-skeleton) {
  opacity: 0.42;
  filter: saturate(0.85);
  transition: opacity 0.25s var(--ease);
}
.sk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.sk-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(26, 33, 41, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sk-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 0%,
    rgba(249,56,66,0.18) 45%,
    rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.15s ease-in-out infinite;
  margin-bottom: 10px;
}
.sk-line.lg { height: 14px; width: 42%; }
.sk-line.short { width: 55%; margin-bottom: 0; }
@keyframes sk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 720px) {
  .pulso-metrics,
  .sk-grid { grid-template-columns: 1fr; }
  .pulso-value { font-size: 24px; }
}


/* SMART AIRB traction — próxima receita + demo copy + convite curto */
.money-cta {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(249, 56, 66, 0.16), transparent 55%),
    linear-gradient(145deg, rgba(249, 56, 66, 0.08), rgba(26, 33, 41, 0.78) 48%),
    var(--charcoal);
  border: 1px solid rgba(249, 56, 66, 0.38);
  box-shadow:
    0 0 0 1px rgba(249, 56, 66, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.28),
    0 0 42px rgba(249, 56, 66, 0.14);
}
.money-cta.is-empty {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(249, 56, 66, 0.08), transparent 55%),
    linear-gradient(145deg, rgba(249, 56, 66, 0.04), rgba(26, 33, 41, 0.72) 48%),
    var(--charcoal);
  border-color: rgba(249, 56, 66, 0.22);
  box-shadow:
    0 0 0 1px rgba(249, 56, 66, 0.04),
    0 14px 36px rgba(0, 0, 0, 0.22);
}
.money-cta-copy { flex: 1 1 240px; min-width: 0; }
.money-cta-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.money-cta-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}
.money-cta-checkin {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.money-cta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.money-cta-data {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}
.money-cta-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  max-width: 36ch;
}
.money-cta.is-empty .money-cta-meta {
  color: rgba(255, 255, 255, 0.62);
}
.money-cta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  flex: 0 0 auto;
}
.money-cta-value {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 0 28px rgba(249, 56, 66, 0.28);
}
.money-cta.is-empty .money-cta-value {
  color: rgba(255, 255, 255, 0.42);
  text-shadow: none;
}
.money-cta-btn {
  width: auto !important;
  min-width: 168px;
  margin: 0 !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(249, 56, 66, 0.35);
}
.dash-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.demo-copy-btn {
  white-space: nowrap;
}
#loginView .demo-copy-btn {
  width: 100%;
  margin-top: 10px;
}
.invite-form-short {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.invite-form-short label:first-child {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .money-cta {
    flex-direction: column;
    padding: 22px 18px;
    gap: 18px;
  }
  .money-cta-side { align-items: stretch; width: 100%; }
  .money-cta-value { font-size: 30px; }
  .money-cta-btn { width: 100% !important; }
  .invite-form-short { grid-template-columns: 1fr; }
  .dash-hero-meta { align-items: flex-start; }
}


/* LEVA 2 — first-login onboard + WhatsApp share */
.wa-share-btn { white-space: nowrap; }
#loginView .wa-share-btn { width: 100%; margin-top: 8px; }
.onboard-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 11, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.onboard-overlay.hidden { display: none; }
.onboard-modal {
  position: relative;
  width: min(440px, 100%);
  padding: 28px 26px 22px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(249, 56, 66, 0.16), transparent 55%),
    linear-gradient(180deg, #1a2129, #121820);
  border: 1px solid rgba(249, 56, 66, 0.32);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 40px rgba(249, 56, 66, 0.12);
}
.onboard-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.onboard-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F93842;
}
.onboard-modal h2 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.onboard-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.onboard-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.onboard-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #F93842;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.onboard-step-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.onboard-step-body strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.onboard-step-body .primary.sm {
  width: auto;
  margin: 0;
  min-width: 132px;
}
.onboard-skip {
  width: 100%;
  margin-top: 4px;
}
@media (max-width: 520px) {
  .onboard-step-body { flex-direction: column; align-items: stretch; }
  .onboard-step-body .primary.sm { width: 100%; }
}

/* Quadro disponibilidade — refresh sem piscar */
.kanban-board.is-soft-loading {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

/* ===== SMART focus mode v1 — lean first login ===== */
.tabs-more {
  position: relative;
  display: none;
  align-items: center;
}
body.focus-mode .tabs-more {
  display: inline-flex;
}
.tabs-more-toggle {
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tabs-more-toggle:hover,
.tabs-more-toggle[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.tabs-more-toggle::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.75;
}
.tabs-more-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 220px;
  max-height: min(70vh, 420px);
  overflow: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #1a1a1e;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(249, 56, 66, 0.08);
}
.tabs-more-menu.hidden { display: none !important; }
.tabs-more-menu [data-tab],
.tabs-more-menu a.muted {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.tabs-more-menu [data-tab]:hover,
.tabs-more-menu a.muted:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.tabs-more-menu [data-tab].active {
  color: #fff;
  background: rgba(249, 56, 66, 0.16);
  box-shadow: inset 0 0 0 1px rgba(249, 56, 66, 0.28);
}
body.focus-mode .tabs > [data-focus-more="1"] {
  display: none !important;
}
body.focus-mode .tabs > [data-tab][data-focus-more="1"].focus-pinned {
  display: inline-flex !important;
}
body.focus-mode .tabs > a[data-focus-more="1"] {
  display: none !important;
}
.tabs-more-footer {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.tabs-more-footer button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.tabs-more-footer button:hover {
  background: rgba(249, 56, 66, 0.1);
}

/* Focus/demo: no footer noise (Cadastro selfie / Totem) on login or lean first paint */
body.focus-mode .footer-links,
#appFooterLinks[hidden] {
  display: none !important;
}

/* Calm first paint — one empty, not a flood */
#tab-dash.dash-calm-empty .dash-secondary-block {
  display: none !important;
}
#tab-dash.dash-calm-empty #dashEmptyHook {
  margin-top: 8px;
}


/* ========== FIX: lado direito cortado (Quadro + shell) ========== */
html, body, #app {
  max-width: 100%;
  overflow-x: hidden;
}
.shell {
  width: 100%;
  max-width: min(var(--content-max), 100%);
  box-sizing: border-box;
  overflow-x: clip;
}
.top {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.header-right {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}
.command-dock {
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.tab,
.card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#tab-disponibilidade .card {
  overflow: hidden; /* contém o board; scroll fica no kanban */
  padding-right: 20px;
  padding-left: 20px;
}
.kanban-board {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  padding-right: 12px;
  margin: 0;
  scrollbar-gutter: stable;
}
.kanban-board::-webkit-scrollbar {
  height: 8px;
}
.kanban-board::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}
.kanban-col {
  flex: 0 0 240px;
  max-width: 250px;
}
.avail-toolbar {
  max-width: 100%;
}
@media (max-width: 900px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .top { padding-left: 16px; padding-right: 16px; }
  #tab-disponibilidade .card { padding-left: 14px; padding-right: 14px; }
}

/* Empty-unit story on Próxima receita (~15s cycle) */
.money-story { display: none; margin: 0 0 4px; }
.money-cta.is-no-unit .money-story { display: block; }
.money-cta.is-no-unit .money-cta-hero,
.money-cta.is-no-unit .money-cta-checkin,
.money-cta.is-no-unit .money-cta-meta,
.money-cta.is-no-unit .first-receita-check { display: none; }
.money-story-track {
  position: relative;
  min-height: 88px;
}
.money-story-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  animation: money-story-cycle 15s infinite;
}
.money-story-step:nth-child(1) { animation-delay: 0s; }
.money-story-step:nth-child(2) { animation-delay: 5s; }
.money-story-step:nth-child(3) { animation-delay: 10s; }
.money-story-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 22px;
  background: rgba(249, 56, 66, 0.16);
  border: 1px solid rgba(249, 56, 66, 0.42);
  box-shadow: 0 0 24px rgba(249, 56, 66, 0.22);
}
.money-story-label {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
}
.money-story-dots {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.money-story-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  animation: money-story-dot 15s infinite;
}
.money-story-dots span:nth-child(1) { animation-delay: 0s; }
.money-story-dots span:nth-child(2) { animation-delay: 5s; }
.money-story-dots span:nth-child(3) { animation-delay: 10s; }
@keyframes money-story-cycle {
  0% { opacity: 0; transform: translateY(8px); }
  4%, 28% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes money-story-dot {
  0%, 28% { background: #F93842; transform: scale(1.15); }
  33%, 100% { background: rgba(255,255,255,0.22); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .money-story-track {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .money-story-step {
    position: static;
    opacity: 1;
    transform: none;
    animation: none;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .money-story-label { font-size: 15px; }
  .money-story-ico { width: 34px; height: 34px; font-size: 16px; }
  .money-story-dots { display: none; }
}

/* Checklist 1ª receita (JARVIS + Tony) */
.first-receita-check {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.first-receita-check.hidden { display: none; }
.first-check-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
  color: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.first-check-btn:hover:not(:disabled) {
  border-color: rgba(249,56,66,0.45);
  background: rgba(249,56,66,0.1);
}
.first-check-btn.is-done {
  opacity: 0.72;
  cursor: default;
}
.first-check-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
  background: transparent;
}
.first-check-btn.is-done .first-check-box {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.25);
}
.first-check-label { flex: 1; font-size: 13px; font-weight: 600; }
.first-check-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}
.first-check-btn.is-done .first-check-cta { color: var(--muted); content: none; }
.first-check-btn.is-done .first-check-cta { visibility: hidden; }


/* FOCUS: hide secondary dash until 1st receita path */
body.focus-mode #tab-dash .dash-secondary-block {
  display: none !important;
}
body.focus-mode #tab-dash .money-cta,
body.focus-mode #tab-dash .first-receita-check {
  display: block;
}
body.focus-mode #tab-dash .first-receita-check {
  display: grid;
}


/* Story GO — hide overlay + form highlight + pepper pack */
.money-cta.is-story-closed .money-story { display: none !important; }
#unitCreateCard.is-form-highlight {
  outline: 2px solid #F93842;
  box-shadow:
    0 0 0 4px rgba(249, 56, 66, 0.32),
    0 0 36px rgba(249, 56, 66, 0.4);
  transition: box-shadow .2s ease, outline-color .2s ease;
}
.pepper-pack {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(249, 56, 66, 0.3);
  background: rgba(249, 56, 66, 0.07);
  max-width: 36ch;
}
.pepper-kicker {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F93842;
}
.pepper-path {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}
.pepper-path li { margin: 0; }
#comecarComigoBtn {
  margin: 0;
  font-weight: 700;
  border-color: rgba(249, 56, 66, 0.4);
  color: #fff;
}
#comecarComigoBtn:hover {
  border-color: #F93842;
  background: rgba(249, 56, 66, 0.12);
}
.pepper-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255,255,255,0.55);
}
