:root {
  --bg: #f3f4f7;
  --navy: #1c1e2b;
  --navy-2: #11131d;
  --yellow: #fab117;
  --gold: #ba933f;
  --blue: #4667a5;
  --cyan: #1499df;
  --purple: #8d4ccf;
  --green: #18d66b;
  --muted: #6b7086;
  --soft: #eef0f4;
  --white: #ffffff;
  --danger: #e0435f;
  --border: rgba(28, 30, 43, 0.12);
  --shadow: 0 20px 50px rgba(28, 30, 43, 0.08);
  --hard-shadow: 5px 8px 0 var(--navy);
  --hard-shadow-sm: 3px 5px 0 var(--navy);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(250, 177, 23, 0.10), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(70, 103, 165, 0.06), transparent 32rem),
    var(--bg);
  color: var(--navy);
  font-family: "Poppins", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.site-shell {
  width: min(1120px, calc(100% - 24px));
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 0 24px;
  overflow-x: hidden;
}

.hero {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 900px;
}

.brand {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--yellow);
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--navy);
}

.hero-copy,
.muted {
  color: rgba(28, 30, 43, 0.68);
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 0;
  font-size: 0.92rem;
}

.card,
.form-card,
.inactive-card {
  border: 1px solid var(--navy);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--hard-shadow);
}

.form-card {
  min-height: 0;
  overflow: hidden;
}

.loading-state,
.inactive-card {
  padding: 24px;
}

.step-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.58fr) minmax(0, 1.42fr);
  min-height: 420px;
}

.step-aside {
  padding: 22px;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(circle at top, rgba(250, 177, 23, 0.16), transparent 24rem),
    var(--soft);
}

.step-aside h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
}

.progress-track {
  height: 7px;
  margin: 16px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(28, 30, 43, 0.1);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), #ffd76b);
  transition: width 0.25s ease;
}

.step-content {
  padding: 22px;
}

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

label {
  display: grid;
  gap: 5px;
  color: rgba(28, 30, 43, 0.78);
  font-size: 0.8rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(28, 30, 43, 0.18);
  min-height: 42px;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  outline: none;
  padding: 10px 12px;
}

select option {
  color: var(--navy);
}

input:focus,
select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(250, 177, 23, 0.22);
}

input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Searchable select (estado / cidade) */
.ss-wrap {
  position: relative;
}

.ss-input {
  cursor: pointer;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(28,30,43,0.55)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.ss-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(250, 177, 23, 0.22);
  cursor: text;
}

.ss-input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ss-dropdown {
  display: none;
  position: absolute;
  z-index: 200;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 12px;
  max-height: 220px;
  overflow: hidden;
  box-shadow: var(--hard-shadow-sm);
}

.ss-dropdown.open {
  display: flex;
  flex-direction: column;
}

.ss-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.ss-list li {
  padding: 11px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  color: rgba(28, 30, 43, 0.82);
  transition: background 0.1s;
}

.ss-list li:hover {
  background: rgba(250, 177, 23, 0.16);
  color: var(--navy);
}

.ss-list li.ss-hidden {
  display: none;
}

/* Phone field with +55 prefix */
.field-hint {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 4px;
}

.phone-wrap {
  display: flex;
  align-items: stretch;
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 11px;
  background: var(--soft);
  border: 1px solid rgba(28, 30, 43, 0.18);
  border-right: none;
  border-radius: 12px 0 0 12px;
  color: rgba(28, 30, 43, 0.55);
  font-size: 0.82rem;
  white-space: nowrap;
  user-select: none;
}

.ddi-wrap {
  position: relative;
  flex-shrink: 0;
}

#ddi-dropdown {
  left: 0;
  right: auto;
  min-width: 240px;
}

.ddi-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 42px;
  background: var(--soft);
  border: 1px solid rgba(28, 30, 43, 0.18);
  border-right: none;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--navy);
  transition: background 0.15s;
}

.ddi-trigger:hover {
  background: rgba(28, 30, 43, 0.08);
}

.ddi-trigger:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(250, 177, 23, 0.22);
}

