:root {
  --bg: #f7f8ff;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #69758f;
  --line: #dde3f1;
  --primary: #3157d5;
  --primary-dark: #213a9a;
  --accent: #13a6a1;
  --soft: #eaf0ff;
  --warning: #c47b1b;
  --danger: #bf2f45;
  --shadow: 0 22px 60px rgba(28, 42, 88, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(221, 227, 241, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 184px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.main-nav a,
.footer a {
  color: var(--muted);
  text-decoration: none;
}

.main-nav a:hover,
.footer a:hover {
  color: var(--primary);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-button {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(49, 87, 213, 0.28);
}

.primary-button:hover {
  background: var(--primary-dark);
}

.secondary-button {
  background: #e8eefc;
  color: var(--primary-dark);
}

.text-button {
  background: transparent;
  color: var(--ink);
}

.large {
  min-height: 50px;
  padding: 0 24px;
}

.full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 56px;
  padding: 54px clamp(18px, 5vw, 72px) 70px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 24%, rgba(19, 166, 161, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f2f5ff 48%, #eaf7f7 100%);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 730px;
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.browser-frame,
.setup-panel,
.phone-preview,
.testimonial-grid article,
.tool-grid article,
.benefit-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.browser-frame {
  width: min(560px, 100%);
  border-radius: 18px;
  overflow: hidden;
}

.browser-dots {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  background: #172033;
}

.browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #f05967;
}

.browser-dots span:nth-child(2) {
  background: #f3b443;
}

.browser-dots span:nth-child(3) {
  background: #39c980;
}

.mini-dashboard {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.chart-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(49, 87, 213, 0.95), rgba(19, 166, 161, 0.85)),
    #3157d5;
  color: #ffffff;
}

.chart-card strong {
  display: block;
  font-size: 58px;
  line-height: 1;
}

.chart-card span {
  display: block;
  margin-top: 10px;
  font-weight: 750;
}

.lead-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.lead-card span {
  color: var(--muted);
  font-size: 14px;
}

.lead-card.active {
  border-color: rgba(19, 166, 161, 0.45);
  background: #eefcfb;
}

.lead-card.warning {
  border-color: rgba(196, 123, 27, 0.45);
  background: #fff8e9;
}

.floating-call,
.floating-zalo {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(23, 32, 51, 0.18);
}

.floating-call {
  right: 4%;
  bottom: 18%;
  width: 74px;
  height: 74px;
  background: var(--danger);
  font-size: 32px;
}

.floating-zalo {
  left: 5%;
  top: 23%;
  width: 58px;
  height: 58px;
  background: var(--primary);
  font-size: 24px;
}

.boost-section,
.tool-section,
.logo-section,
.split-section,
.testimonial-section,
.pricing-section,
.footer {
  padding: 82px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p,
.feature-copy p,
.pricing-section p,
.footer p,
.tool-grid p,
.benefit-grid p,
.testimonial-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.centered {
  margin-inline: auto;
  text-align: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-grid article {
  min-height: 230px;
  padding: 28px;
  border-radius: 14px;
}

.icon,
.tool-grid article > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--primary);
  font-size: 26px;
  font-weight: 900;
}

.tool-section {
  background: #ffffff;
}

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

.tool-grid article {
  min-height: 250px;
  padding: 26px;
  border-radius: 16px;
}

.tool-grid button {
  min-height: 38px;
  margin-top: 6px;
  padding: 0 14px;
  border-radius: 7px;
  background: #eff3ff;
  color: var(--primary);
  font-weight: 800;
}

.logo-section {
  text-align: center;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.logo-grid span {
  min-height: 66px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #6f7a93;
  font-weight: 850;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: 70px;
  background: #eef4ff;
}

.split-section.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  background: #ffffff;
}

.feature-copy ul {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.feature-copy li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  line-height: 1.6;
}

.feature-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.phone-preview {
  width: min(360px, 100%);
  min-height: 560px;
  justify-self: center;
  padding: 26px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, #f7f9ff, #ffffff),
    #ffffff;
}

.phone-top {
  width: 80px;
  height: 8px;
  margin: 0 auto 60px;
  border-radius: 999px;
  background: #c7d1e8;
}

.phone-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 18px;
  background: var(--primary);
  color: #ffffff;
}

.phone-card span {
  font-size: 30px;
  font-weight: 900;
}

.phone-card button {
  min-height: 42px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 850;
}

.phone-widget {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #e8fffb;
  color: #096a67;
  font-weight: 850;
}

.setup-panel {
  display: grid;
  gap: 13px;
  padding: 28px;
  border-radius: 18px;
}

.setup-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  background: #f7f9ff;
}

.setup-row span {
  color: var(--muted);
}

.setup-panel code {
  margin-top: 10px;
  padding: 16px;
  border-radius: 10px;
  background: #172033;
  color: #b8f3e8;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.testimonial-section {
  background: #f8fbff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-grid article {
  padding: 32px;
  border-radius: 16px;
}

.testimonial-grid p {
  font-size: 18px;
}

.testimonial-grid strong,
.testimonial-grid span {
  display: block;
}

.testimonial-grid span {
  margin-top: 4px;
  color: var(--muted);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--primary-dark);
  color: #ffffff;
}

.stats-band div {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.stats-band strong {
  font-size: 44px;
  line-height: 1;
}

.pricing-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background:
    linear-gradient(135deg, rgba(49, 87, 213, 0.96), rgba(19, 166, 161, 0.88)),
    var(--primary);
  color: #ffffff;
}

.pricing-section div {
  max-width: 770px;
}

.pricing-section .eyebrow,
.pricing-section p {
  color: rgba(255, 255, 255, 0.82);
}

.pricing-section .primary-button {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: none;
  flex-shrink: 0;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 40px;
  background: #111827;
  color: #ffffff;
}

.footer .brand {
  color: #ffffff;
}

