﻿:root {
  color-scheme: dark;
  --brand-navy: #0B1F3A;
  --brand-gold: #C89B3C;
  --brand-white: #FFFFFF;
  --brand-gray: #F5F7FA;
  --bg: #0B1F3A;
  --surface: #102A4D;
  --surface-2: #17365F;
  --line: rgba(255, 255, 255, .14);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, .72);
  --primary: #C89B3C;
  --primary-ink: #0B1F3A;
  --accent: #C89B3C;
  --danger: #fb7185;
  --ok: #7dd3fc;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted, .muted-text { color: var(--muted); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 6px;
  min-height: 20px;
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 16, .7);
  display: grid;
  place-items: center;
  z-index: 100;
}

.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.button.primary { background: var(--primary); color: var(--primary-ink); }
.button.secondary { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.button.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.button.danger { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .45); color: #fecdd3; }
.button.full { width: 100%; }
.link-button, .icon-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 8px;
}
.link-button:focus-visible, .icon-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.icon-button { color: var(--muted); font-weight: 800; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand.large { font-size: 22px; margin-bottom: 18px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #FFFFFF;
  font-weight: 900;
}

.public-view {
  background:
    radial-gradient(circle at 20% 10%, rgba(200, 155, 60, .12), transparent 26%),
    linear-gradient(180deg, #0B1F3A 0%, #102A4D 45%, #0B1F3A 100%);
}
.public-nav {
  height: 72px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.public-nav nav { display: flex; gap: 22px; color: var(--muted); }
.hero {
  min-height: calc(100vh - 72px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 44px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 86px);
  line-height: .95;
  letter-spacing: 0;
}
.hero-text {
  max-width: 650px;
  color: #FFFFFF;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.35;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-board {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(16, 23, 32, .78);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.mini-metric, .mini-list, .mini-kanban {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 18px;
}
.mini-metric strong { display: block; font-size: 58px; color: var(--primary); }
.mini-kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini-kanban span, .segment-list span, .lead-tags span {
  border-radius: 999px;
  background: rgba(200, 155, 60, .1);
  border: 1px solid rgba(200, 155, 60, .25);
  padding: 8px 10px;
  text-align: center;
  color: #0B1F3A;
}
.mini-list { display: grid; gap: 10px; color: var(--muted); }

.public-band, .segments, .faq, .contact-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}
.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.problem h2, .segments h2, .contact-form h2 { margin: 0; font-size: 34px; letter-spacing: 0; }
.problem p { color: var(--muted); font-size: 19px; line-height: 1.6; }
.feature-grid, .plans {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-grid article, .plans article, .contact-form, .auth-card, .panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}
.feature-grid p, .plans p { color: var(--muted); line-height: 1.55; }
.segments { text-align: center; }
.segment-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.plans .featured { border-color: rgba(200, 155, 60, .75); box-shadow: 0 0 0 1px rgba(200, 155, 60, .2); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { color: var(--muted); }
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 640px) 1fr;
  gap: 24px;
  align-items: start;
}
.contact-form { display: grid; gap: 14px; }
.legal-links { display: flex; gap: 12px; }

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #0B1F3A, #102A4D);
}
.auth-card { width: min(460px, 100%); box-shadow: var(--shadow); }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.auth-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 12px;
}
.auth-tabs button.active { color: var(--primary); border-color: rgba(200, 155, 60, .5); }
.auth-form { display: grid; gap: 14px; }

label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200, 155, 60, .12); }

.app-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: #0B1F3A;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.side-nav { display: grid; gap: 6px; }
.side-nav button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 12px;
}
.side-nav button.active, .side-nav button:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--line);
}
.workspace { min-width: 0; padding: 24px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.topbar h1 { margin: 0; font-size: 30px; letter-spacing: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.notice { color: var(--accent); font-weight: 800; }
.onboarding {
  margin-bottom: 18px;
  border: 1px solid rgba(200, 155, 60, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(11, 31, 58, .98), rgba(8, 22, 41, .96));
  box-shadow: 0 14px 34px rgba(6, 17, 31, .2);
  overflow: hidden;
}
.view { display: none; }
.view.active { display: block; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.metric {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  align-content: space-between;
}
.metric span { color: var(--muted); }
.metric strong { font-size: 30px; color: var(--primary); }
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 14px;
}
.filters {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto auto auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lead-list, .queue, .timeline { display: grid; gap: 10px; }
.lead-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
}
.lead-card.hot { border-color: rgba(200, 155, 60, .55); }
.lead-card.overdue { border-color: rgba(251, 113, 133, .65); }
.lead-main { min-width: 0; }
.lead-main strong { display: block; font-size: 17px; }
.lead-main span, .lead-main p { color: var(--muted); margin: 4px 0 0; }
.lead-tags, .lead-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lead-actions .button { min-height: 34px; padding: 0 10px; }
.task-done {
  color: var(--primary);
  font-weight: 800;
  justify-self: end;
}
.timeline-item {
  border-left: 3px solid var(--primary);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  padding: 14px;
}
.timeline-item span { color: var(--muted); font-size: 13px; }
.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
}
.kanban-column {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 32, .72);
  padding: 12px;
}
.kanban-column h3 { margin: 0 0 12px; text-transform: capitalize; }
.kanban-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}
.productivity-row, .inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.inline-form { grid-template-columns: 1fr 1fr auto; border-bottom: 0; }
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

