:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-border: rgba(15, 23, 42, 0.08);
  --text: #131a2b;
  --muted: #5c667d;
  --accent: #c70540;
  --field: #eef2fa;
  --field-border: rgba(15, 23, 42, 0.12);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "DM Sans", sans-serif;
  background: #ffffff;
  color: var(--text);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 110px 24px 48px;
  position: relative;
}

.iframe-page {
  overflow-x: auto;
}

.iframe-page .page-shell {
  min-height: auto;
  padding: 0;
  width: 988px;
  display: block;
}

.iframe-embed-page {
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

.topbar {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1180px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 4px;
}

.topbar-brand {
  display: inline-block;
}

.topbar-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.topbar-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid rgba(199, 5, 64, 0.65);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(199, 5, 64, 0.16), rgba(199, 5, 64, 0.05));
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topbar-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(199, 5, 64, 0.16);
  border-color: rgba(199, 5, 64, 0.95);
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.hero-card {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 30px 56px;
  border-radius: 0;
  background: #ffffff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.iframe-card {
  width: 988px;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-card::before {
  width: 320px;
  height: 320px;
  left: -90px;
  top: -110px;
  background: radial-gradient(circle, rgba(55, 86, 168, 0.08), transparent 72%);
}

.hero-card::after {
  width: 280px;
  height: 280px;
  right: -70px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(199, 5, 64, 0.08), transparent 72%);
}

.wheel-panel,
.content-panel {
  position: relative;
  z-index: 1;
}

.wheel-panel {
  display: grid;
  place-items: center;
  align-self: center;
}

.wheel-wrap {
  position: relative;
  width: min(100%, 462px);
  aspect-ratio: 1;
}

.wheel-base {
  position: absolute;
  left: 50%;
  bottom: -110px;
  transform: translateX(-50%);
  width: 89.6%;
  max-width: none;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.pointer {
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  width: 43px;
  height: auto;
  z-index: 5;
  filter: drop-shadow(0 10px 18px rgba(6, 11, 26, 0.22));
}

.wheel-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(180deg, #2a3a67, #1a2649);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 40px rgba(2, 8, 24, 0.32);
  position: relative;
  transform-origin: center;
  z-index: 1;
}

.wheel-ring.is-idle-rotation {
  animation: idle-wheel-spin 18s linear infinite;
}

@keyframes idle-wheel-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.wheel {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(7, 14, 31, 0.18);
  transition: transform 5.2s cubic-bezier(0.18, 0.96, 0.24, 1);
  background:
    conic-gradient(
      from -90deg,
      var(--accent) 0deg 36deg,
      #ffffff 36deg 72deg,
      var(--accent) 72deg 108deg,
      #ffffff 108deg 144deg,
      var(--accent) 144deg 180deg,
      #ffffff 180deg 216deg,
      var(--accent) 216deg 252deg,
      #ffffff 252deg 288deg,
      var(--accent) 288deg 324deg,
      #ffffff 324deg 360deg
    );
  border: 0;
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 58%),
    radial-gradient(circle at 50% 65%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0) 72%);
}

.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 91px;
  height: 91px;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(7, 14, 31, 0.16));
}

.slice-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 114px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  transform-origin: center;
  text-shadow: none;
  letter-spacing: 0.01em;
}

.slice-1,
.slice-3,
.slice-5,
.slice-7,
.slice-9 {
  color: #ffffff;
}

.slice-2,
.slice-4,
.slice-6,
.slice-8,
.slice-10 {
  color: var(--accent);
}

.slice-1 { transform: translate(-50%, -50%) rotate(0deg) translateY(-120px) rotate(90deg); }
.slice-2 { transform: translate(-50%, -50%) rotate(36deg) translateY(-120px) rotate(90deg); }
.slice-3 { transform: translate(-50%, -50%) rotate(72deg) translateY(-120px) rotate(90deg); }
.slice-4 { transform: translate(-50%, -50%) rotate(108deg) translateY(-120px) rotate(90deg); }
.slice-5 { transform: translate(-50%, -50%) rotate(144deg) translateY(-120px) rotate(90deg); }
.slice-6 { transform: translate(-50%, -50%) rotate(180deg) translateY(-120px) rotate(90deg); }
.slice-7 { transform: translate(-50%, -50%) rotate(216deg) translateY(-120px) rotate(90deg); }
.slice-8 { transform: translate(-50%, -50%) rotate(252deg) translateY(-120px) rotate(90deg); }
.slice-9 { transform: translate(-50%, -50%) rotate(288deg) translateY(-120px) rotate(90deg); }
.slice-10 { transform: translate(-50%, -50%) rotate(324deg) translateY(-120px) rotate(90deg); }

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.96;
}