.footer div {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer strong {
  margin-bottom: 4px;
}

.footer a {
  color: #b9c3d6;
}

.app-shell {
  display: none;
  min-height: 100vh;
  grid-template-columns: 278px 1fr;
  background: #f2f5fb;
}

.app-shell.active {
  display: grid;
}

.app-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px;
  background: #111827;
  color: #ffffff;
}

.app-sidebar .brand {
  justify-content: center;
}

.app-sidebar .brand-logo {
  width: 190px;
}

.app-nav {
  display: grid;
  gap: 8px;
}

.app-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: #c5cedf;
  text-decoration: none;
  font-weight: 750;
}

.app-nav a.active,
.app-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.app-sidebar .secondary-button {
  margin-top: auto;
}

.app-main {
  padding: 28px;
}

.app-topbar,
.admin-heading,
.account-pill,
.app-metrics,
.app-grid {
  display: flex;
  align-items: center;
}

.app-topbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.app-topbar h2 {
  font-size: 34px;
}

.account-pill {
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.account-pill > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.account-pill b,
.account-pill small {
  display: block;
}

.account-pill small {
  color: var(--muted);
}

.app-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.app-metrics article,
.admin-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(28, 42, 88, 0.08);
}

.app-metrics article {
  padding: 18px;
}

.app-metrics span,
.app-metrics small {
  color: var(--muted);
}

.app-metrics span {
  display: block;
  font-size: 13px;
  font-weight: 850;
}

.app-metrics strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 32px;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 14px;
  margin-bottom: 14px;
}

.admin-panel {
  padding: 20px;
}

.admin-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-heading h3 {
  margin-bottom: 0;
}

.admin-list,
.admin-form,
.lead-timeline {
  display: grid;
  gap: 10px;
}

.site-admin-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.site-admin-row.active {
  border-color: rgba(49, 87, 213, 0.45);
  background: #eef3ff;
}

.site-admin-row.warning {
  background: #fff8e9;
}

.site-admin-row b,
.site-admin-row small {
  display: block;
}

.site-admin-row small,
.site-admin-row em {
  color: var(--muted);
}

.site-admin-row em {
  align-self: center;
  font-style: normal;
  font-weight: 850;
}

.install-code {
  display: block;
  min-height: 120px;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 10px;
  background: #111827;
  color: #b8f3e8;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ads-api-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.ads-api-actions .save-button,
.ads-api-actions .secondary-button {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
}

.api-status {
  min-height: 22px;
  margin: 14px 0 0 !important;
  color: #6b7280 !important;
  font-size: 14px;
}

.api-status.ok {
  color: #08746f !important;
}

.api-status.error {
  color: #c62828 !important;
}

.admin-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.admin-table > div {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 110px;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.admin-table > div:last-child {
  border-bottom: 0;
}

.admin-table-head {
  background: #f7f9ff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table .warn {
  background: #fff8e9;
}

.ok,
.bad,
.lead-timeline em {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
}

.ok,
.lead-timeline em {
  background: #e5fbf7;
  color: #08746f;
}

.bad,
.lead-timeline .needs-work {
  background: #ffe7df;
  color: var(--danger);
}

.lead-timeline div {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.lead-timeline b {
  color: var(--primary);
}

.clean-admin .app-main {
  background: #f5f7fb;
}

.clean-admin .app-topbar {
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.admin-summary article {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.admin-summary b {
  display: block;
  margin-bottom: 4px;
  font-size: 30px;
  line-height: 1;
}

.admin-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-summary .needs b {
  color: var(--warning);
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.admin-stack {
  display: grid;
  gap: 16px;
}

.clean-admin .admin-panel {
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(28, 42, 88, 0.07);
}

.clean-admin .admin-heading {
  margin-bottom: 14px;
}

.small-add {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
}

.clean-admin .site-admin-row {
  min-height: 58px;
  border-radius: 9px;
  box-shadow: none;
}

.clean-admin .site-admin-row em {
  min-width: 42px;
  justify-self: end;
  align-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e5fbf7;
  color: #08746f;
  font-size: 12px;
  text-align: center;
}

.clean-admin .site-admin-row.warning em {
  background: #ffe7df;
  color: var(--danger);
}

.install-panel .install-code {
  min-height: auto;
  margin-bottom: 0;
}

.simple-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.simple-tool-grid article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}

.simple-tool-grid article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e8eefc;
  color: var(--primary);
  font-weight: 900;
}

.simple-tool-grid b,
.simple-tool-grid small {
  display: block;
}

.simple-tool-grid small {
  margin-top: 3px;
  color: var(--muted);
}

.switch {
  display: inline-block;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch i {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cdd6e8;
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(28, 42, 88, 0.18);
  transition: 160ms ease;
}

.switch input:checked + i {
  background: var(--primary);
}

.switch input:checked + i::after {
  transform: translateX(18px);
}

.conversion-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
}

.conversion-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.conversion-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f2f5fb;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ok-dot,
.warn-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.ok-dot {
  background: var(--accent);
}

.warn-dot {
  background: var(--warning);
}

.lead-cards {
  display: grid;
  gap: 10px;
}

.lead-cards article {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}

.lead-cards b,
.lead-cards span,
.lead-cards em {
  display: block;
}

.lead-cards span {
  color: var(--muted);
  font-size: 13px;
}

.lead-cards em {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e5fbf7;
  color: #08746f;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.lead-cards .lead-warning em {
  background: #ffe7df;
  color: var(--danger);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
}

.auth-modal.active {
  display: grid;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.56);
  backdrop-filter: blur(6px);
}

.auth-card {
  position: relative;
  width: min(470px, 100%);
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--ink);
  font-size: 22px;
}

.auth-tabs {
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #eef3ff;
}

.auth-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.auth-tabs button.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 5px 16px rgba(28, 42, 88, 0.1);
}

.auth-copy h2 {
  font-size: 28px;
}

.auth-form {
  display: none;
  gap: 12px;
}

.auth-form.active {
  display: grid;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.auth-row a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}

.auth-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.auth-status.error {
  color: var(--danger);
}

.auth-status.ok {
  color: #08746f;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.along-admin {
  display: none;
  min-height: 100vh;
  grid-template-columns: 310px 1fr;
  background: #f3f3f4;
  color: #2d2d2d;
}

.along-admin.active {
  display: grid;
}

.along-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #193552;
  color: #dbe5ef;
  overflow-y: auto;
}