.ss-search-box {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.ss-search-field {
  width: 100%;
  min-height: 34px;
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--soft);
  border: 1px solid rgba(28, 30, 43, 0.18);
  color: var(--navy);
  font: inherit;
  font-size: 0.82rem;
  outline: none;
}

.ss-search-field:focus {
  border-color: var(--yellow);
}

.phone-wrap input {
  border-radius: 0 12px 12px 0;
  flex: 1;
}

.question-title {
  margin-bottom: 16px;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
}

.options-list {
  display: grid;
  gap: 8px;
}

.option-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(28, 30, 43, 0.16);
  min-height: 43px;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  padding: 11px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.option-button::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 2px solid rgba(28, 30, 43, 0.3);
  border-radius: 999px;
}

.option-button:hover {
  border-color: var(--navy);
  background: var(--soft);
  transform: translateY(-1px);
}

.option-button.selected {
  border-color: var(--navy);
  background: rgba(250, 177, 23, 0.16);
  box-shadow: var(--hard-shadow-sm);
  transform: translateY(-1px);
}

.option-button.selected::after {
  border-color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(250, 177, 23, 0.22);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.primary-button,
.secondary-button,
.ghost-button {
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-button {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: var(--hard-shadow-sm);
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 5px 8px 0 var(--navy);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.secondary-button {
  border: 1px solid var(--navy);
  background: var(--white);
  color: var(--navy);
}

.secondary-button:hover {
  background: var(--soft);
}

.ghost-button {
  border: 1px solid rgba(28, 30, 43, 0.28);
  background: transparent;
  color: var(--navy);
}

.ghost-button:hover {
  border-color: var(--navy);
  background: var(--soft);
}

.form-error {
  min-height: 1.5em;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 600;
}

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

.result-hero {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 12px;
  align-items: start;
}

.result-title {
  padding: 16px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border);
}

.result-title h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.result-title p,
.bottleneck-card p,
.cta-card p {
  margin-bottom: 8px;
  font-size: 0.84rem;
  line-height: 1.35;
}

.result-title h2 span {
  color: var(--yellow);
}

.bottleneck-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--navy);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(250, 177, 23, 0.14), rgba(255, 255, 255, 0.9));
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--navy);
  border-radius: 16px;
  color: var(--navy);
  background: var(--yellow);
  font-size: 1.45rem;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(280px, 1fr) minmax(190px, 0.72fr);
  gap: 12px;
  align-items: center;
}

.insight-column {
  display: grid;
  gap: 12px;
}

.mini-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--white);
}

.mini-card h3 {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mini-card h2 {
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: var(--navy);
}

.mini-card p,
.mini-card li {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(28, 30, 43, 0.78);
}

.mini-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: rgba(28, 30, 43, 0.78);
}

.mini-card.green {
  border-color: rgba(24, 214, 107, 0.4);
}

.mini-card.green h3 {
  color: #159c56;
}

.mini-card.purple {
  border-color: rgba(141, 76, 207, 0.4);
}

.mini-card.purple h3 {
  color: #8d4ccf;
}

.mini-card.blue {
  border-color: rgba(20, 153, 223, 0.4);
}

.mini-card.blue h3 {
  color: #0f7fb8;
}

.radar-panel {
  position: relative;
  min-height: 390px;
  padding-top: 32px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.radar-score {
  position: absolute;
  z-index: 2;
  width: 135px;
  text-align: center;
}

.radar-score strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--navy);
}

.radar-score span {
  display: block;
  color: var(--muted);
}

.radar-score small {
  display: block;
  color: currentColor;
  font-size: 0.68rem;
  font-weight: 800;
}

.score-capture {
  top: 0;
  left: 50%;
  color: #159c56;
  transform: translateX(-50%);
}

.score-conversion {
  bottom: 10px;
  left: -4px;
  color: #8d4ccf;
}

.score-positioning {
  right: -4px;
  bottom: 10px;
  color: #0f7fb8;
}

.radar-svg {
  width: min(320px, 100%);
  filter: drop-shadow(0 14px 30px rgba(28, 30, 43, 0.14));
  transform: translateY(18px);
}

.cta-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--navy);
  border-radius: 14px;
  background: var(--white);
}