dialog {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0, 0, 0, .65); }
.dialog-form {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.dialog-form header, .dialog-form footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  z-index: 1;
}
.dialog-form header {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.dialog-form footer {
  padding: 12px 18px 18px;
  border-top: 1px solid var(--line);
}
.dialog-body {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px 18px;
  scroll-padding-bottom: 96px;
}
.dialog-body input,
.dialog-body select,
.dialog-body textarea { scroll-margin-bottom: 96px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: 360px;
  border: 1px solid rgba(200, 155, 60, .45);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }

.menu-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  align-items: center;
  justify-content: center;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-close { display: none; }

.topbar { flex-wrap: wrap; }
.topbar-left { min-width: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search-global { position: relative; }
.search-global input {
  width: 280px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}
.global-search-results {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  max-height: 400px;
  overflow-y: auto;
}
.global-search-results.hidden { display: none; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}
.search-result-item:hover { background: var(--surface-2); }
.search-result-item:last-child { border-bottom: 0; }
.search-result-type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  min-width: 60px;
}
.search-result-info { min-width: 0; }
.search-result-info strong { display: block; }
.search-result-info span { color: var(--muted); font-size: 13px; }

.notif-btn { font-size: 18px; position: relative; }
.user-menu { position: relative; }
.user-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
}
.user-avatar:hover { border-color: var(--primary); }
#userInitial {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
}
.user-name-short { font-size: 13px; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 50;
}
.user-dropdown.hidden { display: none; }
.user-info { margin-bottom: 10px; }
.user-info p { margin: 2px 0; font-size: 13px; color: var(--muted); }
.user-info strong { font-size: 14px; }

.dashboard-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.filter-btn {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--text); }
.filter-btn.active { background: rgba(200, 155, 60, .12); border-color: var(--primary); color: var(--primary); }

.dashboard-grid { grid-template-columns: 1.2fr 1fr; gap: 14px; }
.dashboard-col { display: grid; gap: 14px; }

.chart-container { min-height: 120px; padding: 4px 0; }
.chart-bar-group { display: grid; gap: 6px; }
.chart-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.chart-bar-row span:first-child { color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-bar-row span:last-child { font-weight: 700; color: var(--primary); text-align: right; }
.chart-bar-track {
  height: 20px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}
.chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), rgba(200, 155, 60, .6));
  border-radius: 4px;
  transition: width .4s ease;
}
.chart-bar-fill.accent { background: linear-gradient(90deg, var(--accent), rgba(200, 155, 60, .6)); }
.chart-bar-fill.danger { background: linear-gradient(90deg, var(--danger), rgba(251, 113, 133, .6)); }

.chart-donut {
  display: flex;
  align-items: center;
  gap: 20px;
}
.donut-legend { display: grid; gap: 8px; }
.donut-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.queue-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  transition: border-color .15s;
}
.queue-card:hover { border-color: var(--primary); }
.queue-card.hot { border-left: 3px solid var(--accent); }
.queue-card.overdue { border-left: 3px solid var(--danger); }
.queue-info { min-width: 0; }
.queue-info strong { display: block; font-size: 15px; }
.queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.queue-meta span { display: inline-flex; align-items: center; gap: 4px; }
.queue-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.queue-actions .button { min-height: 30px; padding: 0 8px; font-size: 12px; }

.menu-dots {
  position: relative;
}
.menu-dots-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.menu-dots-btn:hover { border-color: var(--primary); color: var(--text); }
.menu-dots-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  min-width: 140px;
  box-shadow: var(--shadow);
  z-index: 20;
  display: none;
}
.menu-dots-dropdown.open { display: block; }
.menu-dots-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.menu-dots-dropdown button:hover { background: var(--surface-2); }
.menu-dots-dropdown button.danger-text { color: var(--danger); }