.along-logo {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.along-logo img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.along-menu {
  display: grid;
  padding: 16px 8px 12px;
}

.along-menu p {
  margin: 24px 12px 8px;
  color: rgba(219, 229, 239, 0.58);
  font-size: 16px;
  font-weight: 800;
}

.along-menu button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 0;
  background: transparent;
  color: #dbe5ef;
  font-size: 16px;
  text-align: left;
}

.along-menu button:hover,
.along-menu button.active {
  background: rgba(255, 255, 255, 0.17);
}

.along-menu button span {
  color: #ffffff;
  font-size: 19px;
  text-align: center;
}

.along-menu em {
  padding: 2px 5px;
  border-radius: 3px;
  background: #ef7e36;
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.toggle {
  width: 58px;
  height: 30px;
  border-radius: 999px;
  background: #b9c1c9;
  position: relative;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
}

.toggle.on {
  background: #3157d5;
}

.toggle.on::after {
  transform: translateX(28px);
}

.sidebar-back {
  min-height: 46px;
  margin: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 800;
}

.along-main {
  min-width: 0;
  padding-bottom: 86px;
}

.along-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid #d8d8d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-switcher {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.site-select {
  min-width: 250px;
  height: 86px;
  display: grid;
  align-content: center;
  padding: 0 46px 0 0;
  background: transparent;
  color: #2d2d2d;
  text-align: left;
}

.site-select strong,
.site-select span {
  display: block;
}

.site-select strong {
  font-size: 20px;
  line-height: 1.2;
}

.site-select strong::after {
  content: "";
}

.site-select::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 900;
}

.site-select span {
  margin-top: 6px;
  color: #9a9a9a;
  font-size: 14px;
}

.site-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% - 8px);
  z-index: 40;
  width: 330px;
  display: none;
  padding: 8px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.site-switcher.open .site-dropdown {
  display: grid;
  gap: 4px;
}

.site-dropdown button {
  width: 100%;
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 9px 12px;
  border-radius: 6px;
  background: transparent;
  color: #2d2d2d;
  text-align: left;
}

.site-dropdown button:hover,
.site-dropdown button.active {
  background: #eef3ff;
}

.site-dropdown b,
.site-dropdown span {
  display: block;
}

.site-dropdown b {
  font-size: 15px;
}

.site-dropdown span {
  color: #8a8a8a;
  font-size: 13px;
}

.site-dropdown .add-site {
  min-height: 42px;
  display: block;
  border: 1px dashed #3157d5;
  color: #3157d5;
  font-weight: 850;
  text-align: center;
}

.along-account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.along-account button {
  width: 34px;
  height: 34px;
  background: transparent;
  font-size: 25px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 36%, #ffffff 0 18%, transparent 19%),
    radial-gradient(circle at 50% 100%, #ffffff 0 34%, transparent 35%),
    #cfcfcf;
}

.along-account b,
.along-account small {
  display: block;
}

.along-account b {
  font-size: 18px;
}

.along-account small {
  margin-top: 2px;
  color: #333333;
}

.along-account em {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #eeeeee;
  color: #777777;
  font-style: normal;
  font-weight: 900;
}

.along-content {
  padding: 40px 54px;
}

.admin-page {
  display: none;
}

.admin-page.active {
  display: block;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 36px;
  margin-bottom: 24px;
}

.stats-cards article,
.white-card,
.tool-card {
  background: #ffffff;
  border: 1px solid #d6d6d6;
  border-radius: 5px;
}

.stats-cards article {
  min-height: 126px;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 24px 66px;
}

.round-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #3157d5;
  color: #ffffff;
  font-size: 34px;
}

.stats-cards p {
  margin-bottom: 0;
  color: #666666;
  font-size: 17px;
}

.stats-cards strong {
  display: block;
  color: #3157d5;
  font-size: 48px;
  font-weight: 400;
}

.white-card {
  padding: 26px;
}

.white-card h2,
.tool-card h2 {
  margin-bottom: 8px;
  font-size: 34px;
}

.white-card > p {
  color: #9a9a9a;
}

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

