:root {
  color-scheme: dark;
  --dark: #060a16;
  --dark-800: #0b1022;
  --dark-700: #11182c;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --ai: #2563eb;
  --ai-light: #3b82f6;
  --ai-accent: #0ea5e9;
  --ai-glow: rgba(37, 99, 235, 0.16);
  --growth: #10b981;
  --growth-light: #34d399;
  --growth-accent: #059669;
  --growth-glow: rgba(16, 185, 129, 0.16);
  --gold: #ec4899;
  --gold-light: #f9a8d4;
  --gold-glow: rgba(236, 72, 153, 0.2);
  --amber: #f59e0b;
  --red: #ef4444;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, var(--ai-glow), transparent 30%),
    radial-gradient(circle at 88% 20%, var(--growth-glow), transparent 28%),
    var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.cursor-glow {
  position: fixed;
  top: -220px;
  left: -220px;
  z-index: 0;
  width: 520px;
  height: 520px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 68%);
  mix-blend-mode: screen;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-primary);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(16, 185, 129, 0.22));
  box-shadow: 0 0 34px rgba(14, 165, 233, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
}

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

.brand-mark::after {
  content: attr(data-fallback);
}

.brand-mark:has(img)::after {
  content: "";
}

.brand-split,
.gradient-text {
  background: linear-gradient(135deg, var(--ai-light), var(--growth-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 10, 22, 0.72);
  padding: 0.85rem 2rem;
  backdrop-filter: blur(30px) saturate(180%);
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.nav-link,
.ghost-button,
.primary-button,
.danger-button,
.tab-button,
.filter-button {
  display: inline-flex;
  min-height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.nav-link:hover {
  color: var(--text-primary);
}

.ghost-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  padding: 0.72rem 1rem;
}

.ghost-button:hover,
.tab-button:hover,
.filter-button:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.primary-button {
  background: linear-gradient(135deg, var(--ai), var(--growth-accent));
  color: #ffffff;
  padding: 0.78rem 1.15rem;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button svg,
.ghost-button svg,
.danger-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.danger-button {
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
  padding: 0.72rem 1rem;
}

.auth-page {
  min-height: 100vh;
}

.auth-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 70px);
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  gap: 4rem;
  align-items: center;
  padding: 5rem min(6vw, 5rem);
  overflow: hidden;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 75% 65% at 45% 30%, black 18%, transparent 100%);
  pointer-events: none;
}

.auth-copy,
.auth-card,
.dashboard-shell {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--ai-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  line-height: 1.04;
}

.auth-copy p,
.page-subtitle,
.panel-kicker,
.empty-state p,
.form-help {
  color: var(--text-secondary);
}

.auth-copy p {
  max-width: 680px;
  margin: 1.45rem 0 0;
  font-size: 1.05rem;
}

.auth-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.demo-mode-button {
  min-width: 190px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.trust-pill,
.status-pill,
.lead-stat,
.connection-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.auth-card,
.panel,
.metric-card,
.flow-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.auth-card {
  padding: 1.35rem;
}

.demo-entry-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 12% 0%, rgba(52, 211, 153, 0.16), transparent 45%),
    rgba(16, 185, 129, 0.075);
  color: var(--text-primary);
  padding: 0.85rem;
  text-decoration: none;
  margin-bottom: 0.9rem;
}

.demo-entry-button strong,
.demo-entry-button small {
  display: block;
}

.demo-entry-button small {
  margin-top: 0.1rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.auth-card-header {
  padding: 0.35rem 0.35rem 1rem;
}

.auth-card-header h2 {
  margin: 0;
  font-size: 1.7rem;
}

.auth-card-header p {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab-button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  padding: 0.72rem;
}

.tab-button.active {
  border-color: rgba(14, 165, 233, 0.38);
  background: rgba(14, 165, 233, 0.1);
  color: var(--text-primary);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field-hint {
  margin: -0.1rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.76rem;
}

label {
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  outline: 0;
  padding: 0.85rem 0.95rem;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

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

input:focus,
textarea:focus {
  border-color: rgba(14, 165, 233, 0.56);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.guest-preview-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.18), transparent 45%),
    rgba(16, 185, 129, 0.08);
  padding: 0.85rem 0.95rem;
}

.guest-preview-cta span {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 800;
}

.guest-preview-cta a {
  color: var(--growth-light);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.guest-preview-cta a:hover {
  color: #ffffff;
}

.notice,
.error {
  border-radius: var(--radius-sm);
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  font-weight: 700;
}

.notice {
  border: 1px solid rgba(14, 165, 233, 0.24);
  background: rgba(14, 165, 233, 0.08);
  color: #bae6fd;
}

.error {
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
}

.dashboard-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 274px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 1.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(6, 10, 22, 0.76);
  padding: 1.25rem;
  backdrop-filter: blur(26px);
}

.sidebar-brand {
  padding: 0.25rem 0.25rem 0.75rem;
}

.nav {
  display: grid;
  gap: 0.4rem;
}

.nav-button {
  display: flex;
  min-height: 44px;
  cursor: pointer;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  padding: 0.75rem 0.85rem;
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-primary);
}

