:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #14211a;
  --muted: #6b756e;
  --line: #dde6df;
  --dark: #ffffff;
  --green: #18a957;
  --green-dark: #0f7e40;
  --blue: #0f5bff;
  --blue-soft: #eaf3ff;
  --warn: #bd3b3b;
  --shadow: 0 16px 40px rgba(18, 35, 27, 0.08);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body.modal-open {
  overflow: hidden;
}

.app-header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
}

.header-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 3px solid #ff3d3d;
  border-radius: 8px;
  color: #ff3d3d;
  font-size: 12px;
  font-weight: 900;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 22px;
}

.reward {
  min-width: 360px;
}

.reward span,
.reward strong {
  display: inline-block;
  margin-right: 18px;
}

.reward small {
  font-weight: 500;
}

.reward i {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #f0f1f4;
}

.bell {
  width: 34px;
  height: 34px;
  border: 0;
  background: #f3f4f6;
  border-radius: 999px;
  cursor: pointer;
}

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #f2633f;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: var(--sidebar-width, 334px) 8px 1fr;
  background: var(--bg);
}

.sidebar {
  background: var(--dark);
  color: var(--ink);
  margin: 20px 0 20px 20px;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: calc(100vh - 136px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sidebar-resizer {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 8px;
  height: calc(100vh - 96px);
  cursor: col-resize;
  background: linear-gradient(to right, transparent 0, transparent 3px, var(--line) 3px, var(--line) 4px, transparent 4px);
  touch-action: none;
}

.sidebar-resizer:hover,
.sidebar-resizer.active,
.sidebar-resizer:focus-visible {
  background: linear-gradient(to right, transparent 0, transparent 2px, var(--blue) 2px, var(--blue) 5px, transparent 5px);
  outline: none;
}

.brand {
  display: none;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ff3d3d;
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.muted,
.eyebrow {
  color: var(--muted);
}

.sidebar .brand small {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.nav-button {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 16px 18px;
  text-align: left;
  background: transparent;
  color: #516074;
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.nav-button.active,
.nav-button:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

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

.nav-button.is-pressing {
  animation: button-pop 0.26s ease;
}

.nav-button.muted-nav {
  color: #516074;
}

.main {
  padding: 36px 48px;
  min-width: 0;
}

body.section-presells .topbar {
  display: none;
}

body.section-analytics .topbar,
body.section-presell-editor .topbar {
  display: none;
}

body.section-analytics .app-shell,
body.section-presell-editor .app-shell {
  grid-template-columns: 1fr;
}

body.section-analytics .sidebar,
body.section-analytics .sidebar-resizer,
body.section-presell-editor .sidebar,
body.section-presell-editor .sidebar-resizer {
  display: none;
}

body.section-analytics .main,
body.section-presell-editor .main {
  padding: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: -36px -40px 24px;
  padding: 24px 40px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 30px;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
}

.primary-link,
.primary,
.secondary,
.mini {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.primary-link,
.primary {
  background: var(--blue);
  color: #fff;
}

.primary-link:hover,
.primary:hover {
  background: #0845c9;
  box-shadow: 0 12px 24px rgba(15, 91, 255, 0.22);
  transform: translateY(-1px);
}

.secondary,
.mini {
  background: #eef4f0;
  color: var(--ink);
}

.secondary:hover,
.mini:hover {
  background: #e4ece7;
  box-shadow: 0 10px 22px rgba(15, 35, 25, 0.08);
  transform: translateY(-1px);
}

.primary-link:active,
.primary:active,
.secondary:active,
.mini:active {
  transform: translateY(1px) scale(0.98);
}

.primary-link.is-pressing,
.primary.is-pressing,
.secondary.is-pressing,
.mini.is-pressing {
  animation: button-pop 0.26s ease;
}

.button-ripple {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(15, 91, 255, 0.18);
  transform: translate(-50%, -50%) scale(0);
  animation: button-ripple 0.56s ease-out forwards;
}

.primary-link .button-ripple,
.primary .button-ripple,
.danger .button-ripple {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes button-ripple {
  from {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes button-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes icon-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes icon-pulse {
  from {
    opacity: 0.9;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes section-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menu-enter {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-link,
  .primary,
  .secondary,
  .mini,
  .nav-button,
  .tab-button,
  .icon-button,
  .row-menu button,
  .row-menu a,
  .attendant-option,
  .section.active,
  .row-menu.show,
  .modal.show .modal-card {
    transition: none;
    animation: none !important;
  }

  .button-ripple,
  .icon-button.is-pressing::before {
    display: none;
  }
}

.danger {
  color: #fff;
  background: var(--warn);
}

.section {
  display: none;
}

.section.active {
  display: block;
  animation: section-enter 0.22s ease;
}

.hidden-form {
  display: none;
}

.trial-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px 20px;
  border: 1px solid #f3cc5d;
  border-radius: 8px;
  background: #fff9e7;
}

.trial-alert span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f5a900;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.trial-alert p {
  margin: 0;
  font-size: 16px;
}

.promo-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 138px;
  margin-bottom: 26px;
  padding: 28px 34px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(20, 20, 20, 0.72)),
    radial-gradient(circle at 72% 40%, rgba(24, 169, 87, 0.52), transparent 30%),
    #0d0f11;
  color: #fff;
}

.promo-banner strong,
.promo-banner span {
  display: block;
}

.promo-banner strong {
  max-width: 820px;
  color: #ff4444;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
}

.promo-banner span {
  margin-top: 8px;
  color: #f2f5f4;
  font-size: 18px;
}

.promo-banner button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}

.library-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  margin-bottom: 26px;
}

.library-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.library-title h2 {
  margin: 0;
  font-size: 28px;
}

.video-icon {
  width: 32px;
  height: 24px;
  border: 3px solid var(--blue);
  border-radius: 6px;
  position: relative;
}

.video-icon::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 4px;
  border-left: 9px solid var(--blue);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.library-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
}

.tab-button {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  font-size: 18px;
  transition: color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.tab-button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab-button:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.tab-button.is-pressing {
  animation: button-pop 0.26s ease;
}

.library-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 48px;
  align-items: center;
  width: min(320px, 28vw);
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.search-box input {
  border: 0;
  border-radius: 0;
  min-height: 50px;
}

.search-box span {
  display: grid;
  place-items: center;
  height: 100%;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.library-panel {
  padding: 10px;
}

.library-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.library-table th,
.library-table td {
  height: 80px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.library-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.library-table tr.selected-row {
  background: #eaf6ff;
}

.ab-tests-table {
  min-width: 900px;
}

.ab-tests-table th:last-child,
.ab-tests-table td:last-child {
  width: 190px;
  text-align: right;
}

.ab-tests-table .library-name {
  min-width: 420px;
}

.library-name {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 360px;
}

.library-name strong,
.library-name small {
  display: block;
}

.library-name small {
  max-width: 480px;
  margin-top: 4px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-thumb {
  width: 54px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #0b0f16;
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
}

.library-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.preview-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: #eef6ff;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.preview-button:hover {
  background: #e4f0ff;
  box-shadow: 0 10px 20px rgba(15, 91, 255, 0.14);
  transform: translateY(-1px);
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #657386;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.icon-button:hover,
.icon-button.kebab:hover {
  background: #eef4f9;
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(15, 91, 255, 0.12);
  transform: translateY(-1px);
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button.is-pressing {
  animation: icon-pop 0.28s ease;
}

.icon-button.is-pressing::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: rgba(15, 91, 255, 0.16);
  pointer-events: none;
  animation: icon-pulse 0.36s ease-out forwards;
}

.icon-button.blue {
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 12px;
}

.icon-button[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #3f3f3f;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s ease;
}

.icon-button[data-tooltip]:hover::after {
  opacity: 1;
}

.row-menu {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 30;
  display: none;
  min-width: 245px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.row-menu.show {
  display: grid;
  position: fixed;
  top: var(--menu-top, 64px);
  left: var(--menu-left, auto);
  right: auto;
  z-index: 1200;
  width: var(--menu-width, 245px);
  max-height: var(--menu-max-height, min(430px, calc(100vh - 24px)));
  overflow-y: auto;
  animation: menu-enter 0.16s ease;
}

.row-menu button,
.row-menu a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #516074;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.row-menu button:hover,
.row-menu a:hover {
  background: #f4f7fb;
  color: var(--blue);
  transform: translateX(2px);
}

.row-menu button.is-pressing,
.row-menu a.is-pressing {
  animation: button-pop 0.26s ease;
}

.row-menu .danger-text {
  color: #f05d5d;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px 22px;
  border: 1px solid #f3cc5d;
  border-radius: 8px;
  background: #fff9e7;
  color: #1f2937;
}

.notice-bar span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f5a900;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.notice-bar p {
  margin: 0;
  font-size: 18px;
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 30px;
}

.section-icon,
.ab-icon {
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.section-icon {
  width: 42px;
  height: 42px;
}

.ab-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  font-size: 12px;
}

.ab-test-placeholder {
  display: inline-block;
  width: 42px;
  height: 42px;
}

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

.toolbar-actions input {
  width: min(320px, 35vw);
  min-height: 54px;
}

.table-panel {
  padding: 10px;
}

.vt-table,
.traffic-table-wrap {
  overflow-x: auto;
}

.clean-table {
  min-width: 900px;
}

.clean-table th,
.clean-table td {
  height: 76px;
  padding: 14px 18px;
}

.clean-table th {
  text-transform: none;
  font-size: 14px;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f8fbff;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.name-cell strong,
.name-cell small {
  display: block;
}

.name-cell small {
  margin-top: 4px;
  color: var(--muted);
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.presell-editor-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  background: #f7f8fb;
}

.presell-config-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  overflow-y: auto;
}

.presell-config-sidebar h2 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.config-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #506075;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.config-nav:hover,
.config-nav.active {
  background: var(--blue-soft);
  color: var(--blue);
  transform: translateX(2px);
}

.config-nav strong {
  color: inherit;
  font-size: 12px;
}

.presell-config-main {
  min-width: 0;
  padding: 42px min(6vw, 72px) 64px;
}

.editor-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1160px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border: 1px solid #acd5ff;
  border-radius: 8px;
  background: #eef7ff;
  color: #1c2b40;
}

.editor-alert span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 auto;
}

.editor-alert p {
  margin: 0;
  line-height: 1.45;
}

.editor-alert button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
}

.editor-titlebar {
  max-width: 1160px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.editor-titlebar h2 {
  margin: 0;
  font-size: 22px;
}

.editor-titlebar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.editor-workspace {
  max-width: 1320px;
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(420px, 1fr);
  align-items: start;
  gap: 20px;
  margin: 0 auto;
}

.editor-preview-card {
  position: sticky;
  top: 24px;
  min-height: 560px;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.editor-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.editor-preview-head strong,
.editor-preview-head span {
  display: block;
}

.editor-preview-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.presell-preview-frame {
  width: min(100%, 900px);
  height: 520px;
  border: 0;
  border-radius: 8px;
  background: #111;
}

.presell-preview-frame.mobile {
  width: min(390px, 100%);
  height: 680px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.editor-live-frame {
  width: 100%;
  height: min(74vh, 760px);
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  background: #070b0f;
}

.editor-live-frame.desktop .editor-live-card {
  width: min(520px, 100%);
}

.editor-live-frame.mobile .editor-live-card {
  width: min(360px, 100%);
}

.editor-live-frame .presell-card {
  border-width: 6px;
  border-radius: 34px;
  box-shadow: none;
}

.editor-live-frame .presell-template-art {
  border: 0;
  border-radius: 18px;
}

.editor-live-frame .presell-template-art .presell-image {
  height: auto !important;
}

.editor-live-frame .presell-template-padre .presell-image {
  height: 260px;
}

.editor-live-frame .presell-template-padre .presell-hero::after {
  bottom: -34px;
  height: 74px;
  border-top-width: 5px;
}

.editor-live-frame .presell-badge {
  top: 16px;
  right: 16px;
  gap: 8px;
  max-width: 210px;
  padding: 10px 12px;
  border-radius: 12px;
}

.editor-live-frame .presell-badge span {
  font-size: 28px;
}

.editor-live-frame .presell-badge strong {
  font-size: 16px;
}

.editor-live-frame .presell-content {
  gap: 16px;
  padding: 22px;
}

.editor-live-frame .presell-template-padre .presell-content {
  padding-top: 38px;
}

.editor-live-frame .presell-template-padre .presell-divider {
  font-size: 28px;
}

.editor-live-frame .presell-template-padre .presell-divider::before,
.editor-live-frame .presell-template-padre .presell-divider::after {
  width: 40px;
  margin-top: 14px;
}

.editor-live-frame .presell-template-padre-side .presell-side-hero {
  min-height: 420px;
}

.editor-live-frame .presell-template-padre-side .presell-side-copy {
  width: 58%;
  padding: 34px 0 34px 24px;
}

.editor-live-frame .presell-template-padre-side .presell-side-badge {
  gap: 6px;
  margin-bottom: 16px;
}

.editor-live-frame .presell-template-padre-side .presell-side-badge span {
  width: 48px;
  height: 48px;
  border-width: 3px;
  font-size: 24px;
}

.editor-live-frame .presell-template-padre-side .presell-side-badge strong {
  padding: 0 28px;
  font-size: 18px;
}

.editor-live-frame .presell-template-padre-side .presell-side-badge strong::before,
.editor-live-frame .presell-template-padre-side .presell-side-badge strong::after {
  width: 18px;
}

.editor-live-frame .presell-template-padre-side .presell-side-copy h1 {
  font-size: clamp(31px, 4.2vw, 45px);
}

.editor-live-frame .presell-template-padre-side .presell-side-copy p {
  margin-top: 20px;
  font-size: 18px;
}

.editor-live-frame .presell-template-padre-side .presell-content {
  padding: 0 24px 26px;
}

.editor-live-frame .presell-template-padre-side .presell-benefits {
  margin-top: -42px;
  padding: 14px;
}

.editor-live-frame .presell-template-padre-side .presell-benefits span {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 6px;
  min-height: 82px;
  padding: 0 8px;
  text-align: center;
  font-size: 11px;
}

.editor-live-frame .presell-template-padre-side .presell-benefits i {
  width: 34px;
  height: 34px;
}

.editor-live-frame .presell-template-padre-side .presell-info-center h2 {
  font-size: 18px;
}

.editor-live-frame .presell-template-padre-side .presell-info-center p {
  font-size: 18px;
}

.editor-live-frame .presell-template-art.presell-template-padre .presell-image,
.editor-live-frame .presell-template-art.presell-template-padre-side .presell-image {
  height: auto !important;
}

.editor-live-frame .presell-content h1 {
  font-size: clamp(34px, 4.4vw, 54px);
}

.editor-live-frame .presell-content p {
  font-size: clamp(17px, 2vw, 22px);
}

.editor-live-frame .whatsapp-button {
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  min-height: 76px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: clamp(18px, 2.3vw, 25px);
}

.editor-live-frame .whatsapp-badge {
  width: 54px;
  height: 54px;
  border-width: 4px;
  font-size: 14px;
}

.editor-live-frame .whatsapp-button strong {
  font-size: 32px;
}

.editor-live-frame .presell-benefits {
  gap: 8px;
}

.editor-live-frame .presell-benefits span {
  grid-template-columns: 38px 1fr;
  min-height: 44px;
  font-size: 12px;
}

.editor-live-frame .presell-benefits i {
  width: 34px;
  height: 34px;
}

.editor-live-frame .presell-info {
  grid-template-columns: 62px 1fr;
  gap: 14px;
  padding: 16px;
}

.editor-live-frame .info-icon {
  width: 62px;
  height: 62px;
  font-size: 34px;
}

.editor-live-frame .presell-info h2 {
  font-size: 22px;
}

.editor-live-frame .presell-info p {
  font-size: 15px;
}

.editor-live-frame .presell-safe {
  font-size: 13px !important;
}

.presell-editor-form {
  display: grid;
  gap: 16px;
  margin: 0;
}

.editor-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.editor-tab-panel {
  display: none;
}

.editor-tab-panel.active {
  display: block;
  animation: panelIn 0.22s ease both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.editor-panel-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.editor-form-grid .wide {
  grid-column: 1 / -1;
}

.editor-check {
  align-self: end;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.editor-attendants {
  margin-top: 16px;
}

.editor-mini-card,
.editor-link-card {
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.editor-mini-card strong,
.editor-link-card strong {
  color: var(--ink);
  font-size: 14px;
}

.editor-mini-card span,
.editor-link-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.editor-status-check {
  align-self: stretch;
}

.editor-link-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.editor-link-card span {
  grid-column: 1 / -1;
}

.editor-link-card code {
  min-width: 0;
  overflow: hidden;
  color: #405064;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-upload-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 14px;
}

.upload-drop {
  min-height: 74px;
  display: grid;
  gap: 4px;
  place-items: center;
  padding: 12px;
  border: 1px dashed #b8c8d8;
  border-radius: 8px;
  background: #f8fbff;
  color: #516074;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.upload-drop:hover {
  border-color: var(--blue);
  background: #eef6ff;
  color: var(--blue);
}

.upload-drop input {
  display: none;
}

.upload-drop span {
  font-weight: 900;
}

.upload-drop small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.editor-save-bar {
  position: sticky;
  bottom: 18px;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(207, 220, 211, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

.back-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 24px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-hero h2 {
  margin: 10px 0 8px;
  font-size: 30px;
}

.detail-hero p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.test-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.test-detail-topbar p {
  margin: 8px 0 0 58px;
  color: var(--muted);
}

.ab-detail-panel {
  padding: 26px;
}

.ab-test-chart {
  height: min(44vw, 390px);
  margin-bottom: 22px;
  background: #fff;
}

.ab-test-chart svg polyline {
  stroke-width: 0.38;
}

.test-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.test-mini-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.test-mini-stats span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfa;
}

.compact-stats .stat {
  box-shadow: none;
}

.thumb {
  width: 52px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #101827;
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.dot-0 { background: #b58b00; }
.dot-1 { background: #35d07f; }
.dot-2 { background: #8ba4ff; }
.dot-3 { background: #ff3767; }
.dot-4 { background: #7c3aed; }

.traffic-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.traffic-control input {
  width: 82px;
  min-height: 42px;
  text-align: center;
  font-weight: 800;
}

.traffic-table {
  min-width: 1320px;
}

.ab-empty-state {
  display: grid;
  gap: 7px;
  padding: 28px;
  border: 1px dashed #bfd1c8;
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--muted);
}

.ab-empty-state strong {
  color: var(--ink);
}

.quick-start {
  margin-bottom: 16px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.hero-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e9f8ef;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 12px;
}

.copy-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  max-width: 720px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.copy-box code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  padding: 0 6px;
}

.steps {
  display: grid;
  gap: 8px;
}

.step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--muted);
  font-weight: 700;
}

.step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #edf1ee;
  color: transparent;
  flex: 0 0 auto;
  font-size: 10px;
}

.step.done {
  color: var(--ink);
}

.step.done span {
  background: var(--green);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat,
.panel,
.item-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat {
  padding: 18px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

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

.grid.two {
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
}

.panel {
  padding: 18px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 19px;
}

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

.panel-head h2 {
  margin: 0;
}

.form {
  display: grid;
  gap: 12px;
  align-self: start;
}

.form-help,
.field-note {
  margin: -4px 0 2px;
  color: var(--muted);
  line-height: 1.45;
}

.field-note {
  font-size: 12px;
}

.field-block {
  display: grid;
  gap: 8px;
}

.field-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.attendant-picker {
  display: grid;
  gap: 8px;
  max-height: 238px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.attendant-picker.empty {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.attendant-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid #dde7ef;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.attendant-option:hover {
  border-color: #b9c8d8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.attendant-option:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 88, 255, 0.14);
}

.attendant-option.selected {
  border-color: var(--blue);
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(0, 88, 255, 0.15);
}

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

.attendant-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #c7d2de;
  border-radius: 6px;
  background: #fff;
}

.attendant-option.selected .attendant-check {
  border-color: var(--blue);
  background: var(--blue);
}

.attendant-option.selected .attendant-check::after {
  content: "";
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.attendant-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #143b2a, #1ead62);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.attendant-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.attendant-copy strong,
.attendant-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendant-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.attendant-weight {
  min-width: 48px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef4f0;
  color: #516074;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.attendant-option.selected .attendant-weight {
  background: #dcecff;
  color: var(--blue);
}

.attendant-role {
  min-width: 78px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef4f0;
  color: #516074;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.attendant-option.selected .attendant-role {
  background: #dcecff;
  color: var(--blue);
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

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

.check input {
  width: auto;
}

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

.item-card {
  padding: 14px;
}

.item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.item-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: #edf7f1;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.badge.off {
  background: #f7eeee;
  color: var(--warn);
}

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

.actions.compact {
  margin-top: 0;
}

.metric-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.metric-line strong {
  text-align: right;
}

.link-line {
  grid-template-columns: 180px minmax(0, 1fr);
}

.link-line strong {
  overflow-wrap: anywhere;
  text-align: left;
}

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

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

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

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.sale-form {
  display: flex;
  gap: 8px;
}

.sale-form input {
  width: 100px;
}

.tracking {
  display: block;
  min-width: 150px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 10px;
}

.backup-actions .secondary {
  min-height: 44px;
  padding-inline: 18px;
}

.panel-divider {
  width: 100%;
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: var(--line);
}

.settings-events {
  grid-column: 1 / -1;
}

.security-panel {
  display: grid;
  gap: 18px;
  max-width: 1040px;
}

.security-copy {
  display: grid;
  gap: 8px;
}

.security-copy h2 {
  margin: 0;
  font-size: 20px;
}

.security-copy p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.domain-row {
  display: grid;
  grid-template-columns: minmax(260px, 520px) 40px;
  align-items: end;
  gap: 10px;
}

.domain-row label {
  margin: 0;
}

.domain-row label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.domain-row input {
  min-height: 44px;
  background: #fbfdff;
}

.domain-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 91, 255, 0.12);
  outline: none;
}

.domain-empty {
  max-width: 520px;
  padding: 18px;
  border: 1px dashed #bdc9d6;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
}

.domain-empty strong,
.domain-empty span {
  display: block;
}

.domain-empty strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.add-domain-button {
  width: min(520px, 100%);
  min-height: 46px;
}

.security-example {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.security-example span {
  font-weight: 800;
}

.security-example code {
  padding: 4px 7px;
  border: 1px solid #dbe4ef;
  border-radius: 6px;
  background: #f5f7fb;
  color: #3c4a5f;
  font: 700 12px Consolas, "Courier New", monospace;
}

.security-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.danger-icon {
  color: #d24b4b;
}

.danger-icon:hover {
  background: #fff0f0;
  color: #b42323;
}

.events-page-head {
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.events-page-head h2 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.events-page-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.event-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.event-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.event-stat span,
.event-stat small {
  display: block;
  color: var(--muted);
}

.event-stat span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-stat strong {
  display: block;
  margin: 8px 0 3px;
  font-size: 24px;
}

.event-stat small {
  font-size: 12px;
}

.events-panel {
  padding: 18px;
}

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

.events-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.analytics-section.active {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
  gap: 40px;
  margin: 0;
  min-height: calc(100vh - 96px);
  background: #ffffff;
}

.analytics-sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - 96px);
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.analytics-sidebar h2 {
  margin: 28px 16px 18px;
  font-size: 20px;
}

.analytics-nav {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: transparent;
  color: #516074;
  cursor: pointer;
  font-size: 16px;
  text-align: left;
}

.analytics-nav.active,
.analytics-nav:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.reset-metrics {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 28px;
  color: #8a8f98;
}

.analytics-content {
  min-width: 0;
  padding: 26px 28px 36px 0;
}

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

.analytics-titlebar h2 {
  margin: 0;
  font-size: 20px;
}

.analytics-titlebar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.analytics-date-actions,
.analytics-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analytics-control {
  position: relative;
}

.analytics-control-button {
  min-width: 162px;
  min-height: 44px;
  gap: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.analytics-control-button small {
  max-width: 92px;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-control-button b {
  color: #64748b;
  font-size: 16px;
}

.date-range-button {
  min-width: 248px;
}

.analytics-menu,
.date-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.analytics-menu {
  display: grid;
  width: 182px;
  padding: 6px;
}

.analytics-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: #52647b;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.analytics-menu button.active,
.analytics-menu button:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.analytics-menu strong {
  font-weight: 700;
}

.date-popover {
  display: grid;
  grid-template-columns: 256px 294px;
  width: 552px;
  min-height: 376px;
  overflow: hidden;
}

.date-shortcuts {
  display: grid;
  grid-template-rows: repeat(3, 48px) 1fr 38px;
  gap: 2px;
  padding: 18px 10px 14px;
  border-right: 1px solid var(--line);
}

.date-shortcuts button,
.calendar-head button,
.calendar-grid button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.date-shortcuts button {
  border-radius: 8px;
  padding: 0 10px;
  color: #52647b;
  text-align: left;
}

.date-shortcuts button.active,
.date-shortcuts button:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.timezone-select {
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border: 1px solid var(--line) !important;
  background: #ffffff !important;
  color: #1f2937 !important;
}

.calendar-panel {
  padding: 24px 14px 14px;
}

.calendar-panel > strong {
  display: block;
  margin-bottom: 22px;
  color: #9aa1aa;
  font-size: 13px;
}

.calendar-head {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.calendar-head h3 {
  margin: 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.calendar-head button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #64748b;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-weekdays span {
  color: #9aa1aa;
  font-size: 14px;
}

.calendar-grid {
  gap: 6px 4px;
  margin-top: 18px;
}

.calendar-grid button,
.calendar-blank {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 8px;
  color: #8b929c;
}

.calendar-grid button:hover,
.calendar-grid button.in-range {
  background: #e9f3ff;
  color: var(--blue);
}

.calendar-grid button.selected {
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
}

.calendar-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: #64748b;
  font-size: 12px;
}

.analytics-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.analytics-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.analytics-tabs button {
  align-self: stretch;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.analytics-tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.analytics-tabs span {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}

.analytics-chart {
  position: relative;
  --chart-accent: #20df43;
  --chart-fill: rgba(19, 148, 48, 0.42);
  --chart-line: #25ef45;
  --chart-glow: rgba(24, 169, 87, 0.16);
  height: min(46vw, 430px);
  min-height: 340px;
  margin: 28px;
  overflow: hidden;
  cursor: crosshair;
  background:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
    linear-gradient(90deg, #050505 0 22%, rgba(80, 60, 40, 0.5) 22% 76%, #050505 76% 100%);
}

.chart-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 1px, transparent 1px) 0 0 / 100% 20%,
    linear-gradient(to right, transparent, var(--chart-glow), transparent);
}

.analytics-chart::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: var(--chart-fill);
  border-top: 2px solid var(--chart-accent);
}

.analytics-chart svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.analytics-chart polyline {
  fill: none;
  stroke: var(--chart-line);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: grid;
  gap: 6px;
  min-width: 190px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--tooltip-x, 72px), var(--tooltip-y, 78px)) translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.chart-tooltip.show {
  opacity: 1;
  transform: translate(var(--tooltip-x, 72px), var(--tooltip-y, 78px));
}

.chart-tooltip span {
  color: #d5f7d8;
  font-weight: 800;
}

.axis {
  position: absolute;
  z-index: 3;
  color: #2f3b46;
  font-size: 13px;
}

.y100 { top: 0; left: 8px; }
.y50 { top: 48%; left: 8px; }
.y0 { bottom: 0; left: 8px; }
.x0 { bottom: 6px; left: 14px; color: #fff; }
.x1 { bottom: 6px; left: 42%; color: #fff; }
.x2 { bottom: 6px; right: 16px; color: #fff; }

.metrics-title {
  margin: 30px 0 16px;
  color: #4b5563;
  font-size: 22px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.metric-card {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card strong {
  color: #858b93;
  font-size: 22px;
}

.metric-card span {
  margin-top: 12px;
  color: #4b5563;
  font-size: 14px;
}

.origin-chart {
  margin-bottom: 0;
}

.origin-chart polyline {
  stroke-width: 0.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.origin-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 28px 16px;
}

.origin-tools .secondary {
  min-height: 36px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #0f172a;
}

.currency-pill {
  min-width: 110px;
}

.origin-tools-spacer {
  flex: 1;
}

.origin-param-control {
  position: relative;
}

.origin-param-button {
  min-width: 230px;
  justify-content: space-between;
}

.create-group-button {
  min-width: 146px;
}

.column-control {
  position: relative;
}

.column-button {
  position: relative;
  min-width: 210px;
}

.column-button::before {
  content: "";
  position: relative;
  width: 18px;
  height: 12px;
  margin-right: 6px;
  border: 2px solid #111827;
  border-radius: 999px / 700px;
}

.column-button::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #111827;
  transform: translateY(-50%);
}

.column-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: 318px;
  max-height: 468px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.column-menu > strong {
  display: block;
  padding: 20px 18px 10px;
  color: #272d37;
  font-size: 16px;
}

.column-menu-list {
  max-height: 410px;
  overflow-y: auto;
  padding: 4px 18px 14px;
}

.column-menu-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  min-height: 33px;
  color: #2f343b;
  cursor: pointer;
  font-size: 16px;
}

.column-menu-item input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.column-menu-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-menu-item b {
  color: #222831;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
}

.origin-param-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  width: 422px;
  max-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.origin-param-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.origin-param-search span {
  color: #9aa1aa;
  font-size: 20px;
}

.origin-param-search input {
  width: 100%;
  min-height: 34px;
  border: 0;
  outline: 0;
  font: inherit;
}

.origin-param-list {
  max-height: 350px;
  overflow-y: auto;
  padding: 10px;
  border-top: 1px solid #edf1f5;
}

.origin-param-list > small {
  display: block;
  margin: 10px 8px;
  color: #a0a6af;
  font-weight: 800;
}

.origin-param-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: transparent;
  color: #2b3544;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.origin-param-list button.active,
.origin-param-list button:hover {
  background: var(--blue-soft);
}

.origin-param-list button strong,
.origin-param-list button small {
  display: block;
}

.origin-param-list button small {
  margin-top: 3px;
  color: #9aa1aa;
}

.origin-param-list button b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f5bf17;
  font-size: 15px;
}

.origin-table-wrap {
  margin: 0 28px 28px;
  overflow-x: auto;
  border-top: 8px solid #96999e;
  border-radius: 5px 5px 8px 8px;
  box-shadow: var(--shadow);
}

.origin-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
  background: #ffffff;
}

.origin-table th,
.origin-table td {
  height: 66px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: #747d8b;
  text-align: left;
  white-space: nowrap;
}

.origin-table th {
  color: #607085;
  font-size: 13px;
  font-weight: 800;
}

.origin-table tbody tr:first-child {
  background: #eef8ff;
}

.origin-table th:first-child,
.origin-table td:first-child {
  width: 42px;
}

.origin-table input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--blue);
}

.origin-minus {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.origin-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 14px;
  border-radius: 999px;
  vertical-align: middle;
}

.icon-only {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.link-button {
  width: max-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.summary-card,
.funnel-card,
.benchmarks-card,
.live-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.summary-card,
.funnel-card {
  padding: 28px;
}

.summary-top,
.funnel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.summary-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--ink);
  font-weight: 800;
}

.summary-legend span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #ff5c7a;
}

.summary-plot {
  position: relative;
  height: min(35vw, 420px);
  min-height: 320px;
  margin-top: 32px;
  padding: 26px 24px 40px 70px;
}

.summary-grid {
  position: absolute;
  inset: 26px 24px 40px 70px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.12) 1px, transparent 1px) 0 0 / 100% 25%;
}

.summary-plot svg {
  position: absolute;
  inset: 26px 24px 40px 70px;
  z-index: 2;
  width: calc(100% - 94px);
  height: calc(100% - 66px);
}

.summary-area-fill {
  fill: url("#summaryFill");
  fill: rgba(255, 92, 122, 0.18);
}

.summary-line {
  fill: none;
  stroke: #ff5c7a;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.summary-tooltip {
  position: absolute;
  z-index: 3;
  top: 56px;
  left: 84px;
  display: grid;
  gap: 8px;
  min-width: 140px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(37, 37, 37, 0.92);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.summary-tooltip span {
  color: #ffffff;
}

.summary-axis {
  position: absolute;
  color: #0f172a;
  font-size: 13px;
}

.summary-axis.y5 {
  top: 24px;
  left: 32px;
}

.summary-axis.y0 {
  bottom: 38px;
  left: 34px;
}

.summary-axis.x-start {
  bottom: 8px;
  left: 70px;
}

.summary-axis.x-end {
  right: 24px;
  bottom: 8px;
}

.funnel-chart {
  position: relative;
  min-height: 480px;
  margin-top: 34px;
  padding: 28px 0 72px 64px;
}

.funnel-chart::before {
  content: "";
  position: absolute;
  inset: 28px 0 72px 64px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1) 1px, transparent 1px) 0 0 / 100% 25%;
}

.funnel-y {
  position: absolute;
  left: 0;
  color: #0f172a;
  font-size: 14px;
}

.funnel-y.y100 { top: 24px; }
.funnel-y.y75 { top: 25%; }
.funnel-y.y50 { top: 48%; }
.funnel-y.y25 { top: 71%; }
.funnel-y.y0 { bottom: 70px; }

.funnel-bars {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  align-items: end;
  gap: 16px;
  height: 360px;
}

.funnel-stage {
  position: relative;
  display: grid;
  align-content: end;
  height: 100%;
}

.funnel-fill {
  position: relative;
  height: var(--bar);
  min-height: 0;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(to top, #0f5bff 0 58%, #a9c6ff 58% 100%);
}

.funnel-fill span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  min-width: 54px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.funnel-fill span small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.funnel-stage strong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -44px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
}

.benchmarks-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 32px;
  align-items: center;
  min-height: 420px;
  padding: 28px;
}

.benchmarks-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.benchmarks-copy h2 {
  margin: 0;
  font-size: 22px;
}

.benchmarks-copy p,
.benchmarks-copy ul {
  margin: 0;
  color: #4b5563;
  line-height: 1.55;
}

.benchmarks-copy ul {
  padding-left: 20px;
}

.scale-badge {
  color: #2447d8;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.benchmarks-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 16px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(16, 32, 120, 0.95), rgba(15, 91, 255, 0.92) 55%, rgba(27, 188, 221, 0.9));
  color: #ffffff;
}

.benchmarks-visual strong {
  display: block;
  margin-top: 18px;
  font-size: 44px;
  line-height: 1;
}

.benchmarks-visual::before {
  content: "";
  position: absolute;
  inset: 40px 22px auto 22px;
  height: 120px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  transform: skewY(-8deg);
}

.mini-benchmark-card {
  position: absolute;
  display: grid;
  gap: 6px;
  width: 190px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #273043;
  box-shadow: 0 18px 30px rgba(6, 16, 58, 0.22);
}

.mini-benchmark-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.mini-benchmark-card b {
  font-size: 20px;
}

.mini-benchmark-card i {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5d6c, #f7c948, #4ade80);
}

.mini-benchmark-card.one {
  top: 42px;
  right: 22px;
  transform: rotate(4deg);
}

.mini-benchmark-card.two {
  right: 120px;
  bottom: 118px;
  transform: rotate(-6deg);
}

.mini-benchmark-card.three {
  right: 28px;
  bottom: 32px;
  transform: rotate(7deg);
}

.live-card {
  min-height: calc(100vh - 210px);
  padding: 32px 28px;
}

.live-count {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7b818a;
  font-size: 24px;
}

.live-count span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #ff5c68;
  box-shadow: 0 0 0 8px rgba(255, 92, 104, 0.12);
}

.live-count strong {
  color: #7b818a;
}

.live-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
}

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

.live-message {
  position: absolute;
  top: 0;
  z-index: 2;
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.globe {
  width: min(48vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 34%),
    repeating-radial-gradient(circle at 65% 45%, rgba(58, 190, 194, 0.55) 0 2px, transparent 2px 7px),
    radial-gradient(circle at 55% 52%, #bfe7ef 0, #9fc5cf 68%, #83aeb9 100%);
  box-shadow: inset -30px -28px 52px rgba(36, 93, 104, 0.22);
}

.events-table th,
.events-table td {
  height: auto;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.events-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.events-table th:nth-child(1),
.events-table td:nth-child(1) {
  width: 130px;
}

.events-table th:nth-child(2),
.events-table td:nth-child(2) {
  width: 120px;
}

.events-table th:nth-child(3),
.events-table td:nth-child(3) {
  width: 120px;
}

.events-table th:nth-child(4),
.events-table td:nth-child(4) {
  width: 210px;
}

.events-table td strong,
.events-table td small {
  display: block;
}

.events-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.event-type,
.event-status,
.lead-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.event-type.lead {
  background: #eaf3ff;
  color: #0f5bff;
}

.event-type.purchase {
  background: #e9f8ef;
  color: #0f7e40;
}

.event-status {
  background: #f3f6f5;
  color: #516074;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-chip {
  background: #f7f8fb;
  color: var(--ink);
}

.date-cell {
  display: block;
  font-weight: 800;
}

.date-cell small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.show {
  display: flex;
}

.modal.show .modal-card {
  animation: modal-enter 0.2s ease;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 27, 0.56);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(86vh, 780px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(12, 26, 19, 0.28);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #eef4f0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.modal-close:hover {
  background: #dfe9e3;
}

.modal-form {
  padding: 20px 22px 22px;
}

.modal-intro {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.attach-presell-form {
  min-width: min(720px, calc(100vw - 48px));
}

.attach-presell-list {
  display: grid;
  gap: 10px;
  max-height: min(420px, 55vh);
  overflow: auto;
  padding-right: 4px;
}

.attach-presell-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.attach-presell-option:hover,
.attach-presell-option.selected {
  border-color: #8bb7ff;
  background: #eef6ff;
  box-shadow: 0 12px 28px rgba(15, 91, 255, 0.1);
  transform: translateY(-1px);
}

.attach-presell-option.in-test .attach-presell-meta small {
  color: var(--blue);
  font-weight: 900;
}

.attach-presell-meta {
  min-width: 0;
}

.attach-presell-meta strong,
.attach-presell-meta small {
  display: block;
}

.attach-presell-meta small {
  margin-top: 4px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 8px -22px -22px;
  padding: 16px 22px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.embed-modal {
  padding: 20px 22px 22px;
}

.embed-modal p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.embed-warning {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #acd5ff;
  border-radius: 8px;
  background: #eef7ff;
  color: #17324d;
  line-height: 1.45;
}

.embed-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.embed-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.embed-field span {
  font-size: 14px;
  font-weight: 800;
}

.embed-field textarea {
  min-height: 110px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
  background: #f8fafc;
}

.copy-inside {
  justify-self: end;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.presell-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #050505;
}

.embed-presell-body {
  min-height: auto;
  padding: 0;
  background: transparent;
}

.embed-presell-body .presell-shell {
  width: 100%;
}

.embed-presell-body .presell-card {
  box-shadow: none;
}

.presell-shell {
  width: min(860px, 100%);
}

.presell-card {
  overflow: hidden;
  display: block;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.98) 42%, #f7fbf8 100%);
  border: 10px solid rgba(255, 255, 255, 0.94);
  border-radius: 52px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

.presell-hero {
  position: relative;
  overflow: hidden;
  background: #f7fbf8;
}

.presell-image {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  object-fit: cover;
}

.presell-badge {
  position: absolute;
  top: 34px;
  right: 34px;
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  max-width: min(390px, calc(100% - 64px));
  padding: 18px 26px;
  border: 2px solid #c79d31;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #b5861f;
  text-align: left;
  box-shadow: 0 14px 34px rgba(78, 57, 14, 0.18);
}

.presell-badge span {
  font-size: 48px;
  line-height: 1;
}

.presell-badge strong {
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.02;
  font-weight: 950;
  text-transform: uppercase;
}

.presell-divider {
  display: none;
}

.presell-template-padre {
  border-radius: 34px;
  border-color: rgba(255, 255, 255, 0.97);
  background:
    radial-gradient(circle at 50% 0%, #fff9ea 0, #ffffff 42%, #fffdf7 100%);
}

.presell-template-padre .presell-hero {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.16), rgba(40, 26, 8, 0.24)),
    linear-gradient(135deg, #d5b66b, #f8eed8);
}

.presell-template-padre .presell-hero::after {
  content: "";
  position: absolute;
  left: -7%;
  right: -7%;
  bottom: -54px;
  height: 116px;
  border-top: 8px solid rgba(199, 157, 49, 0.72);
  border-radius: 0 0 50% 50%;
  background: #fffefa;
}

.presell-template-padre .presell-image {
  height: 520px;
  object-position: center top;
}

.presell-template-padre .presell-content {
  position: relative;
  gap: 24px;
  padding-top: 60px;
  background:
    linear-gradient(180deg, #fffefa, #ffffff 74%, #f7fbf5 100%);
}

.presell-template-padre .presell-divider {
  display: flex;
  justify-content: center;
  color: #c79d31;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.presell-template-padre .presell-divider::before,
.presell-template-padre .presell-divider::after {
  content: "";
  width: 86px;
  height: 1px;
  margin: 22px 14px 0;
  background: linear-gradient(90deg, transparent, #c79d31, transparent);
}

.presell-template-padre .presell-content h1 {
  color: #06401f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 800;
}

.presell-template-padre .presell-content h1 .accent {
  color: inherit;
}

.presell-template-padre .presell-content p {
  color: #52565b;
  font-weight: 700;
}

.presell-template-padre .whatsapp-button {
  border: 6px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  box-shadow:
    0 18px 34px rgba(9, 145, 41, 0.3),
    0 0 0 8px rgba(21, 192, 63, 0.08),
    inset 0 -4px 0 rgba(0, 95, 31, 0.26);
}

.presell-template-padre .presell-benefits {
  gap: 0;
  padding: 6px 0 8px;
}

.presell-template-padre .presell-benefits span {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 132px;
  padding: 0 14px;
  color: #073b1d;
  text-align: center;
  border-right: 1px solid rgba(199, 157, 49, 0.35);
}

.presell-template-padre .presell-benefits span:last-child {
  border-right: 0;
}

.presell-template-padre .presell-benefits i,
.presell-template-padre .info-icon {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.82) 0 38%, rgba(34, 163, 66, 0.14) 39% 100%);
  color: #073b1d;
  box-shadow: none;
}

.presell-template-padre .presell-benefits i {
  color: transparent;
}

.presell-template-padre .presell-info {
  border-color: rgba(199, 157, 49, 0.72);
  background: linear-gradient(180deg, rgba(255, 253, 246, 0.94), rgba(255, 255, 255, 0.92));
}

.presell-template-padre .info-icon {
  border: 4px solid #c79d31;
  color: #c79d31;
  font-size: 58px;
}

.presell-template-padre .presell-info h2 {
  color: #073b1d;
}

.presell-template-padre .presell-safe {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(226, 240, 226, 0.78);
}

.presell-template-padre-side {
  border-width: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 12%, #fff8e9, #fffdf7 46%, #fbf4e7 100%);
  box-shadow: 0 26px 80px rgba(37, 23, 5, 0.28);
}

.presell-side-hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 248, 235, 0.96) 0 42%, rgba(255, 248, 235, 0.48) 58%, rgba(35, 20, 8, 0.08) 100%),
    linear-gradient(135deg, #f6e4bd, #b9873f);
}

.presell-side-hero .presell-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.presell-side-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 249, 238, 0.94) 0 43%, rgba(255, 249, 238, 0.08) 66%, rgba(0, 0, 0, 0.02) 100%),
    linear-gradient(0deg, rgba(255, 249, 238, 0.55), transparent 26%);
}

.presell-side-copy {
  position: relative;
  z-index: 1;
  width: min(50%, 430px);
  padding: 78px 0 60px 54px;
  text-align: left;
}

.presell-side-badge {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 28px;
  color: #b08a27;
  font-weight: 950;
  text-transform: uppercase;
}

.presell-side-badge span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 4px solid currentColor;
  border-radius: 999px;
  font-size: 40px;
}

.presell-side-badge strong {
  position: relative;
  display: inline-block;
  padding: 0 56px;
  font-size: clamp(27px, 4vw, 41px);
  line-height: 1.02;
}

.presell-side-badge strong::before,
.presell-side-badge strong::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36px;
  height: 2px;
  background: currentColor;
}

.presell-side-badge strong::before {
  left: 0;
}

.presell-side-badge strong::after {
  right: 0;
}

.presell-side-copy h1 {
  margin: 0;
  color: #05391d;
  font-size: clamp(50px, 8vw, 82px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
}

.presell-side-copy p {
  max-width: 380px;
  margin: 42px 0 0;
  color: #121817;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 500;
}

.presell-side-copy p .accent,
.presell-side-copy p strong {
  color: #078335;
}

.presell-template-padre-side .presell-content {
  position: relative;
  gap: 26px;
  padding: 0 58px 44px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #fffaf1, #fffdf7 58%, #fffaf1 100%);
}

.presell-template-padre-side .presell-benefits {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: -66px 0 10px;
  padding: 24px 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(68, 44, 13, 0.2);
}

.presell-template-padre-side .presell-benefits span {
  grid-template-columns: 62px 1fr;
  min-height: 72px;
  padding: 0 20px;
  color: #0f1615;
  border-right: 1px solid rgba(176, 138, 39, 0.4);
  font-size: clamp(17px, 2.3vw, 24px);
}

.presell-template-padre-side .presell-benefits span:last-child {
  border-right: 0;
}

.presell-template-padre-side .presell-benefits i {
  width: 58px;
  height: 58px;
  border: 3px solid #b08a27;
  background: rgba(255, 255, 255, 0.7);
  color: transparent;
  box-shadow: none;
}

.presell-template-padre-side .presell-info-center {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.presell-template-padre-side .presell-info-center h2 {
  margin: 0 auto 4px;
  max-width: 760px;
  color: #111817;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.16;
  font-weight: 500;
}

.presell-template-padre-side .presell-info-center p {
  max-width: 720px;
  margin: 0 auto;
  color: #087133;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.08;
  font-weight: 900;
}

.presell-template-padre-side .whatsapp-button {
  width: min(100%, 760px);
  margin: 0 auto;
  grid-template-columns: 92px minmax(0, 1fr);
  border-radius: 34px;
  font-size: clamp(26px, 4.2vw, 42px);
}

.presell-template-padre-side .whatsapp-button strong {
  display: none;
}

.presell-template-padre-side .presell-safe,
.presell-template-padre-side .presell-closing {
  max-width: 820px;
  margin: 0 auto !important;
  color: #17201d !important;
  font-size: clamp(17px, 2.4vw, 25px) !important;
  line-height: 1.22;
  font-weight: 500 !important;
}

.presell-template-padre-side .presell-safe strong,
.presell-template-padre-side .presell-closing strong {
  color: #087133;
}

.presell-template-padre-side .presell-closing {
  width: 100%;
  padding-top: 22px;
  border-top: 1px solid rgba(176, 138, 39, 0.25);
}

.presell-template-art {
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #fffaf1;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.presell-art-wrap {
  position: relative;
  container-type: inline-size;
}

.presell-template-art .presell-image {
  width: 100%;
  height: auto !important;
  display: block;
  object-fit: contain;
  object-position: center;
}

.presell-art-text {
  position: absolute;
  z-index: 2;
  color: #073b1d;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.presell-art-text strong {
  color: #087133;
}

.presell-art-click {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  top: 58%;
  height: 10%;
  border-radius: 999px;
  color: transparent;
  text-indent: -999px;
}

.padre-badge {
  left: 61%;
  top: 5.4%;
  width: 29%;
  color: #b28624;
  font-size: 3.6cqw;
  text-transform: uppercase;
}

.padre-title {
  left: 10%;
  top: 39.5%;
  width: 80%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.4cqw;
  line-height: 1.06;
  color: #06401f;
}

.padre-subtitle {
  left: 17%;
  top: 52.6%;
  width: 66%;
  color: #3e4543;
  font-size: 3.1cqw;
  font-weight: 600;
  line-height: 1.2;
}

.padre-button {
  left: 23%;
  top: 61.8%;
  width: 66%;
  color: #ffffff;
  font-size: 3.9cqw;
  line-height: 1.02;
  text-transform: uppercase;
}

.padre-benefit {
  top: 73.9%;
  width: 23%;
  color: #073b1d;
  font-size: 2.45cqw;
  line-height: 1.08;
}

.padre-benefit-1 {
  left: 9%;
}

.padre-benefit-2 {
  left: 38.5%;
}

.padre-benefit-3 {
  left: 68%;
}

.padre-info-title {
  left: 31%;
  top: 84.3%;
  width: 58%;
  color: #073b1d;
  font-size: 2.85cqw;
  line-height: 1.08;
  text-align: left;
}

.padre-info-text {
  left: 31%;
  top: 88.0%;
  width: 58%;
  color: #363b3a;
  font-size: 2.35cqw;
  font-weight: 600;
  line-height: 1.16;
  text-align: left;
}

.padre-safe {
  left: 20%;
  top: 96.3%;
  width: 73%;
  color: #4b5350;
  font-size: 2.15cqw;
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
}

.classic-badge {
  left: 28%;
  top: 35.9%;
  width: 44%;
  color: #22a342;
  font-size: 2.25cqw;
  line-height: 1;
  text-transform: uppercase;
}

.classic-title {
  left: 11%;
  top: 42.0%;
  width: 78%;
  color: #11241a;
  font-size: 6.8cqw;
  line-height: 0.98;
  text-transform: uppercase;
}

.classic-subtitle {
  left: 17%;
  top: 52.5%;
  width: 66%;
  color: #5a5f63;
  font-size: 2.75cqw;
  line-height: 1.16;
  font-weight: 700;
}

.classic-button {
  left: 23%;
  top: 61.0%;
  width: 62%;
  color: #ffffff;
  font-size: 3.65cqw;
  line-height: 1.02;
  text-transform: uppercase;
}

.classic-benefit {
  top: 72.6%;
  width: 21%;
  color: #1f2724;
  font-size: 2.25cqw;
  line-height: 1.08;
  text-align: center;
}

.classic-benefit-1 {
  left: 9%;
}

.classic-benefit-2 {
  left: 39.5%;
}

.classic-benefit-3 {
  left: 69%;
}

.classic-info-title {
  left: 31%;
  top: 82.0%;
  width: 57%;
  color: #11241a;
  font-size: 3.4cqw;
  line-height: 1.04;
  text-align: left;
}

.classic-info-text {
  left: 31%;
  top: 87.5%;
  width: 58%;
  color: #1f2724;
  font-size: 2.25cqw;
  font-weight: 600;
  line-height: 1.16;
  text-align: left;
}

.classic-safe {
  left: 20%;
  top: 96.1%;
  width: 72%;
  color: #606862;
  font-size: 2.0cqw;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
}

.presell-template-doctor .presell-art-click {
  left: 4%;
  right: 4%;
  top: 58.4%;
  height: 8.4%;
}

.doctor-badge {
  left: 34%;
  top: 35.1%;
  width: 42%;
  color: #2f944e;
  font-size: 2.05cqw;
  line-height: 1;
  text-transform: uppercase;
}

.doctor-title {
  left: 9%;
  top: 39.7%;
  width: 82%;
  color: #1b2533;
  font-size: 6.25cqw;
  line-height: 1.05;
}

.doctor-subtitle {
  left: 17%;
  top: 52.2%;
  width: 66%;
  color: #5e6269;
  font-size: 2.25cqw;
  font-weight: 600;
  line-height: 1.18;
}

.doctor-button {
  left: 19%;
  top: 61.1%;
  width: 70%;
  color: #ffffff;
  font-size: 3.45cqw;
  line-height: 1;
  text-transform: uppercase;
}

.doctor-benefit {
  top: 75.6%;
  width: 27%;
  color: #1d2730;
  font-size: 1.55cqw;
  line-height: 1.08;
}

.doctor-benefit-1 {
  left: 4.5%;
}

.doctor-benefit-2 {
  left: 36.5%;
}

.doctor-benefit-3 {
  left: 68%;
}

.doctor-info-title {
  left: 26%;
  top: 85.5%;
  width: 62%;
  color: #1e2832;
  font-size: 1.75cqw;
  line-height: 1.08;
  text-align: left;
}

.doctor-info-text {
  left: 26%;
  top: 89.1%;
  width: 62%;
  color: #596167;
  font-size: 1.3cqw;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
}

.doctor-safe {
  left: 16%;
  top: 97.5%;
  width: 78%;
  color: #606862;
  font-size: 1.45cqw;
  font-weight: 700;
  line-height: 1;
  text-align: left;
}

.presell-template-doctor-blue {
  background: #001b3f;
}

.presell-template-doctor-blue .presell-art-click {
  left: 6.3%;
  right: auto;
  top: 52.2%;
  width: 43%;
  height: 7.4%;
}

.doctor-blue-badge {
  left: 15.5%;
  top: 12.3%;
  width: 40%;
  color: #68eadc;
  font-size: 1.75cqw;
  font-weight: 800;
  letter-spacing: 0.55cqw;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
}

.doctor-blue-title {
  left: 7.9%;
  top: 15.2%;
  width: 48%;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7.05cqw;
  font-weight: 700;
  line-height: 1.08;
  overflow-wrap: normal;
  text-align: left;
}

.doctor-blue-accent {
  color: #66eadb;
}

.doctor-blue-subtitle {
  left: 8%;
  top: 38.2%;
  width: 42%;
  color: #ffffff;
  font-size: 3.0cqw;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
}

.doctor-blue-button {
  left: 21.5%;
  top: 53.4%;
  width: 26.5%;
  color: #ffffff;
  font-size: 2.75cqw;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
  text-transform: uppercase;
}

.doctor-blue-benefit {
  top: 68.6%;
  width: 18%;
  color: #ffffff;
  font-size: 1.75cqw;
  font-weight: 500;
  line-height: 1.18;
}

.doctor-blue-benefit-1 {
  left: 9.5%;
}

.doctor-blue-benefit-2 {
  left: 38.7%;
}

.doctor-blue-benefit-3 {
  left: 61.0%;
}

.doctor-blue-info-title {
  left: 41.7%;
  top: 74.2%;
  width: 40%;
  color: #051c42;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25cqw;
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: normal;
  text-align: left;
}

.doctor-blue-info-text {
  left: 41.8%;
  top: 81.5%;
  width: 40%;
  color: #34435a;
  font-size: 1.75cqw;
  font-weight: 500;
  line-height: 1.16;
  text-align: left;
}

.doctor-blue-safe {
  left: 21.5%;
  top: 94.1%;
  width: 50%;
  color: #ffffff;
  font-size: 2.35cqw;
  font-weight: 500;
  line-height: 1.18;
  text-align: left;
}

.doctor-blue-safe strong {
  color: #66eadb;
}

.presell-template-doctor-light {
  background: #f7ffff;
}

.presell-template-doctor-light .presell-art-click {
  left: 9%;
  right: 9%;
  top: 41.5%;
  height: 10.2%;
}

.doctor-light-badge {
  left: 58.3%;
  top: 10.4%;
  width: 24%;
  color: #14958e;
  font-size: 2.65cqw;
  font-weight: 800;
  line-height: 1.08;
  text-align: left;
  text-transform: uppercase;
}

.doctor-light-title {
  left: 48.8%;
  top: 16.6%;
  width: 43%;
  color: #06213a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.9cqw;
  font-weight: 700;
  line-height: 1.08;
  overflow-wrap: normal;
  text-align: left;
}

.doctor-light-accent {
  color: #13928b;
}

.doctor-light-subtitle {
  left: 53.0%;
  top: 32.4%;
  width: 34%;
  color: #344052;
  font-size: 2.45cqw;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
}

.doctor-light-button {
  left: 25.5%;
  top: 45.9%;
  width: 54%;
  color: #ffffff;
  font-size: 3.0cqw;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.doctor-light-benefit {
  top: 62.0%;
  width: 19%;
  color: #05243b;
  font-size: 2.25cqw;
  font-weight: 800;
  line-height: 1.14;
}

.doctor-light-benefit-1 {
  left: 8%;
}

.doctor-light-benefit-2 {
  left: 38.7%;
}

.doctor-light-benefit-3 {
  left: 61.5%;
}

.doctor-light-info-title {
  left: 36.6%;
  top: 74.8%;
  width: 42%;
  color: #06213a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.6cqw;
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: normal;
  text-align: left;
}

.doctor-light-info-text {
  left: 36.7%;
  top: 82.7%;
  width: 42%;
  color: #344052;
  font-size: 2.05cqw;
  font-weight: 500;
  line-height: 1.18;
  text-align: left;
}

.doctor-light-safe {
  left: 21.5%;
  top: 94.6%;
  width: 46%;
  color: #344052;
  font-size: 2.0cqw;
  font-weight: 500;
  line-height: 1.18;
  text-align: left;
}

.doctor-light-safe strong {
  color: #13928b;
}

.presell-template-padre-side .presell-art-click {
  left: 9%;
  right: 9%;
  top: 76%;
  height: 11%;
}

.side-badge {
  left: 11.5%;
  top: 13.0%;
  width: 29%;
  color: #b28624;
  font-size: 3.55cqw;
  line-height: 1.05;
  text-transform: uppercase;
}

.side-title {
  left: 5.5%;
  top: 19.0%;
  width: 43%;
  color: #073b1d;
  font-size: 7.4cqw;
  line-height: 0.98;
  text-align: left;
  letter-spacing: 0;
}

.side-subtitle {
  left: 6.4%;
  top: 46.2%;
  width: 38%;
  color: #171c1b;
  font-size: 3.0cqw;
  font-weight: 500;
  line-height: 1.22;
  text-align: left;
}

.side-benefit {
  top: 61.5%;
  width: 16%;
  color: #111817;
  font-size: 2.1cqw;
  line-height: 1.08;
  text-transform: uppercase;
  text-align: left;
}

.side-benefit-1 {
  left: 18.6%;
}

.side-benefit-2 {
  left: 49.4%;
}

.side-benefit-3 {
  left: 79.4%;
}

.side-info-title {
  left: 12%;
  top: 69.8%;
  width: 76%;
  color: #151c1a;
  font-size: 3.15cqw;
  font-weight: 500;
  line-height: 1.15;
}

.side-info-text {
  left: 13%;
  top: 75.0%;
  width: 74%;
  color: #087133;
  font-size: 3.15cqw;
  line-height: 1.05;
  font-weight: 900;
}

.side-button {
  left: 24%;
  top: 81.4%;
  width: 64%;
  color: #ffffff;
  font-size: 3.9cqw;
  line-height: 1.02;
  text-transform: uppercase;
}

.side-safe {
  left: 20.5%;
  top: 90.1%;
  width: 70%;
  color: #17201d;
  font-size: 2.1cqw;
  font-weight: 500;
  line-height: 1.12;
  text-align: left;
}

.side-closing {
  left: 14%;
  top: 94.2%;
  width: 76%;
  color: #17201d;
  font-size: 2.3cqw;
  font-weight: 500;
  line-height: 1.1;
}

.presell-art-click:hover {
  background: rgba(255, 255, 255, 0.08);
}

.presell-art-click:focus-visible {
  outline: 4px solid rgba(37, 99, 235, 0.82);
  outline-offset: 4px;
}

.presell-content {
  display: grid;
  gap: 26px;
  padding: 34px 42px 28px;
  text-align: center;
}

.presell-kicker {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}

.presell-content h1 {
  margin: 0;
  color: #11241a;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

.presell-content h1 .accent {
  color: #22a83a;
}

.presell-content p {
  max-width: 680px;
  margin: -10px auto 0;
  color: #5e6266;
  font-size: clamp(21px, 3.2vw, 31px);
  line-height: 1.22;
  font-weight: 700;
}

.whatsapp-button {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 18px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #12c942, #079b29);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(23px, 4vw, 37px);
  line-height: 1.05;
  box-shadow: 0 18px 32px rgba(0, 150, 45, 0.34), inset 0 -4px 0 rgba(0, 95, 31, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(0, 150, 45, 0.42), inset 0 -4px 0 rgba(0, 95, 31, 0.28);
}

.whatsapp-badge {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 6px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 22px;
  font-weight: 950;
}

.whatsapp-button strong {
  font-size: 54px;
  line-height: 1;
}

.presell-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}

.presell-benefits span {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  color: #1f2724;
  text-align: left;
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 900;
  line-height: 1.05;
}

.presell-benefits i,
.info-icon {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #6fc65e, #22a342);
  color: #fff;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(29, 150, 58, 0.18);
}

.presell-benefits i {
  width: 58px;
  height: 58px;
  background:
    radial-gradient(circle at 50% 50%, #22a342 0 48%, rgba(34, 163, 66, 0.12) 49% 100%);
}

.presell-info {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 8px;
  padding: 34px 38px;
  border: 2px solid rgba(34, 163, 66, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.info-icon {
  width: 112px;
  height: 112px;
  font-size: 64px;
}

.presell-info h2 {
  margin: 0 0 12px;
  color: #11241a;
  font-size: clamp(30px, 4.6vw, 45px);
  line-height: 1.04;
}

.presell-info h2 strong,
.presell-info h2 .accent {
  color: #22a83a;
}

.presell-info p {
  max-width: none;
  margin: 0;
  color: #1f2724;
  font-size: clamp(19px, 2.6vw, 28px);
  line-height: 1.22;
  font-weight: 600;
}

.presell-safe {
  margin: 0 !important;
  color: #606862 !important;
  font-size: clamp(17px, 2.3vw, 24px) !important;
  font-weight: 700 !important;
}

.presell-safe strong {
  color: #1ead4c;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .sidebar-resizer {
    display: none;
  }

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

  .topbar,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid,
  .event-summary,
  .grid.two,
  .hero-panel,
  .domain-row {
    grid-template-columns: 1fr;
  }

  .domain-row .icon-button {
    justify-self: flex-start;
  }

  .copy-box {
    grid-template-columns: 1fr;
  }

  .library-head {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .library-tabs,
  .library-tools {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-box {
    width: 100%;
  }

  .promo-banner {
    min-height: 180px;
    padding: 24px;
  }

  .presell-card {
    border-width: 7px;
    border-radius: 34px;
  }

  .presell-image {
    min-height: 0;
  }

  .presell-content {
    gap: 20px;
    padding: 26px 22px 24px;
  }

  .presell-content h1 {
    font-size: clamp(38px, 10vw, 64px);
  }

  .whatsapp-button {
    grid-template-columns: 56px minmax(0, 1fr) 28px;
    min-height: 82px;
    padding: 14px 18px;
    border-radius: 18px;
  }

  .whatsapp-badge {
    width: 56px;
    height: 56px;
    border-width: 4px;
    font-size: 16px;
  }

  .whatsapp-button strong {
    font-size: 38px;
  }

  .presell-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .presell-benefits span {
    min-height: 58px;
  }

  .presell-info {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 24px;
    text-align: center;
  }

  .info-icon {
    width: 88px;
    height: 88px;
    font-size: 48px;
  }

  .analytics-section.active {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
  }

  .analytics-sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .analytics-content {
    padding: 20px 18px 28px;
  }

  .analytics-titlebar,
  .summary-top,
  .funnel-top,
  .analytics-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-date-actions {
    flex-wrap: wrap;
  }

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

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

  .funnel-bars {
    min-width: 760px;
  }

  .funnel-chart {
    overflow-x: auto;
  }

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

  .presell-config-sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
  }

  .presell-config-sidebar .back-button,
  .presell-config-sidebar h2 {
    grid-column: 1 / -1;
  }

  .presell-config-main {
    padding: 24px 18px 42px;
  }

  .editor-titlebar,
  .editor-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .editor-workspace {
    grid-template-columns: 1fr;
  }

  .editor-preview-card {
    position: static;
    padding: 14px;
  }

  .editor-live-frame {
    height: 620px;
  }

  .image-upload-box {
    grid-template-columns: 1fr;
  }

  .editor-form-grid {
    grid-template-columns: 1fr;
  }

  .editor-status-grid,
  .editor-link-card {
    grid-template-columns: 1fr;
  }

  .editor-save-bar {
    bottom: 10px;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .main {
    padding: 18px;
  }

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

  .topbar h1 {
    font-size: 25px;
  }

  .modal {
    align-items: flex-end;
    padding: 12px;
  }

  .modal-card {
    width: 100%;
    max-height: 90vh;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .primary,
  .modal-actions .secondary {
    width: 100%;
  }

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

  .presell-body {
    padding: 10px;
  }

  .presell-card {
    border-radius: 26px;
  }

  .presell-content {
    padding: 22px 16px 20px;
  }

  .presell-content h1 {
    font-size: 40px;
  }

  .presell-content p {
    font-size: 20px;
  }

  .whatsapp-button {
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    min-height: 72px;
    gap: 10px;
    padding: 12px 14px;
    font-size: 20px;
  }

  .whatsapp-badge {
    width: 46px;
    height: 46px;
    font-size: 13px;
  }

  .whatsapp-button strong {
    font-size: 30px;
  }

  .summary-card,
  .funnel-card,
  .benchmarks-card,
  .live-card {
    padding: 18px;
  }

  .summary-plot {
    padding-left: 42px;
  }

  .summary-grid,
  .summary-plot svg {
    left: 42px;
    width: calc(100% - 66px);
  }

  .globe {
    width: 82vw;
  }

  .presell-config-sidebar {
    grid-template-columns: 1fr;
  }

  .presell-config-main {
    padding: 18px 12px 34px;
  }

  .editor-actions,
  .editor-save-bar {
    width: 100%;
  }

  .editor-save-bar .primary,
  .editor-save-bar .secondary {
    flex: 1 1 100%;
  }

  .editor-live-frame,
  .editor-live-frame.mobile {
    width: 100%;
    height: 560px;
  }
}

@media (max-width: 560px) {
  .presell-html {
    height: 100%;
    --presell-vh: 100svh;
    overflow: hidden;
    background: #050505;
  }

  .presell-body:not(.embed-presell-body) {
    width: 100vw;
    height: var(--presell-vh, 100svh);
    min-height: var(--presell-vh, 100svh);
    padding:
      max(6px, env(safe-area-inset-top))
      max(6px, env(safe-area-inset-right))
      max(6px, env(safe-area-inset-bottom))
      max(6px, env(safe-area-inset-left));
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    place-items: start center;
    align-content: start;
    background: #050505;
  }

  .presell-body:not(.embed-presell-body) .presell-shell {
    --presell-mobile-ratio: 0.5622;
    width: min(calc(100vw - 12px), calc((var(--presell-vh, 100svh) - 12px) * var(--presell-mobile-ratio)));
    max-width: none;
  }

  .presell-body:not(.embed-presell-body) .presell-shell-padre-side {
    --presell-mobile-ratio: 0.6667;
  }

  .presell-body:not(.embed-presell-body) .presell-shell-doctor {
    --presell-mobile-ratio: 0.5266;
  }

  .presell-body:not(.embed-presell-body) .presell-shell-doctor-blue {
    --presell-mobile-ratio: 0.5628;
  }

  .presell-body:not(.embed-presell-body) .presell-shell-doctor-light {
    --presell-mobile-ratio: 0.5628;
  }

  .presell-body:not(.embed-presell-body) .presell-template-art {
    width: 100%;
    border-radius: clamp(18px, 7vw, 30px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44);
  }

  .presell-body:not(.embed-presell-body) .presell-art-wrap,
  .presell-body:not(.embed-presell-body) .presell-image {
    width: 100%;
  }

  .presell-body:not(.embed-presell-body) .presell-art-click {
    min-height: 52px;
    cursor: pointer;
  }

  .presell-body:not(.embed-presell-body) .classic-title {
    left: 8%;
    width: 84%;
    font-size: 6.1cqw;
    line-height: 1.02;
  }

  .presell-body:not(.embed-presell-body) .classic-subtitle {
    left: 12%;
    width: 76%;
    font-size: 2.35cqw;
  }

  .presell-body:not(.embed-presell-body) .classic-button {
    left: 17%;
    width: 73%;
    font-size: 3.05cqw;
    line-height: 1.04;
  }

  .presell-body:not(.embed-presell-body) .classic-benefit {
    width: 24%;
    font-size: 1.82cqw;
  }

  .presell-body:not(.embed-presell-body) .classic-benefit-1 {
    left: 5%;
  }

  .presell-body:not(.embed-presell-body) .classic-benefit-2 {
    left: 38%;
  }

  .presell-body:not(.embed-presell-body) .classic-benefit-3 {
    left: 68%;
  }

  .presell-body:not(.embed-presell-body) .classic-info-title {
    left: 28%;
    width: 63%;
    font-size: 2.75cqw;
  }

  .presell-body:not(.embed-presell-body) .classic-info-text {
    left: 28%;
    width: 64%;
    font-size: 1.85cqw;
  }

  .presell-body:not(.embed-presell-body) .classic-safe {
    left: 18%;
    width: 75%;
    font-size: 1.65cqw;
  }

  .presell-body:not(.embed-presell-body) .doctor-title {
    left: 7%;
    width: 86%;
    font-size: 5.85cqw;
  }

  .presell-body:not(.embed-presell-body) .doctor-button {
    left: 15%;
    width: 76%;
    font-size: 3.05cqw;
  }

  .presell-body:not(.embed-presell-body) .doctor-benefit {
    font-size: 1.35cqw;
  }

  .presell-body:not(.embed-presell-body) .doctor-info-title {
    left: 24%;
    width: 66%;
    font-size: 1.55cqw;
  }

  .presell-body:not(.embed-presell-body) .doctor-info-text {
    left: 24%;
    width: 66%;
    font-size: 1.18cqw;
  }

  .presell-body:not(.embed-presell-body) .doctor-blue-title,
  .presell-body:not(.embed-presell-body) .doctor-light-title {
    font-size: 5.55cqw;
  }

  .presell-body:not(.embed-presell-body) .doctor-blue-button,
  .presell-body:not(.embed-presell-body) .doctor-light-button,
  .presell-body:not(.embed-presell-body) .padre-button,
  .presell-body:not(.embed-presell-body) .side-button {
    font-size: 3.3cqw;
  }

  .presell-body:not(.embed-presell-body) .doctor-blue-benefit,
  .presell-body:not(.embed-presell-body) .doctor-light-benefit,
  .presell-body:not(.embed-presell-body) .side-benefit {
    font-size: 1.85cqw;
  }

  .presell-body:not(.embed-presell-body) .side-title {
    font-size: 6.7cqw;
  }

  .presell-body:not(.embed-presell-body) .side-subtitle {
    font-size: 2.65cqw;
  }

  .presell-body:not(.embed-presell-body) .side-info-title,
  .presell-body:not(.embed-presell-body) .side-info-text {
    font-size: 2.75cqw;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 560px) {
    .presell-html {
      --presell-vh: 100dvh;
    }

    .presell-body:not(.embed-presell-body) {
      height: var(--presell-vh, 100dvh);
      min-height: var(--presell-vh, 100dvh);
    }

    .presell-body:not(.embed-presell-body) .presell-shell {
      width: min(calc(100vw - 12px), calc((var(--presell-vh, 100dvh) - 12px) * var(--presell-mobile-ratio)));
    }
  }
}