.lead-table > div {
  display: grid;
  grid-template-columns: 170px 160px 190px 170px 170px minmax(360px, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 0 12px;
  border-bottom: 1px solid #e5e5e5;
  color: #555555;
}

.lead-table .head {
  min-height: 48px;
  background: #f0f0f0;
  color: #333333;
  font-weight: 800;
}

.lead-table select {
  max-width: 180px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 600px minmax(380px, 1fr);
  gap: 0;
  align-items: stretch;
}

.tool-card {
  position: relative;
  min-height: 760px;
  padding: 58px 48px 36px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.tabs {
  position: absolute;
  left: -1px;
  top: -47px;
  display: grid;
  grid-template-columns: 170px 190px;
}

.tabs button {
  height: 48px;
  border: 1px solid #d6d6d6;
  background: #f7f7f7;
  color: #333333;
  font-size: 16px;
  font-weight: 800;
}

.tabs button.active {
  background: #ffffff;
  border-bottom-color: #ffffff;
}

.tool-card a,
.field-row a,
.channel-list a {
  color: #3157d5;
  text-decoration: none;
  font-weight: 800;
}

.tool-card > a {
  display: inline-block;
  margin-bottom: 26px;
}

.tool-card label {
  margin: 18px 0 8px;
  color: #444444;
  font-size: 16px;
  font-weight: 500;
}

.tool-card input,
.tool-card select,
.tool-card textarea {
  min-height: 48px;
  margin-top: 10px;
  border-color: #d8d8d8;
  border-radius: 5px;
  color: #555555;
  font-size: 16px;
}

.tool-card textarea {
  min-height: 124px;
  padding: 12px;
  resize: vertical;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.check-line input,
.channel-list input {
  width: 16px;
  min-height: 16px;
  accent-color: #3157d5;
}

.tool-card p {
  margin-left: 24px;
  color: #a1a1a1;
  line-height: 1.55;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}

.two-fields,
.two-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.position-picker {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.position-picker button {
  width: 48px;
  height: 48px;
  border: 1px solid #d6d6d6;
  border-radius: 5px;
  background-color: #f8f8f8;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.position-picker button.active {
  outline: 2px solid #3157d5;
  border-color: #3157d5;
  box-shadow: 0 0 0 4px rgba(49, 87, 213, 0.12);
}

.position-picker [data-position="bottom-left"] {
  background-image: linear-gradient(315deg, transparent 0 62%, #3157d5 63%);
}

.position-picker [data-position="bottom-right"] {
  background-image: linear-gradient(135deg, transparent 0 62%, #3157d5 63%);
}

.position-picker [data-position="top-left"] {
  background-image: linear-gradient(225deg, transparent 0 62%, #3157d5 63%);
}

.position-picker [data-position="top-right"] {
  background-image: linear-gradient(45deg, transparent 0 62%, #3157d5 63%);
}

.position-name {
  display: block;
  margin-top: 10px;
  color: #3157d5;
  font-size: 14px;
  font-weight: 800;
}

.mini-position-preview {
  position: relative;
  width: 260px;
  height: 150px;
  margin-top: 12px;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, #ccd8e4, #98adbf);
  overflow: hidden;
}

.mini-position-preview::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  right: 14px;
  height: 28px;
  border-radius: 4px;
  background: rgba(25, 53, 82, 0.45);
}

.mini-position-preview::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 58px;
  width: 130px;
  height: 18px;
  border-radius: 4px;
  background: rgba(25, 53, 82, 0.18);
}

.mini-position-preview .preview-widget {
  transform: scale(0.72);
  transform-origin: center;
}

.mini-position-preview .preview-widget.bottom-left,
.mini-position-preview .preview-widget.top-left {
  transform: scale(0.72) scaleX(-1);
}

.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 22px;
  font-size: 20px;
  font-weight: 900;
}

.step-title b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 16px;
}

.conversion-box h3,
.tool-card h3 {
  margin: 32px 0 12px;
  font-size: 20px;
}

.conversion-mini {
  padding: 32px 36px;
  margin: 18px 0;
  border-radius: 5px;
  background: #f5f5f5;
}

.conversion-mini h4 {
  margin: 0 0 20px;
  font-size: 17px;
}

.preview-panel {
  min-height: 760px;
  display: grid;
  place-items: start center;
  padding-top: 48px;
}

.preview-title {
  margin-bottom: 14px;
  color: #666666;
  font-weight: 800;
}

.monitor {
  width: min(560px, 90%);
  height: 340px;
  position: relative;
  margin-top: 0;
  border: 20px solid #101010;
  border-bottom-width: 58px;
  border-radius: 16px 16px 10px 10px;
  background: #d7d7d7;
  box-shadow: 0 28px 34px rgba(0, 0, 0, 0.12);
}

.monitor::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -120px;
  width: 150px;
  height: 78px;
  transform: translateX(-50%);
  background: linear-gradient(#d8d8d8, #f6f6f6);
  clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
}

.site-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
    linear-gradient(135deg, #f1eee8, #a4bbc6);
  color: #ffffff;
}

.widget-preview-screen {
  display: block;
  overflow: hidden;
  background: #f4f4f4;
}

.fake-site {
  height: 100%;
  padding: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, #cdd8e3, #9fb4c9);
}

.fake-site header {
  height: 46px;
  margin-bottom: 22px;
  border-radius: 4px;
  background: rgba(25, 53, 82, 0.65);
}

.fake-site section {
  width: 62%;
  height: 22px;
  margin-bottom: 14px;
  border-radius: 4px;
  background: rgba(25, 53, 82, 0.18);
}

.fake-site section:last-child {
  width: 42%;
}

.preview-widget {
  position: absolute;
  width: 160px;
  height: 82px;
}

.preview-widget.bottom-right {
  right: 14px;
  bottom: 14px;
}

.preview-widget.bottom-left {
  left: 14px;
  bottom: 14px;
  transform: scaleX(-1);
}

.preview-widget.top-left {
  left: 14px;
  top: 14px;
  transform: scaleX(-1);
}

.preview-widget.top-right {
  right: 14px;
  top: 14px;
}

.preview-widget::before,
.preview-widget::after {
  content: "";
  position: absolute;
  right: 0;
  top: 9px;
  width: 64px;
  height: 64px;
  border: 2px solid var(--preview-color, #3157d5);
  border-radius: 999px;
  opacity: 0.55;
  animation: adsyncPulse 1.9s infinite;
}

.preview-widget::after {
  animation-delay: 0.7s;
}

.preview-call {
  position: absolute;
  right: 8px;
  top: 17px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--preview-color, #3157d5);
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

.preview-label {
  position: absolute;
  right: 50px;
  top: 19px;
  min-width: 96px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 3px solid var(--preview-color, #3157d5);
  border-radius: 6px;
  background: #ffffff;
  color: var(--preview-color, #3157d5);
  font-weight: 900;
  z-index: 3;
}

.preview-widget.bottom-left .preview-label,
.preview-widget.top-left .preview-label,
.preview-widget.bottom-left .preview-call,
.preview-widget.top-left .preview-call {
  transform: scaleX(-1);
}

.call-bubble {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #3157d5;
  border: 5px solid rgba(255, 255, 255, 0.35);
  font-size: 40px;
}

.site-preview strong {
  padding: 8px 18px;
  border-radius: 7px;
  background: #ffffff;
  color: #3157d5;
  font-size: 26px;
}

.multi-preview {
  display: block;
  padding: 18px;
}

.multi-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(2, 6, 44, 0.72);
  z-index: 6;
}

.multi-preview.has-popup::before {
  display: block;
}

.multi-action-stack {
  position: absolute;
  right: 22px;
  top: 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 3;
}

.multi-action-stack span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #3157d5;
  color: #ffffff;
}

.multi-action-stack .preview-zalo-bubble {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: #ffffff;
  color: #0878ff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0, 75, 180, 0.28);
}

.multi-action-stack .preview-zalo-bubble::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  border-bottom-left-radius: 16px;
  background: #ffffff;
  transform: skew(-16deg) rotate(-6deg);
}

.multi-action-stack .preview-hotline-pill {
  position: relative;
  width: 246px;
  height: 88px;
  display: block;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.preview-hotline-pill i {
  position: absolute;
  left: 0;
  top: 4px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 8px solid #2625d4;
  border-radius: 999px;
  background: #07146e;
  color: #ffffff;
  font-style: normal;
  font-size: 34px;
  z-index: 2;
  box-shadow: 0 0 0 7px rgba(38, 37, 212, 0.18);
}

.preview-hotline-pill b {
  position: absolute;
  left: 60px;
  top: 17px;
  width: 186px;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 14px 7px 44px;
  border-radius: 7px;
  background: #07146e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.preview-hotline-pill strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.05;
}

.offer-preview-left {
  position: absolute;
  left: 28px;
  top: 98px;
  width: min(330px, calc(100% - 100px));
  min-height: 86px;
  display: flex;
  align-items: center;
  z-index: 4;
}

.offer-preview-button {
  position: absolute;
  left: 0;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #ff4b1f;
  color: #ffffff;
  font: inherit;
  font-size: 24px;
  box-shadow: 0 0 0 8px rgba(255, 75, 31, 0.16), 0 12px 26px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 3;
}

.offer-preview-button b {
  position: absolute;
  right: -6px;
  top: -8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #ffd72d;
  color: #232323;
  font-size: 14px;
  line-height: 1;
}

.offer-preview-text {
  position: absolute;
  left: 46px;
  top: 50%;
  width: min(280px, calc(100vw - 180px));
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  transform: translateY(-50%);
  border-radius: 18px;
  background: #ffffff;
  color: #202936;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.55;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.offer-preview-text.is-hidden {
  opacity: 0;
  transform: translateY(-44%) scale(0.96);
  pointer-events: none;
}

.offer-preview-text::before {
  content: "";
  position: absolute;
  left: -13px;
  bottom: 18px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 16px solid #ffffff;
}

.multi-quote-popup {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, calc(100% - 34px));
  max-height: calc(100% - 34px);
  display: none;
  overflow: auto;
  gap: 12px;
  padding: 0 22px 22px;
  transform: translate(-50%, -50%);
  border-radius: 0 0 12px 12px;
  background: #ffffff;
  color: #222222;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  z-index: 8;
}

.multi-quote-popup.open {
  display: grid;
}

.multi-quote-popup h4,
.multi-quote-popup p,
.multi-quote-popup strong {
  margin: 0;
}

.multi-quote-popup p {
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.popup-hero-preview {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  margin: 0 -22px 42px;
  padding: 18px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
}

.popup-hero-preview h4 {
  font-size: 28px;
  line-height: 1.15;
}

.popup-hero-preview strong {
  font-size: 18px;
}

.popup-gift-preview {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: -82px auto 12px;
  border-radius: 999px;
  background: #07146e;
  color: #ffffff;
  font-size: 38px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.popup-close-preview {
  position: fixed;
  right: 10px;
  top: 10px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #3157d5;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.multi-quote-popup label {
  display: grid;
  gap: 7px;
  color: #555555;
  font-size: 16px;
  font-weight: 700;
}

.multi-quote-popup input,
.multi-quote-popup select,
.multi-quote-popup textarea {
  min-height: 50px;
  border: 1px solid #dddddd;
  border-radius: 7px;
  padding: 0 14px;
  font-size: 16px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.06);
}

.multi-quote-popup textarea {
  min-height: 90px;
  padding: 12px 14px;
}

.multi-quote-popup button {
  min-height: 52px;
  border-radius: 999px;
  background: #3157d5;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.admin-page[data-page="quote"] .tool-layout {
  grid-template-columns: minmax(520px, 680px) minmax(620px, 1fr);
}

.admin-page[data-page="quote"] .preview-panel {
  align-items: flex-start;
  padding: 24px;
  overflow-x: auto;
}

.preview-device-toolbar {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.preview-device-toolbar button {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #526070;
  font-weight: 900;
  cursor: pointer;
}

.preview-device-toolbar button.active {
  background: #3157d5;
  color: #ffffff;
}

.quote-preview-stage {
  position: relative;
  width: min(1120px, 100%);
  min-height: 720px;
  padding: 28px;
  background: #05050a;
  box-shadow: 0 24px 50px rgba(20, 31, 68, 0.18);
}

.quote-preview-stage.desktop {
  border-radius: 16px;
}

.quote-preview-stage.mobile {
  width: 390px;
  min-height: 820px;
  padding: 14px 10px;
  border: 14px solid #111111;
  border-radius: 34px;
  overflow-y: auto;
}

.quote-modal-preview {
  position: relative;
  width: min(1040px, 100%);
  margin: 0 auto;
  overflow: visible;
  border-radius: 16px;
  background: #ffffff;
  color: #222222;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.quote-preview-stage.desktop .quote-modal-preview {
  display: grid;
  grid-template-columns: minmax(360px, 43%) minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
}

.quote-close-preview {
  position: absolute;
  right: -16px;
  top: -18px;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #3157d5;
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.quote-cover-preview {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 34px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
}

.quote-preview-stage.desktop .quote-cover-preview {
  min-height: 620px;
  align-content: center;
}

.quote-cover-preview strong,
.quote-cover-preview h4,
.quote-cover-preview p {
  margin: 0;
}

.quote-cover-preview strong {
  font-size: 23px;
}

.quote-cover-preview h4 {
  font-size: 40px;
  line-height: 1.15;
}

.quote-cover-preview p {
  font-size: 20px;
}

.quote-gift-preview {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin: -48px auto 28px;
  border-radius: 999px;
  background: #07146e;
  color: #ffffff;
  font-size: 44px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.quote-preview-stage.desktop .quote-gift-preview {
  position: absolute;
  left: 43%;
  top: 50%;
  z-index: 2;
  margin: 0;
  transform: translate(-50%, -50%);
}

.quote-form-preview {
  display: grid;
  gap: 24px;
  padding: 0 46px 46px;
}

.quote-preview-stage.desktop .quote-form-preview {
  align-content: center;
  padding: 54px 52px;
}

#quotePreviewFields {
  display: grid;
  gap: 20px;
}

.quote-form-preview label {
  display: grid;
  gap: 12px;
  color: #555555;
  font-size: 22px;
  font-weight: 700;
}

.quote-choice-field {
  display: grid;
  gap: 12px;
  color: #555555;
  font-size: 22px;
  font-weight: 700;
}

.quote-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-pill {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d9dde8;
  border-radius: 999px;
  background: #ffffff;
  color: #333333 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.05);
}

.choice-pill input {
  width: 16px;
  min-height: 16px !important;
  padding: 0 !important;
  box-shadow: none !important;
  accent-color: #3157d5;
}

.quote-form-preview input,
.quote-form-preview select,
.quote-form-preview textarea {
  min-height: 74px;
  border: 1px solid #d9dde8;
  border-radius: 7px;
  padding: 0 28px;
  color: #222222;
  font: inherit;
  font-size: 22px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.06);
}

.quote-form-preview textarea {
  min-height: 128px;
  padding: 22px 28px;
}

.quote-form-preview button {
  justify-self: center;
  min-width: 230px;
  min-height: 64px;
  border-radius: 999px;
  background: #3157d5;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.quote-preview-stage.mobile .quote-modal-preview {
  width: 100%;
  display: block;
  border-radius: 0 0 14px 14px;
  overflow: visible;
}

.quote-preview-stage.mobile .quote-close-preview {
  right: -8px;
  top: -8px;
  width: 44px;
  height: 44px;
  font-size: 31px;
}

.quote-preview-stage.mobile .quote-cover-preview {
  min-height: 190px;
  padding: 28px 18px;
}

.quote-preview-stage.mobile .quote-cover-preview strong {
  font-size: 19px;
}

.quote-preview-stage.mobile .quote-cover-preview h4 {
  font-size: 31px;
}

.quote-preview-stage.mobile .quote-cover-preview p {
  font-size: 16px;
}

.quote-preview-stage.mobile .quote-gift-preview {
  width: 82px;
  height: 82px;
  margin-top: -41px;
  font-size: 37px;
}

.quote-preview-stage.mobile .quote-form-preview {
  gap: 18px;
  padding: 0 20px 28px;
}

.quote-preview-stage.mobile #quotePreviewFields {
  gap: 16px;
}

.quote-preview-stage.mobile .quote-form-preview label {
  font-size: 17px;
}

.quote-preview-stage.mobile .quote-choice-field {
  font-size: 17px;
}

.quote-preview-stage.mobile .choice-pill {
  min-height: 38px;
  padding: 0 11px;
  font-size: 13px !important;
}

.quote-preview-stage.mobile .quote-form-preview input,
.quote-preview-stage.mobile .quote-form-preview select,
.quote-preview-stage.mobile .quote-form-preview textarea {
  min-height: 58px;
  padding: 0 16px;
  font-size: 17px;
}

.quote-preview-stage.mobile .quote-form-preview textarea {
  min-height: 105px;
  padding: 14px 16px;
}

.quote-preview-stage.mobile .quote-form-preview button {
  width: 100%;
  min-width: 0;
}

.cover-upload {
  position: relative;
  min-height: 154px;
  display: grid;
  place-items: center;
  margin-top: 10px;
  border: 2px dashed #cfd5e3;
  border-radius: 8px;
  background: #fbfcff;
  overflow: hidden;
  cursor: pointer;
}

.cover-upload:hover {
  border-color: #3157d5;
  background: #f4f7ff;
}

.cover-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.cover-empty {
  display: grid;
  gap: 6px;
  text-align: center;
}

.cover-empty strong {
  color: #3157d5;
}

.cover-empty span {
  color: #8a8a8a;
  font-size: 14px;
}

.cover-upload img {
  width: 100%;
  height: 154px;
  display: none;
  object-fit: cover;
}

.cover-upload.has-image .cover-empty {
  display: none;
}

.cover-upload.has-image img {
  display: block;
}

.field-builder {
  margin-top: 22px;
}

.field-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.field-builder-head h3 {
  margin: 0;
}

.field-builder-head button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #3157d5;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.field-builder-list {
  display: grid;
  gap: 10px;
}

.field-builder-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 130px 38px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.field-builder-row input,
.field-builder-row select {
  min-height: 40px;
  margin: 0;
  font-size: 14px;
}

.field-builder-row button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: #eef2ff;
  color: #3157d5;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.hidden-trigger-row {
  display: none;
}

.popup-color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.popup-color-grid label {
  margin: 0;
}

.popup-color-grid input[type="color"] {
  width: 100%;
  min-height: 48px;
  padding: 5px;
}

.channel-list {
  display: grid;
  gap: 22px;
}

.channel-list > div {
  display: grid;
  grid-template-columns: 22px 58px minmax(420px, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.channel-list > div > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #3157d5;
  color: #ffffff;
  font-weight: 900;
}

.channel-list .disabled {
  opacity: 0.28;
}

.channel-row label input,
.channel-row label textarea {
  display: block;
  width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: 160ms ease;
}

.channel-row label input {
  min-width: 420px;
  height: 54px;
  font-size: 17px;
}

.channel-row label textarea {
  min-width: 420px;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  color: #555555;
  font: inherit;
  font-size: 17px;
  line-height: 1.45;
  resize: vertical;
}

.channel-row.disabled label input,
.channel-row.disabled label textarea {
  height: 0;
  min-width: 0;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border-color: transparent;
  opacity: 0;
  pointer-events: none;
}

.channel-row.disabled a {
  pointer-events: none;
}

.channel-conversions {
  margin-top: 34px;
}

.channel-conversions h3 {
  margin-bottom: 16px;
}

.conversion-channel-grid {
  display: grid;
  gap: 14px;
}

.conversion-channel-grid article {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border-radius: 8px;
  background: #f5f5f5;
}

.conversion-channel-grid article b {
  align-self: center;
  font-size: 17px;
}

.conversion-channel-grid label {
  margin: 0;
}

.conversion-channel-grid input {
  min-width: 0;
}

.settings-stack {
  display: grid;
  gap: 24px;
  width: 600px;
}

.tool-card.narrow {
  min-height: auto;
  padding-top: 36px;
}

.tool-card code {
  display: block;
  padding: 18px;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  background: #ffffff;
  color: #333333;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.placeholder-page .white-card {
  width: min(600px, 100%);
}

.admin-savebar {
  position: fixed;
  left: 310px;
  right: 0;
  bottom: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 54px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid #e2e2e2;
  backdrop-filter: blur(8px);
}

.save-button,
.preview-button,
.reset-button {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 7px;
  font-weight: 850;
}

.save-button {
  background: #3157d5;
  color: #ffffff;
}

.preview-button {
  background: #193552;
  color: #ffffff;
}

.reset-button {
  background: transparent;
  color: rgba(49, 87, 213, 0.45);
}

.config-toast {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 100;
  display: none;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  background: #193552;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.config-toast.show {
  display: flex;
}

.sticky-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  gap: 10px;
}

.sticky-contact button {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.24);
}

.sticky-contact button:nth-child(2) {
  background: var(--accent);
}

.sticky-contact button:nth-child(3) {
  background: var(--danger);
}

@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }

  .hero,
  .split-section,
  .split-section.reverse,
  .footer,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    min-height: auto;
  }

  .app-nav {
    grid-template-columns: repeat(5, minmax(115px, 1fr));
    overflow-x: auto;
  }

  .app-sidebar .secondary-button {
    margin-top: 0;
  }

  .hero {
    min-height: auto;
  }

  .benefit-grid,
  .tool-grid,
  .app-metrics,
  .app-grid,
  .admin-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .tool-layout,
  .admin-page[data-page="quote"] .tool-layout {
    grid-template-columns: 1fr;
  }

  .admin-page[data-page="quote"] .preview-panel {
    overflow-x: auto;
  }

  .website-picker,
  .lead-side {
    order: initial;
  }

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

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

  .pricing-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    padding-block: 14px;
  }

  .header-actions .text-button {
    display: none;
  }

  .hero,
  .boost-section,
  .tool-section,
  .logo-section,
  .split-section,
  .testimonial-section,
  .pricing-section,
  .footer {
    padding: 50px 18px;
  }

  .hero-actions,
  .testimonial-grid,
  .benefit-grid,
  .tool-grid,
  .logo-grid,
  .stats-band,
  .app-metrics,
  .app-grid,
  .admin-summary,
  .simple-tool-grid,
  .conversion-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .app-main {
    padding: 18px;
  }

  .app-topbar,
  .admin-heading,
  .site-admin-row,
  .lead-timeline div {
    display: grid;
  }

  .admin-table > div {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 13px;
  }

  .admin-table-head {
    display: none !important;
  }

  .hero-visual {
    min-height: 430px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .floating-call {
    right: 0;
  }

  .setup-row {
    display: grid;
    gap: 4px;
    padding: 12px;
  }
}