.nav-button.active {
  box-shadow: inset 3px 0 0 var(--ai-accent);
}

.nav-button svg,
.metric-icon svg,
.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.sidebar-footer {
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  padding: 1rem;
}

.sidebar-footer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.main {
  min-width: 0;
  padding: 1.5rem;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.topbar h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.page-subtitle {
  max-width: 820px;
  margin: 0.65rem 0 0;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-column {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.one-column {
  grid-template-columns: 1fr;
}

.overview-workspace {
  margin-top: 1rem;
}

.metric-card,
.flow-card {
  min-height: 142px;
  padding: 1.15rem;
}

.metric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.metric-label {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 800;
}

.metric-value {
  margin: 0.8rem 0 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
}

.metric-note {
  margin: 0.7rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

.metric-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
}

.metric-icon.ai {
  border: 1px solid rgba(14, 165, 233, 0.28);
  background: rgba(14, 165, 233, 0.1);
  color: var(--ai-accent);
}

.metric-icon.growth {
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.1);
  color: var(--growth-light);
}

.metric-icon.amber {
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

.metric-icon.red {
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 1.1rem;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.panel-title {
  margin: 0;
  font-size: 1.15rem;
}

.panel-kicker {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
}

.panel-body {
  padding: 1.1rem;
}

.warning-stack {
  display: grid;
  gap: 0.7rem;
}

.warning-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.065);
  padding: 0.85rem;
}

.warning-card strong {
  display: block;
  color: #fde68a;
}

.warning-card p {
  margin: 0.15rem 0 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.flow-card h3 {
  margin: 0 0 0.95rem;
  font-size: 1.05rem;
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 0.72rem 0;
}

.flow-row:first-of-type {
  border-top: 0;
}

.flow-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.flow-value {
  font-weight: 800;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ai-accent), var(--growth-light));
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--text-tertiary);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--text-primary);
  font-size: 0.9rem;
}

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

.status-pill.green {
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(16, 185, 129, 0.1);
  color: #86efac;
}

.status-pill.blue {
  border-color: rgba(14, 165, 233, 0.24);
  background: rgba(14, 165, 233, 0.1);
  color: #7dd3fc;
}

.status-pill.amber {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
}

.status-pill.red {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.lead-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.settings-side-stack {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.install-list {
  display: grid;
  gap: 0.65rem;
}

.install-list div {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  padding: 0.8rem;
}

.install-list span {
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.install-list strong {
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 0.86rem;
}

.client-id-card {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  padding: 0.9rem;
}

.client-id-card span {
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-id-card strong {
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

.setup-status-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.setup-status-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.setup-status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  padding: 0.72rem 0.8rem;
}

.setup-status-list strong {
  color: var(--text-primary);
  font-size: 0.86rem;
}

.status-dot.muted {
  background: var(--text-tertiary);
  box-shadow: none;
  opacity: 0.5;
}

.install-app-button {
  width: 100%;
}

.install-app-button:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

.code-card {
  margin-top: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: var(--radius-md);
  background: rgba(6, 10, 22, 0.68);
}

.muted-code-card {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.code-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.75rem 0.85rem;
}

.code-card pre {
  margin: 0;
  overflow-x: auto;
  padding: 0.85rem;
}

.code-card code {
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre;
}

.secret-note {
  margin: 0.8rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

.settings-section {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  margin-top: 0.35rem;
  padding-top: 1rem;
}

.settings-section h3 {
  margin: 0;
  font-size: 1rem;
}

.settings-section p {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  padding: 0.9rem;
}

.toggle-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--growth);
}

.empty-state {
  display: grid;
  min-height: 230px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  text-align: center;
}

.empty-state strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.15rem;
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(11, 16, 34, 0.96);
  box-shadow: var(--shadow);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  font-weight: 800;
}

.toast.show {
  display: block;
}

.mobile-install-nudge {
  display: none;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.075);
  margin-bottom: 0.85rem;
  padding: 0.72rem;
}

.mobile-install-nudge > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 11px;
  color: var(--ai-accent);
}