.cta-copy {
  display: grid;
  gap: 4px;
}

.cta-copy h3,
.cta-copy p {
  margin-bottom: 0;
}

.instagram-link {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.qr-link {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px;
}

.qr-code {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.rank-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(250, 177, 23, 0.16);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
}

.admin-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.admin-login {
  width: min(480px, 100%);
  margin: 10vh auto 0;
  padding: 30px;
}

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

.admin-dashboard {
  display: grid;
  gap: 24px;
}

.admin-header,
.control-card,
.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.control-actions {
  display: grid;
  gap: 12px;
  width: min(460px, 100%);
}

.control-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: start;
  gap: 28px;
  border: 1px solid var(--navy);
  border-radius: 22px;
  padding: 28px 30px;
  background: var(--white);
  box-shadow: var(--hard-shadow);
}

.control-card h2 {
  margin-bottom: 12px;
  color: var(--navy);
}

.control-card p {
  margin-bottom: 0;
  color: rgba(28, 30, 43, 0.78);
  line-height: 1.45;
}

.event-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.control-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-tab-nav {
  display: flex;
  gap: 6px;
}

.admin-tab-btn {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid rgba(28, 30, 43, 0.2);
  background: transparent;
  color: rgba(28, 30, 43, 0.6);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.admin-tab-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.admin-tab-btn.active {
  border-color: var(--navy);
  background: var(--yellow);
  color: var(--navy);
}

.admin-tab-panel {
  display: grid;
  gap: 24px;
}

.stats-grid,
.admin-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

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

.admin-panels > .card {
  padding: 24px;
}

.admin-panels > .card h2,
.table-card h2 {
  margin-bottom: 16px;
  color: var(--navy);
}

.stat-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
}

.stat-val-num {
  font-size: 2rem;
  line-height: 1.1;
}

.stat-val-text {
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-item {
  display: grid;
  gap: 6px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(28, 30, 43, 0.78);
  font-size: 0.9rem;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(28, 30, 43, 0.1);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), #ffe08a);
}

.table-card {
  padding: 22px;
}

.table-heading {
  align-items: end;
  margin-bottom: 16px;
}

.table-heading h2 {
  margin-bottom: 0;
}

.table-filters {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(240px, 320px);
  gap: 12px;
  align-items: end;
}

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

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

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  color: rgba(28, 30, 43, 0.78);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td strong {
  display: block;
  color: var(--navy);
}