/* LeadHub quote preview responsive fix */
.admin-page[data-page="quote"] .preview-panel {
  align-items: stretch;
  overflow: hidden;
}

.admin-page[data-page="quote"] .preview-device-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  align-self: flex-start;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.quote-preview-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 860px;
  min-height: auto;
  padding: 18px;
  overflow: auto;
}

.quote-preview-stage.desktop {
  border-radius: 16px;
}

.quote-preview-stage.desktop .quote-modal-preview {
  width: min(760px, 100%);
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  overflow: hidden;
}

.quote-preview-stage.desktop .quote-cover-preview {
  min-height: 430px;
  padding: 22px;
}

.quote-preview-stage.desktop .quote-cover-preview strong {
  font-size: 17px;
}

.quote-preview-stage.desktop .quote-cover-preview h4 {
  max-width: 260px;
  font-size: 28px;
  line-height: 1.12;
}

.quote-preview-stage.desktop .quote-cover-preview p {
  max-width: 270px;
  font-size: 15px;
  line-height: 1.32;
}

.quote-preview-stage.desktop .quote-gift-preview {
  width: 76px;
  height: 76px;
  font-size: 34px;
}

.quote-preview-stage.desktop .quote-form-preview {
  gap: 14px;
  padding: 38px 32px;
}