.intro {
  margin: 18px 0 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.form-card {
  margin-top: 0;
  padding: 20px 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-card h2 {
  margin: 0;
  font-size: 1.65rem;
}

.form-card > p {
  margin: 10px 0 0;
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 600;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lead-form span,
.lead-form strong {
  color: var(--accent);
}

.field-label,
.checkbox-row span {
  color: var(--text);
}

.required-mark {
  color: var(--accent);
}

.lead-form input {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lead-form input::placeholder {
  color: #7a849a;
}

.lead-form input:focus {
  border-color: rgba(199, 5, 64, 0.65);
  box-shadow: 0 0 0 4px rgba(199, 5, 64, 0.14);
  transform: translateY(-1px);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 2px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  padding: 0;
}

.checkbox-row span {
  color: var(--text);
  line-height: 1.45;
  font-weight: 500;
  font-size: 10px;
}

.spin-button {
  justify-self: start;
  margin-top: 6px;
  padding: 15px 28px;
  border: 1px solid rgba(199, 5, 64, 0.6);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(199, 5, 64, 0.16), rgba(199, 5, 64, 0.06));
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.spin-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(199, 5, 64, 0.16);
  border-color: rgba(199, 5, 64, 0.9);
}

.spin-button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.result-message {
  min-height: 26px;
  margin: 18px 0 0;
  color: #9a5b00;
  font-size: 1rem;
  font-weight: 600;
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.popup-backdrop.is-hidden {
  display: none;
}

.popup-card {
  width: min(100%, 460px);
  padding: 32px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 255, 0.99));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.popup-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
}

.popup-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.popup-message {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.popup-note {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}

.popup-note.is-hidden {
  display: none;
}

.popup-button {
  margin-top: 24px;
  justify-self: center;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}

.confetti-piece {
  position: absolute;
  top: -18%;
  width: 11px;
  height: 20px;
  border-radius: 3px;
  opacity: 0.95;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  100% {
    transform: translate3d(var(--drift), 145vh, 0) rotate(var(--rotate));
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px 22px;
  }

  .iframe-card {
    width: 988px;
  }

  .content-panel {
    width: min(100%, 620px);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 104px 16px 16px;
  }

  .topbar {
    top: 18px;
    width: calc(100% - 32px);
    padding: 0;
  }

  .topbar-logo {
    width: 104px;
  }

  .topbar-login {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 0.78rem;
  }

  .hero-card {
    border-radius: 24px;
  }

  .wheel-wrap {
    width: min(100%, 352px);
  }

  .wheel-base {
    display: none;
  }

  .pointer {
    top: -10px;
    width: 34px;
  }

  .wheel-ring {
    padding: 8px;
  }

  .wheel-center {
    width: 72px;
    height: 72px;
  }

  .slice-label {
    font-size: 0.72rem;
    width: 82px;
  }

  .slice-1 { transform: translate(-50%, -50%) rotate(0deg) translateY(-92px) rotate(90deg); }
  .slice-2 { transform: translate(-50%, -50%) rotate(36deg) translateY(-92px) rotate(90deg); }
  .slice-3 { transform: translate(-50%, -50%) rotate(72deg) translateY(-92px) rotate(90deg); }
  .slice-4 { transform: translate(-50%, -50%) rotate(108deg) translateY(-92px) rotate(90deg); }
  .slice-5 { transform: translate(-50%, -50%) rotate(144deg) translateY(-92px) rotate(90deg); }
  .slice-6 { transform: translate(-50%, -50%) rotate(180deg) translateY(-92px) rotate(90deg); }
  .slice-7 { transform: translate(-50%, -50%) rotate(216deg) translateY(-92px) rotate(90deg); }
  .slice-8 { transform: translate(-50%, -50%) rotate(252deg) translateY(-92px) rotate(90deg); }
  .slice-9 { transform: translate(-50%, -50%) rotate(288deg) translateY(-92px) rotate(90deg); }
  .slice-10 { transform: translate(-50%, -50%) rotate(324deg) translateY(-92px) rotate(90deg); }

  .form-card {
    padding: 18px;
  }

  .spin-button {
    width: 100%;
    justify-self: stretch;
  }
}
.iframe-builder {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  gap: 28px;
}

.iframe-page-topbar {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 32px 24px 0;
}

.iframe-tool-card {
  width: 988px;
  max-width: 100%;
  margin: 0 auto;
  padding: 32px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.iframe-tool-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.iframe-copy-button {
  flex: 0 0 auto;
}

.iframe-code-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(248, 250, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.iframe-controls {
  margin-top: 20px;
}

.iframe-height-control {
  display: grid;
  gap: 8px;
  width: 220px;
}

.iframe-height-control input {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
  outline: none;
}

.iframe-height-control input:focus {
  border-color: rgba(199, 5, 64, 0.65);
  box-shadow: 0 0 0 4px rgba(199, 5, 64, 0.14);
}

.iframe-code-block {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1b2335;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

.iframe-copy-message {
  margin-top: 12px;
}

.iframe-preview-shell {
  width: 988px;
  max-width: 100%;
  margin: 0 auto;
}

.iframe-preview {
  display: block;
  width: 988px;
  max-width: 100%;
  height: 820px;
  border: 0;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: transparent;
}

.iframe-embed-shell {
  width: 988px;
  margin: 0 auto;
  min-height: auto;
  padding: 0;
}

.iframe-embed-shell .hero-card {
  width: 988px;
  min-height: auto;
}

@media (max-width: 1040px) {
  .iframe-tool-header {
    flex-direction: column;
    align-items: stretch;
  }

  .iframe-preview {
    height: 980px;
  }

  .iframe-tool-card,
  .iframe-preview-shell,
  .iframe-embed-shell,
  .iframe-embed-shell .hero-card {
    width: 100%;
  }
}