@media (max-width: 940px) {
  .step-layout,
  .result-hero,
  .control-card,
  .stats-grid,
  .admin-panels {
    grid-template-columns: 1fr;
  }

  .diagnostic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .radar-panel {
    order: -1;
    grid-column: 1 / -1;
    min-height: 360px;
    padding-top: 28px;
  }

  .step-aside {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .score-conversion {
    left: 4px;
  }

  .score-positioning {
    right: 4px;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .admin-shell {
    width: min(100% - 12px, 1180px);
    padding-top: 8px;
  }

  .hero {
    gap: 4px;
    margin-bottom: 8px;
  }

  .hero .brand {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.28rem;
    line-height: 1.08;
  }

  .hero-copy {
    display: none;
  }

  .step-aside,
  .step-content,
  .loading-state,
  .inactive-card {
    padding: 12px;
  }

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

  .step-aside h2 {
    margin-bottom: 0;
    font-size: 1.05rem;
  }

  .step-aside .muted {
    display: none;
  }

  .progress-track {
    margin: 8px 0 0;
  }

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

  label {
    gap: 4px;
    font-size: 0.68rem;
  }

  input,
  select {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 0.78rem;
  }

  .question-title {
    margin-bottom: 10px;
    font-size: 1.08rem;
  }

  .options-list {
    gap: 6px;
  }

  .option-button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .form-actions {
    flex-direction: row;
    margin-top: 10px;
  }

  .admin-header,
  .control-card,
  .table-heading,
  .cta-card {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions,
  .control-actions,
  .control-btn-row {
    flex-direction: column;
  }

  .event-add-row,
  .table-filters {
    grid-template-columns: 1fr;
  }

  .control-card,
  .admin-panels > .card,
  .table-card,
  .stat-card {
    padding: 16px;
  }

  .admin-actions .primary-button,
  .admin-actions .secondary-button,
  .admin-actions .ghost-button,
  .control-actions .primary-button,
  .control-actions .secondary-button,
  .control-actions .ghost-button,
  .control-btn-row .primary-button,
  .control-btn-row .secondary-button,
  .control-btn-row .ghost-button {
    width: 100%;
  }

  .form-actions .primary-button,
  .form-actions .ghost-button {
    width: auto;
    flex: 1;
  }

  .result-title,
  .bottleneck-card,
  .mini-card,
  .cta-card {
    padding: 10px;
  }

  .result-title h2 {
    font-size: 1.45rem;
  }

  .bottleneck-card,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .icon-badge {
    display: none;
  }

  .diagnostic-grid {
    gap: 8px;
  }

  .radar-panel {
    min-height: 310px;
    padding-top: 24px;
  }

  .radar-svg {
    width: min(250px, 100%);
    transform: translateY(12px);
  }

  .radar-score {
    width: 112px;
  }

  .radar-score strong {
    font-size: 1.12rem;
  }

  .radar-score small {
    font-size: 0.58rem;
  }

  .mini-card h3 {
    font-size: 0.66rem;
  }

  .mini-card p,
  .mini-card li {
    font-size: 0.68rem;
  }

  .qr-link {
    justify-self: start;
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 380px) {
  .field-grid,
  .diagnostic-grid {
    grid-template-columns: 1fr;
  }
}

/* ------ EVENT EDITOR ------ */

.event-editor {
  padding: 28px 30px;
  display: grid;
  gap: 24px;
}

.event-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.event-editor-header h2 {
  margin-bottom: 4px;
  font-size: 1.1rem;
  color: var(--navy);
}

.event-editor-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.editor-section h3 {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.editor-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.editor-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.editor-cat-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--soft);
}

.editor-cat-card label {
  font-size: 0.78rem;
  font-weight: 600;
}

.editor-questions-list {
  display: grid;
  gap: 12px;
}

.editor-question {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--soft);
}

.editor-q-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, 200px) auto;
  gap: 10px;
  align-items: center;
}

.editor-q-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(250, 177, 23, 0.2);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  flex-shrink: 0;
}

.editor-opts {
  display: grid;
  gap: 8px;
  padding-left: 36px;
}

.editor-opt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.ed-score-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 0;
}

.ed-score-wrap input {
  width: 58px;
  min-height: 36px;
  text-align: center;
  padding: 6px 4px;
}

.editor-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#editor-hint {
  font-size: 0.8rem;
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .editor-q-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ed-q-cat {
    grid-column: 2 / -1;
  }

  .editor-opts {
    padding-left: 16px;
  }

  .event-add-row {
    grid-template-columns: 1fr 1fr;
  }

  .event-add-row button {
    grid-column: 1 / -1;
  }
}

/* ------ RESULT PAGE — OPPORTUNITY CARD ------ */

.result-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.result-greeting {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.sim-label {
  margin: 18px 0 8px;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scenario-tab-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.scenario-tab-btn {
  border: 1px solid rgba(28, 30, 43, 0.24);
  border-radius: 999px;
  padding: 9px 20px;
  background: transparent;
  color: rgba(28, 30, 43, 0.6);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.scenario-tab-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.scenario-tab-btn.active {
  border-color: var(--navy);
  background: rgba(250, 177, 23, 0.16);
  color: var(--navy);
}

.opportunity-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--navy);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--hard-shadow);
  max-width: 720px;
}

.opp-eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.opp-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.opp-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--yellow);
  border: 1px solid var(--navy);
  font-size: 1.6rem;
  line-height: 1;
}

.opp-headline {
  margin: 0;
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.opp-description {
  margin: 0;
  color: rgba(28, 30, 43, 0.78);
  font-size: 0.9rem;
  line-height: 1.5;
}

.opp-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.opp-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(28, 30, 43, 0.88);
  font-size: 0.9rem;
  line-height: 1.4;
}

.opp-bullets li::before {
  content: "✅";
  flex: 0 0 auto;
  font-size: 0.9rem;
  line-height: 1.4;
}