.quote-preview-stage.desktop #quotePreviewFields {
  gap: 13px;
}

.quote-preview-stage.desktop .quote-form-preview label,
.quote-preview-stage.desktop .quote-choice-field {
  gap: 8px;
  font-size: 15px;
}

.quote-preview-stage.desktop .quote-form-preview input,
.quote-preview-stage.desktop .quote-form-preview select,
.quote-preview-stage.desktop .quote-form-preview textarea {
  min-height: 48px;
  padding: 0 14px;
  font-size: 15px;
  border-radius: 7px;
}

.quote-preview-stage.desktop .quote-form-preview textarea {
  min-height: 82px;
  padding: 12px 14px;
}

.quote-preview-stage.desktop .choice-pill {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px !important;
}

.quote-preview-stage.desktop .quote-form-preview button {
  min-width: 170px;
  min-height: 48px;
  font-size: 17px;
}

.quote-preview-stage.mobile {
  width: 360px;
  max-width: 100%;
  min-height: 720px;
  max-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 10px;
  border: 12px solid #111111;
  border-radius: 34px;
  overflow-y: auto;
  background: #05050a;
}

.quote-preview-stage.mobile .quote-modal-preview {
  width: 100%;
  min-height: auto;
  overflow: hidden;
  border-radius: 18px;
}