.mobile-install-nudge svg {
  width: 16px;
  height: 16px;
}

.mobile-install-nudge strong {
  min-width: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.2;
}

.install-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
}

.install-sheet {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 41;
  width: min(420px, calc(100vw - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(7, 11, 25, 0.96);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.install-sheet h2 {
  margin: 0.65rem 2.5rem 0 0;
  font-size: 1.55rem;
  line-height: 1;
}

.install-sheet-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  width: 34px;
  height: 34px;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
}

.install-sheet-close svg {
  width: 16px;
  height: 16px;
}

.install-steps {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.install-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem;
}

.install-steps li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 12px;
  color: var(--ai-accent);
}

.install-steps svg {
  width: 17px;
  height: 17px;
}

.install-steps strong,
.install-steps p {
  display: block;
  margin: 0;
}

.install-steps p {
  margin-top: 0.16rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.loading-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  color: var(--text-secondary);
}

@media (max-width: 1180px) {
  .metric-grid,
  .three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .auth-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .marketing-nav {
    padding: 0.85rem 1rem;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-button {
    justify-content: center;
  }

  .nav-button span {
    display: none;
  }

  .sidebar-footer {
    display: none;
  }

  .main,
  .auth-hero {
    padding: 1rem;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions,
  .nav-actions {
    justify-content: flex-start;
  }

  .settings-grid,
  .metric-grid,
  .three-column {
    grid-template-columns: 1fr;
  }
}

/* Premium Revenue OS refresh */
body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.2), transparent 30rem),
    radial-gradient(circle at 90% 12%, rgba(16, 185, 129, 0.16), transparent 28rem),
    radial-gradient(circle at 55% 72%, rgba(236, 72, 153, 0.12), transparent 32rem),
    #04060f;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 20%, black 10%, transparent 82%);
}

body::after {
  z-index: 0;
  background:
    radial-gradient(ellipse at center, transparent 28%, rgba(4, 6, 15, 0.58) 100%),
    linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018));
  mix-blend-mode: normal;
}

.cursor-glow {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08), rgba(236, 72, 153, 0.035) 34%, transparent 68%);
}

.marketing-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  width: min(1180px, calc(100% - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(4, 6, 15, 0.66);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transform: translateX(-50%);
}

.compact-button {
  min-height: 38px;
  padding: 0.62rem 0.95rem;
}

.auth-hero {
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 8rem;
}

.auth-copy .eyebrow,
.command-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-copy h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
}

.auth-copy p {
  max-width: 520px;
}

.trust-pill {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.auth-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(130px, 0.58fr));
  gap: 0.85rem;
  max-width: 760px;
  margin-top: 1.25rem;
}

.auth-proof-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.038);
  color: var(--text-primary);
  padding: 0.95rem;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  transition: border-color 0.2s, transform 0.2s;
}

.auth-proof-card-primary {
  border-color: rgba(52, 211, 153, 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(52, 211, 153, 0.18), transparent 38%),
    radial-gradient(circle at 92% 18%, rgba(14, 165, 233, 0.15), transparent 34%),
    rgba(255, 255, 255, 0.046);
}

.auth-proof-card span,
.preview-mode-stats span {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-proof-card strong,
.preview-mode-stats strong {
  display: block;
  margin-top: 0.38rem;
  color: var(--text-primary);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.2rem;
  line-height: 1.02;
}

.auth-proof-card small {
  display: block;
  margin-top: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.4;
}

.auth-proof-card[href]:hover {
  border-color: rgba(52, 211, 153, 0.38);
  transform: translateY(-1px);
}

.auth-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.portal-preview,
.command-hero,
.booking-hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 0%, rgba(14, 165, 233, 0.14), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(236, 72, 153, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(15, 22, 50, 0.74), rgba(6, 10, 22, 0.76));
  box-shadow: 0 44px 110px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(28px) saturate(160%);
}

