:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172026;
  background: #edf2ef;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

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

button,
.icon-text-btn {
  border: 1px solid #c7d3cf;
  background: #ffffff;
  color: #172026;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c7d3cf;
  border-radius: 8px;
  background: #fbfdfc;
  color: #172026;
  padding: 10px 12px;
  min-height: 44px;
}

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

label {
  display: grid;
  gap: 7px;
  color: #53645e;
  font-size: 13px;
  font-weight: 700;
}

.auth-shell,
.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel,
.panel {
  background: #ffffff;
  border: 1px solid #d8e2de;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(30, 45, 38, 0.08);
}

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

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-block.compact {
  margin: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #126a5a;
  color: white;
  font-weight: 900;
  overflow: hidden;
}

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

.brand-block span {
  color: #60726b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-block h1 {
  margin: 2px 0 0;
  font-size: 24px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.primary-btn {
  background: #126a5a;
  color: white;
  border-color: #126a5a;
}

.danger-btn {
  border-color: #d97b78;
  color: #9d2828;
}

.link-btn {
  margin-top: 16px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #126a5a;
  font-weight: 800;
}

.error-line {
  background: #fff2f0;
  border: 1px solid #f0b9b4;
  color: #9d2828;
  padding: 10px 12px;
  border-radius: 8px;
}

.error-line.wide {
  margin-bottom: 16px;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trial-banner {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  border: 1px solid #c7d3cf;
}

.trial-banner.active {
  background: #e8f7ef;
  color: #14633f;
}

.trial-banner.paid {
  background: #e9f0ff;
  color: #214f9b;
}

.trial-banner.blocked {
  background: #fff2f0;
  color: #9d2828;
}

.work-grid,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(420px, 1.15fr);
  gap: 16px;
  align-items: start;
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-head.spread {
  justify-content: space-between;
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.panel-head span {
  color: #60726b;
  font-size: 13px;
}

.search-panel {
  display: grid;
  gap: 16px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid #d8e2de;
  border-radius: 8px;
  background: #f5f8f6;
}

.segmented button {
  border: 0;
  min-height: 34px;
  background: transparent;
}

.segmented button.active {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(30, 45, 38, 0.08);
}

.target-box {
  display: grid;
  gap: 10px;
}

.target-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
}

.quick-cities,
.target-list,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-cities button,
.target-list button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.target-list button {
  border-color: #126a5a;
  color: #126a5a;
}

.target-help {
  color: #60726b;
  font-size: 12px;
}

.selected-search {
  border: 1px solid #c7d3cf;
  border-radius: 8px;
  background: #f5fbf8;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.selected-search span {
  color: #60726b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.selected-search strong {
  color: #126a5a;
  font-size: 16px;
}

.search-submit {
  width: 100%;
  min-height: 48px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.settings-save-state {
  display: block;
  margin-top: -8px;
  color: #60726b;
  font-size: 12px;
  font-weight: 800;
}

.settings-save-state.saving {
  color: #214f9b;
}

.settings-save-state.error {
  color: #9d2828;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.toggle input {
  width: auto;
}

.control-panel {
  display: grid;
  gap: 16px;
}

.status-chip {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  background: #edf2ef;
  color: #53645e;
  font-weight: 900;
}

.status-chip.running {
  background: #e8f7ef;
  color: #14633f;
}

.status-chip.paused,
.status-chip.captcha_waiting {
  background: #fff7de;
  color: #7d5b00;
}

.status-chip.failed,
.status-chip.expired {
  background: #fff2f0;
  color: #9d2828;
}

.progress-line {
  height: 10px;
  background: #edf2ef;
  border-radius: 999px;
  overflow: hidden;
}

.progress-line div {
  height: 100%;
  background: #126a5a;
  transition: width 200ms ease;
}

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

.metric-grid div {
  border: 1px solid #d8e2de;
  border-radius: 8px;
  padding: 12px;
}

.metric-grid span {
  display: block;
  color: #60726b;
  font-size: 12px;
  font-weight: 800;
}

.metric-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.log-box {
  height: 220px;
  overflow: auto;
  border: 1px solid #d8e2de;
  border-radius: 8px;
  background: #101716;
  color: #d6f2e5;
  padding: 12px;
}

.log-box p {
  margin: 0 0 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.leads-panel {
  margin-top: 16px;
}

.button-row.compact {
  align-items: center;
}

.button-row.compact select {
  width: 170px;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.45;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

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

th,
td {
  border-bottom: 1px solid #e4ece8;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #60726b;
  font-size: 12px;
  text-transform: uppercase;
}

td small {
  display: block;
  color: #60726b;
  margin-top: 4px;
}

.sheet-badge {
  border: 1px solid #c7d3cf;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.sent-btn {
  background: #e8f7ef;
  color: #14633f;
  border-color: #91d4b0;
}

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

.empty-card,
.lead-card {
  border: 1px solid #d8e2de;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}

.empty-card {
  color: #60726b;
  font-weight: 700;
}

.lead-card {
  display: grid;
  gap: 12px;
}

.lead-card-main {
  display: grid;
  gap: 4px;
}

.lead-card-main strong {
  font-size: 16px;
  line-height: 1.35;
}

.lead-card-main span,
.lead-card-meta {
  color: #60726b;
  font-size: 13px;
}

.lead-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.lead-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lead-details div {
  min-width: 0;
  border: 1px solid #e4ece8;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.lead-details span {
  display: block;
  color: #60726b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.lead-details strong {
  display: block;
  color: #172026;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.lead-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-links a {
  min-height: 34px;
  border: 1px solid #c7d3cf;
  border-radius: 8px;
  padding: 7px 10px;
  color: #126a5a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.whatsapp-btn {
  width: 100%;
  min-height: 44px;
  background: #126a5a;
  border-color: #126a5a;
  color: #ffffff;
}

.admin-grid {
  margin-top: 16px;
}

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

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d8e2de;
  border-radius: 8px;
  padding: 12px;
}

.admin-row span {
  display: block;
  color: #60726b;
  font-size: 12px;
  margin-top: 3px;
}

@media (max-width: 980px) {
  .topbar,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

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

@media (max-width: 560px) {
  :root {
    background: #eef5f1;
  }

  .app-shell {
    padding: 14px;
    width: 100%;
    max-width: 100%;
  }

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

  .brand-block h1 {
    font-size: 26px;
  }

  .topbar {
    gap: 12px;
  }

  .topbar-actions,
  .topbar-actions button,
  .trial-banner {
    width: 100%;
  }

  .trial-banner {
    justify-content: center;
    min-height: 52px;
    font-size: 18px;
  }

  .panel {
    padding: 16px;
    border-radius: 8px;
  }

  .panel-head h2 {
    font-size: 21px;
  }

  label {
    font-size: 15px;
  }

  input,
  textarea,
  select {
    min-height: 52px;
    font-size: 16px;
    font-weight: 700;
  }

  .target-row,
  .toggle-grid,
  .button-row {
    grid-template-columns: 1fr;
  }

  .button-row,
  .button-row.compact {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-row button,
  .button-row a,
  .button-row.compact select {
    width: 100%;
    min-height: 48px;
  }

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

  .metric-grid div {
    min-width: 0;
  }

  .metric-grid strong {
    font-size: 20px;
    word-break: break-word;
  }

  .log-box {
    height: 130px;
  }

  .panel-head.spread {
    align-items: stretch;
    flex-direction: column;
  }

  .leads-panel {
    margin-top: 12px;
  }

  .lead-card-main strong {
    font-size: 17px;
  }

  .lead-details {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    display: none;
  }
}

/* Visual mobile-first inspirado em apps financeiros: escuro, limpo e com CTA forte. */
:root {
  color: #ecfffb;
  background: #061312;
}

body {
  color: #ecfffb;
  background:
    radial-gradient(circle at 18% -8%, rgba(42, 244, 222, 0.22), transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(38, 126, 255, 0.18), transparent 28%),
    linear-gradient(155deg, #061312 0%, #081827 54%, #03100f 100%);
}

button,
.icon-text-btn {
  border-color: #1b4050;
  background: linear-gradient(180deg, #112235 0%, #081827 100%);
  color: #ecfffb;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

button:hover,
.icon-text-btn:hover {
  border-color: #38f2d4;
}

input,
textarea,
select {
  border-color: #1b4050;
  background: rgba(4, 15, 25, 0.9);
  color: #ecfffb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input::placeholder,
textarea::placeholder {
  color: #6e8f96;
}

label,
.panel-head span,
.brand-block span,
.target-help,
.settings-save-state,
.lead-card-main span,
.lead-card-meta,
.empty-card,
.metric-grid span,
td small {
  color: #8fb5bb;
}

.auth-panel,
.panel {
  background: linear-gradient(180deg, rgba(13, 31, 44, 0.97), rgba(5, 15, 25, 0.98));
  border-color: #173947;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.brand-mark {
  background: transparent;
  box-shadow: 0 0 0 1px rgba(56, 242, 212, 0.25), 0 14px 34px rgba(19, 227, 190, 0.12);
}

.brand-block h1,
.panel-head h2,
.lead-card-main strong,
.metric-grid strong,
.selected-search strong {
  color: #f5fffd;
}

.primary-btn,
.whatsapp-btn {
  border-color: transparent;
  background: linear-gradient(135deg, #42f6dc 0%, #3f83ff 100%);
  color: #031312;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(40, 231, 212, 0.28);
}

.sent-btn {
  background: linear-gradient(135deg, #1ad29d 0%, #42f6dc 100%);
  color: #031312;
  border-color: transparent;
}

.danger-btn {
  border-color: rgba(255, 103, 125, 0.55);
  color: #ff9ca8;
  background: rgba(62, 14, 27, 0.35);
}

.link-btn {
  color: #42f6dc;
}

.error-line {
  background: rgba(118, 32, 48, 0.55);
  border-color: rgba(255, 103, 125, 0.45);
  color: #ffd8dd;
}

.trial-banner {
  border-color: #1b4050;
  background: rgba(8, 24, 39, 0.86);
  color: #ecfffb;
}

.trial-banner.active,
.trial-banner.paid {
  background: rgba(17, 78, 72, 0.8);
  border-color: rgba(66, 246, 220, 0.45);
  color: #adfff2;
}

.trial-banner.blocked {
  background: rgba(85, 28, 39, 0.8);
  color: #ffd8dd;
}

.selected-search,
.metric-grid div,
.empty-card,
.lead-card,
.admin-row {
  border-color: #173947;
  background: rgba(6, 20, 32, 0.72);
}

.progress-line {
  background: #0b2630;
}

.progress-line div {
  background: linear-gradient(90deg, #42f6dc, #3f83ff);
}

.status-chip {
  background: rgba(143, 181, 187, 0.12);
  color: #adfff2;
}

.status-chip.running {
  background: rgba(24, 208, 156, 0.18);
  color: #42f6dc;
}

.status-chip.paused,
.status-chip.captcha_waiting {
  background: rgba(242, 169, 54, 0.16);
  color: #ffd283;
}

.status-chip.failed,
.status-chip.expired {
  background: rgba(255, 103, 125, 0.16);
  color: #ff9ca8;
}

.log-box {
  border-color: #173947;
  background: #040d16;
  color: #bffbf0;
}

.sheet-badge {
  border-color: rgba(66, 246, 220, 0.35);
  color: #adfff2;
  background: rgba(66, 246, 220, 0.08);
}

.lead-card {
  gap: 14px;
}

.lead-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(108px, 0.75fr);
  gap: 8px;
}

.details-toggle {
  width: 100%;
  min-height: 44px;
  border-color: rgba(66, 246, 220, 0.26);
  background: rgba(8, 24, 39, 0.78);
  color: #adfff2;
}

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

.lead-details div {
  border-color: #173947;
  background: rgba(3, 13, 22, 0.82);
}

.lead-details span {
  color: #8fb5bb;
}

.lead-details strong {
  color: #ecfffb;
}

.lead-links a {
  border-color: rgba(66, 246, 220, 0.3);
  color: #42f6dc;
  background: rgba(66, 246, 220, 0.08);
}

.target-city-button {
  width: 100%;
  min-height: 58px;
  display: grid;
  justify-items: start;
  gap: 4px;
  border-color: rgba(66, 246, 220, 0.34);
  background:
    radial-gradient(circle at 18% 0%, rgba(66, 246, 220, 0.18), transparent 38%),
    rgba(3, 13, 22, 0.82);
}

.target-city-button span {
  color: #8fb5bb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.target-city-button strong {
  color: #f5fffd;
  font-size: 16px;
}

.city-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 8, 14, 0.72);
  backdrop-filter: blur(10px);
}

.city-modal {
  width: min(1020px, 100%);
  max-height: min(90vh, 920px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  border: 1px solid rgba(66, 246, 220, 0.22);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(66, 246, 220, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(13, 31, 44, 0.98), rgba(4, 12, 20, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.city-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(0, 24, 25, 0.72);
}

.city-modal-head h2 {
  margin: 0 0 4px;
  color: #f5fffd;
  font-size: 16px;
}

.city-modal-head span,
.city-list-title span,
.city-status-filter > span {
  color: #8fb5bb;
  font-size: 12px;
  font-weight: 800;
}

.city-close-btn {
  width: 38px;
  min-width: 38px;
  min-height: 34px;
  padding: 0;
  color: #ecfffb;
}

.city-filter-panel,
.city-list-panel {
  border: 1px solid #173947;
  border-radius: 8px;
  padding: 12px;
  background: rgba(6, 20, 32, 0.72);
}

.city-filter-panel {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.city-search-field {
  min-width: 0;
}

.city-status-filter {
  display: grid;
  gap: 6px;
}

.city-status-filter > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-status-filter button {
  min-height: 36px;
  border-color: #1b4050;
  background: rgba(8, 24, 39, 0.78);
  color: #adfff2;
}

.city-status-filter button.active {
  border-color: rgba(66, 246, 220, 0.5);
}

.radio-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #ecfffb;
  border-radius: 999px;
  background: #ffffff;
}

.city-status-filter button.active .radio-dot {
  border-color: #42f6dc;
  box-shadow: inset 0 0 0 3px #0a1a24;
  background: #42f6dc;
}

.city-summary {
  grid-column: 1 / -1;
  color: #f5fffd;
  font-size: 13px;
}

.city-list-panel {
  min-height: 380px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.city-list-title {
  display: grid;
  gap: 10px;
}

.city-list-title strong {
  color: #f5fffd;
  font-size: 15px;
}

.city-list {
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 4px;
}

.city-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 96px 86px;
  align-items: center;
  gap: 8px;
  border: 1px solid #173947;
  border-radius: 8px;
  padding: 9px 10px;
  background: linear-gradient(180deg, rgba(10, 31, 45, 0.82), rgba(5, 18, 30, 0.84));
}

.city-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.city-row.attended {
  border-color: rgba(66, 246, 220, 0.56);
  background: rgba(11, 61, 57, 0.48);
}

.city-row.selected {
  box-shadow: 0 0 0 1px rgba(66, 246, 220, 0.32);
}

.city-name-btn {
  min-height: 0;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5fffd;
  box-shadow: none;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-status-pill,
.city-current-pill {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  border: 1px solid rgba(66, 246, 220, 0.34);
  border-radius: 8px;
  padding: 5px 6px;
  background: rgba(8, 24, 39, 0.78);
  color: #adfff2;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: center;
}

.city-row.attended .city-status-pill {
  border-color: transparent;
  background: linear-gradient(135deg, #1ad29d 0%, #42f6dc 100%);
  color: #031312;
}

.city-current-pill {
  border-color: rgba(63, 131, 255, 0.55);
  color: #ecfffb;
  visibility: hidden;
}

.city-row.selected .city-current-pill {
  visibility: visible;
}

.city-empty {
  border: 1px dashed rgba(66, 246, 220, 0.24);
  border-radius: 8px;
  padding: 14px;
  color: #8fb5bb;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 560px) {
  .lead-card-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .city-modal-backdrop {
    align-items: stretch;
    padding: 8px;
  }

  .city-modal {
    max-height: 94vh;
  }

  .city-filter-panel {
    grid-template-columns: 1fr;
  }

  .city-status-filter > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .city-row {
    grid-template-columns: 22px minmax(0, 1fr) 82px;
    gap: 6px;
  }

  .city-current-pill {
    display: none;
    grid-column: 2 / 3;
    justify-self: start;
    width: auto;
    max-width: 100%;
    padding-inline: 8px;
  }

  .city-row.selected .city-current-pill {
    display: inline-flex;
  }

  .city-status-pill {
    grid-column: 3 / 4;
  }
}

.ai-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 8, 14, 0.72);
  backdrop-filter: blur(10px);
}

.ai-modal {
  width: min(940px, 100%);
  max-height: min(88vh, 920px);
  overflow-y: auto;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(66, 246, 220, 0.22);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(66, 246, 220, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(13, 31, 44, 0.98), rgba(4, 12, 20, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.ai-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-modal-head span {
  color: #8fb5bb;
  font-size: 12px;
  font-weight: 800;
}

.ai-modal-head h2 {
  margin: 2px 0 0;
  color: #f5fffd;
  font-size: 21px;
}

.ai-modal-head .details-toggle {
  width: auto;
  min-width: 116px;
}

.ai-discovery {
  display: grid;
  gap: 8px;
}

.ai-discovery-toggle {
  width: 100%;
  min-height: 50px;
  border-color: rgba(66, 246, 220, 0.45);
  background:
    radial-gradient(circle at 18% 0%, rgba(66, 246, 220, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(12, 42, 52, 0.95), rgba(7, 18, 35, 0.95));
  color: #adfff2;
  font-weight: 900;
}

.ai-discovery span,
.ai-panel-head span,
.ai-region-note,
.ai-result span {
  color: #8fb5bb;
  font-size: 12px;
  font-weight: 800;
}

.ai-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(66, 246, 220, 0.22);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(63, 131, 255, 0.16), transparent 35%),
    rgba(3, 13, 22, 0.72);
}

.ai-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ai-panel-head strong {
  display: block;
  color: #f5fffd;
  font-size: 16px;
  margin-bottom: 3px;
}

.ai-quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ai-region-note {
  border: 1px solid #173947;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(8, 24, 39, 0.7);
}

.ai-region-note strong {
  color: #42f6dc;
}

.ai-result {
  display: grid;
  gap: 12px;
}

.ai-result > div {
  border: 1px solid #173947;
  border-radius: 8px;
  padding: 12px;
  background: rgba(6, 20, 32, 0.72);
}

.ai-result p {
  margin: 5px 0 0;
  color: #ecfffb;
  line-height: 1.45;
}

.ai-result ol {
  margin: 8px 0 0;
  padding-left: 22px;
  color: #ecfffb;
}

.ai-result li + li {
  margin-top: 4px;
}

.ai-chip-list,
.ai-search-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ai-chip-list strong {
  border: 1px solid rgba(66, 246, 220, 0.3);
  border-radius: 999px;
  padding: 7px 10px;
  color: #adfff2;
  background: rgba(66, 246, 220, 0.08);
  font-size: 12px;
}

.ai-search-buttons button {
  min-height: 42px;
  border-color: transparent;
  background: linear-gradient(135deg, #42f6dc 0%, #3f83ff 100%);
  color: #031312;
  font-weight: 900;
}

.ai-message-options {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.ai-message-options button {
  display: grid;
  justify-items: start;
  min-height: 0;
  height: auto;
  padding: 11px 12px;
  text-align: left;
  border-color: #173947;
  background: rgba(3, 13, 22, 0.82);
  color: #ecfffb;
}

.ai-message-options button.active {
  border-color: rgba(66, 246, 220, 0.7);
  box-shadow: 0 0 0 1px rgba(66, 246, 220, 0.26), 0 14px 30px rgba(40, 231, 212, 0.12);
}

.ai-message-options button strong {
  color: #42f6dc;
  font-size: 12px;
  text-transform: uppercase;
}

.ai-message-options button span {
  color: #ecfffb;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  text-transform: none;
}

.ai-alert {
  border-color: rgba(255, 209, 110, 0.35) !important;
  color: #ffe2a4;
  background: rgba(101, 72, 15, 0.22) !important;
  line-height: 1.45;
}

.crm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 8, 14, 0.72);
  backdrop-filter: blur(10px);
}

.crm-modal {
  width: min(1180px, 100%);
  max-height: min(86vh, 900px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  border: 1px solid rgba(66, 246, 220, 0.22);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(66, 246, 220, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(13, 31, 44, 0.98), rgba(4, 12, 20, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.crm-modal-head,
.crm-head-actions,
.crm-column-head,
.crm-column-actions,
.crm-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crm-modal-head {
  justify-content: space-between;
}

.crm-modal-head span,
.crm-column-head span,
.crm-card span,
.crm-card small {
  color: #8fb5bb;
  font-size: 12px;
  font-weight: 800;
}

.crm-modal-head h2 {
  margin: 2px 0 0;
  color: #f5fffd;
  font-size: 21px;
}

.crm-head-actions button,
.crm-head-actions a {
  min-height: 40px;
}

.crm-head-actions .details-toggle {
  width: auto;
}

.crm-board {
  min-height: 360px;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 12px;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.crm-column {
  flex: 0 0 292px;
  min-width: 292px;
  max-height: calc(86vh - 132px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  border: 1px solid #173947;
  border-radius: 8px;
  padding: 12px;
  background: rgba(3, 13, 22, 0.82);
  scroll-snap-align: start;
}

.crm-column-head {
  justify-content: space-between;
}

.crm-column-head strong {
  display: block;
  color: #ecfffb;
  font-size: 15px;
}

.crm-column-actions button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
}

.crm-column-cards {
  min-height: 160px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 2px;
}

.crm-empty-stage {
  border: 1px dashed rgba(66, 246, 220, 0.24);
  border-radius: 8px;
  padding: 14px;
  color: #8fb5bb;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.crm-card {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(66, 246, 220, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(6, 20, 32, 0.86);
  cursor: grab;
}

.crm-card:active {
  cursor: grabbing;
}

.crm-card strong {
  color: #f5fffd;
  font-size: 14px;
  line-height: 1.35;
}

.crm-card-actions {
  align-items: stretch;
  flex-direction: column;
  margin-top: 4px;
}

.crm-card-actions .whatsapp-btn,
.crm-card-actions .details-toggle,
.crm-card-actions select {
  width: 100%;
  min-height: 40px;
  font-size: 13px;
}

.crm-card-actions select {
  font-weight: 800;
}

.crm-expanded {
  display: grid;
  gap: 9px;
  padding-top: 2px;
}

.crm-expanded .lead-details {
  grid-template-columns: 1fr;
}

.crm-expanded .lead-details div {
  padding: 8px;
}

.crm-expanded .lead-links a {
  flex: 1 1 120px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 560px) {
  .ai-quiz-grid {
    grid-template-columns: 1fr;
  }

  .ai-modal-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .ai-modal {
    max-height: 94vh;
    padding: 12px;
  }

  .ai-modal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-modal-head .details-toggle {
    width: 100%;
  }

  .ai-search-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .crm-modal-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .crm-modal {
    max-height: 94vh;
    padding: 12px;
  }

  .crm-modal-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .crm-board {
    min-height: 420px;
  }

  .crm-column {
    flex-basis: min(84vw, 320px);
    min-width: min(84vw, 320px);
    max-height: calc(94vh - 150px);
  }
}

.landing-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.landing-nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.landing-brand {
  color: inherit;
  text-decoration: none;
}

.landing-brand .brand-mark {
  width: 46px;
  height: 46px;
}

.landing-brand h1 {
  font-size: 18px;
}

.landing-login {
  min-width: 150px;
}

.landing-hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 18px;
  padding: 20px 0;
}

.hero-kicker {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(66, 246, 220, 0.32);
  border-radius: 999px;
  padding: 0 13px;
  color: #adfff2;
  background: rgba(66, 246, 220, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.hero-copy h2 {
  max-width: 760px;
  margin: 0;
  color: #f5fffd;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: #b8d7dc;
  font-size: 20px;
  line-height: 1.45;
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-cta,
.hero-secondary {
  min-height: 54px;
  padding-inline: 18px;
  font-size: 15px;
}

.hero-proof span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(143, 181, 187, 0.2);
  border-radius: 8px;
  padding: 7px 10px;
  color: #d7f5f1;
  background: rgba(6, 20, 32, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.quiz-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(66, 246, 220, 0.24);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 85% 0%, rgba(63, 131, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(13, 31, 44, 0.98), rgba(4, 12, 20, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #8fb5bb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-progress strong {
  color: #42f6dc;
}

.quiz-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #0b2630;
}

.quiz-progress-bar div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #42f6dc, #3f83ff);
  transition: width 220ms ease;
}

.quiz-step {
  min-height: 480px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.quiz-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(66, 246, 220, 0.35);
  border-radius: 8px;
  color: #42f6dc;
  background: rgba(66, 246, 220, 0.08);
}

.quiz-step h3 {
  margin: 0;
  color: #f5fffd;
  font-size: 28px;
  line-height: 1.1;
}

.quiz-step p {
  margin: 0;
  color: #b8d7dc;
  font-size: 15px;
  line-height: 1.5;
}

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

.quiz-main-btn {
  width: 100%;
  min-height: 52px;
}

.segment-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segment-preview span {
  border: 1px solid rgba(66, 246, 220, 0.28);
  border-radius: 999px;
  padding: 8px 10px;
  color: #adfff2;
  background: rgba(66, 246, 220, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.landing-consent {
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 9px;
  color: #b8d7dc;
  font-size: 13px;
}

.landing-consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
}

.landing-benefits {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
  padding: 26px 0 38px;
}

.landing-benefits > div > span {
  color: #42f6dc;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-benefits h2 {
  margin: 8px 0 0;
  color: #f5fffd;
  font-size: 30px;
  line-height: 1.12;
}

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

.benefit-card {
  min-height: 156px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid #173947;
  border-radius: 8px;
  padding: 14px;
  background: rgba(6, 20, 32, 0.72);
}

.benefit-card svg {
  color: #42f6dc;
}

.benefit-card strong {
  color: #f5fffd;
  font-size: 16px;
}

.benefit-card p {
  margin: 0;
  color: #8fb5bb;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .landing-hero,
  .landing-benefits {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: 0;
    align-items: start;
  }

  .quiz-step {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .landing-shell {
    padding: 14px;
  }

  .landing-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-login {
    width: 100%;
  }

  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 17px;
  }

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

  .hero-cta,
  .hero-secondary {
    width: 100%;
  }

  .quiz-panel {
    padding: 14px;
  }

  .quiz-step {
    min-height: 0;
  }

  .quiz-step h3 {
    font-size: 24px;
  }

  .quiz-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

.funnel-body {
  min-height: 100vh;
  color: #ecfffb;
  background:
    radial-gradient(circle at 24% -8%, rgba(42, 244, 222, 0.2), transparent 28%),
    linear-gradient(155deg, #061312 0%, #081827 58%, #03100f 100%);
}

.funnel-shell {
  width: min(460px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 16px 24px;
}

.funnel-screen {
  min-height: calc(100vh - 42px);
  display: none;
  grid-template-rows: auto;
  align-content: center;
  gap: 14px;
}

.funnel-screen[data-screen="hero"] {
  min-height: auto;
  align-content: start;
  gap: 13px;
}

.funnel-screen.active {
  display: grid;
}

.funnel-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f5fffd;
  font-size: 13px;
  font-weight: 900;
}

.funnel-brand.compact {
  justify-content: center;
}

.funnel-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(66, 246, 220, 0.2), 0 12px 26px rgba(19, 227, 190, 0.14);
}

.analysis-source.local {
  color: #ffffff;
}

.analysis-source.api {
  color: #ffd45a;
}

.funnel-pill {
  width: fit-content;
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(66, 246, 220, 0.34);
  border-radius: 999px;
  padding: 0 10px;
  color: #adfff2;
  background: rgba(66, 246, 220, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.funnel-hero-copy {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.funnel-hero-copy h1 {
  margin: 0;
  color: #f5fffd;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

.funnel-hero-copy p {
  margin: 0;
  color: #b8d7dc;
  font-size: 15px;
  line-height: 1.36;
}

.funnel-hero-copy p strong {
  color: #42f6dc;
  font-weight: 950;
}

.funnel-proof,
.result-estimate {
  border: 1px solid rgba(66, 246, 220, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(6, 20, 32, 0.58);
}

.funnel-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.funnel-proof strong,
.result-estimate strong {
  display: block;
  color: #42f6dc;
  font-size: 14px;
  line-height: 1.15;
}

.funnel-proof span,
.result-estimate span {
  display: block;
  margin-top: 3px;
  color: #b8d7dc;
  font-size: 11px;
  line-height: 1.25;
}

.live-dashboard-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(66, 246, 220, 0.22);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 90% 0%, rgba(63, 131, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(13, 31, 44, 0.98), rgba(4, 12, 20, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.live-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.live-dashboard-head span,
.live-dashboard-labels span {
  color: #8fb5bb;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-dashboard-head strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #42f6dc;
  font-size: 12px;
}

.live-dashboard-brand img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.live-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(76px, 1.05fr) minmax(56px, 0.7fr) minmax(84px, 0.92fr) minmax(72px, 0.86fr);
  gap: 6px;
  align-items: center;
}

.live-dashboard-labels {
  padding: 0 2px 8px;
}

.live-dashboard-rows {
  display: grid;
  gap: 7px;
}

.live-row {
  min-height: 38px;
  border: 1px solid rgba(66, 246, 220, 0.12);
  border-radius: 8px;
  padding: 7px;
  background: rgba(6, 20, 32, 0.78);
  opacity: 0;
  transform: translateY(8px);
  animation: liveRow 9.8s infinite;
}

.live-row strong {
  color: #f5fffd;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-row span {
  color: #b8d7dc;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-row button {
  width: 100%;
  min-height: 25px;
  border: 1px solid rgba(66, 246, 220, 0.2);
  border-radius: 7px;
  padding: 0 5px;
  background: rgba(66, 246, 220, 0.08);
  color: #adfff2;
  box-shadow: none;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  animation: liveButton 9.8s infinite;
}

.row-2 button,
.row-4 button {
  animation: none;
}

.live-target-row {
  animation-name: liveTargetRow;
}

.row-2 {
  animation-delay: 0.55s;
}

.row-3 {
  animation-delay: 1.1s;
}

.row-4 {
  animation-delay: 1.65s;
}

@keyframes liveRow {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  10%,
  86% {
    opacity: 1;
    transform: translateY(0);
  }
  96%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes liveTargetRow {
  0% {
    opacity: 0;
    transform: translateY(8px);
    border-color: rgba(66, 246, 220, 0.12);
    box-shadow: none;
  }
  10%,
  34% {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(66, 246, 220, 0.12);
    box-shadow: none;
  }
  40%,
  66% {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(66, 246, 220, 0.82);
    box-shadow: 0 0 0 1px rgba(66, 246, 220, 0.28), 0 0 22px rgba(66, 246, 220, 0.22);
  }
  72%,
  86% {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(66, 246, 220, 0.46);
    box-shadow: 0 0 18px rgba(66, 246, 220, 0.18);
  }
  96%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
    border-color: rgba(66, 246, 220, 0.12);
    box-shadow: none;
  }
}

@keyframes liveButton {
  0%,
  41%,
  86%,
  100% {
    background: rgba(66, 246, 220, 0.08);
    color: #adfff2;
    transform: scale(1);
    box-shadow: none;
  }
  48%,
  66% {
    background: #20e08f;
    color: #031312;
    transform: scale(1.06);
    box-shadow: 0 0 18px rgba(32, 224, 143, 0.45);
  }
  69%,
  72% {
    background: #72ffc0;
    color: #031312;
    transform: scale(0.98);
    box-shadow: 0 0 24px rgba(114, 255, 192, 0.75);
  }
}

.live-cursor {
  position: absolute;
  z-index: 4;
  width: 26px;
  height: 26px;
  left: 56%;
  top: 96%;
  opacity: 0;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.45));
  animation: liveCursor 9.8s infinite;
}

.live-cursor-arrow {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 2px;
  left: 70%;
  top: 94px;
  opacity: 0;
  background: #42f6dc;
  transform: rotate(-28deg);
  box-shadow: 0 0 12px rgba(66, 246, 220, 0.7);
  animation: liveArrow 9.8s infinite;
}

.live-cursor-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #42f6dc;
  border-top: 2px solid #42f6dc;
  transform: rotate(45deg);
}

@keyframes liveCursor {
  0%,
  42%,
  86%,
  100% {
    opacity: 0;
    left: 58%;
    top: 96%;
    transform: scale(1);
  }
  48% {
    opacity: 1;
    left: 66%;
    top: 126px;
    transform: scale(1);
  }
  61% {
    opacity: 1;
    left: calc(100% - 58px);
    top: 82px;
    transform: scale(1);
  }
  69% {
    opacity: 1;
    left: calc(100% - 58px);
    top: 82px;
    transform: scale(0.82);
  }
  73%,
  78% {
    opacity: 1;
    left: calc(100% - 58px);
    top: 82px;
    transform: scale(1);
  }
}

@keyframes liveArrow {
  0%,
  47%,
  73%,
  100% {
    opacity: 0;
  }
  52%,
  66% {
    opacity: 1;
  }
}

.live-whatsapp-modal {
  position: absolute;
  z-index: 5;
  inset: 10px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid rgba(173, 255, 242, 0.2);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34px),
    #075e54;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: translateY(12px) scale(0.88);
  pointer-events: none;
  animation: liveModal 9.8s infinite;
}

.live-whatsapp-browser {
  min-height: 26px;
  display: grid;
  grid-template-columns: 7px 7px 7px 1fr;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.24);
}

.live-whatsapp-browser span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.live-whatsapp-browser strong {
  justify-self: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.live-whatsapp-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-whatsapp-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #25d366;
  color: #04342e;
  font-size: 14px;
  font-weight: 950;
}

.live-whatsapp-top strong {
  color: #ffffff;
  font-size: 14px;
}

.live-whatsapp-modal p {
  margin: 0;
  width: 82%;
  justify-self: end;
  border-radius: 8px 8px 2px 8px;
  padding: 10px;
  background: #dcf8c6;
  color: #14342a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.live-whatsapp-modal p::after {
  content: "09:41";
  display: block;
  margin-top: 4px;
  color: #dffdf3;
  color: rgba(20, 52, 42, 0.55);
  font-size: 9px;
  text-align: right;
}

@keyframes liveModal {
  0%,
  70%,
  92%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.88);
  }
  76%,
  88% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 420px) {
  .live-dashboard-card {
    padding: 10px;
  }

  .live-dashboard-grid {
    grid-template-columns: minmax(62px, 1fr) minmax(44px, 0.68fr) minmax(78px, 0.96fr) minmax(68px, 0.9fr);
    gap: 4px;
  }

  .live-dashboard-labels span {
    font-size: 9px;
  }

  .live-row {
    padding: 6px 5px;
  }

  .live-row strong {
    font-size: 10px;
  }

  .live-row span {
    font-size: 9px;
  }

  .live-row button {
    min-height: 23px;
    padding: 0 3px;
    font-size: 8px;
  }

  .live-cursor {
    width: 24px;
    height: 24px;
  }

  @keyframes liveCursor {
    0%,
    42%,
    86%,
    100% {
      opacity: 0;
      left: 58%;
      top: 96%;
      transform: scale(1);
    }
    48% {
      opacity: 1;
      left: 64%;
      top: 126px;
      transform: scale(1);
    }
    61% {
      opacity: 1;
      left: calc(100% - 48px);
      top: 80px;
      transform: scale(1);
    }
    69% {
      opacity: 1;
      left: calc(100% - 48px);
      top: 80px;
      transform: scale(0.82);
    }
    73%,
    78% {
      opacity: 1;
      left: calc(100% - 48px);
      top: 80px;
      transform: scale(1);
    }
  }
}

.funnel-cta {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
}

.funnel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8fb5bb;
  font-size: 13px;
  font-weight: 900;
}

.funnel-back {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #42f6dc;
  box-shadow: none;
}

.funnel-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #0b2630;
}

.funnel-bar div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #42f6dc, #3f83ff);
}

.funnel-card,
.result-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(66, 246, 220, 0.22);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(63, 131, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(13, 31, 44, 0.98), rgba(4, 12, 20, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.funnel-card h2,
.result-card h2 {
  margin: 0;
  color: #f5fffd;
  font-size: 28px;
  line-height: 1.08;
}

.funnel-card p,
.result-card p {
  margin: 0;
  color: #b8d7dc;
  font-size: 15px;
  line-height: 1.45;
}

.funnel-examples,
.funnel-options,
.result-segments,
#keywordList {
  display: grid;
  gap: 9px;
}

.funnel-examples {
  grid-template-columns: 1fr;
}

.funnel-examples button,
.funnel-options button {
  width: 100%;
  min-height: 52px;
  justify-content: flex-start;
  border-color: rgba(66, 246, 220, 0.2);
  background: rgba(6, 20, 32, 0.82);
  color: #ecfffb;
  text-align: left;
}

.funnel-options button.selected {
  border-color: rgba(66, 246, 220, 0.7);
  background: rgba(66, 246, 220, 0.14);
}

.funnel-two {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 10px;
}

.funnel-consent {
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 9px;
  color: #b8d7dc;
}

.funnel-consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
}

.funnel-ai-error {
  font-size: 12px;
  line-height: 1.35;
}

.result-screen {
  align-content: start;
  padding-top: 8px;
}

.video-screen {
  align-content: start;
  padding-top: 8px;
}

.result-card {
  gap: 16px;
}

.video-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(66, 246, 220, 0.22);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(15, 48, 79, 0.78), rgba(5, 19, 29, 0.96));
  box-shadow: 0 24px 70px rgba(7, 231, 193, 0.12);
}

.video-card h2 {
  margin: 0;
  color: #f5fffd;
  font-size: 26px;
  line-height: 1.08;
}

.video-card p {
  margin: 0;
  color: #b8d7dc;
  font-size: 15px;
  line-height: 1.45;
}

.video-frame {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(66, 246, 220, 0.22);
  border-radius: 8px;
  background: rgba(4, 18, 27, 0.86);
}

.video-frame wistia-player {
  width: 100%;
}

.video-test-btn {
  width: 100%;
  margin-top: 2px;
}

.result-segments article {
  display: grid;
  gap: 12px;
  border: 1px solid #173947;
  border-radius: 8px;
  padding: 13px;
  background: rgba(6, 20, 32, 0.72);
}

.result-segments strong {
  color: #f5fffd;
  font-size: 17px;
}

.result-segments p {
  margin-top: 4px;
  font-size: 13px;
}

.result-segments a,
.result-action-btn {
  min-height: 46px;
  text-decoration: none;
}

.result-action-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  background: linear-gradient(135deg, #42f6dc 0%, #1ad29d 100%);
  color: #031312;
  box-shadow: 0 14px 30px rgba(40, 231, 180, 0.24);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
}

.keyword-box {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(66, 246, 220, 0.2);
  border-radius: 8px;
  padding: 13px;
  background: rgba(66, 246, 220, 0.06);
}

.keyword-box > span,
.trial-note {
  color: #8fb5bb !important;
  font-size: 12px !important;
  font-weight: 900;
}

#keywordList {
  display: flex;
  flex-wrap: wrap;
}

#keywordList strong {
  border: 1px solid rgba(66, 246, 220, 0.28);
  border-radius: 999px;
  padding: 7px 9px;
  color: #adfff2;
  font-size: 12px;
}

@media (min-width: 720px) {
  .funnel-shell {
    width: min(720px, 100%);
  }

  .funnel-hero-copy h1 {
    font-size: 56px;
  }
}