.quote-preview-stage.mobile .quote-cover-preview {
  min-height: 210px;
  padding: 22px 18px;
}

.quote-preview-stage.mobile .quote-cover-preview strong {
  font-size: 17px;
}

.quote-preview-stage.mobile .quote-cover-preview h4 {
  font-size: 28px;
  line-height: 1.12;
}

.quote-preview-stage.mobile .quote-cover-preview p {
  font-size: 14px;
  line-height: 1.35;
}

.quote-preview-stage.mobile .quote-gift-preview {
  width: 72px;
  height: 72px;
  margin: -36px auto 16px;
  font-size: 32px;
}

.quote-preview-stage.mobile .quote-form-preview {
  gap: 14px;
  padding: 0 20px 24px;
}

.quote-preview-stage.mobile #quotePreviewFields {
  gap: 13px;
}

.quote-preview-stage.mobile .quote-form-preview label,
.quote-preview-stage.mobile .quote-choice-field {
  gap: 8px;
  font-size: 15px;
}

.quote-preview-stage.mobile .quote-form-preview input,
.quote-preview-stage.mobile .quote-form-preview select,
.quote-preview-stage.mobile .quote-form-preview textarea {
  min-height: 48px;
  padding: 0 13px;
  font-size: 15px;
}

.quote-preview-stage.mobile .quote-form-preview textarea {
  min-height: 82px;
  padding: 12px 13px;
}

