.entry-page {
  background: #f7f8fc;
  color: #222437;
  min-height: 100dvh;
  padding: clamp(13px, 4vw, 48px) 13px;
}
.entry-page.embedded {
  background: white;
  padding: 0;
}
.entry-page main {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border: 1px solid #e2e3ed;
  border-radius: 20px;
  box-shadow: 0 15px 50px -36px #16133255;
}
.embedded main {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.entry-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px clamp(18px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
}
.entry-head h1 {
  font-size: 1.35rem;
  line-height: 1.26;
  letter-spacing: -0.025em;
}
.entry-body,
#entry-body {
  padding: 22px clamp(18px, 4vw, 36px) 30px;
}
.entry-page h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.65rem);
  line-height: 1.22;
  letter-spacing: -0.026em;
  margin: 4px 0 16px;
}
.entry-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.entry-steps li {
  height: 4px;
  flex: 1;
  background: #e8e9f0;
  border-radius: 3px;
}
.entry-steps .done,
.entry-steps [aria-current] {
  background: #7168ee;
}
.entry-form {
  display: grid;
  gap: 14px;
}
.entry-form label,
.entry-form .field-box {
  display: grid;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 580;
}
.entry-form input:not([type="checkbox"]),
.entry-form select,
.entry-form textarea {
  width: 100%;
  border: 1px solid #d7d9e6;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  font-weight: 400;
}
.entry-form textarea {
  resize: vertical;
}
.entry-form label small,
.form-hint {
  color: var(--dim);
  font-size: 0.83rem;
  font-weight: 400;
}
.entry-form .entry-check {
  display: flex;
  align-items: start;
  gap: 9px;
}
.entry-check input {
  accent-color: var(--purple);
  margin-top: 5px;
}
.entry-check a,
.entry-text-link {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-bar,
.entry-auth {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.entry-bar {
  margin-top: 6px;
}
.entry-bar button:last-child {
  margin-inline-start: auto;
}
.entry-totals {
  background: #f7f7fe;
  border: 1px solid #e3e2f6;
  border-radius: 12px;
  padding: 10px 14px;
  display: grid;
  gap: 8px;
}
.entry-totals div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.entry-totals div:last-child {
  padding-top: 7px;
  border-top: 1px solid #dedff0;
  font-weight: 680;
}
.entry-error {
  font-size: 0.87rem;
  color: #ad303c;
}
.entry-page [hidden] {
  display: none !important;
}
.hp-field {
  position: absolute;
  inline-size: 0;
  block-size: 0;
  overflow: hidden;
  clip-path: inset(100%);
}
.entry-form .multi-geo {
  min-height: 115px;
}
.entry-network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.entry-network-grid button {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: start;
}
.entry-network-grid button:hover {
  border-color: #9b91ed;
}
.entry-network-grid svg {
  width: 23px;
  height: 23px;
}
.entry-frame-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: 32px 20px;
  border: 0;
  border-radius: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: transparent;
  box-shadow: none;
}
.entry-frame-dialog[open] {
  display: flex;
}
.entry-frame-shell {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: auto;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #f8fafc;
  box-shadow: 0 1px 0 #ffffffb3 inset, 0 0 0 1px #6366f114, 0 30px 90px -20px #0f172a73, 0 60px 120px -40px #6366f140;
}
.entry-frame-dialog iframe {
  display: block;
  width: 100%;
  height: var(--entry-height, 560px);
  border: 0;
  background: #f8fafc;
  color-scheme: light;
}
.entry-frame-dialog::backdrop {
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #6366f12e, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 80%, #8b5cf629, transparent 70%), rgb(8 11 28 / 72%);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.entry-frame-close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  z-index: 2;
  border: 1px solid #0f172a14;
  border-radius: 50%;
  color: #475569;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 2px 8px #0f172a14;
  cursor: pointer;
  transition: transform .15s, color .15s, box-shadow .15s;
}
.entry-frame-close svg { width: 14px; height: 14px; }
.entry-frame-close:hover { transform: scale(1.05); color: #0f172a; box-shadow: 0 4px 14px #0f172a24; }
.entry-frame-close:active { transform: scale(.96); }
.entry-frame-close:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }
.entry-frame-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, #fff, #f8faff);
  pointer-events: none;
}
.entry-frame-loading[hidden] { display: none; }
.entry-frame-loading span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #e0e3fa;
  border-top-color: #6366f1;
}
.entry-frame-loading i {
  width: 60%;
  height: 10px;
  border-radius: 10px;
  background: linear-gradient(95deg, #e9ecf7 20%, #f5f6fb 50%, #e9ecf7 80%);
  background-size: 200% 100%;
}
.entry-frame-loading i:last-of-type { width: 35%; }
.entry-frame-loading a { pointer-events: auto; color: #4f46e5; text-underline-offset: 3px; }
.entry-frame-loading a[hidden] { display: none; }
.entry-open :is(.of-marquee__track, .marquee__track) { animation-play-state: paused; }
@keyframes entry-spin { to { transform: rotate(1turn); } }
@keyframes entry-shimmer { to { background-position: -200% 0; } }
@keyframes entry-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes entry-fade { from { opacity: 0; } }
.embedded .entry-head {
  padding-inline-end: 66px;
}
.entry-form .btn[aria-busy="true"] {
  opacity: 0.58;
  cursor: wait;
}
.entry-geo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.entry-geo-list button {
  border: 1px solid #dfdbf6;
  background: #f3f2ff;
  color: #584ac2;
  border-radius: 16px;
  padding: 4px 9px;
  font-size: 0.81rem;
}
.entry-geo-choices {
  max-height: 150px;
  overflow: auto;
  display: grid;
  border: 1px solid #e0dfed;
  border-radius: 9px;
}
.entry-geo-choices:empty {
  display: none;
}
.entry-geo-choices button {
  text-align: start;
  padding: 7px 10px;
}
.entry-geo-choices button:hover {
  background: #f5f3ff;
}
@media (max-width: 600px) {
  .entry-page {
    padding: 8px;
  }
  .entry-page.embedded {
    padding: 0;
  }
  .entry-form .btn {
    padding: 10px 13px;
  }
}
@media (max-width: 560px) {
  .entry-frame-dialog { padding: 0; overflow: hidden; }
  .entry-frame-shell { height: 100%; border-radius: 0; max-width: none; }
  .entry-frame-dialog iframe { height: 100%; }
  .entry-frame-close { inset-block-start: max(12px, env(safe-area-inset-top)); inset-inline-end: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .entry-frame-dialog[open]::backdrop { animation: entry-fade .25s ease-out; }
  .entry-frame-shell { animation: entry-rise .35s cubic-bezier(.16,1,.3,1); }
  .entry-frame-loading span { animation: entry-spin .8s linear infinite; }
  .entry-frame-loading i { animation: entry-shimmer 1.55s linear infinite; }
  .entry-form {
    animation: order-step-in 0.17s ease-out;
  }
  .entry-steps li {
    transition: background-color 0.15s;
  }
}
.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.amounts button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.amounts button[aria-pressed="true"] {
  background: #f0efff;
  border-color: #aba1f8;
  color: #5745ce;
}