.portal-preview {
  padding: 1rem;
}

.preview-topline,
.console-header,
.topbar-signal {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.preview-topline {
  justify-content: space-between;
}

.preview-topline-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

.preview-topline-label span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-topline strong,
.console-header strong {
  margin-left: auto;
  color: var(--growth-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-dot,
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--growth-light);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.8);
}

.status-dot.blue {
  background: var(--ai-accent);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.75);
}

.status-dot.pink {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.75);
}

.preview-grid,
.console-metrics,
.booking-summary {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.portal-preview {
  position: relative;
}

.preview-close {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  cursor: pointer;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(6, 10, 22, 0.72);
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.preview-close:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.preview-card,
.console-metrics div,
.booking-summary div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem;
}

.preview-card span,
.console-metrics span,
.booking-summary span {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-card strong,
.console-metrics strong,
.booking-summary strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-primary);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.preview-card.large {
  grid-row: span 2;
}

.mini-bars,
.console-chart {
  display: flex;
  height: 74px;
  align-items: flex-end;
  gap: 0.34rem;
  margin-top: 1rem;
}

.mini-bars i,
.console-chart i {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 4px;
  flex-direction: column-reverse;
  border-radius: 999px 999px 3px 3px;
  background: rgba(255, 255, 255, 0.06);
}

.console-chart i span {
  position: absolute;
  bottom: calc(100% + 0.3rem);
  left: 50%;
  color: var(--text-tertiary);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  transform: translateX(-50%);
}

.chart-empty {
  width: 100%;
  align-self: center;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.mini-bars i:nth-child(2n) {
  background: linear-gradient(180deg, var(--growth-light), rgba(16, 185, 129, 0.25));
}

.chart-segment {
  display: block;
  width: 100%;
}

.chart-segment.booked {
  background: linear-gradient(180deg, var(--growth-light), var(--growth-accent));
}

.chart-segment.sms {
  background: linear-gradient(180deg, var(--ai-accent), var(--ai));
}

.chart-segment.follow-up {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}

.preview-feed,
.console-feed {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.preview-feed div,
.console-feed div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.032);
  color: var(--text-secondary);
  padding: 0.62rem 0.7rem;
  font-size: 0.82rem;
}

.auth-card,
.panel,
.metric-card,
.flow-card {
  border-color: rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(7, 11, 25, 0.66);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.auth-card {
  padding: 1.15rem;
}

input,
textarea {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
}

.dashboard-shell {
  position: relative;
  grid-template-columns: 284px minmax(0, 1fr);
  min-width: 0;
  background: transparent;
}

.dashboard-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 10%, rgba(37, 99, 235, 0.16), transparent 26rem),
    radial-gradient(circle at 82% 0%, rgba(16, 185, 129, 0.12), transparent 28rem),
    radial-gradient(circle at 72% 72%, rgba(236, 72, 153, 0.1), transparent 32rem);
}

.sidebar,
.main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.sidebar {
  border-right-color: rgba(255, 255, 255, 0.075);
  background: rgba(4, 6, 15, 0.72);
  box-shadow: 18px 0 70px rgba(0, 0, 0, 0.16);
}

.nav-button {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.nav-button:hover {
  transform: translateX(2px);
}

.nav-button.active {
  border-color: rgba(14, 165, 233, 0.22);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(16, 185, 129, 0.08));
  box-shadow: inset 3px 0 0 var(--ai-accent), 0 12px 30px rgba(14, 165, 233, 0.08);
}

.main {
  width: min(100%, 1440px);
  max-width: 100%;
  padding: 1.5rem clamp(1rem, 2.5vw, 2.5rem) 2.5rem;
}

.topbar {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: rgba(4, 6, 15, 0.36);
  padding: 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(24px);
}

.topbar .eyebrow {
  margin-bottom: 0.35rem;
}

.topbar h1 {
  line-height: 1;
}

.topbar-signal {
  min-height: 40px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.09), rgba(37, 99, 235, 0.07));
  padding: 0.58rem 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.sync-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.sync-status {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.48rem;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.075);
  color: #bfdbfe;
  padding: 0.58rem 0.78rem;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.sync-status.live {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.09);
  color: #bbf7d0;
}

.sync-status.local,
.sync-status.synced {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
}

.sync-status.error {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.09);
  color: #fecaca;
}

