.studio-panel[data-checkout-section],
[data-checkout-field] {
  scroll-margin-top: 7.5rem;
}

.studio-panel[data-checkout-missing="true"] {
  position: relative;
  border-color: #f59e0b !important;
  box-shadow:
    0 0 0 3px rgba(245, 158, 11, 0.2),
    0 18px 44px rgba(15, 23, 42, 0.22) !important;
  animation: checkout-requirement-pulse 1.8s ease-out 1;
}

.studio-panel[data-checkout-missing="true"][data-checkout-message]::before {
  content: attr(data-checkout-message);
  display: block;
  margin-block: 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 13px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.34);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: right;
}

[data-checkout-field][data-checkout-missing="true"] {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

.checkout-card[data-runtime-checkout-notice]::before {
  content: attr(data-runtime-checkout-notice);
  display: block;
  margin-block: 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(245, 158, 11, 0.48);
  border-radius: 15px;
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.38), rgba(69, 26, 3, 0.22));
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.55;
  text-align: right;
}

.checkout-card[data-runtime-upsell-space="true"] {
  padding-bottom: calc(var(--runtime-upsell-height, 300px) + 34px) !important;
}

#tool-runtime-safe-layer .studio-recommendation-stack {
  position: absolute;
  z-index: 45;
  margin: 0;
  pointer-events: auto;
}

#tool-runtime-safe-layer {
  position: static;
  width: 0;
  height: 0;
  pointer-events: none;
}

html.runtime-modal-page-open,
body.runtime-modal-page-open {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

#tool-runtime-safe-layer.runtime-page-active {
  position: fixed;
  z-index: 159;
  inset: 0;
  width: auto;
  height: auto;
  overflow: hidden;
  pointer-events: auto;
}

#tool-runtime-safe-layer .runtime-whatsapp-lift {
  position: fixed !important;
  z-index: 500 !important;
  pointer-events: auto;
}

[data-runtime-primary-preview="true"] {
  min-width: min(100%, 360px) !important;
  min-height: 68px !important;
  padding: 1.1rem clamp(2rem, 6vw, 4.75rem) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 18px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 52%, #f97316 100%) !important;
  box-shadow:
    0 18px 38px rgba(194, 65, 12, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  font-size: clamp(1.08rem, 2vw, 1.28rem) !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em;
}

[data-runtime-primary-preview="true"]:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.015) !important;
  background: linear-gradient(135deg, #9a3412 0%, #c2410c 50%, #ea580c 100%) !important;
  box-shadow:
    0 22px 44px rgba(154, 52, 18, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

[data-runtime-primary-preview="true"]:focus-visible {
  outline: 4px solid #60a5fa !important;
  outline-offset: 4px !important;
}

[data-runtime-primary-preview="true"]:disabled {
  color: rgba(255, 255, 255, 0.78) !important;
  background: linear-gradient(135deg, #9a3412, #c2410c) !important;
  cursor: not-allowed;
  filter: saturate(0.62);
}

.checkout-requirement-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-block: 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(245, 158, 11, 0.48);
  border-radius: 15px;
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.38), rgba(69, 26, 3, 0.22));
  text-align: right;
}

.checkout-requirement-notice > svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  margin-top: 0.08rem;
  color: #fbbf24;
}

.checkout-requirement-notice > span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.checkout-requirement-notice strong {
  color: #fff7ed;
  font-size: 0.95rem;
}

.checkout-requirement-notice small {
  color: #fde68a;
  font-size: 0.82rem;
  line-height: 1.55;
}