.onboarding-collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}
.onboarding-collapse h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0;
}
.onboarding-collapse p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}
.onboarding-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.onboarding-progress {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(200, 155, 60, .35);
  border-radius: 999px;
  background: rgba(200, 155, 60, .12);
  font-size: 13px;
  font-weight: 800;
  color: #f2d08a;
}
.onboarding.collapsed .onboarding-grid { display: none; }
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
  overflow-x: auto;
}
.onboarding-grid div {
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.onboarding-grid div.done {
  border-color: rgba(200, 155, 60, .45);
  background: rgba(200, 155, 60, .1);
}
.onboarding-grid span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #f2d08a;
  font-size: 12px;
  font-weight: 900;
}
.onboarding-grid strong {
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.35;
}
.button.compact {
  min-height: 32px;
  padding: 0 12px;
}

.productivity-card {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.productivity-card:last-child { border-bottom: 0; }
.productivity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.productivity-header strong { font-size: 14px; }
.productivity-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.billing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(200, 155, 60, .32);
  border-radius: 999px;
  background: rgba(200, 155, 60, .1);
  color: var(--brand-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.billing-card,
.checkout-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 16px;
}

.billing-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.billing-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 24px;
}

.billing-card p,
.checkout-box p {
  margin: 6px 0 0;
  color: var(--muted);
}

.checkout-form,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.payment-list {
  display: grid;
  gap: 10px;
}
.productivity-stat {
  text-align: center;
  padding: 6px;
  background: var(--surface-2);
  border-radius: 6px;
}
.productivity-stat span { display: block; font-size: 11px; color: var(--muted); }
.productivity-stat strong { font-size: 16px; color: var(--primary); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 89;
}

@media (max-width: 1040px) {
  .hero, .problem, .contact-band { grid-template-columns: 1fr; }
  .feature-grid, .plans, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .billing-grid, .checkout-form, .settings-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .search-global input { width: 200px; }
}

@media (max-width: 760px) {
  .public-nav nav { display: none; }
  .hero { padding-top: 28px; }
  .hero-board { min-height: 320px; }
  .feature-grid, .plans, .metric-grid, .form-grid, .filters, .billing-grid, .checkout-form, .settings-grid { grid-template-columns: 1fr; }
  .billing-header, .checkout-summary { align-items: flex-start; flex-direction: column; }

  .menu-toggle { display: grid; }
  .sidebar-close { display: grid; }
  .sidebar-overlay.open { display: block; }

  .app-view { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .side-nav { grid-template-columns: 1fr; }

  .topbar { padding-left: 50px; }
  .topbar-actions { width: 100%; }
  .search-global input { width: 100%; }
  .search-global { flex: 1; }
  .user-name-short { display: none; }

  .lead-card { grid-template-columns: 1fr; }
  .queue-card { grid-template-columns: 1fr; }
  .queue-actions { justify-content: flex-start; }
  .kanban { grid-template-columns: repeat(8, minmax(220px, 1fr)); }

  .chart-bar-row { grid-template-columns: 80px 1fr 36px; }

  .productivity-stats { grid-template-columns: repeat(3, 1fr); }
  .onboarding-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .onboarding-collapse {
    align-items: flex-start;
    flex-direction: column;
  }
  .onboarding-actions {
    justify-content: space-between;
    width: 100%;
  }
}

/* MIVELOQ premium public experience */
:root {
  --premium-bg: #06111F;
  --premium-navy: #0B1F3A;
  --premium-gold: #C89B3C;
  --premium-gray: #F5F7FA;
  --premium-white: #FFFFFF;
  --premium-card: rgba(255, 255, 255, .07);
  --premium-card-strong: rgba(255, 255, 255, .11);
}

.public-view {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #06111F 0%, #0B1F3A 52%, #06111F 100%);
  color: var(--premium-white);
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(16px);
}

.public-nav nav a,
.legal-links a,
.public-footer .link-button {
  color: rgba(255, 255, 255, .72);
  transition: color .18s ease;
}

.public-nav nav a:hover,
.legal-links a:hover,
.public-footer .link-button:hover {
  color: var(--premium-white);
}

.brand-mark {
  background: linear-gradient(135deg, var(--premium-navy), var(--premium-gold));
  box-shadow: 0 12px 34px rgba(200, 155, 60, .22);
}

.button {
  box-shadow: none;
}

.button.primary {
  background: var(--premium-gold);
  color: var(--premium-navy);
  border-color: rgba(255, 255, 255, .10);
  box-shadow: 0 16px 42px rgba(200, 155, 60, .22);
}

.button.secondary {
  background: rgba(255, 255, 255, .10);
  color: var(--premium-white);
  border-color: rgba(255, 255, 255, .18);
}

.button.ghost {
  color: var(--premium-white);
  border-color: rgba(255, 255, 255, .16);
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 155, 60, .46);
}

.hero {
  min-height: calc(100vh - 76px);
  width: min(1180px, calc(100% - 40px));
  padding: 70px 0 96px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: 56px;
}

.hero-logo {
  display: block;
  width: min(320px, 72vw);
  height: auto;
  margin: 0 0 26px;
  border-radius: 8px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: .98;
}