.sync-status.connecting .live-dot,
.sync-status.local .live-dot,
.sync-status.synced .live-dot {
  background: var(--ai-accent);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.62);
}

.sync-status.error .live-dot {
  background: var(--red);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.68);
}

.sync-refresh-button {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.sync-refresh-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.sync-refresh-button.is-syncing svg {
  animation: sync-spin 0.8s linear infinite;
}

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

.preview-mode-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.65fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(16, 185, 129, 0.14), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(14, 165, 233, 0.13), transparent 30%),
    rgba(6, 10, 22, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  margin-bottom: 1rem;
  padding: 1rem;
  backdrop-filter: blur(22px);
}

.preview-mode-banner h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1;
}

.preview-mode-banner p {
  max-width: 780px;
  margin: 0.65rem 0 0;
  color: var(--text-secondary);
}

.preview-mode-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.preview-mode-stats div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.85rem;
}

.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: 1.2rem;
  align-items: stretch;
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.command-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0.6rem;
}

.command-kicker {
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.command-copy h2,
.booking-hero-panel h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  line-height: 1;
}

.command-copy p,
.booking-hero-panel p {
  max-width: 640px;
  margin: 0.85rem 0 0;
  color: var(--text-secondary);
}

.command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.command-console {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background: rgba(6, 10, 22, 0.72);
  padding: 1rem;
}

.console-chart {
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.026);
  padding: 0.8rem;
}

.compact-console-chart {
  height: 132px;
  margin-top: 0;
}

.compact-console-feed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chart-label {
  margin: 0.9rem 0 -0.45rem;
  color: var(--text-tertiary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.07), transparent 36%);
  content: "";
}

.metric-card > * {
  position: relative;
  z-index: 1;
}

.metric-growth .metric-value {
  color: var(--growth-light);
}

.metric-ai .metric-value {
  color: #93c5fd;
}

.metric-amber .metric-value {
  color: #fcd34d;
}

.metric-red .metric-value {
  color: #fca5a5;
}

.panel-header {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent);
}