.studio-pro-upsell-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 0.8rem;
  margin-block: 1.25rem 0;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.42);
  border-radius: 19px;
  color: #eff6ff;
  background:
    radial-gradient(circle at 12% 10%, rgba(96, 165, 250, 0.34), transparent 36%),
    linear-gradient(145deg, #172554 0%, #1d4ed8 62%, #2563eb 100%);
  box-shadow:
    0 16px 36px rgba(29, 78, 216, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-align: right;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.studio-recommendation-stack {
  display: grid;
  gap: 0.75rem;
}

.studio-recommendation-stack .studio-pro-upsell-card {
  margin: 0;
}

.native-checkout-recommendations {
  margin-top: 0.45rem;
  padding-top: 0;
  border-top: 0;
}

.checkout-security-note {
  margin-top: 0.75rem !important;
  padding-top: 0.65rem !important;
}

.studio-pro-upsell-card.assisted-upsell-card {
  border-color: rgba(110, 231, 183, 0.38);
  background:
    radial-gradient(circle at 12% 10%, rgba(52, 211, 153, 0.25), transparent 38%),
    linear-gradient(145deg, #0f2942 0%, #123b55 56%, #0f766e 125%);
  box-shadow:
    0 16px 36px rgba(15, 118, 110, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.studio-pro-upsell-card.assisted-upsell-card .studio-pro-upsell-icon {
  color: #a7f3d0;
  border-color: rgba(167, 243, 208, 0.5);
  background:
    linear-gradient(145deg, rgba(167, 243, 208, 0.2), rgba(15, 118, 110, 0.08)),
    rgba(6, 78, 59, 0.22);
}

.studio-pro-upsell-card.assisted-upsell-card .studio-pro-upsell-copy small {
  color: #a7f3d0;
}

.studio-pro-upsell-card.assisted-upsell-card .studio-pro-upsell-copy b {
  color: #064e3b;
  background: #a7f3d0;
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.2);
}

.studio-pro-upsell-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -15% -65% 20%;
  height: 8rem;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.22);
  filter: blur(20px);
}

.studio-pro-upsell-card:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 219, 254, 0.72);
  box-shadow:
    0 20px 44px rgba(29, 78, 216, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.studio-pro-upsell-card:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.studio-pro-upsell-icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  border: 1px solid rgba(253, 230, 138, 0.56);
  border-radius: 15px;
  color: #fde68a;
  background:
    linear-gradient(145deg, rgba(253, 230, 138, 0.2), rgba(217, 119, 6, 0.08)),
    rgba(15, 23, 42, 0.2);
  box-shadow:
    0 9px 22px rgba(15, 23, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.studio-pro-upsell-icon svg {
  width: 1.62rem;
  height: 1.62rem;
  overflow: visible;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.25));
}

.studio-premium-emblem-frame {
  fill: rgba(255, 255, 255, 0.055);
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linejoin: round;
}

.studio-premium-emblem-wave {
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
}

.studio-premium-emblem-core {
  fill: currentColor;
}

.studio-pro-upsell-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.studio-pro-upsell-copy small {
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 750;
}

.studio-pro-upsell-copy strong {
  color: #ffffff;
  font-size: clamp(1.08rem, 1.8vw, 1.24rem);
  line-height: 1.45;
}

.studio-pro-upsell-copy > span {
  color: #dbeafe;
  font-size: 0.78rem;
  line-height: 1.55;
}

.studio-pro-upsell-copy b {
  justify-self: start;
  margin-top: 0.25rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  color: #172033;
  background: #fbbf24;
  font-size: 0.76rem;
  box-shadow: 0 6px 14px rgba(194, 65, 12, 0.18);
}

[data-theme="day"] .checkout-requirement-notice {
  color: #7c2d12;
  border-color: #fdba74;
  background: #fff7ed;
}

[data-theme="day"] .checkout-card[data-runtime-checkout-notice]::before {
  color: #7c2d12;
  border-color: #fdba74;
  background: #fff7ed;
}

[data-theme="day"] .studio-panel[data-checkout-missing="true"][data-checkout-message]::before {
  color: #9a3412;
  border-color: #fdba74;
  background: #fff7ed;
}

[data-theme="day"] .checkout-requirement-notice strong {
  color: #7c2d12;
}

[data-theme="day"] .checkout-requirement-notice small {
  color: #9a3412;
}

[data-theme="day"] .studio-pro-upsell-card {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.2);
}

/* Public packages and pricing route. The page lives outside React's root so
   direct hash navigation and refresh stay safe for the existing application. */
#tool-runtime-safe-layer .runtime-pricing-page {
  position: absolute;
  z-index: 160;
  inset: 0;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  pointer-events: auto;
  color: #172033;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.22), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(212, 167, 44, 0.14), transparent 25rem),
    linear-gradient(180deg, #e8f0ff 0%, #f7f9fe 50%, #e9effa 100%);
  font-family: inherit;
  direction: rtl;
}