.quote-preview-stage.mobile .choice-pill {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px !important;
}

.quote-preview-stage.mobile .quote-form-preview button {
  min-width: 170px;
  min-height: 48px;
  font-size: 17px;
}

.quote-preview-stage.mobile .quote-close-preview {
  right: 8px;
  top: 8px;
  width: 40px;
  height: 40px;
  font-size: 28px;
}


.preview-zalo-tip {
  position: absolute;
  right: 78px;
  top: 8px;
  width: 210px !important;
  min-height: 50px;
  height: auto !important;
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 15px !important;
  background: #ffffff !important;
  color: #202936 !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  text-align: left;
}

.preview-zalo-tip::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 12px solid #ffffff;
}

.preview-zalo-tip i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #18c964;
  box-shadow: 0 0 0 4px rgba(24, 201, 100, 0.14);
}

.preview-zalo-tip b {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.preview-zalo-tip small {
  display: block;
  margin-bottom: 2px;
  color: #18a957;
  font-size: 9px;
  text-transform: uppercase;
}

.preview-zalo-tip em {
  font-style: normal;
}


.site-status-pill {
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eaf8ef;
  color: #16803b;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.site-status-pill.paused {
  background: #fff1f1;
  color: #c92a3b;
}

.site-active-control {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid #dfe7f5;
  border-radius: 8px;
  background: #f7faff;
}

.site-active-control span {
  display: grid;
  gap: 5px;
}

.site-active-control small {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.site-active-control input {
  width: 22px !important;
  height: 22px;
  flex: 0 0 auto;
}

.channel-color-grid {
  margin: 22px 0 10px;
}

.preview-zalo-tip::after {
  border-left-color: var(--tip-arrow, #ffffff) !important;
}

.offer-preview-text::before {
  border-right-color: var(--offer-arrow, #ffffff) !important;
}

@media (max-width: 720px) {
  .channel-color-grid {
    grid-template-columns: 1fr 1fr;
  }

  .multi-preview {
    min-height: 560px;
  }

  .multi-action-stack {
    right: 18px;
    top: 74px;
    gap: 12px;
  }

  .multi-action-stack .preview-hotline-pill {
    width: 58px;
    height: 58px;
  }

  .preview-hotline-pill i {
    width: 58px;
    height: 58px;
    border-width: 5px;
    font-size: 26px;
  }

  .preview-hotline-pill b {
    display: none;
  }

  .preview-zalo-tip {
    right: 64px;
    width: 190px !important;
    font-size: 11px;
  }

  .offer-preview-left {
    left: auto;
    right: 18px;
    top: auto;
    bottom: 28px;
    width: min(300px, calc(100% - 36px));
    justify-content: flex-end;
  }

  .offer-preview-button {
    left: auto;
    right: 0;
  }

  .offer-preview-text {
    left: auto;
    right: 70px;
    width: min(210px, calc(100% - 86px));
    min-height: 56px;
    font-size: 14px;
    line-height: 1.3;
  }

  .offer-preview-text::before {
    left: auto;
    right: -13px;
    bottom: 18px;
    border-right: 0;
    border-left: 16px solid var(--offer-arrow, #ffffff);
  }
}
