:root {
  --navy-950: #061334;
  --navy-900: #071a3d;
  --navy-850: #082454;
  --navy-800: #062a78;
  --blue-700: #0649c9;
  --blue-600: #0757e8;
  --blue-500: #0b6ffb;
  --blue-400: #20a5ff;
  --cyan-500: #0bc5e8;
  --teal-500: #00dcb5;
  --teal-400: #13edc3;
  --ink: #10234a;
  --ink-2: #2a3f66;
  --muted: #6e7e9c;
  --muted-2: #98a5bc;
  --line: #e5ebf5;
  --line-strong: #d7e0ef;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #eef4ff;
  --page: #f3f6fb;
  --success: #079b6d;
  --success-bg: #e7fbf4;
  --warning: #b87408;
  --warning-bg: #fff7df;
  --danger: #d43d59;
  --danger-bg: #fff0f3;
  --info-bg: #edf5ff;
  --shadow-xs: 0 1px 2px rgba(15, 35, 75, .05);
  --shadow-sm: 0 8px 24px rgba(18, 45, 93, .08);
  --shadow-md: 0 18px 50px rgba(12, 38, 84, .12);
  --shadow-lg: 0 32px 90px rgba(5, 31, 84, .18);
  --gradient: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 48%, var(--teal-500) 100%);
  --gradient-deep: linear-gradient(140deg, var(--navy-950) 0%, var(--navy-800) 52%, #0767d7 100%);
  --radius-xs: 8px;
  --radius-sm: 11px;
  --radius: 15px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --sidebar-width: 262px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg.icon { width: 20px; height: 20px; flex: 0 0 auto; }
::selection { color: #fff; background: var(--blue-600); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "DM Sans", sans-serif;
  line-height: 1.18;
  letter-spacing: -.025em;
}
p { margin: 0; }

/* Shared controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 10px 24px rgba(5, 91, 228, .25);
}
.btn-primary:hover { box-shadow: 0 15px 34px rgba(5, 91, 228, .32); }
.btn-secondary {
  color: var(--ink-2);
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { border-color: #a9bce0; background: #fbfcff; }
.btn-ghost { color: var(--ink-2); background: transparent; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-light { color: var(--blue-700); background: #fff; box-shadow: var(--shadow-sm); }
.btn-danger { color: #fff; background: var(--danger); }
.btn-sm { min-height: 38px; padding: 9px 14px; border-radius: 9px; font-size: 13px; }
.btn-lg { min-height: 52px; padding: 13px 22px; border-radius: 13px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: .18s ease;
}
.icon-button:hover { background: var(--surface-3); border-color: #cbd8ed; }
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-600);
  cursor: pointer;
  font-weight: 700;
}

.form-group { display: grid; gap: 7px; margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-group label, label.form-label {
  color: var(--ink-2);
  font-weight: 700;
  font-size: 13px;
}
.form-hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.input-wrap { position: relative; }
.input-wrap > .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: #8797b4;
  transform: translateY(-50%);
  pointer-events: none;
}
.input-wrap.has-icon input { padding-left: 42px; }
.input-wrap .input-action {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
  cursor: pointer;
}
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #a5b0c4; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(11, 111, 251, .1);
}
input[disabled], select[disabled], textarea[disabled] { color: #8896ad; background: #f4f6fa; cursor: not-allowed; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-2); font-size: 13px; }
.checkbox-row input { width: 17px; height: 17px; min-height: 0; margin: 2px 0 0; accent-color: var(--blue-600); }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 13px; top: 50%; color: var(--muted); transform: translateY(-50%); }
.input-prefix input { padding-left: 31px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #5f6f8c;
  background: #f0f3f8;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}
.status-badge > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-success { color: var(--success); background: var(--success-bg); }
.status-warning { color: var(--warning); background: var(--warning-bg); }
.status-danger { color: var(--danger); background: var(--danger-bg); }
.status-info { color: var(--blue-600); background: var(--info-bg); }
.status-neutral { color: #66758e; background: #f0f3f7; }

.flash {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.flash .icon { width: 20px; height: 20px; }
.flash span { flex: 1; font-weight: 600; }
.flash button { display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: currentColor; opacity: .65; }
.flash button .icon { width: 17px; height: 17px; }
.flash-success { color: #087950; border-color: #b9ead8; background: #f0fdf8; }
.flash-error { color: #b92e4a; border-color: #f4c4ce; background: #fff5f7; }
.flash-info { color: #1859b5; border-color: #c7dcfa; background: #f3f8ff; }

.avatar {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-round { border-radius: 50%; }
.avatar-sm { width: 32px; height: 32px; border-radius: 10px; }
.avatar-lg { width: 48px; height: 48px; border-radius: 14px; }
.avatar-gradient { background: var(--gradient); box-shadow: 0 7px 18px rgba(9, 101, 233, .22); }
.avatar-soft-blue { color: var(--blue-700); background: #e9f2ff; }
.avatar-soft-teal { color: #008f77; background: #e6fbf6; }
.avatar-soft-purple { color: #6944cf; background: #f0eafe; }
.avatar-soft-orange { color: #bc6300; background: #fff1df; }

/* Public website */
.public-body { background: #fff; }
.site-shell { overflow: hidden; }
.public-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.92); border-color: var(--line); box-shadow: 0 8px 25px rgba(18,43,91,.05); backdrop-filter: blur(18px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.public-brand img { width: 174px; height: 48px; object-fit: contain; object-position: left center; }
.public-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.public-nav a { color: #405274; font-weight: 700; font-size: 13px; transition: color .18s ease; }
.public-nav a:hover { color: var(--blue-600); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.login-link { color: var(--ink-2); font-weight: 700; font-size: 13px; }
.mobile-nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; }
.public-flashes { position: fixed; z-index: 80; top: 88px; left: 0; right: 0; display: grid; gap: 8px; pointer-events: none; }
.public-flashes .flash { max-width: 620px; margin-left: auto; pointer-events: auto; }

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  padding: 142px 0 86px;
  background:
    radial-gradient(circle at 90% 8%, rgba(0, 220, 181, .15), transparent 27%),
    radial-gradient(circle at 3% 42%, rgba(11, 111, 251, .11), transparent 30%),
    linear-gradient(180deg, #f9fcff 0%, #fff 86%);
}
.hero::before {
  content: "";
  position: absolute;
  top: 96px;
  right: -190px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(13, 104, 233, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgba(13, 104, 233, .025), 0 0 0 150px rgba(0, 220, 181, .02);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr); align-items: center; gap: 54px; }
.hero-copy { max-width: 620px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid #d8e5fa;
  border-radius: 999px;
  color: var(--blue-700);
  background: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px rgba(0, 220, 181, .13); }
.eyebrow.light { color: #cbe8ff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.hero h1 { max-width: 680px; margin: 22px 0 22px; font-size: clamp(48px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.05em; }
.hero h1 span { color: transparent; background: var(--gradient); -webkit-background-clip: text; background-clip: text; }
.hero-copy > p { max-width: 590px; color: #5e6f8e; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 13px; margin-top: 30px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: #60708d; font-size: 12px; font-weight: 600; }
.hero-checks span { display: flex; align-items: center; gap: 7px; }
.hero-checks .icon { width: 16px; height: 16px; color: var(--success); }
.hero-visual { position: relative; min-width: 0; perspective: 1300px; }
.dashboard-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(143, 171, 216, .35);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 45px 95px rgba(10, 50, 118, .2), 0 12px 30px rgba(18, 82, 177, .1);
  transform: rotateY(-2deg) rotateX(1deg);
}
.preview-topbar { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fbfdff; }
.preview-topbar i { width: 8px; height: 8px; border-radius: 50%; background: #ccd6e5; }
.preview-topbar i:first-child { background: #fd7c7c; }
.preview-topbar i:nth-child(2) { background: #f7c95f; }
.preview-topbar i:nth-child(3) { background: #50d497; }
.preview-topbar span { margin-left: auto; color: #8a9ab5; font-size: 9px; font-weight: 700; }
.preview-app { display: grid; grid-template-columns: 76px 180px 1fr; min-height: 410px; }
.preview-sidebar { padding: 16px 10px; color: #95a4bd; background: var(--navy-950); }
.preview-logo { width: 40px; height: 40px; margin: 0 auto 19px; object-fit: contain; }
.preview-nav-icon { width: 34px; height: 34px; display: grid; place-items: center; margin: 7px auto; border-radius: 10px; }
.preview-nav-icon.active { color: #fff; background: linear-gradient(135deg, #105ee5, #0dcfbc); }
.preview-nav-icon .icon { width: 17px; height: 17px; }
.preview-list { border-right: 1px solid var(--line); background: #fcfdff; }
.preview-list-head { padding: 16px 13px 9px; }
.preview-list-head strong { display: block; font-family: Manrope, sans-serif; font-size: 11px; }
.preview-search { height: 25px; margin-top: 8px; border-radius: 7px; background: #eff3f9; }
.preview-chat-row { display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 8px; padding: 10px 11px; border-top: 1px solid #edf1f7; }
.preview-chat-row.active { background: #edf6ff; }
.preview-chat-row .preview-avatar { width: 29px; height: 29px; border-radius: 9px; }
.preview-chat-row strong, .preview-chat-row small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.preview-chat-row strong { font-size: 9px; color: #2b3d60; }
.preview-chat-row small { max-width: 78px; margin-top: 2px; color: #91a0b8; font-size: 7px; }
.preview-chat-row time { color: #9aa8bd; font-size: 6px; }
.preview-chat { display: grid; grid-template-rows: 52px 1fr 54px; background: #f4f7fb; }
.preview-chat-head { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-bottom: 1px solid var(--line); background: #fff; }
.preview-chat-head strong { display: block; font-size: 10px; }
.preview-chat-head span { display: block; color: #91a0b8; font-size: 7px; }
.preview-chat-head .status-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--teal-500); }
.preview-messages { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; }
.preview-bubble { width: fit-content; max-width: 75%; padding: 9px 11px; border-radius: 12px 12px 12px 4px; color: #4c5d7a; background: #fff; box-shadow: 0 3px 8px rgba(20,48,94,.06); font-size: 8px; line-height: 1.5; }
.preview-bubble.out { align-self: flex-end; color: #075b55; border-radius: 12px 12px 4px 12px; background: #dffaf3; }
.preview-composer { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.preview-composer > div { flex: 1; height: 31px; border-radius: 8px; background: #f1f4f8; }
.preview-send { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--gradient); }
.preview-send .icon { width: 13px; height: 13px; }
.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(189, 209, 237, .65);
  border-radius: 14px;
  background: rgba(255,255,255,.93);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}
.floating-card strong, .floating-card span { display: block; }
.floating-card strong { font-family: Manrope, sans-serif; font-size: 13px; }
.floating-card span { color: var(--muted); font-size: 10px; }
.floating-card .floating-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; }
.floating-card .floating-icon .icon { width: 18px; height: 18px; }
.floating-card.one { top: -28px; right: 28px; animation: float 5s ease-in-out infinite; }
.floating-card.one .floating-icon { color: var(--success); background: var(--success-bg); }
.floating-card.two { left: -42px; bottom: 30px; animation: float 5.6s ease-in-out infinite reverse; }
.floating-card.two .floating-icon { color: var(--blue-600); background: var(--info-bg); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.trust-strip { padding: 24px 0 72px; text-align: center; }
.trust-strip > p { margin-bottom: 26px; color: #8492aa; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.industry-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.industry-chip { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: #5b6b87; background: #fff; font-weight: 700; box-shadow: var(--shadow-xs); }
.industry-chip .icon { width: 17px; height: 17px; color: var(--blue-600); }

.public-section { position: relative; padding: 100px 0; }
.public-section.soft { background: linear-gradient(180deg, #f8fbff, #f3f8ff); }
.public-section.dark { color: #fff; background: var(--navy-950); }
.section-heading { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-heading.align-left { margin-left: 0; text-align: left; }
.section-kicker { display: inline-block; margin-bottom: 13px; color: var(--blue-600); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.dark .section-kicker { color: var(--teal-400); }
.section-heading h2 { font-size: clamp(34px, 4vw, 49px); }
.dark .section-heading h2 { color: #fff; }
.section-heading p { margin-top: 16px; color: #6c7c98; font-size: 16px; line-height: 1.7; }
.dark .section-heading p { color: #aab9d2; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.feature-card {
  position: relative;
  min-height: 255px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: #cddcf1; box-shadow: var(--shadow-md); }
.feature-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -50px; bottom: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(11,111,251,.11), transparent 70%); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 23px; border-radius: 14px; color: var(--blue-600); background: linear-gradient(135deg, #eaf3ff, #ecfffb); }
.feature-icon .icon { width: 23px; height: 23px; }
.feature-card h3 { font-size: 19px; }
.feature-card p { margin-top: 11px; color: #71809b; line-height: 1.65; }
.feature-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--blue-600); font-weight: 800; font-size: 12px; }
.feature-link .icon { width: 15px; height: 15px; }

.solution-tabs { display: grid; grid-template-columns: 330px 1fr; gap: 30px; align-items: stretch; }
.solution-tab-list { display: flex; flex-direction: column; gap: 10px; }
.solution-tab {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.solution-tab.active { border-color: #d8e5f7; background: #fff; box-shadow: var(--shadow-sm); }
.solution-tab .tab-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--blue-600); background: #eaf3ff; }
.solution-tab strong, .solution-tab small { display: block; }
.solution-tab strong { color: var(--ink); font-family: Manrope, sans-serif; font-size: 14px; }
.solution-tab small { margin-top: 4px; color: var(--muted); }
.solution-tab > .icon { width: 17px; height: 17px; color: #9aa8bd; }
.solution-display { position: relative; min-height: 455px; overflow: hidden; border: 1px solid #dce6f4; border-radius: 26px; background: #fff; box-shadow: var(--shadow-md); }
.solution-pane { display: none; height: 100%; padding: 42px; }
.solution-pane.active { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: 30px; }
.solution-pane h3 { font-size: 31px; }
.solution-pane p { margin: 15px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: #405274; list-style: none; }
.check-list .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--success); }
.solution-art { position: relative; height: 330px; border-radius: 20px; background: linear-gradient(145deg, #eff5ff, #effdfa); }
.mini-chart-card { position: absolute; inset: 25px; padding: 20px; border: 1px solid rgba(195,211,235,.8); border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }
.mini-chart-head { display: flex; align-items: center; justify-content: space-between; }
.mini-chart-head strong { font-size: 12px; }
.mini-chart-head span { color: var(--success); font-size: 10px; font-weight: 800; }
.bar-chart { height: 165px; display: flex; align-items: flex-end; gap: 9px; padding: 20px 0 12px; border-bottom: 1px solid var(--line); }
.bar-chart i { flex: 1; min-width: 9px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--teal-500), var(--blue-600)); opacity: .85; }
.chart-labels { display: flex; justify-content: space-between; padding-top: 9px; color: #98a6bb; font-size: 8px; }

.workflow-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.workflow-copy h2 { color: #fff; font-size: clamp(36px, 4vw, 52px); }
.workflow-copy > p { max-width: 510px; margin: 19px 0 28px; color: #a9b8d1; font-size: 16px; line-height: 1.75; }
.workflow-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 32px; }
.workflow-metrics div { padding: 16px; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; background: rgba(255,255,255,.045); }
.workflow-metrics strong, .workflow-metrics span { display: block; }
.workflow-metrics strong { color: #fff; font-family: Manrope, sans-serif; font-size: 23px; }
.workflow-metrics span { margin-top: 4px; color: #8fa2c1; font-size: 10px; }
.flow-builder-preview { position: relative; display: grid; gap: 14px; padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 26px; background: rgba(255,255,255,.04); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.flow-line { position: absolute; top: 72px; bottom: 72px; left: 61px; width: 2px; background: linear-gradient(var(--blue-500), var(--teal-500)); }
.flow-node { position: relative; z-index: 2; display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 14px; padding: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; color: #fff; background: #102450; box-shadow: 0 15px 35px rgba(0,0,0,.15); }
.flow-node-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--gradient); }
.flow-node strong, .flow-node small { display: block; }
.flow-node small { margin-top: 4px; color: #93a8c8; }
.flow-node > span { color: #6fe4ce; font-size: 10px; font-weight: 800; }

.pricing-toggle { display: flex; justify-content: center; margin: -20px 0 35px; }
.toggle-shell { display: inline-flex; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-xs); }
.toggle-shell button { padding: 9px 15px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.toggle-shell button.active { color: #fff; background: var(--blue-600); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: stretch; }
.price-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-xs); }
.price-card.featured { color: #fff; border-color: transparent; background: var(--gradient-deep); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.price-card.featured h3, .price-card.featured .price-number, .price-card.featured .price-list li { color: #fff; }
.price-ribbon { position: absolute; top: 17px; right: 17px; padding: 6px 9px; border-radius: 999px; color: #026e5d; background: #d9fff7; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.price-card h3 { font-size: 20px; }
.price-card > p { min-height: 44px; margin-top: 8px; color: var(--muted); }
.price-card.featured > p { color: #b8c6dc; }
.price { display: flex; align-items: flex-end; gap: 5px; margin: 25px 0 22px; }
.price-number { color: var(--ink); font-family: Manrope, sans-serif; font-size: 39px; font-weight: 800; letter-spacing: -.04em; }
.price-period { margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.price-card.featured .price-period { color: #a9bbd7; }
.price-list { display: grid; gap: 11px; padding: 0; margin: 24px 0; }
.price-list li { display: flex; align-items: flex-start; gap: 9px; color: #52627e; list-style: none; }
.price-list .icon { width: 17px; height: 17px; margin-top: 1px; color: var(--success); }
.price-card.featured .price-list .icon { color: var(--teal-400); }
.price-note { display: block; margin-top: 13px; color: var(--muted); font-size: 10px; text-align: center; }
.price-card.featured .price-note { color: #96aac9; }

.faq-grid { max-width: 870px; margin: 0 auto; display: grid; gap: 11px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 21px; border: 0; background: #fff; text-align: left; cursor: pointer; font-weight: 800; }
.faq-question .icon { transition: transform .2s ease; }
.faq-item.open .faq-question .icon { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 21px 20px; color: var(--muted); line-height: 1.75; }
.faq-item.open .faq-answer { display: block; }

.cta-section { padding: 86px 0; background: #fff; }
.cta-box { position: relative; overflow: hidden; padding: 62px; border-radius: 30px; color: #fff; background: var(--gradient-deep); box-shadow: var(--shadow-lg); }
.cta-box::after { content: ""; position: absolute; width: 440px; height: 440px; top: -210px; right: -90px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.035), 0 0 0 130px rgba(255,255,255,.025); }
.cta-content { position: relative; z-index: 2; max-width: 650px; }
.cta-content h2 { color: #fff; font-size: clamp(36px, 4vw, 53px); }
.cta-content p { margin: 16px 0 25px; color: #b6c6df; font-size: 16px; }
.cta-actions { display: flex; gap: 12px; }

.site-footer { padding: 76px 0 25px; color: #9aaac5; background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr 1.1fr; gap: 48px; }
.footer-brand img { width: 180px; height: 52px; object-fit: contain; object-position: left; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 320px; margin: 18px 0 13px; line-height: 1.7; }
.product-by { color: #6f84a7; font-size: 11px; font-weight: 700; }
.site-footer h4 { margin-bottom: 17px; color: #fff; font-size: 13px; }
.site-footer a { display: block; margin: 10px 0; transition: color .18s ease; }
.site-footer a:hover { color: #fff; }
.site-footer .btn { display: inline-flex; margin-top: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); color: #6e82a4; font-size: 11px; }
.simple-page { min-height: 68vh; padding: 150px 0 80px; }
.simple-page article { max-width: 820px; margin: 0 auto; padding: 35px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.simple-page article h1 { margin-bottom: 20px; font-size: 40px; }
.simple-page article h2 { margin: 28px 0 10px; font-size: 22px; }
.simple-page article p, .simple-page article li { color: var(--muted); line-height: 1.75; }

/* Authentication */
.auth-body { min-height: 100vh; background: #fff; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, .9fr) minmax(500px, 1.1fr); }
.auth-showcase { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: 38px 54px 42px; color: #fff; background: var(--gradient-deep); }
.auth-showcase::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.auth-glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.auth-glow-one { width: 420px; height: 420px; top: -180px; right: -150px; background: rgba(0, 220, 181, .19); }
.auth-glow-two { width: 360px; height: 360px; left: -180px; bottom: -120px; background: rgba(20, 137, 255, .2); }
.auth-brand { position: relative; z-index: 2; align-self: flex-start; }
.auth-brand img { width: 190px; height: 54px; object-fit: contain; object-position: left; filter: brightness(0) invert(1); }
.auth-story { position: relative; z-index: 2; max-width: 590px; margin: auto 0; }
.auth-story h1 { margin: 24px 0 20px; color: #fff; font-size: clamp(45px, 5vw, 67px); line-height: 1.06; letter-spacing: -.055em; }
.auth-story h1 span { color: #5df2d4; }
.auth-story > p { max-width: 520px; color: #bbcae0; font-size: 17px; line-height: 1.7; }
.auth-proof-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 34px; }
.auth-proof-grid div { padding: 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.055); }
.auth-proof-grid strong, .auth-proof-grid span { display: block; }
.auth-proof-grid strong { color: #fff; font-family: Manrope, sans-serif; font-size: 23px; }
.auth-proof-grid span { margin-top: 4px; color: #91a9c8; font-size: 10px; }
.auth-testimonial { position: relative; z-index: 2; max-width: 570px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.11); }
.auth-testimonial > p { max-width: 520px; color: #aabbd4; line-height: 1.65; }
.quote-mark { height: 26px; color: var(--teal-400); font-family: Georgia, serif; font-size: 48px; line-height: .7; }
.quote-author { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.quote-author strong, .quote-author span { display: block; }
.quote-author strong { color: #fff; }
.quote-author span { color: #8197b8; font-size: 11px; }
.auth-panel { display: grid; place-items: center; min-width: 0; padding: 44px 30px; background: #fff; }
.auth-panel-inner { width: min(440px, 100%); }
.auth-mobile-brand { display: none; margin-bottom: 34px; }
.auth-mobile-brand img { width: 175px; }
.auth-flashes { display: grid; gap: 8px; margin-bottom: 18px; }
.auth-title { margin-bottom: 24px; }
.auth-title h1 { font-size: 31px; }
.auth-title p { margin-top: 9px; color: var(--muted); font-size: 14px; }
.social-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink-2);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
  transition: .18s ease;
}
.social-button:hover { border-color: #afc0dc; background: #fbfcff; transform: translateY(-1px); }
.social-button.disabled { opacity: .55; cursor: not-allowed; }
.google-mark { width: 19px; height: 19px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #a0abc0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form .form-group { margin-bottom: 15px; }
.auth-form input { min-height: 48px; }
.auth-form-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -2px 0 20px; }
.auth-form-meta a { color: var(--blue-600); font-weight: 700; font-size: 12px; }
.auth-switch { margin-top: 22px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--blue-600); font-weight: 800; }
.auth-legal { margin-top: 28px; color: #9ba7bb; font-size: 10px; line-height: 1.6; text-align: center; }
.auth-legal a { color: #6f7f9b; text-decoration: underline; }
.password-meter { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-top: 7px; }
.password-meter i { height: 3px; border-radius: 999px; background: #e5eaf3; }
.password-meter[data-strength="1"] i:first-child { background: var(--danger); }
.password-meter[data-strength="2"] i:nth-child(-n+2) { background: #f0a21c; }
.password-meter[data-strength="3"] i:nth-child(-n+3) { background: var(--blue-500); }
.password-meter[data-strength="4"] i { background: var(--success); }

/* Application shell */
.app-body { min-height: 100vh; overflow-x: hidden; background: var(--page); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); }
.sidebar {
  position: fixed;
  z-index: 80;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 15px;
  color: #dbe6f8;
  background: var(--navy-950);
  border-right: 1px solid rgba(255,255,255,.04);
}
.sidebar::before { content: ""; position: absolute; width: 220px; height: 220px; top: -130px; left: -70px; border-radius: 50%; background: rgba(0, 220, 181, .09); filter: blur(10px); pointer-events: none; }
.sidebar-head { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 7px 13px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand img { width: 170px; height: 46px; object-fit: contain; object-position: left; filter: brightness(0) invert(1); }
.sidebar-close { display: none; border: 0; background: transparent; color: #fff; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 15px 0 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.nav-group-label { display: block; padding: 17px 12px 7px; color: #607799; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.nav-group-label:first-child { padding-top: 5px; }
.sidebar-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 43px; margin: 3px 0; padding: 9px 11px; border-radius: 11px; color: #9eb0ca; font-weight: 700; font-size: 13px; transition: color .18s ease, background .18s ease; }
.sidebar-link .icon { width: 19px; height: 19px; }
.sidebar-link > span:not(.nav-count):not(.nav-new) { flex: 1; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.sidebar-link.active { color: #fff; background: linear-gradient(100deg, rgba(14,99,236,.9), rgba(0,199,178,.68)); box-shadow: 0 8px 24px rgba(0, 82, 205, .24); }
.sidebar-link.active::before { content: ""; position: absolute; left: -14px; width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: #56f3d6; }
.nav-count { min-width: 22px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.14); font-size: 9px; }
.nav-new { padding: 3px 6px; border-radius: 999px; color: #55efd3; background: rgba(0,220,181,.12); font-size: 8px; font-weight: 900; }
.sidebar-bottom { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.plan-mini { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.035); }
.plan-mini-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #4af0d3; background: rgba(0,220,181,.12); }
.plan-mini-icon .icon { width: 17px; height: 17px; }
.plan-mini span, .plan-mini small { display: block; }
.plan-mini span { color: #dce8f8; font-size: 11px; font-weight: 800; }
.plan-mini small { margin-top: 2px; color: #667c9f; font-size: 8px; }
.plan-mini > a { color: #7084a4; }
.plan-mini > a .icon { width: 15px; height: 15px; }
.sidebar-help { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; color: #7f94b3; font-weight: 700; font-size: 12px; }
.sidebar-help:hover { color: #fff; background: rgba(255,255,255,.045); }
.sidebar-help .icon { width: 18px; height: 18px; }
.app-main { min-width: 0; grid-column: 2; }
.topbar {
  position: sticky;
  z-index: 60;
  top: 0;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.sidebar-toggle { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.page-heading h1 { font-size: 20px; }
.page-heading p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.command-search { min-width: 218px; height: 39px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: #8290a8; background: #f8fafd; cursor: pointer; text-align: left; }
.command-search .icon { width: 17px; height: 17px; }
.command-search span { flex: 1; font-size: 11px; }
kbd { padding: 3px 6px; border: 1px solid #dbe2ed; border-radius: 5px; color: #8794a9; background: #fff; font-family: inherit; font-size: 9px; box-shadow: 0 1px 0 #dbe2ed; }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--teal-500); }
.user-menu-wrap { position: relative; }
.user-menu-trigger { display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 4px 7px 4px 4px; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; }
.user-menu-trigger:hover { border-color: var(--line); background: #fff; }
.user-menu-copy { text-align: left; }
.user-menu-copy strong, .user-menu-copy small { display: block; }
.user-menu-copy strong { max-width: 130px; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-copy small { margin-top: 2px; color: #8694ab; font-size: 9px; }
.user-menu-trigger > .icon { width: 15px; height: 15px; color: #8e9bb0; }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 245px; display: none; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-md); }
.user-dropdown.open { display: block; }
.dropdown-user { display: flex; align-items: center; gap: 10px; padding: 9px 8px 13px; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
.dropdown-user strong, .dropdown-user span { display: block; }
.dropdown-user strong { font-size: 12px; }
.dropdown-user span { max-width: 150px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown > a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; color: var(--ink-2); font-weight: 700; font-size: 12px; }
.user-dropdown > a:hover { color: var(--blue-600); background: var(--surface-3); }
.user-dropdown > a .icon { width: 17px; height: 17px; }
.page-content { min-width: 0; padding: 25px 27px 42px; }
.page-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1540px; margin: 0 auto; }
.page-toolbar:empty { display: none; }
.page-actions { display: flex; align-items: center; gap: 9px; }
.app-flashes { max-width: 1540px; display: grid; gap: 8px; margin: 0 auto 16px; }
.notice-banner { max-width: 1540px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; margin: 0 auto 17px; padding: 13px 14px; border: 1px solid; border-radius: 13px; }
.notice-info { color: #195cb7; border-color: #c8ddfb; background: #f1f7ff; }
.notice-banner .notice-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.7); }
.notice-banner strong, .notice-banner p { display: block; }
.notice-banner strong { color: var(--ink); font-size: 12px; }
.notice-banner p { margin-top: 3px; color: #6b7e9b; font-size: 10px; }
.page-grid { max-width: 1540px; margin: 0 auto; }

/* Dashboard and reusable cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin-bottom: 17px; }
.stat-card { position: relative; min-width: 0; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-xs); }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; top: -46px; right: -40px; border-radius: 50%; background: rgba(11,111,251,.07); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; }
.stat-icon .icon { width: 19px; height: 19px; }
.stat-icon.blue { color: var(--blue-600); background: #eaf3ff; }
.stat-icon.teal { color: #008c74; background: #e7fbf6; }
.stat-icon.purple { color: #704ad0; background: #f0ebff; }
.stat-icon.orange { color: #b96602; background: #fff1dd; }
.stat-trend { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 9px; font-weight: 800; }
.stat-trend.down { color: var(--danger); }
.stat-card > span { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; font-weight: 700; }
.stat-value { display: flex; align-items: baseline; gap: 7px; margin-top: 3px; }
.stat-value strong { color: var(--ink); font-family: Manrope, sans-serif; font-size: 27px; letter-spacing: -.04em; }
.stat-value small { color: #9ca8bb; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .74fr); gap: 17px; }
.dashboard-lower { display: grid; grid-template-columns: minmax(0,1.13fr) minmax(0,.87fr); gap: 17px; margin-top: 17px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-xs); }
.panel-pad { padding: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.panel-head.no-border { border-bottom: 0; }
.panel-head h2 { font-size: 15px; }
.panel-head p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.panel-tools { display: flex; align-items: center; gap: 7px; }
.panel-body { padding: 18px; }
.chart-wrap { position: relative; height: 275px; padding: 5px 2px 0; }
.chart-wrap canvas { width: 100%; height: 100%; }
.chart-legend { display: flex; align-items: center; gap: 14px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--blue-600); }
.chart-legend span:nth-child(2) i { background: var(--teal-500); }
.mini-select { width: auto; min-height: 34px; padding: 7px 28px 7px 9px; border-radius: 9px; font-size: 10px; }
.onboarding-card { padding: 18px; color: #fff; background: var(--gradient-deep); }
.onboarding-card h2 { color: #fff; font-size: 17px; }
.onboarding-card > p { margin-top: 7px; color: #aebfd9; font-size: 10px; }
.onboarding-progress { margin: 17px 0; }
.progress-head { display: flex; justify-content: space-between; margin-bottom: 7px; color: #c1d0e4; font-size: 9px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-500), #69f2d9); }
.checklist { display: grid; gap: 8px; }
.checklist-item { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.04); }
.checklist-check { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; color: #7e95b6; }
.checklist-item.done .checklist-check { color: #052d44; border-color: transparent; background: var(--teal-400); }
.checklist-check .icon { width: 14px; height: 14px; }
.checklist-item strong, .checklist-item small { display: block; }
.checklist-item strong { color: #fff; font-size: 10px; }
.checklist-item small { margin-top: 2px; color: #8298b9; font-size: 8px; }
.checklist-item > .icon { width: 15px; height: 15px; color: #6d83a4; }
.activity-list { display: grid; }
.activity-row { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-row strong, .activity-row span { display: block; }
.activity-row strong { font-size: 11px; }
.activity-row span { max-width: 390px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.activity-row time { color: #9aa6ba; font-size: 8px; }
.channel-list { display: grid; gap: 13px; }
.channel-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; }
.channel-row strong, .channel-row small { display: block; }
.channel-row strong { font-size: 11px; }
.channel-row small { color: var(--muted); font-size: 9px; }
.channel-metric { text-align: right; }
.channel-metric strong { font-family: Manrope, sans-serif; font-size: 13px; }
.connection-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcff; }
.connection-logo { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#1cc76a,#0ea65b); }
.connection-card strong, .connection-card span { display: block; }
.connection-card strong { font-size: 11px; }
.connection-card span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.connection-card .status-badge { margin-left: auto; }

/* Tables and list pages */
.toolbar-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.search-field { position: relative; width: min(340px, 100%); }
.search-field .icon { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; color: #8c9ab0; transform: translateY(-50%); }
.search-field input { min-height: 39px; padding-left: 38px; border-radius: 10px; background: #f9fbfd; }
.filter-button { min-height: 39px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); background: #fff; cursor: pointer; font-weight: 700; font-size: 11px; }
.filter-button .icon { width: 16px; height: 16px; }
.table-panel { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.data-table th { padding: 11px 15px; border-bottom: 1px solid var(--line); color: #8b98ad; background: #fbfcfe; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; font-size: 11px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fbfdff; }
.table-primary { display: flex; align-items: center; gap: 10px; }
.table-primary strong, .table-primary span { display: block; }
.table-primary strong { color: var(--ink); font-size: 11px; }
.table-primary span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: #526482; background: #eef2f8; font-size: 8px; font-weight: 800; }
.tag.blue { color: var(--blue-700); background: #e9f3ff; }
.tag.teal { color: #008975; background: #e5fbf6; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.table-action { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #7b8aa3; background: transparent; cursor: pointer; }
.table-action:hover { color: var(--blue-600); background: var(--surface-3); }
.table-action .icon { width: 15px; height: 15px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination-links { display: flex; gap: 4px; }
.pagination a { min-width: 31px; height: 31px; display: grid; place-items: center; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); background: #fff; }
.pagination a.current { color: #fff; border-color: var(--blue-600); background: var(--blue-600); }
.empty-state { max-width: 480px; margin: 45px auto; padding: 25px; text-align: center; }
.empty-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 20px; color: var(--blue-600); background: linear-gradient(135deg,#eaf3ff,#eafffa); }
.empty-icon .icon { width: 30px; height: 30px; }
.empty-state h3 { font-size: 17px; }
.empty-state p { margin: 8px 0 17px; color: var(--muted); line-height: 1.65; }

/* Inbox */
.inbox-shell { height: calc(100vh - 129px); min-height: 610px; display: grid; grid-template-columns: 320px minmax(390px,1fr) 285px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-xs); }
.inbox-list-pane { min-width: 0; display: grid; grid-template-rows: auto auto 1fr; border-right: 1px solid var(--line); }
.inbox-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px; }
.inbox-pane-head h2 { font-size: 15px; }
.inbox-tabs { display: flex; gap: 3px; margin: 0 13px 10px; padding: 4px; border-radius: 10px; background: #f2f5f9; }
.inbox-tab { flex: 1; padding: 7px; border: 0; border-radius: 8px; color: #7c8ba3; background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }
.inbox-tab.active { color: var(--blue-600); background: #fff; box-shadow: var(--shadow-xs); }
.inbox-search { position: relative; margin: 0 13px 11px; }
.inbox-search .icon { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; color: #8f9db2; transform: translateY(-50%); }
.inbox-search input { min-height: 37px; padding-left: 34px; border: 0; background: #f3f6fa; }
.conversation-list { overflow-y: auto; }
.conversation-row { width: 100%; display: grid; grid-template-columns: 41px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px 13px; border: 0; border-top: 1px solid #f0f3f8; background: #fff; text-align: left; cursor: pointer; }
.conversation-row:hover { background: #f9fbfe; }
.conversation-row.active { background: linear-gradient(90deg,#edf5ff,#f7fffd); box-shadow: inset 3px 0 var(--blue-600); }
.conversation-copy { min-width: 0; }
.conversation-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conversation-title strong { max-width: 150px; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-title time { color: #97a3b6; font-size: 8px; }
.conversation-preview { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.conversation-preview span { flex: 1; overflow: hidden; color: #7e8da5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.unread-pill { min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; color: #fff; background: var(--blue-600); font-size: 8px; font-weight: 900; }
.inbox-chat-pane { min-width: 0; display: grid; grid-template-rows: 65px 1fr auto; background: #f4f7fb; }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 11px 15px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-contact { flex: 1; min-width: 0; }
.chat-contact strong, .chat-contact span { display: block; }
.chat-contact strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.chat-contact span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.chat-actions { display: flex; gap: 5px; }
.chat-action { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #7b8ba4; background: transparent; cursor: pointer; }
.chat-action:hover { color: var(--blue-600); background: var(--surface-3); }
.chat-action .icon { width: 17px; height: 17px; }
.message-stream { overflow-y: auto; padding: 22px 24px; background-color: #f4f7fb; background-image: radial-gradient(#dbe5f2 .7px, transparent .7px); background-size: 18px 18px; }
.date-divider { display: flex; align-items: center; gap: 10px; margin: 13px 0; color: #91a0b5; font-size: 8px; text-transform: uppercase; }
.date-divider::before, .date-divider::after { content: ""; flex: 1; height: 1px; background: #dfe6f0; }
.message-row { display: flex; margin: 7px 0; }
.message-row.outbound { justify-content: flex-end; }
.message-bubble { max-width: min(75%, 520px); padding: 10px 12px 8px; border: 1px solid #e5eaf2; border-radius: 14px 14px 14px 4px; color: #3c4f70; background: #fff; box-shadow: 0 4px 10px rgba(22,48,91,.04); font-size: 11px; line-height: 1.55; }
.outbound .message-bubble { border-color: #ccefe5; border-radius: 14px 14px 4px 14px; color: #155d56; background: #e3faf4; }
.message-meta { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 5px; color: #8d9aaa; font-size: 7px; }
.message-meta .read-check { color: var(--blue-500); font-weight: 900; }
.chat-composer { padding: 10px 12px 12px; border-top: 1px solid var(--line); background: #fff; }
.composer-box { display: grid; grid-template-columns: auto 1fr auto; align-items: flex-end; gap: 8px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; }
.composer-tools { display: flex; gap: 2px; padding-bottom: 1px; }
.composer-tool { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #7f8da3; background: transparent; cursor: pointer; }
.composer-tool:hover { color: var(--blue-600); background: #eef4fd; }
.composer-tool .icon { width: 17px; height: 17px; }
.composer-input textarea { min-height: 34px; max-height: 110px; padding: 7px 5px; border: 0; border-radius: 0; box-shadow: none; resize: none; }
.composer-send { width: 37px; height: 37px; display: grid; place-items: center; border: 0; border-radius: 10px; color: #fff; background: var(--gradient); cursor: pointer; box-shadow: 0 6px 15px rgba(8,97,230,.22); }
.composer-send .icon { width: 17px; height: 17px; }
.composer-note { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; color: #9aa6b8; font-size: 8px; }
.contact-pane { overflow-y: auto; border-left: 1px solid var(--line); background: #fff; }
.contact-card-head { padding: 22px 17px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.contact-card-head .avatar { margin: 0 auto 10px; }
.contact-card-head h3 { font-size: 14px; }
.contact-card-head p { margin-top: 4px; color: var(--muted); font-size: 9px; }
.contact-section { padding: 15px 17px; border-bottom: 1px solid var(--line); }
.contact-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; color: #7f8da3; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.contact-info-list { display: grid; gap: 10px; }
.contact-info-row { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; }
.contact-info-row > .icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; color: var(--blue-600); background: #eef5ff; }
.contact-info-row strong, .contact-info-row span { display: block; }
.contact-info-row strong { color: #8c99ad; font-size: 8px; font-weight: 700; }
.contact-info-row span { margin-top: 2px; color: var(--ink-2); font-size: 10px; }
.inbox-empty { grid-column: 1/-1; display: grid; place-items: center; color: var(--muted); text-align: center; }

/* Campaigns */
.campaign-summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 15px; }
.campaign-metric { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.campaign-metric span, .campaign-metric strong { display: block; }
.campaign-metric span { color: var(--muted); font-size: 9px; }
.campaign-metric strong { margin-top: 4px; font-family: Manrope,sans-serif; font-size: 20px; }
.campaign-list { display: grid; gap: 11px; }
.campaign-card { display: grid; grid-template-columns: minmax(240px,1.2fr) minmax(240px,.9fr) minmax(250px,1fr) auto; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.campaign-name { display: flex; align-items: center; gap: 11px; }
.campaign-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--blue-600); background: #eaf3ff; }
.campaign-name strong, .campaign-name span { display: block; }
.campaign-name strong { font-size: 11px; }
.campaign-name span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.campaign-progress { min-width: 0; }
.campaign-progress-head { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: 8px; }
.campaign-progress .progress-track { height: 5px; background: #edf1f6; }
.campaign-progress .progress-track span { background: var(--gradient); }
.campaign-stats { display: flex; justify-content: space-between; gap: 8px; }
.campaign-stats div { min-width: 0; }
.campaign-stats span, .campaign-stats strong { display: block; }
.campaign-stats span { color: var(--muted); font-size: 8px; }
.campaign-stats strong { margin-top: 2px; font-size: 11px; }
.wizard-shell { display: grid; grid-template-columns: 250px minmax(0,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.wizard-sidebar { padding: 24px 18px; color: #fff; background: var(--gradient-deep); }
.wizard-sidebar h2 { color: #fff; font-size: 18px; }
.wizard-sidebar > p { margin-top: 7px; color: #aebfd9; font-size: 10px; }
.wizard-steps { display: grid; gap: 9px; margin-top: 25px; }
.wizard-step { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: #8298b8; }
.wizard-step span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; font-size: 10px; font-weight: 900; }
.wizard-step strong { font-size: 10px; }
.wizard-step.active { color: #fff; background: rgba(255,255,255,.08); }
.wizard-step.active span, .wizard-step.done span { color: var(--navy-950); border-color: transparent; background: var(--teal-400); }
.wizard-content { padding: 27px; }
.wizard-pane { display: none; }
.wizard-pane.active { display: block; }
.wizard-pane > h3 { font-size: 20px; }
.wizard-pane > p { margin: 7px 0 22px; color: var(--muted); }
.wizard-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
.choice-card { position: relative; display: block; padding: 16px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { border-color: var(--blue-500); background: #f2f7ff; box-shadow: 0 0 0 3px rgba(11,111,251,.08); }
.choice-card strong, .choice-card span { display: block; }
.choice-card strong { font-size: 11px; }
.choice-card span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.audience-preview { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid #cfe0f7; border-radius: 12px; background: #f4f8ff; }
.audience-preview .icon { color: var(--blue-600); }
.audience-preview strong, .audience-preview span { display: block; }
.audience-preview span { color: var(--muted); font-size: 9px; }

/* CRM */
.crm-head-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 15px; }
.crm-board { display: grid; grid-template-columns: repeat(5, minmax(245px,1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.crm-column { min-width: 245px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: #eef2f7; }
.crm-column-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 4px 12px; }
.crm-column-title { display: flex; align-items: center; gap: 7px; }
.crm-column-title i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); }
.crm-column:nth-child(2) .crm-column-title i { background: #8b63e9; }
.crm-column:nth-child(3) .crm-column-title i { background: #e9a31a; }
.crm-column:nth-child(4) .crm-column-title i { background: var(--success); }
.crm-column:nth-child(5) .crm-column-title i { background: #9aa4b4; }
.crm-column-head strong { font-size: 10px; }
.crm-column-head span { color: var(--muted); font-size: 8px; }
.crm-card { margin-bottom: 9px; padding: 12px; border: 1px solid #e2e7ef; border-radius: 12px; background: #fff; box-shadow: var(--shadow-xs); cursor: grab; }
.crm-card:hover { border-color: #cbd8eb; box-shadow: var(--shadow-sm); }
.crm-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.crm-card h4 { font-size: 11px; line-height: 1.4; }
.crm-card-source { padding: 3px 6px; border-radius: 6px; color: var(--blue-600); background: #eaf3ff; font-size: 7px; font-weight: 900; }
.crm-card p { margin: 7px 0 10px; color: var(--muted); font-size: 9px; }
.crm-card-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px solid var(--line); }
.crm-value { color: var(--success); font-size: 10px; font-weight: 800; }
.crm-due { display: flex; align-items: center; gap: 4px; color: #8d9aae; font-size: 8px; }
.crm-due .icon { width: 12px; height: 12px; }

/* Automation */
.automation-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.automation-card { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-xs); }
.automation-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.automation-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--gradient); }
.automation-icon .icon { width: 20px; height: 20px; }
.toggle { width: 38px; height: 22px; position: relative; border: 0; border-radius: 999px; background: #dce3ee; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(30,53,89,.2); transition: .2s ease; }
.toggle.on { background: var(--teal-500); }
.toggle.on::after { left: 19px; }
.automation-card h3 { margin-top: 14px; font-size: 14px; }
.automation-card > p { min-height: 42px; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.automation-flow-mini { display: flex; align-items: center; gap: 6px; margin-top: 13px; padding: 9px; border-radius: 10px; background: #f5f8fc; }
.automation-flow-mini span { padding: 5px 7px; border-radius: 7px; color: #566884; background: #fff; font-size: 8px; font-weight: 800; }
.automation-flow-mini .icon { width: 12px; height: 12px; color: #9ca9bb; }
.automation-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }

/* Analytics */
.analytics-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 15px; }
.analytics-small-grid { display: grid; gap: 15px; }
.donut-wrap { min-height: 240px; display: grid; place-items: center; }
.donut { position: relative; width: 155px; height: 155px; border-radius: 50%; background: conic-gradient(var(--blue-600) 0 48%, var(--teal-500) 48% 76%, #8a63e8 76% 91%, #e7edf5 91%); }
.donut::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: #fff; }
.donut-center { position: absolute; z-index: 2; text-align: center; }
.donut-center strong, .donut-center span { display: block; }
.donut-center strong { font-family: Manrope,sans-serif; font-size: 25px; }
.donut-center span { color: var(--muted); font-size: 8px; }
.metric-bars { display: grid; gap: 12px; }
.metric-bar-head { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.metric-bar-head strong { color: var(--ink); }
.metric-bar .progress-track { height: 7px; background: #edf1f6; }
.metric-bar:nth-child(2) .progress-track span { background: var(--teal-500); }
.metric-bar:nth-child(3) .progress-track span { background: #8a63e8; }

/* Settings, billing, integrations */
.settings-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 15px; }
.settings-nav { align-self: start; padding: 9px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.settings-nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 10px; border-radius: 9px; color: #687893; font-weight: 700; font-size: 11px; }
.settings-nav a.active, .settings-nav a:hover { color: var(--blue-600); background: #eef5ff; }
.settings-nav .icon { width: 17px; height: 17px; }
.settings-content { min-width: 0; }
.settings-section { margin-bottom: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.settings-section-head { padding: 18px; border-bottom: 1px solid var(--line); }
.settings-section-head h2 { font-size: 15px; }
.settings-section-head p { margin-top: 5px; color: var(--muted); font-size: 10px; }
.settings-section-body { padding: 19px; }
.settings-section-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 19px; border-top: 1px solid var(--line); background: #fbfcfe; }
.integration-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.integration-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.integration-logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--gradient); }
.integration-logo.whatsapp { background: linear-gradient(135deg,#2bc875,#0ca55e); }
.integration-logo.google { color: var(--blue-600); background: #eef4ff; }
.integration-logo.webhook { color: #6f49ca; background: #f0ebff; }
.integration-card strong, .integration-card span { display: block; }
.integration-card strong { font-size: 11px; }
.integration-card span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.billing-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; margin-bottom: 15px; padding: 22px; border-radius: 17px; color: #fff; background: var(--gradient-deep); }
.billing-hero h2 { color: #fff; font-size: 21px; }
.billing-hero p { margin-top: 6px; color: #aebfd7; }
.billing-plan-meta { display: flex; gap: 22px; margin-top: 17px; }
.billing-plan-meta strong, .billing-plan-meta span { display: block; }
.billing-plan-meta strong { color: #fff; font-size: 14px; }
.billing-plan-meta span { color: #8299bb; font-size: 9px; }
.usage-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.usage-card { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.usage-card-head { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 9px; }
.usage-card-head strong { color: var(--ink); font-size: 10px; }
.usage-card .progress-track { height: 7px; background: #edf1f6; }
.usage-card small { display: block; margin-top: 7px; color: #8d9bb0; font-size: 8px; }

/* Onboarding */
.onboarding-body { min-height: 100vh; padding: 30px; background: linear-gradient(145deg,#f4f8ff,#f3fffc); }
.onboarding-shell { width: min(1060px,100%); min-height: 680px; display: grid; grid-template-columns: 300px 1fr; margin: 0 auto; overflow: hidden; border: 1px solid #dfe7f2; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); }
.onboarding-side { position: relative; padding: 28px; color: #fff; background: var(--gradient-deep); }
.onboarding-side-logo img { width: 174px; filter: brightness(0) invert(1); }
.onboarding-side h1 { margin-top: 48px; color: #fff; font-size: 28px; }
.onboarding-side > p { margin-top: 11px; color: #a9bcd7; line-height: 1.65; }
.onboarding-step-list { display: grid; gap: 13px; margin-top: 35px; }
.onboarding-step-item { display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 10px; color: #7890b2; }
.onboarding-step-item > span { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; font-weight: 900; }
.onboarding-step-item strong, .onboarding-step-item small { display: block; }
.onboarding-step-item strong { font-size: 11px; }
.onboarding-step-item small { margin-top: 2px; font-size: 8px; }
.onboarding-step-item.active { color: #fff; }
.onboarding-step-item.active > span, .onboarding-step-item.done > span { color: var(--navy-950); border-color: transparent; background: var(--teal-400); }
.onboarding-main { padding: 39px 45px; }
.onboarding-main-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.onboarding-main-head span { color: var(--muted); font-size: 10px; }
.onboarding-main h2 { font-size: 27px; }
.onboarding-main > p { margin: 9px 0 25px; color: var(--muted); }
.onboarding-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
.onboarding-option { position: relative; padding: 15px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.onboarding-option input { position: absolute; opacity: 0; }
.onboarding-option:has(input:checked) { border-color: var(--blue-500); background: #f2f7ff; box-shadow: 0 0 0 3px rgba(11,111,251,.08); }
.onboarding-option .icon { margin-bottom: 10px; color: var(--blue-600); }
.onboarding-option strong, .onboarding-option span { display: block; }
.onboarding-option strong { font-size: 11px; }
.onboarding-option span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.onboarding-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; }

/* Dialogs and command palette */
dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 35px 100px rgba(4,25,68,.28); }
dialog::backdrop { background: rgba(6, 19, 52, .58); backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 17px; }
.dialog-close { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #f3f5f8; cursor: pointer; }
.dialog-body { padding: 20px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fbfcfe; }
.command-palette { position: fixed; z-index: 150; inset: 0; display: grid; place-items: start center; padding-top: 13vh; }
.command-palette[hidden] { display: none; }
.command-backdrop { position: absolute; inset: 0; background: rgba(4,19,51,.55); backdrop-filter: blur(4px); }
.command-dialog { position: relative; width: min(610px, calc(100% - 28px)); overflow: hidden; border: 1px solid rgba(255,255,255,.5); border-radius: 16px; background: #fff; box-shadow: 0 35px 100px rgba(4,25,68,.28); }
.command-input { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.command-input .icon { color: #7f8ca2; }
.command-input input { flex: 1; min-height: 35px; padding: 0; border: 0; box-shadow: none; font-size: 14px; }
.command-results { max-height: 350px; overflow-y: auto; padding: 8px; }
.command-label { display: block; padding: 8px 9px 6px; color: #9aa6b8; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.command-results a { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 9px; border-radius: 9px; color: var(--ink-2); font-weight: 700; font-size: 11px; }
.command-results a:hover, .command-results a.selected { color: var(--blue-600); background: #eef5ff; }
.command-results a > .icon:first-child { width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: #f3f6fb; }
.command-results a > .icon:last-child { width: 14px; height: 14px; color: #9ba8bb; }
.mobile-overlay { display: none; }
.error-state { max-width: 560px; margin: 70px auto; padding: 30px; text-align: center; }
.error-code { color: transparent; background: var(--gradient); -webkit-background-clip: text; background-clip: text; font-family: Manrope,sans-serif; font-size: 84px; font-weight: 900; letter-spacing: -.07em; }
.error-state h1, .error-state h2 { font-size: 26px; }
.error-state p { margin: 10px 0 20px; color: var(--muted); }

/* Responsive */
@media (max-width: 1180px) {
  .public-nav { gap: 18px; }
  .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 30px; }
  .hero h1 { font-size: 55px; }
  .preview-app { grid-template-columns: 60px 150px 1fr; }
  .floating-card.two { left: -20px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1.3fr repeat(3,.8fr); gap: 30px; }
  .inbox-shell { grid-template-columns: 285px minmax(360px,1fr); }
  .contact-pane { display: none; }
  .integration-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 1000px) {
  :root { --sidebar-width: 238px; }
  .public-nav { display: none; position: absolute; top: 68px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-md); }
  .public-nav.open { display: flex; }
  .public-nav a { padding: 12px; border-radius: 9px; }
  .public-nav a:hover { background: #f2f7ff; }
  .mobile-nav-toggle { display: grid; place-items: center; }
  .hero { min-height: auto; padding-top: 125px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; text-align: center; margin: 0 auto; }
  .hero-copy > p { margin: 0 auto; }
  .hero-actions, .hero-checks { justify-content: center; }
  .hero-visual { max-width: 760px; margin: 25px auto 0; }
  .solution-tabs { grid-template-columns: 1fr; }
  .solution-tab-list { display: grid; grid-template-columns: repeat(3,1fr); }
  .solution-tab { grid-template-columns: 38px 1fr; }
  .solution-tab > .icon { display: none; }
  .workflow-grid { grid-template-columns: 1fr; gap: 45px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-panel { min-height: 100vh; background: radial-gradient(circle at top right,rgba(0,220,181,.12),transparent 30%),#fff; }
  .auth-mobile-brand { display: block; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 70px rgba(5,26,63,.25); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: grid; place-items: center; }
  .mobile-overlay { position: fixed; z-index: 75; inset: 0; background: rgba(5,20,50,.45); backdrop-filter: blur(2px); }
  .mobile-overlay.open { display: block; }
  .app-main { min-width: 0; }
  .sidebar-toggle { display: grid; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid, .dashboard-lower { grid-template-columns: 1fr; }
  .campaign-card { grid-template-columns: minmax(220px,1fr) minmax(230px,1fr) auto; }
  .campaign-stats { display: none; }
  .analytics-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { display: flex; overflow-x: auto; }
  .settings-nav a { flex: 0 0 auto; }
  .onboarding-shell { grid-template-columns: 250px 1fr; }
}

@media (max-width: 760px) {
  .public-container { width: min(100% - 26px, 1180px); }
  .site-header { height: 68px; }
  .public-brand img { width: 150px; height: 42px; }
  .nav-actions .login-link { display: none; }
  .nav-actions .btn { display: none; }
  .hero { padding: 105px 0 65px; }
  .hero h1 { font-size: clamp(40px,12vw,54px); }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-checks { gap: 10px; }
  .dashboard-preview { border-radius: 17px; transform: none; }
  .preview-app { grid-template-columns: 48px 120px 1fr; min-height: 330px; }
  .preview-sidebar { padding: 10px 5px; }
  .preview-nav-icon { width: 29px; height: 29px; }
  .preview-logo { width: 32px; height: 32px; }
  .preview-chat-row { padding: 8px 7px; grid-template-columns: 24px 1fr; }
  .preview-chat-row .preview-avatar { width: 24px; height: 24px; }
  .preview-chat-row time { display: none; }
  .preview-chat-head { padding: 8px; }
  .preview-messages { padding: 10px; }
  .floating-card { padding: 9px 10px; }
  .floating-card.one { top: -24px; right: 8px; }
  .floating-card.two { left: 5px; bottom: -30px; }
  .public-section { padding: 72px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr; }
  .solution-tab-list { grid-template-columns: 1fr; }
  .solution-tab small { display: none; }
  .solution-pane.active { grid-template-columns: 1fr; padding: 26px; }
  .solution-art { height: 290px; }
  .workflow-metrics { grid-template-columns: 1fr; }
  .flow-builder-preview { padding: 18px; }
  .flow-line { left: 51px; }
  .flow-node { grid-template-columns: 40px 1fr; }
  .flow-node > span { display: none; }
  .cta-box { padding: 38px 25px; }
  .cta-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; }
  .topbar { height: 68px; padding: 0 14px; }
  .page-heading p { display: none; }
  .command-search { min-width: 40px; width: 40px; padding: 0; justify-content: center; }
  .command-search span, .command-search kbd { display: none; }
  .user-menu-copy, .user-menu-trigger > .icon { display: none; }
  .page-content { padding: 15px 13px 30px; }
  .page-toolbar { align-items: stretch; }
  .page-actions { width: 100%; justify-content: flex-end; }
  .notice-banner { grid-template-columns: 36px 1fr; }
  .notice-banner form { grid-column: 1/-1; }
  .notice-banner .btn { width: 100%; }
  .stat-grid { gap: 9px; }
  .stat-card { padding: 14px; }
  .stat-value strong { font-size: 23px; }
  .toolbar-card { align-items: stretch; flex-direction: column; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .search-field { width: 100%; }
  .inbox-shell { height: calc(100vh - 98px); min-height: 600px; grid-template-columns: 1fr; border-radius: 14px; }
  .inbox-list-pane { display: none; }
  .inbox-shell.show-list .inbox-list-pane { display: grid; }
  .inbox-shell.show-list .inbox-chat-pane { display: none; }
  .chat-header::before { content: "‹"; font-size: 28px; color: var(--blue-600); cursor: pointer; }
  .message-stream { padding: 16px 12px; }
  .message-bubble { max-width: 88%; }
  .campaign-summary-grid, .crm-head-grid, .usage-grid { grid-template-columns: repeat(2,1fr); }
  .campaign-card { grid-template-columns: 1fr auto; }
  .campaign-progress { grid-column: 1/-1; }
  .wizard-shell { grid-template-columns: 1fr; }
  .wizard-sidebar { padding: 18px; }
  .wizard-steps { grid-template-columns: repeat(4,1fr); margin-top: 16px; }
  .wizard-step { display: flex; justify-content: center; padding: 5px; }
  .wizard-step strong { display: none; }
  .wizard-content { padding: 20px 16px; }
  .choice-grid { grid-template-columns: 1fr; }
  .automation-grid, .integration-grid { grid-template-columns: 1fr; }
  .settings-nav { padding: 6px; }
  .settings-section-body { padding: 15px; }
  .form-row, .form-row.cols-3 { grid-template-columns: 1fr; gap: 0; }
  .onboarding-body { padding: 0; }
  .onboarding-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .onboarding-side { padding: 20px; }
  .onboarding-side h1, .onboarding-side > p { display: none; }
  .onboarding-step-list { grid-template-columns: repeat(4,1fr); margin-top: 20px; }
  .onboarding-step-item { display: flex; justify-content: center; }
  .onboarding-step-item div { display: none; }
  .onboarding-main { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-checks { display: grid; grid-template-columns: 1fr; text-align: left; }
  .preview-app { grid-template-columns: 42px 108px 1fr; }
  .preview-list-head { padding: 10px 7px 7px; }
  .preview-chat-row small { max-width: 55px; }
  .floating-card.two { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .auth-panel { padding: 30px 18px; }
  .auth-title h1 { font-size: 27px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card > span { font-size: 10px; }
  .campaign-summary-grid, .crm-head-grid, .usage-grid { grid-template-columns: 1fr; }
  .billing-hero { grid-template-columns: 1fr; }
  .billing-plan-meta { flex-wrap: wrap; }
}

/* LITREVO V1 completion components */
.form-label-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:7px; }
.form-label-row .form-label { margin:0; }
.muted { color:var(--muted); }
.upload-zone { display:grid; place-items:center; gap:8px; min-height:180px; padding:26px; border:1.5px dashed #bcd0ef; border-radius:16px; background:linear-gradient(180deg,#f9fbff,#f3f8ff); text-align:center; }
.upload-zone strong { color:var(--ink); font-size:14px; }
.upload-zone p { color:var(--muted); font-size:11px; }
.upload-zone input[type=file] { width:100%; max-width:340px; padding:9px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.team-mini-list { display:grid; gap:8px; margin-top:12px; }
.team-mini-list > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.success-orb { width:86px; height:86px; display:grid; place-items:center; margin:0 auto 18px; border-radius:28px; color:#fff; background:linear-gradient(135deg,var(--blue-600),#00d7b3); box-shadow:0 18px 42px rgba(7,87,232,.25); }
.success-orb .icon { width:42px; height:42px; }
.toggle-row { display:flex; align-items:center; justify-content:space-between; gap:22px; padding:16px 0; border-bottom:1px solid var(--line); cursor:pointer; }
.toggle-row:last-child { border-bottom:0; }
.toggle-row > div { display:grid; gap:3px; }
.toggle-row strong { color:var(--ink); font-size:13px; }
.toggle-row span { color:var(--muted); font-size:11px; }
.toggle-row input[type=checkbox] { width:42px; height:23px; accent-color:var(--blue-600); }
.notice-danger { color:#b42318; border-color:#fecaca; background:#fff4f2; }
.data-table-wrap { width:100%; overflow-x:auto; }
.crm-column-body { display:grid; gap:10px; min-height:90px; }
.crm-stage-form { display:flex; align-items:center; gap:6px; }
.crm-stage-form select { min-width:112px; }
.channel-dot,.template-dot { width:9px; height:9px; display:inline-block; border-radius:999px; background:#12b76a; box-shadow:0 0 0 3px rgba(18,183,106,.12); }
.message-type { display:inline-flex; align-items:center; gap:5px; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
.app-pricing { max-width:none; }
.app-pricing .price-card { min-height:100%; }
.api-secret-box { display:flex; align-items:center; gap:10px; padding:14px; border:1px solid #bfdbfe; border-radius:12px; background:#eff6ff; }
.api-secret-box code { flex:1; overflow-wrap:anywhere; color:#0b3b92; font-weight:700; }
.support-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr); gap:18px; }
.support-card { padding:20px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.support-card h3 { margin-bottom:7px; }
.support-ticket { display:grid; gap:7px; padding:14px 0; border-bottom:1px solid var(--line); }
.support-ticket:last-child { border-bottom:0; }
.quick-reply-card { display:grid; grid-template-columns:1fr auto; gap:12px; align-items:start; padding:15px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.quick-reply-card code { color:var(--blue-600); font-size:11px; }
@media(max-width:900px){.support-grid{grid-template-columns:1fr}}
.row-actions { display:flex; align-items:center; gap:4px; flex:0 0 auto; }
.text-danger { display:block; margin-top:3px; color:#c92a2a; font-size:11px; line-height:1.35; }