.hero-text {
  max-width: 680px;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(18px, 2.4vw, 24px);
}

.hero-actions {
  margin-top: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-trust span,
.activity-strip span,
.status-pill {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .76);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-product {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
  padding: 22px;
  display: grid;
  gap: 16px;
  animation: premium-rise .7s ease both;
}

.product-topline,
.signal-card,
.pipeline-preview div {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(6, 17, 31, .58);
}

.product-topline {
  min-height: 112px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.product-topline span,
.signal-card span,
.pipeline-preview span {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 700;
}

.product-topline strong {
  display: block;
  margin-top: 8px;
  color: var(--premium-white);
  font-size: 34px;
}

.status-pill {
  border-color: rgba(200, 155, 60, .42);
  color: #F7DB9E;
}

.pipeline-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pipeline-preview div {
  min-height: 96px;
  padding: 14px;
  display: grid;
  align-content: space-between;
}

.pipeline-preview strong {
  color: var(--premium-gold);
  font-size: 28px;
}

.signal-card {
  padding: 18px;
}

.signal-card strong {
  display: block;
  margin: 8px 0;
  font-size: 18px;
}

.signal-card p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
}

.activity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-band,
.how-section,
.final-cta,
.contact-band {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
}

.problem {
  padding: 84px 0;
  align-items: center;
}

.problem h2,
.section-heading h2,
.final-cta h2 {
  margin: 0;
  color: var(--premium-white);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
}

.problem p,
.how-grid p,
.final-cta p,
.feature-grid p,
.plans p {
  color: rgba(255, 255, 255, .68);
}

.feature-grid {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  grid-template-columns: repeat(4, 1fr);
  padding: 84px 0;
}

.feature-grid article,
.plans article,
.how-grid article,
.contact-form,
.public-footer,
.auth-card {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: var(--premium-card);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .20);
}

.feature-grid article,
.how-grid article,
.plans article {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.feature-grid article:hover,
.how-grid article:hover,
.plans article:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 155, 60, .42);
  background: var(--premium-card-strong);
}

.feature-grid article > span,
.how-grid article > span {
  color: var(--premium-gold);
  font-size: 12px;
  font-weight: 900;
}

.feature-grid h3,
.how-grid h3,
.plans h3 {
  color: var(--premium-white);
}

.how-section {
  padding: 84px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.how-grid article {
  min-height: 220px;
  padding: 24px;
}

.plans {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  padding: 84px 0;
}

.plans .featured {
  border-color: rgba(200, 155, 60, .72);
  background: rgba(200, 155, 60, .11);
}

.plans strong {
  color: var(--premium-gold);
}

.plan-features {
  display: grid;
  gap: 6px;
  margin: 14px 0 18px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.master-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.master-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.master-tabs button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
}

.master-tabs button.active,
.master-tabs button:hover {
  border-color: var(--brand-gold);
  background: rgba(200, 155, 60, .12);
}

.master-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.master-form {
  margin-top: 16px;
}

.final-cta {
  margin: 40px auto 0;
  padding: 72px 28px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(200, 155, 60, .16), rgba(255, 255, 255, .07));
}

.final-cta .hero-actions {
  justify-content: center;
}

.contact-band {
  padding: 84px 0 44px;
  grid-template-columns: minmax(0, 520px) 1fr;
}

.contact-form,
.public-footer {
  padding: 24px;
}

.public-footer {
  display: grid;
  align-content: start;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.public-footer p {
  margin: 0;
  color: rgba(255, 255, 255, .58);
}

.auth-view {
  background:
    linear-gradient(135deg, #06111F 0%, #0B1F3A 58%, #06111F 100%);
}

.auth-card {
  width: min(440px, 100%);
  padding: 28px;
}

.back-link {
  margin: -8px 0 14px -8px;
}

.auth-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-brand .brand-mark {
  width: 54px;
  height: 54px;
  font-size: 22px;
}

.auth-brand strong {
  font-size: 28px;
}

.auth-brand p,
.demo-hint {
  margin: 0;
  color: rgba(255, 255, 255, .66);
}

.auth-tabs {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  padding: 4px;
}

.auth-tabs button {
  border: 0;
  background: transparent;
}

.auth-tabs button.active {
  background: rgba(200, 155, 60, .18);
}

.auth-form input,
.contact-form input,
.contact-form textarea {
  min-height: 46px;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}

.demo-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
}

@keyframes premium-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .public-nav {
    width: min(100% - 28px, 1180px);
  }

  .hero,
  .public-band,
  .how-section,
  .feature-grid,
  .plans,
  .final-cta,
  .contact-band {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding: 38px 0 64px;
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .pipeline-preview,
  .how-grid,
  .feature-grid,
  .plans,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .product-topline {
    display: grid;
  }

  .final-cta {
    padding: 52px 18px;
  }
}