.product-offer-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--soft);
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.original-price {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: line-through;
}

.special-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(186, 147, 63, 0.16);
  border: 1px solid rgba(186, 147, 63, 0.5);
  color: #8a6a26;
  font-size: 0.75rem;
  font-weight: 700;
}

.special-price {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  background: #25D366;
  border: 1px solid var(--navy);
  color: #0d3320;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--hard-shadow-sm);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 5px 8px 0 var(--navy);
}

@media (max-width: 640px) {
  .opportunity-panel {
    padding: 16px;
    gap: 14px;
  }

  .opp-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .opp-headline {
    font-size: 1.1rem;
  }

  .special-price {
    font-size: 1.35rem;
  }

  .whatsapp-btn {
    font-size: 0.9rem;
    padding: 12px 16px;
  }
}

/* ------ RESULT PAGE v2 — RADAR + SINGLE PRODUCT ------ */

.result-card {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.result-header-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.result-header-text {
  flex: 1 1 260px;
}

.result-main-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 600;
}

.result-main-desc {
  margin: 0;
  color: rgba(28, 30, 43, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.bottleneck-box {
  flex: 0 1 300px;
  padding: 16px 20px;
  border: 1px solid var(--navy);
  border-radius: 14px;
  background: rgba(250, 177, 23, 0.12);
}

.bbt-label {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.bbt-name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.bbt-msg {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(28, 30, 43, 0.62);
}

.result-body-row {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.result-chart-col {
  min-width: 0;
  max-width: 100%;
}

.result-product-col {
  min-width: 0;
  max-width: 100%;
}

.radar-svg {
  width: 100%;
  max-width: 360px;
  display: block;
  margin: 0 auto;
}

.radar-brand {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(186, 147, 63, 0.75);
  margin: 4px 0 0;
}

.radar-brand span {
  color: rgba(28, 30, 43, 0.45);
}

.radar-score-row {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-top: 14px;
}

.rscore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  flex: 1;
  text-align: center;
}

.rscore--lo {
  border-color: rgba(224, 67, 95, 0.5);
  background: rgba(224, 67, 95, 0.08);
}

.rscore--lo .rscore-val {
  color: var(--danger);
}

.rscore-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.rscore-max {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
}

.rscore-lbl {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(28, 30, 43, 0.6);
  line-height: 1.35;
}

/* Product recommendation card */
.product-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--navy);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--hard-shadow);
}

.prod-eyebrow {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

.prod-head {
  display: flex;
  align-items: flex-start;
}

.prod-headline {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.prod-desc {
  margin: 0;
  color: rgba(28, 30, 43, 0.75);
  font-size: 0.88rem;
  line-height: 1.5;
}

.prod-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.prod-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(28, 30, 43, 0.88);
  font-size: 0.88rem;
  line-height: 1.4;
}

.prod-bullets li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  margin-top: 5px;
  opacity: 0.9;
}

.prod-offer {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--soft);
}

.prod-offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.prod-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.prod-price-orig {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: line-through;
}

.prod-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(250, 177, 23, 0.18);
  border: 1px solid rgba(250, 177, 23, 0.5);
  color: #8a6a26;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prod-price-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 700px) {
  .result-body-row {
    grid-template-columns: 1fr;
  }

  .result-chart-col,
  .result-product-col {
    min-width: 0;
  }

  .radar-score-row {
    gap: 5px;
  }

  .rscore {
    padding: 8px 5px;
  }

  .rscore-val {
    font-size: 1.05rem;
  }

  .product-card {
    padding: 16px;
    gap: 12px;
  }

  .prod-price {
    font-size: 1.3rem;
  }

  .bottleneck-box {
    flex: 1 1 100%;
  }
}

/* Scroll CTA button */
.scroll-cta-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.scroll-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--navy);
  border-radius: 50px;
  background: #ef4444;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  animation: scrollBtnPulse 1.6s ease-in-out infinite;
  transition: background 0.2s;
}

.scroll-cta-btn:hover {
  background: #dc2626;
}

@keyframes scrollBtnPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    transform: scale(1.04);
  }
}