.activity-list {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.activity-item {
  display: grid;
  gap: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem;
}

.activity-item strong {
  display: block;
  line-height: 1.2;
}

.activity-item p {
  margin: 0.25rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

.activity-meta,
.activity-foot {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.activity-meta > span:last-child,
.activity-foot {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.activity-foot {
  align-items: flex-start;
  color: var(--text-tertiary);
  font-size: 0.76rem;
}

.booking-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 1rem;
  align-items: center;
  padding: 1.35rem;
}

.booking-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.client-booking-summary {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.booking-list {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.booking-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(170px, 0.75fr);
  gap: 0.85rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.95rem;
}

.booking-card h3 {
  margin: 0.65rem 0 0;
  font-size: 1.1rem;
  line-height: 1.15;
}

.booking-card p,
.booking-card span {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.booking-card-meta,
.booking-card-foot {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.booking-card-meta strong,
.booking-card-foot strong {
  color: var(--text-primary);
  font-size: 0.92rem;
}

.booking-card-foot {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}

.intake-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.028);
  padding: 0.85rem;
}

.intake-step + .intake-step {
  margin-top: 0.7rem;
}

.intake-step > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 13px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--ai-accent);
  font-weight: 900;
}

.intake-step.done > span {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.1);
  color: var(--growth-light);
}

.intake-step strong {
  display: block;
}

.intake-step p {
  margin: 0.15rem 0 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.table-wrap {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

table {
  min-width: 820px;
}

tbody tr {
  transition: background 0.2s;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.empty-state {
  min-height: 190px;
  background:
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.018);
}

@media (max-width: 1180px) {
  .auth-hero {
    grid-template-columns: 1fr;
  }

  .client-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-stack {
    min-width: 0;
  }

  .auth-proof-grid {
    max-width: none;
  }

  .portal-preview {
    max-width: 100%;
  }

  .command-hero,
  .booking-hero-panel {
    grid-template-columns: 1fr;
  }

  .command-console {
    max-width: 760px;
  }
}

@media (max-width: 840px) {
  .marketing-nav {
    top: 8px;
    width: calc(100% - 1rem);
    padding: 0.55rem;
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .auth-hero {
    padding: 6.5rem 1rem 2rem;
  }

  .auth-stack {
    gap: 0.8rem;
  }

  .auth-proof-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .preview-card.large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    min-height: 0;
    height: auto;
    gap: 0.7rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    padding: 0.75rem;
  }

  .sidebar-brand {
    padding: 0;
  }

  .nav {
    display: flex;
    grid-template-columns: none;
    gap: 0.45rem;
    max-width: 100%;
    min-height: 0;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scroll-behavior: smooth;
    scroll-padding-inline: 0.75rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-button {
    flex: 0 0 auto;
    min-height: 40px;
    justify-content: flex-start;
    padding: 0.62rem 0.75rem;
  }

  .nav-button span {
    display: inline;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .nav-button:hover {
    transform: none;
  }

  .nav-button:hover:not(.active) {
    border-color: transparent;
    background: transparent;
    color: var(--text-secondary);
  }

  .nav-button.active {
    color: #ffffff;
  }

  .sidebar-footer {
    display: none;
  }

  .main {
    padding: 0.85rem;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .topbar-actions {
    display: grid;
    width: 100%;
    justify-content: stretch;
  }

  .topbar-actions > * {
    width: 100%;
    justify-content: center;
  }

  .sync-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .sync-status {
    justify-content: center;
  }

  .preview-mode-banner {
    grid-template-columns: 1fr;
  }

  .preview-mode-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .metric-grid,
  .client-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-install-nudge {
    display: flex;
  }

  .two-column,
  .three-column,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .command-hero,
  .booking-hero-panel {
    border-radius: 20px;
    padding: 1rem;
  }

  .command-copy {
    padding: 0;
  }

  .command-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .command-actions > * {
    width: 100%;
  }

  .console-metrics,
  .booking-summary {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.45rem;
  }

  .compact-console-feed {
    grid-template-columns: 1fr;
  }

  .console-metrics strong,
  .booking-summary strong {
    font-size: 1rem;
  }

  .booking-card {
    grid-template-columns: 1fr;
  }

  .booking-card-foot {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-actions .ghost-button {
    display: none;
  }

  .auth-copy h1 {
    font-size: 2.35rem;
  }

  .auth-copy p {
    font-size: 0.98rem;
  }

  .trust-row {
    gap: 0.45rem;
  }

  .trust-pill {
    min-height: 26px;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
  }

  .portal-preview {
    padding: 0.78rem;
  }

  .preview-feed div,
  .console-feed div {
    align-items: flex-start;
    font-size: 0.78rem;
  }

  .auth-card {
    border-radius: 18px;
    padding: 0.9rem;
  }

  .preview-mode-stats {
    grid-template-columns: 1fr;
  }

  .topbar h1 {
    font-size: 1.9rem;
  }

  .page-subtitle {
    font-size: 0.92rem;
  }

  .command-copy h2,
  .booking-hero-panel h2 {
    font-size: 2rem;
  }

  .metric-grid,
  .client-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card,
  .flow-card {
    min-height: auto;
    padding: 0.82rem;
  }

  .metric-value {
    font-size: 1.45rem;
  }

  .metric-label {
    font-size: 0.74rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .metric-card .metric-note {
    display: none;
  }

  .metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .metric-icon svg {
    width: 15px;
    height: 15px;
  }

  .panel-header {
    display: grid;
    padding: 0.9rem;
  }

  .panel-actions {
    justify-content: stretch;
  }

  .panel-actions > * {
    width: 100%;
  }

  .console-metrics,
  .booking-summary {
    grid-template-columns: 1fr;
  }

  .mobile-install-nudge {
    align-items: stretch;
  }

  .mobile-install-nudge .ghost-button {
    padding-inline: 0.78rem;
  }

  .install-sheet {
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 22px 22px 0 0;
  }

  .table-wrap {
    overflow: visible;
    padding: 0.75rem;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.028);
    padding: 0.75rem;
  }

  tr + tr {
    margin-top: 0.7rem;
  }

  td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.7rem;
    border-bottom: 0;
    padding: 0.42rem 0;
    font-size: 0.84rem;
  }

  td::before {
    color: var(--text-tertiary);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  td:nth-child(1)::before { content: "Lead"; }
  td:nth-child(2)::before { content: "Source"; }
  td:nth-child(3)::before { content: "Status"; }
  td:nth-child(4)::before { content: "Booked"; }
  td:nth-child(5)::before { content: "Value"; }
  td:nth-child(6)::before { content: "Event"; }
}