.runtime-pricing-page * {
  box-sizing: border-box;
}

.runtime-pricing-header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
  padding: 0.85rem max(1rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(212, 167, 44, 0.28);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(30, 64, 175, 0.08);
  backdrop-filter: blur(18px);
}

.runtime-pricing-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.runtime-pricing-brand > span:first-child {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #ffffff;
  border: 1px solid rgba(244, 208, 111, 0.72);
  background: linear-gradient(145deg, #172554, #1d4ed8 72%, #3b82f6);
  box-shadow:
    0 12px 26px rgba(29, 78, 216, 0.28),
    0 0 0 4px rgba(212, 167, 44, 0.1);
  font-size: 1.35rem;
  font-weight: 900;
}

.runtime-pricing-brand > span:last-child {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.runtime-pricing-brand strong {
  color: #172554;
  font-size: 1rem;
  font-weight: 900;
}

.runtime-pricing-brand small {
  overflow: hidden;
  color: #526174;
  font-size: 0.76rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-pricing-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(212, 167, 44, 0.48);
  border-radius: 16px;
  color: #172554;
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(30, 64, 175, 0.1);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.runtime-pricing-close:hover {
  color: #ffffff;
  border-color: #172554;
  background: #172554;
}

.runtime-pricing-close:focus-visible,
.runtime-pricing-action:focus-visible {
  outline: 4px solid #d4a72c;
  outline-offset: 3px;
}

.runtime-pricing-main {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(2.2rem, 6vw, 5rem) 0 3rem;
}

.runtime-pricing-intro {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 920px;
  margin: 0 auto clamp(1.8rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 4.25rem) clamp(1.2rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid rgba(244, 208, 111, 0.5);
  border-radius: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 12% 12%, rgba(96, 165, 250, 0.32), transparent 19rem),
    radial-gradient(circle at 88% 0%, rgba(244, 208, 111, 0.18), transparent 18rem),
    linear-gradient(145deg, #172554 0%, #1e3a8a 48%, #1d4ed8 100%);
  box-shadow:
    0 32px 78px rgba(23, 37, 84, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-align: center;
}

.runtime-pricing-intro::before,
.runtime-pricing-intro::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(244, 208, 111, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.runtime-pricing-intro::before {
  width: 15rem;
  height: 15rem;
  top: -8rem;
  right: -6rem;
}

.runtime-pricing-intro::after {
  width: 9rem;
  height: 9rem;
  bottom: -5rem;
  left: -3rem;
}

.runtime-pricing-intro > span {
  padding: 0.45rem 0.8rem;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(244, 208, 111, 0.62);
  border-radius: 999px;
  color: #fff3c4;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 850;
}

.runtime-pricing-intro h1 {
  max-width: 720px;
  position: relative;
  z-index: 1;
  margin: 1rem 0 0.75rem;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.runtime-pricing-intro p {
  max-width: 660px;
  position: relative;
  z-index: 1;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.runtime-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.runtime-pricing-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 1rem;
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(49, 76, 132, 0.2);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.94));
  box-shadow:
    0 22px 58px rgba(30, 64, 175, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.runtime-pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #d4a72c, #f4d06f 38%, #1d4ed8 100%);
}

.runtime-pricing-card[data-tone="teal"]::before {
  background: linear-gradient(90deg, #1d4ed8, #60a5fa, #d4a72c);
}

.runtime-pricing-card[data-tone="navy"]::before {
  background: linear-gradient(90deg, #d4a72c, #f4d06f, #d4a72c);
}

.runtime-pricing-card[data-featured="true"] {
  border-color: rgba(29, 78, 216, 0.48);
  background:
    radial-gradient(circle at 90% 2%, rgba(96, 165, 250, 0.18), transparent 16rem),
    linear-gradient(145deg, #ffffff, #edf4ff);
  box-shadow:
    0 28px 66px rgba(29, 78, 216, 0.2),
    0 0 0 3px rgba(96, 165, 250, 0.1);
}

.runtime-pricing-card[data-highlighted="true"] {
  border-color: #d4a72c;
  box-shadow:
    0 30px 72px rgba(23, 37, 84, 0.28),
    0 0 0 4px rgba(212, 167, 44, 0.2);
  animation: runtime-pricing-highlight 900ms ease-out 1;
}

.runtime-pricing-card[data-highlighted="true"]::after {
  content: "החבילה שביקשתם";
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: #172554;
  background: linear-gradient(135deg, #f4d06f, #d4a72c);
  font-size: 0.72rem;
  font-weight: 900;
}

.runtime-pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 78, 216, 0.5);
  box-shadow: 0 30px 70px rgba(30, 64, 175, 0.18);
}

.runtime-pricing-card-heading {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  min-height: 76px;
}

.runtime-pricing-card-heading small {
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 850;
}

.runtime-pricing-card-heading h2 {
  margin: 0;
  color: #172554;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 950;
  line-height: 1.22;
}

.runtime-pricing-card-heading b {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: #172554;
  background: linear-gradient(135deg, #f4d06f, #d4a72c);
  font-size: 0.72rem;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.2);
}

.runtime-pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  color: #1d4ed8;
}

.runtime-pricing-price strong {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.runtime-pricing-price span {
  max-width: 9rem;
  padding-bottom: 0.35rem;
  color: #526174;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.35;
}

.runtime-pricing-card > p {
  margin: 0;
  color: #526174;
  font-size: 1rem;
  line-height: 1.7;
}

.runtime-pricing-card ul {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  color: #334155;
  list-style: none;
}

.runtime-pricing-card li {
  position: relative;
  padding-right: 1.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.runtime-pricing-card li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: #b7791f;
  font-weight: 950;
}

.runtime-pricing-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.2);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.runtime-pricing-card[data-featured="true"] .runtime-pricing-action {
  background: linear-gradient(135deg, #172554, #1d4ed8 70%, #2563eb);
  box-shadow: 0 14px 28px rgba(23, 37, 84, 0.26);
}

.runtime-pricing-card[data-tone="teal"] .runtime-pricing-action {
  background: linear-gradient(135deg, #172554, #1d4ed8);
  box-shadow: 0 14px 28px rgba(23, 37, 84, 0.24);
}

.runtime-pricing-card[data-tone="navy"] {
  border-color: rgba(244, 208, 111, 0.62);
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 2%, rgba(96, 165, 250, 0.26), transparent 17rem),
    linear-gradient(145deg, #172554 0%, #1e3a8a 54%, #1d4ed8 100%);
  box-shadow:
    0 30px 72px rgba(23, 37, 84, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.runtime-pricing-card[data-tone="navy"] .runtime-pricing-card-heading small,
.runtime-pricing-card[data-tone="navy"] .runtime-pricing-price strong {
  color: #f4d06f;
}

.runtime-pricing-card[data-tone="navy"] .runtime-pricing-card-heading h2,
.runtime-pricing-card[data-tone="navy"] > p,
.runtime-pricing-card[data-tone="navy"] ul,
.runtime-pricing-card[data-tone="navy"] .runtime-pricing-price span {
  color: #ffffff;
}

.runtime-pricing-card[data-tone="navy"] li::before {
  color: #f4d06f;
}

.runtime-pricing-card[data-tone="navy"] .runtime-pricing-action {
  color: #172554;
  background: linear-gradient(135deg, #f4d06f, #d4a72c);
  box-shadow: 0 14px 30px rgba(212, 167, 44, 0.28);
}

.runtime-pricing-action:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.runtime-pricing-footer {
  max-width: 760px;
  margin: 1.5rem auto 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.65;
  text-align: center;
}

/* Google OAuth is additive: email/password remains available below it. */
.sp-registration-form {
  isolation: isolate;
}

.sp-registration-form > .sp-google-auth-button {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  margin: 0.3rem 0 0;
}

.sp-registration-form > .sp-auth-divider {
  width: 100%;
  margin: 0.05rem 0;
}

.sp-google-auth-button {
  width: 100%;
  min-height: 56px;
  padding: 0.8rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  border: 1.5px solid #c7d4e8;
  border-radius: 16px;
  color: #172554;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow: 0 10px 24px rgba(23, 37, 84, 0.1), inset 0 1px 0 #ffffff;
  font-size: 1rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sp-google-auth-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #7da4e5;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.14), inset 0 1px 0 #ffffff;
}

.sp-google-auth-button:focus-visible {
  outline: 4px solid rgba(37, 99, 235, 0.26);
  outline-offset: 3px;
}

.sp-google-auth-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.sp-google-mark {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border: 1px solid #e3e9f2;
  border-radius: 50%;
  color: transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(from -35deg, #4285f4 0 25%, #34a853 0 48%, #fbbc05 0 72%, #ea4335 0) border-box;
  -webkit-background-clip: padding-box, border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 5px 12px rgba(23, 37, 84, 0.08);
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  position: relative;
}

.sp-google-mark::after {
  content: "G";
  color: #4285f4;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.sp-auth-divider {
  display: grid;
  grid-template-columns: minmax(22px, 1fr) auto minmax(22px, 1fr);
  align-items: center;
  gap: 0.7rem;
  color: #718096;
}

.sp-auth-divider > span {
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd7e8, transparent);
}

.sp-auth-divider small {
  font-size: 0.76rem;
  font-weight: 700;
}

.sp-google-completion-view {
  min-height: calc(100dvh - 92px);
  padding: clamp(1.25rem, 5vw, 4rem) 1rem;
  display: grid;
  place-items: center;
}

.sp-google-completion-card {
  width: min(100%, 540px);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  display: grid;
  gap: 1rem;
  border: 1px solid #c8d7ed;
  border-radius: 28px;
  color: #172033;
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.16), transparent 15rem),
    linear-gradient(155deg, #ffffff, #f2f6fd);
  box-shadow: 0 30px 80px rgba(23, 37, 84, 0.18), inset 0 1px 0 #ffffff;
  text-align: right;
}

.sp-google-completion-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.16);
}

.sp-google-completion-card > small {
  color: #1d4ed8;
  font-weight: 850;
}

.sp-google-completion-card h2 {
  margin: 0;
  color: #172554;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.2;
}

.sp-google-completion-card > p {
  margin: 0;
  color: #526174;
  font-size: 1rem;
  line-height: 1.65;
}

.sp-google-completion-card form {
  display: grid;
  gap: 0.95rem;
}

.sp-google-completion-card label {
  display: grid;
  gap: 0.42rem;
  color: #243757;
  font-weight: 800;
}

.sp-portal[data-premium30-active="true"] .sp-google-auth-button {
  border-color: rgba(212, 167, 44, 0.58);
  box-shadow: 0 12px 28px rgba(212, 167, 44, 0.14);
}

.sp-google-runtime-entry {
  position: absolute;
  z-index: 230;
  top: var(--runtime-google-top);
  left: var(--runtime-google-left);
  width: var(--runtime-google-width);
  display: grid;
  gap: 0.65rem;
  pointer-events: auto;
  direction: rtl;
}

.sp-google-runtime-entry[data-form-integrated="true"] {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sp-google-runtime-entry[hidden] {
  display: none !important;
}

.sp-google-runtime-entry-error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 12px;
  color: #991b1b;
  background: #fff1f2;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.45;
}

.sp-google-runtime-completion {
  position: fixed;
  inset: 0;
  z-index: 2147482600;
  min-height: 100dvh;
  padding: clamp(1rem, 4vw, 3rem);
  display: grid;
  place-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  direction: rtl;
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.28), transparent 24rem),
    rgba(231, 239, 251, 0.96);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.sp-google-runtime-completion .sp-google-completion-card {
  margin: auto;
}

.sp-google-runtime-completion input {
  width: 100%;
  min-height: 54px;
  padding: 0.78rem 0.9rem;
  border: 1px solid #c7d4e8;
  border-radius: 14px;
  color: #172033;
  background: #ffffff;
  font: inherit;
}

.sp-google-runtime-completion input:focus-visible {
  outline: 4px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
  border-color: #2563eb;
}

.sp-google-runtime-error {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 12px;
  color: #991b1b;
  background: #fff1f2;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .sp-google-runtime-completion {
    align-items: start;
    padding: max(1rem, env(safe-area-inset-top)) 0.75rem max(1rem, env(safe-area-inset-bottom));
  }

  .sp-google-runtime-completion .sp-google-completion-card {
    padding: 1.2rem;
    border-radius: 22px;
  }
}

/* Premium 30 checkout reuses the native Studio Pro registration and account
   flow. These markers only adapt its package copy and visual emphasis. */
.sp-portal[data-premium30-active="true"] .sp-login-card,
.sp-credit-pack-card.is-premium30-package {
  position: relative;
  overflow: hidden;
  border-color: rgba(212, 167, 44, 0.62) !important;
  box-shadow:
    0 24px 68px rgba(23, 37, 84, 0.2),
    0 0 0 3px rgba(244, 208, 111, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.sp-portal[data-premium30-active="true"] .sp-header {
  border-bottom-color: rgba(212, 167, 44, 0.42) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 208, 111, 0.15), transparent 18rem),
    linear-gradient(90deg, #eef4ff, #ffffff 48%, #fffaf0) !important;
}

.sp-portal[data-premium30-active="true"] .sp-brand {
  position: relative;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(212, 167, 44, 0.48);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(23, 37, 84, 0.1);
}

.sp-portal[data-premium30-active="true"] .sp-brand strong {
  color: #172554 !important;
}

.sp-portal[data-premium30-active="true"] .sp-brand::after {
  content: "30 קרדיטים · רכישה חד־פעמית";
  display: block;
  color: #9a6b0a;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: right;
}

.sp-portal[data-premium30-active="true"] .sp-kicker {
  color: #f4d06f !important;
  border-color: rgba(244, 208, 111, 0.52) !important;
  background: rgba(23, 37, 84, 0.46) !important;
}

[data-runtime-premium-highlight="true"]::after {
  content: attr(data-runtime-premium-title) "\A" attr(data-runtime-premium-subtitle);
  display: block;
  width: min(100%, 430px);
  margin: 1rem auto 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(244, 208, 111, 0.62);
  border-radius: 20px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 10%, rgba(96, 165, 250, 0.22), transparent 10rem),
    linear-gradient(135deg, #172554, #1d4ed8);
  box-shadow: 0 18px 44px rgba(23, 37, 84, 0.25);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 900;
  line-height: 1.55;
  text-align: center;
  white-space: pre-line;
}

.sp-credit-pack-card.is-premium30-package .sp-price-inline {
  border-color: rgba(212, 167, 44, 0.54) !important;
  background: linear-gradient(135deg, rgba(244, 208, 111, 0.15), rgba(29, 78, 216, 0.09)) !important;
}

.sp-portal[data-premium30-active="true"] .sp-primary,
.sp-portal[data-premium30-active="true"] .sp-email-login-button {
  border-color: #d4a72c !important;
  color: #172554 !important;
  background: linear-gradient(135deg, #f4d06f, #d4a72c) !important;
  box-shadow: 0 15px 34px rgba(212, 167, 44, 0.3) !important;
}

/* Premium details route. It mirrors the confident two-column Studio Pro sales
   page while remaining isolated from the existing React application. */
#tool-runtime-safe-layer .runtime-premium-page {
  position: absolute;
  z-index: 165;
  inset: 0;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  color: #172033;
  background:
    radial-gradient(circle at 10% 12%, rgba(96, 165, 250, 0.24), transparent 28rem),
    radial-gradient(circle at 92% 82%, rgba(212, 167, 44, 0.13), transparent 24rem),
    linear-gradient(180deg, #e8f0ff, #f7f9fe 50%, #e8eef9);
  font-family: inherit;
  direction: rtl;
}

.runtime-premium-page * {
  box-sizing: border-box;
}

.runtime-premium-header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
  padding: 0.85rem max(1rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(212, 167, 44, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(30, 64, 175, 0.08);
  backdrop-filter: blur(18px);
}

.runtime-premium-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.runtime-premium-brand > span:first-child {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 1px solid rgba(244, 208, 111, 0.7);
  border-radius: 17px;
  color: #ffffff;
  background: linear-gradient(145deg, #172554, #1d4ed8 72%, #3b82f6);
  box-shadow:
    0 12px 28px rgba(29, 78, 216, 0.28),
    0 0 0 4px rgba(212, 167, 44, 0.09);
  font-size: 1.4rem;
  font-weight: 900;
}

.runtime-premium-brand > span:last-child {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.runtime-premium-brand strong {
  color: #172554;
  font-size: 1rem;
  font-weight: 950;
}

.runtime-premium-brand small {
  overflow: hidden;
  color: #526174;
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-premium-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(212, 167, 44, 0.48);
  border-radius: 16px;
  color: #172554;
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(30, 64, 175, 0.1);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.runtime-premium-close:hover {
  color: #ffffff;
  border-color: #172554;
  background: #172554;
}

.runtime-premium-close:focus-visible,
.runtime-premium-primary:focus-visible,
.runtime-premium-back:focus-visible {
  outline: 4px solid #d4a72c;
  outline-offset: 3px;
}

.runtime-premium-main {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  align-items: stretch;
  gap: clamp(1.2rem, 3vw, 2rem);
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 max(3rem, calc(env(safe-area-inset-bottom) + 1.25rem));
}

.runtime-premium-hero,
.runtime-premium-action-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: clamp(26px, 3vw, 36px);
}

.runtime-premium-hero {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  min-height: 650px;
  padding: clamp(2rem, 5vw, 4.4rem);
  border: 1px solid rgba(244, 208, 111, 0.58);
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 8%, rgba(96, 165, 250, 0.32), transparent 22rem),
    radial-gradient(circle at 8% 92%, rgba(244, 208, 111, 0.18), transparent 18rem),
    linear-gradient(145deg, #172554 0%, #1e3a8a 48%, #1d4ed8 100%);
  box-shadow:
    0 34px 84px rgba(23, 37, 84, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.runtime-premium-hero::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  left: -8rem;
  bottom: -10rem;
  border: 1px solid rgba(244, 208, 111, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.runtime-premium-badge {
  justify-self: start;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(244, 208, 111, 0.68);
  border-radius: 999px;
  color: #fff3c4;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 900;
}

.runtime-premium-hero h1 {
  max-width: 700px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 5.5vw, 4.9rem);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.runtime-premium-hero > p {
  max-width: 650px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.75;
}

.runtime-premium-price {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  width: fit-content;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(244, 208, 111, 0.56);
  border-radius: 22px;
  background: rgba(23, 37, 84, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.runtime-premium-price strong {
  color: #f4d06f;
  font-size: clamp(3.6rem, 7vw, 5.5rem);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.runtime-premium-price span {
  padding-bottom: 0.2rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.45;
}

.runtime-premium-hero ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.runtime-premium-hero li {
  position: relative;
  padding-right: 1.65rem;
  color: #eff6ff;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.5;
}

.runtime-premium-hero li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: #f4d06f;
  font-weight: 950;
}

.runtime-premium-action-panel {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid rgba(49, 76, 132, 0.2);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 26px 64px rgba(30, 64, 175, 0.14),
    inset 0 1px 0 #ffffff;
}

.runtime-premium-action-panel > span {
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 900;
}

.runtime-premium-action-panel h2 {
  margin: 0;
  color: #172554;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.runtime-premium-action-panel > p {
  margin: 0;
  color: #526174;
  font-size: 1rem;
  line-height: 1.7;
}

.runtime-premium-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.4rem 0;
}

.runtime-premium-value-grid > div {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  min-height: 98px;
  padding: 0.7rem 0.55rem;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 17px;
  background: #f5f8ff;
  text-align: center;
}

.runtime-premium-value-grid strong {
  color: #1d4ed8;
  font-size: 1.2rem;
  font-weight: 950;
}

.runtime-premium-value-grid small {
  color: #526174;
  font-size: 0.69rem;
  font-weight: 750;
  line-height: 1.35;
}

.runtime-premium-primary,
.runtime-premium-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.runtime-premium-primary {
  border: 1px solid #d4a72c;
  color: #172554;
  background: linear-gradient(135deg, #f4d06f, #d4a72c);
  box-shadow: 0 16px 32px rgba(212, 167, 44, 0.26);
}

.runtime-premium-back {
  border: 1px solid rgba(29, 78, 216, 0.28);
  color: #1d4ed8;
  background: #ffffff;
}

.runtime-premium-primary:hover,
.runtime-premium-back:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.runtime-premium-note {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.55;
  text-align: center;
}

@keyframes checkout-requirement-pulse {
  0%, 100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-3px);
  }
}

@keyframes runtime-pricing-highlight {
  0% {
    transform: translateY(6px) scale(0.985);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .checkout-card[data-runtime-upsell-space="true"] {
    padding-bottom: calc(var(--runtime-upsell-height, 320px) + 28px) !important;
  }

  [data-runtime-primary-preview="true"] {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 64px !important;
    padding-inline: 1.25rem !important;
  }

  .studio-pro-upsell-card {
    gap: 0.65rem;
    padding: 0.9rem;
    border-radius: 17px;
  }

  .native-checkout-recommendations {
    gap: 0.65rem;
    margin-top: 0.4rem;
    padding-top: 0;
  }

  .studio-pro-upsell-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
  }

  .studio-pro-upsell-copy strong {
    font-size: 0.94rem;
  }

  .studio-pro-upsell-copy > span {
    font-size: 0.75rem;
  }

  .runtime-pricing-header {
    min-height: 76px;
    padding: 0.7rem 0.85rem;
  }

  .runtime-pricing-brand > span:first-child {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .runtime-pricing-brand small {
    max-width: 11rem;
  }

  .runtime-pricing-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .runtime-pricing-main {
    width: min(100% - 1.25rem, 1180px);
    padding-top: 2rem;
  }

  .runtime-pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .runtime-pricing-card {
    border-radius: 21px;
  }

  .runtime-pricing-card-heading b {
    position: static;
    justify-self: start;
    margin-top: 0.4rem;
  }

  .runtime-pricing-card[data-highlighted="true"]::after {
    position: static;
    justify-self: start;
    grid-row: 1;
    margin: -0.35rem 0 0.2rem;
  }

  .runtime-premium-header {
    min-height: 76px;
    padding: 0.7rem 0.85rem;
  }

  .runtime-premium-brand > span:first-child,
  .runtime-premium-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .runtime-premium-brand small {
    max-width: 10rem;
  }

  .runtime-premium-main {
    grid-template-columns: minmax(0, 1fr);
    width: min(100% - 1.25rem, 1180px);
    padding-top: 1rem;
  }

  .runtime-premium-hero,
  .runtime-premium-action-panel {
    border-radius: 23px;
  }

  .runtime-premium-hero {
    min-height: 0;
    padding: 2rem 1.3rem;
  }

  .runtime-premium-price {
    width: 100%;
  }

  .runtime-premium-value-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .runtime-premium-value-grid > div {
    min-height: 78px;
  }

  .sp-portal[data-premium30-active="true"] .sp-brand {
    max-width: min(72vw, 260px);
    padding: 0.35rem 0.55rem;
  }

  .sp-portal[data-premium30-active="true"] .sp-brand::after {
    font-size: 0.59rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-panel[data-checkout-missing="true"] {
    animation: none;
  }

  .studio-pro-upsell-card {
    transition: none;
  }

  [data-runtime-primary-preview="true"],
  .runtime-pricing-card,
  .runtime-pricing-action {
    transition: none !important;
  }

  .runtime-pricing-card[data-highlighted="true"] {
    animation: none;
  }

  .runtime-premium-primary,
  .runtime-premium-back {
    transition: none !important;
  }
}

/* Keep the accessibility control above the checkout and recommendation layers.
   It remains on the right edge and clears the mobile safe area. */
.support-whatsapp {
  z-index: 500 !important;
}

.accessibility-widget,
.premium-studio-theme .accessibility-widget {
  position: fixed !important;
  z-index: 520 !important;
  isolation: isolate;
}

.accessibility-panel,
.premium-studio-theme .accessibility-panel {
  z-index: 521 !important;
}

@media (max-width: 640px) {
  .accessibility-widget,
  .premium-studio-theme .accessibility-widget {
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}
