/*
 * Shift Go premium homepage compatibility layer.
 * Loaded after the original design styles so the visual identity stays intact
 * while sections, navigation and floating panels fit modern phone viewports.
 */

body[data-sg-page="premium-home"] {
  --sg-safe-top: env(safe-area-inset-top, 0px);
  --sg-safe-right: env(safe-area-inset-right, 0px);
  --sg-safe-bottom: env(safe-area-inset-bottom, 0px);
  --sg-safe-left: env(safe-area-inset-left, 0px);
  --sg-mobile-bar-height: 4rem;
}

body[data-sg-page="premium-home"],
body[data-sg-page="premium-home"] #main-content,
body[data-sg-page="premium-home"] section {
  max-width: 100%;
}

body[data-sg-page="premium-home"] :where(.container, .hero-grid, .hero-content, .hero-ops-stage, .dog-attraction-pack, .dog-motion-stage) {
  min-width: 0;
}

body[data-sg-page="premium-home"].sg-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body[data-sg-page="premium-home"].route-help-visible :where(.activity-popup, .chat-widget, .whatsapp-widget) {
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-sg-page="premium-home"] :where(.spin-popup, .exit-popup, .chat-widget, .activity-popup, .missed-toast, .referral-widget) {
  box-sizing: border-box;
  min-width: 0;
}

body[data-sg-page="premium-home"] :where(.spin-popup, .exit-popup, .chat-widget, .activity-popup, .missed-toast, .referral-widget) * {
  min-width: 0;
  max-width: 100%;
}

body[data-sg-page="premium-home"] :where(.spin-overlay, .exit-popup-overlay) {
  padding:
    max(1rem, var(--sg-safe-top))
    max(1rem, var(--sg-safe-right))
    max(1rem, var(--sg-safe-bottom))
    max(1rem, var(--sg-safe-left));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

body[data-sg-page="premium-home"] :where(.spin-popup, .exit-popup) {
  width: min(100%, 34.5rem);
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - max(2rem, var(--sg-safe-top)) - max(2rem, var(--sg-safe-bottom)));
  margin: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body[data-sg-page="premium-home"] .spin-popup {
  width: min(100%, 30rem);
}

body[data-sg-page="premium-home"] .exit-popup-close {
  z-index: 5;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
}

body[data-sg-page="premium-home"] .spin-content,
body[data-sg-page="premium-home"] .spin-result {
  width: 100%;
}

body[data-sg-page="premium-home"] .spin-wheel-container {
  width: min(15.625rem, 72vw);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
}

body[data-sg-page="premium-home"] :where(.spin-popup h2, .spin-popup p, .exit-popup h2, .exit-popup p, .popup-title) {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
  white-space: normal;
}

body[data-sg-page="premium-home"] :where(.spin-input, #spin-btn, #spin-claim, #exit-cta) {
  width: 100%;
  max-width: 100%;
  white-space: normal;
}

body[data-sg-page="premium-home"] .activity-popup {
  right: auto;
  width: min(22rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem) !important;
}

body[data-sg-page="premium-home"] .missed-toast {
  width: min(38rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem) !important;
  white-space: normal;
}

body[data-sg-page="premium-home"] .missed-toast > span {
  flex: 1 1 auto;
}

body[data-sg-page="premium-home"] .missed-close {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
}

body[data-sg-page="premium-home"] .chat-widget.open {
  max-height: calc(100vh - 7rem);
  max-height: calc(100dvh - 7rem - var(--sg-safe-bottom));
}

body[data-sg-page="premium-home"] .chat-body.open {
  max-height: calc(100vh - 12rem);
  max-height: min(25rem, calc(100dvh - 12rem - var(--sg-safe-bottom)));
}

body[data-sg-page="premium-home"] .chat-messages {
  height: min(16.25rem, calc(100vh - 19rem));
  height: min(16.25rem, calc(100dvh - 19rem - var(--sg-safe-bottom)));
  min-height: 8rem;
}

body[data-sg-page="premium-home"] .chat-input-wrap input {
  flex: 1 1 auto;
  width: 1%;
}

body[data-sg-page="premium-home"] .chat-input-wrap button {
  flex: 0 0 3.5rem;
}

body[data-sg-page="premium-home"] .comparison-wrapper,
body[data-sg-page="premium-home"] .table-container {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body[data-sg-page="premium-home"] :where(.reviews-overflow, .logo-marquee, .ticker-bar) {
  max-width: 100%;
  overflow: hidden;
}

body[data-sg-page="premium-home"] .service-standard {
  display: inline-flex;
  min-width: 11rem;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: var(--secondary);
  font-weight: 800;
  white-space: nowrap;
}

body[data-sg-page="premium-home"] .service-standard i {
  color: var(--primary);
  font-size: 1.35rem;
}

body[data-sg-page="premium-home"] :where(.review-card, .map-event, .contact-card, .price-card, .fleet-card) {
  overflow-wrap: anywhere;
}

body[data-sg-page="premium-home"] .form-group label {
  display: block;
  margin-bottom: 0.55rem;
}

body[data-sg-page="premium-home"] .activity-consent input {
  flex: 0 0 auto;
}

body[data-sg-page="premium-home"] .activity-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.5;
  cursor: pointer;
}

body[data-sg-page="premium-home"] .activity-consent input {
  width: 1.1rem !important;
  height: 1.1rem;
  margin: 0.12rem 0 0;
  padding: 0;
  accent-color: var(--primary);
}

body[data-sg-page="premium-home"] .activity-consent:focus-within {
  color: #fff;
}

body[data-sg-page="premium-home"] .activity-popup .text {
  display: grid;
  gap: 0.14rem;
  line-height: 1.35;
}

body[data-sg-page="premium-home"] .activity-popup .text > b:first-child {
  color: var(--secondary);
}

body[data-sg-page="premium-home"] .activity-popup .text > b:nth-child(2) {
  font-weight: 600;
}

body[data-sg-page="premium-home"] .activity-popup .text > span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

body[data-sg-page="premium-home"] .map-event-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

body[data-sg-page="premium-home"] .map-event-main,
body[data-sg-page="premium-home"] .map-event-meta {
  display: block;
  overflow-wrap: anywhere;
}

body[data-sg-page="premium-home"] .map-event-main strong {
  color: #fff;
}

body[data-sg-page="premium-home"] .map-event-meta {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
}

body[data-sg-page="premium-home"] .map-event.is-live-request {
  border-color: rgba(34, 197, 94, 0.28);
}

body[data-sg-page="premium-home"] .map-event.is-route-example .viewers-dot {
  background: rgba(148, 163, 184, 0.8);
  animation: none;
}

body[data-sg-page="premium-home"] .form-group select option {
  color: var(--secondary);
  background: var(--white);
}

body[data-sg-page="premium-home"] .comparison-wrapper:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 992px) {
  body[data-sg-page="premium-home"] section {
    padding-block: clamp(4rem, 9vw, 5.5rem);
  }

  body[data-sg-page="premium-home"] .section-title {
    margin-bottom: clamp(2.5rem, 7vw, 4rem);
  }

  body[data-sg-page="premium-home"] .section-title h2 {
    font-size: clamp(2rem, 6.5vw, 2.8rem);
  }

  body[data-sg-page="premium-home"] :where(.pricing-grid, .fleet-grid, .video-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-sg-page="premium-home"] .nav-toggle {
    position: relative;
    z-index: 1402;
  }

  body[data-sg-page="premium-home"] .nav-links {
    right: 0;
    z-index: 1401;
    max-width: min(88vw, 22rem);
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 300ms ease;
  }

  body[data-sg-page="premium-home"] .nav-links.active {
    right: 0;
    transform: translateX(0);
  }

  body[data-sg-page="premium-home"].nav-open {
    overflow: hidden !important;
  }

  body[data-sg-page="premium-home"].nav-open::after {
    position: fixed;
    inset: 0;
    z-index: 998;
    content: "";
    background: rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(2px);
  }

  body[data-sg-page="premium-home"].nav-open :where(.chat-widget, .whatsapp-widget, .activity-popup) {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 768px) {
  body[data-sg-page="premium-home"] {
    padding-bottom: calc(var(--sg-mobile-bar-height) + var(--sg-safe-bottom));
  }

  body[data-sg-page="premium-home"] .promo-banner {
    min-height: 2.75rem;
    padding:
      max(0.65rem, var(--sg-safe-top))
      max(0.9rem, var(--sg-safe-right))
      0.65rem
      max(0.9rem, var(--sg-safe-left));
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  body[data-sg-page="premium-home"] #main-header {
    padding-block: 0.72rem;
  }

  body[data-sg-page="premium-home"] .nav-container {
    width: 100%;
    gap: 0.75rem;
  }

  body[data-sg-page="premium-home"] .logo {
    flex: 0 1 auto;
  }

  body[data-sg-page="premium-home"] .nav-toggle {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.75rem;
  }

  body[data-sg-page="premium-home"] .nav-links {
    top: 0;
    right: 0;
    width: min(88vw, 22rem);
    height: 100dvh;
    max-width: 100%;
    padding:
      max(6rem, calc(4.5rem + var(--sg-safe-top)))
      max(1.25rem, var(--sg-safe-right))
      max(2rem, calc(1rem + var(--sg-safe-bottom)))
      max(1.25rem, var(--sg-safe-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(105%);
    transition: transform 300ms ease;
  }

  body[data-sg-page="premium-home"] .nav-links.active {
    right: 0;
    transform: translateX(0);
  }

  body[data-sg-page="premium-home"] .nav-links a {
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.9rem;
  }

  body[data-sg-page="premium-home"].nav-open {
    overflow: hidden !important;
  }

  body[data-sg-page="premium-home"] .hero {
    min-height: auto;
    padding-top: clamp(2.25rem, 7vw, 3.25rem);
    padding-bottom: 3.5rem;
  }

  body[data-sg-page="premium-home"] :where(.cursor-dot, .cursor-outline) {
    display: none !important;
  }

  body[data-sg-page="premium-home"] .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  body[data-sg-page="premium-home"] .hero-content {
    width: 100%;
    text-align: center;
  }

  body[data-sg-page="premium-home"] .hero-content > div:first-child {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }

  body[data-sg-page="premium-home"] .hero-content h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.15rem, 10.4vw, 3rem);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  body[data-sg-page="premium-home"] .hero-content > p {
    font-size: clamp(1rem, 4.4vw, 1.12rem);
  }

  body[data-sg-page="premium-home"] .dog-attraction-pack {
    width: min(21rem, 94vw);
    height: clamp(9.35rem, 38vw, 11rem);
    margin: 0.15rem auto 1.1rem;
    overflow: visible;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  body[data-sg-page="premium-home"] .dog-motion-stage {
    left: 50%;
    bottom: 0.15rem;
    width: min(18.5rem, 88vw);
    height: 100%;
    transform: translateX(-50%);
  }

  body[data-sg-page="premium-home"] .puppy-character {
    width: clamp(5.9rem, 25vw, 7rem);
    height: clamp(8.1rem, 35vw, 9.65rem);
  }

  body[data-sg-page="premium-home"] .dog-left {
    left: 0.25rem;
  }

  body[data-sg-page="premium-home"] .dog-middle {
    left: calc(50% - clamp(3.15rem, 13vw, 3.65rem));
    width: clamp(6.3rem, 26vw, 7.3rem);
    height: clamp(8.45rem, 36vw, 10rem);
  }

  body[data-sg-page="premium-home"] .dog-right {
    right: 0.25rem;
    left: auto;
  }

  body[data-sg-page="premium-home"] .dog-bark-bubble {
    top: 0.15rem;
    right: 0.2rem;
    left: auto;
    max-width: min(8.5rem, 42vw);
    white-space: nowrap;
  }

  body[data-sg-page="premium-home"] .dog-bark-wave {
    top: 3.15rem;
    right: 2.15rem;
    left: auto;
  }

  body[data-sg-page="premium-home"] .bark-wave-two {
    top: 2.7rem;
    right: 1.7rem;
    left: auto;
  }

  body[data-sg-page="premium-home"] .bark-wave-three {
    top: 2.25rem;
    right: 1.2rem;
    left: auto;
  }

  body[data-sg-page="premium-home"] .hero-cta {
    width: 100%;
    align-items: stretch;
  }

  body[data-sg-page="premium-home"] .hero-cta .btn {
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
    justify-content: center;
    white-space: normal;
  }

  body[data-sg-page="premium-home"] .hero-trust {
    width: 100%;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  body[data-sg-page="premium-home"] .hero-ops-stage {
    width: 100%;
    max-width: 34rem;
    min-height: 27rem;
    margin-inline: auto;
    overflow: hidden;
  }

  body[data-sg-page="premium-home"] .ops-card-mini {
    width: min(92%, 19rem);
    min-width: 0;
  }

  body[data-sg-page="premium-home"] :where(.services-grid, .seo-service-grid, .safety-grid, .heritage-grid, .contact-grid, .pricing-grid, .fleet-grid, .video-grid, .guarantee-grid, .ba-grid, .horror-grid, .live-map-container) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-sg-page="premium-home"] .form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.15rem;
  }

  body[data-sg-page="premium-home"] .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-sg-page="premium-home"] .contact-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-sg-page="premium-home"] :where(.service-card, .price-card, .guarantee-item, .ba-card, .horror-card, .contact-card) {
    width: 100%;
    max-width: 100%;
  }

  body[data-sg-page="premium-home"] .price-card.popular {
    transform: none;
  }

  body[data-sg-page="premium-home"] .review-card {
    width: min(82vw, 20rem);
    min-width: min(82vw, 20rem);
    padding: clamp(1.25rem, 5vw, 2rem);
  }

  body[data-sg-page="premium-home"] .fleet-overlay {
    opacity: 1;
    transform: none;
  }

  body[data-sg-page="premium-home"] .process-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  body[data-sg-page="premium-home"] .process-item::after {
    display: none;
  }

  body[data-sg-page="premium-home"] .calc-wrapper,
  body[data-sg-page="premium-home"] .form-wrapper,
  body[data-sg-page="premium-home"] .lead-magnet-card {
    width: 100%;
    max-width: 100%;
    padding: clamp(1.25rem, 5vw, 2rem);
  }

  body[data-sg-page="premium-home"] :where(.magnet-content h2, .lead-magnet-card h2) {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  body[data-sg-page="premium-home"] .lead-magnet-card > .reveal {
    text-align: center !important;
  }

  body[data-sg-page="premium-home"] .lead-magnet-card img {
    width: min(80%, 22rem) !important;
    margin-inline: auto;
  }

  body[data-sg-page="premium-home"] :where(.magnet-form, .callback-form) {
    width: 100%;
    max-width: 100%;
  }

  body[data-sg-page="premium-home"] :where(.magnet-form input, .callback-form input, .form-group input, .form-group select, .chat-input-wrap input) {
    min-width: 0;
    font-size: 1rem;
  }

  body[data-sg-page="premium-home"] .callback-inner,
  body[data-sg-page="premium-home"] .callback-form {
    width: 100%;
  }

  body[data-sg-page="premium-home"] .callback-form input,
  body[data-sg-page="premium-home"] .callback-form .btn {
    width: 100%;
  }

  body[data-sg-page="premium-home"] .logo-marquee {
    max-width: 100%;
  }

  body[data-sg-page="premium-home"] .logo-track {
    gap: 2rem;
  }

  body[data-sg-page="premium-home"] .mobile-cta-bar {
    min-height: calc(var(--sg-mobile-bar-height) + var(--sg-safe-bottom));
    padding-bottom: var(--sg-safe-bottom);
    z-index: 1100;
  }

  body[data-sg-page="premium-home"] :where(.mobile-cta-call, .mobile-cta-quote) {
    min-height: var(--sg-mobile-bar-height);
    padding: 0.9rem 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.9rem;
  }

  body[data-sg-page="premium-home"] .surge-banner.visible {
    bottom: calc(var(--sg-mobile-bar-height) + var(--sg-safe-bottom));
  }

  body[data-sg-page="premium-home"] .surge-banner .container {
    padding-inline: max(0.8rem, var(--sg-safe-left), var(--sg-safe-right)) !important;
    gap: 0.55rem !important;
  }

  body[data-sg-page="premium-home"] .activity-popup {
    left: max(0.75rem, var(--sg-safe-left)) !important;
    right: max(0.75rem, var(--sg-safe-right)) !important;
    bottom: calc(var(--sg-mobile-bar-height) + var(--sg-safe-bottom) + 0.75rem) !important;
    width: auto;
    max-width: none !important;
    padding: 0.85rem;
    gap: 0.7rem;
    z-index: 1120;
  }

  body[data-sg-page="premium-home"].route-help-visible :where(.activity-popup, .chat-widget, .whatsapp-widget) {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body[data-sg-page="premium-home"] .map-india {
    width: min(100%, 20rem);
    margin-inline: auto;
  }

  body[data-sg-page="premium-home"] .map-event {
    padding: 0.9rem 1rem;
    align-items: flex-start;
  }

  body[data-sg-page="premium-home"] .faq-question {
    padding: 1.1rem;
  }

  body[data-sg-page="premium-home"] .faq-answer {
    padding: 0 1.1rem 1.1rem;
  }

  body[data-sg-page="premium-home"] .comp-cell {
    padding: 1rem;
  }

  body[data-sg-page="premium-home"] .whatsapp-widget {
    left: max(0.75rem, var(--sg-safe-left)) !important;
    right: auto !important;
    bottom: calc(var(--sg-mobile-bar-height) + var(--sg-safe-bottom) + 0.75rem) !important;
  }

  body[data-sg-page="premium-home"] .chat-widget,
  body[data-sg-page="premium-home"] .chat-widget.open {
    right: max(0.75rem, var(--sg-safe-right));
    bottom: calc(var(--sg-mobile-bar-height) + var(--sg-safe-bottom) + 0.75rem);
  }

  body[data-sg-page="premium-home"] .chat-widget.open {
    left: max(0.75rem, var(--sg-safe-left));
    width: auto;
    max-width: none !important;
  }

  body[data-sg-page="premium-home"] .missed-toast.visible {
    top: calc(var(--sg-safe-top) + 7rem);
  }

  body[data-sg-page="premium-home"] .referral-widget {
    position: relative;
    inset: auto;
    display: block;
    width: calc(100% - 2rem);
    max-width: 31rem !important;
    margin: 1.5rem auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  body[data-sg-page="premium-home"] .referral-header {
    min-height: 3rem;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  body[data-sg-page="premium-home"] .referral-body.open + * {
    min-width: 0;
  }

  body[data-sg-page="premium-home"] .spin-popup {
    padding: 2.6rem clamp(1.1rem, 5vw, 2rem) clamp(1.25rem, 5vw, 2rem);
    border-radius: clamp(1rem, 5vw, var(--radius-lg));
  }

  body[data-sg-page="premium-home"] .exit-popup {
    padding: 3.5rem clamp(1.1rem, 5vw, 2rem) clamp(1.25rem, 5vw, 2rem);
    border-radius: clamp(1rem, 5vw, var(--radius-lg));
  }

  body[data-sg-page="premium-home"] .exit-popup-close {
    top: 0.65rem;
    right: 0.65rem;
  }

  body[data-sg-page="premium-home"] .exit-popup .exit-discount {
    font-size: clamp(2.75rem, 15vw, 4rem);
  }
}

@media (max-width: 420px) {
  body[data-sg-page="premium-home"] .container {
    padding-inline: 0.9rem !important;
  }

  body[data-sg-page="premium-home"] .hero-ops-stage {
    min-height: 23rem;
  }

  body[data-sg-page="premium-home"] .dog-attraction-pack {
    width: min(19.5rem, 94vw);
    height: clamp(8.75rem, 37vw, 9.75rem);
  }

  body[data-sg-page="premium-home"] .dog-motion-stage {
    width: min(17.25rem, 90vw);
  }

  body[data-sg-page="premium-home"] .puppy-character {
    width: clamp(5.45rem, 24vw, 6rem);
    height: clamp(7.7rem, 34vw, 8.45rem);
  }

  body[data-sg-page="premium-home"] .dog-left {
    left: 0.05rem;
  }

  body[data-sg-page="premium-home"] .dog-middle {
    left: calc(50% - clamp(2.95rem, 12vw, 3.1rem));
    width: clamp(5.9rem, 25vw, 6.2rem);
    height: clamp(8rem, 35vw, 8.7rem);
  }

  body[data-sg-page="premium-home"] .dog-right {
    right: 0.05rem;
  }

  body[data-sg-page="premium-home"] .dog-bark-bubble {
    right: 0;
    top: 0;
    font-size: 0.68rem;
    padding: 0.4rem 0.58rem;
  }

  body[data-sg-page="premium-home"] .dog-bark-wave {
    right: 1.95rem;
    top: 3rem;
  }

  body[data-sg-page="premium-home"] .ops-card-main {
    width: 100%;
  }

  body[data-sg-page="premium-home"] .spin-wheel-container {
    width: min(12.5rem, 62vw);
    margin-bottom: 1.15rem;
  }

  body[data-sg-page="premium-home"] .spin-popup h2,
  body[data-sg-page="premium-home"] .exit-popup h2,
  body[data-sg-page="premium-home"] .popup-title {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }

  body[data-sg-page="premium-home"] .spin-popup p:not(.popup-title),
  body[data-sg-page="premium-home"] .exit-popup p:not(.popup-title) {
    margin-bottom: 1rem !important;
    font-size: 0.88rem;
  }

  body[data-sg-page="premium-home"] :where(.spin-input, #spin-btn, #spin-claim, #exit-cta) {
    min-height: 3rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
  }

  body[data-sg-page="premium-home"] .stats-grid {
    gap: 0.85rem !important;
  }

  body[data-sg-page="premium-home"] .stat-item .stat-icon {
    font-size: 1.85rem;
  }

  body[data-sg-page="premium-home"] :where(.service-card, .price-card, .guarantee-item, .horror-card, .contact-card, .ba-card-body) {
    padding: 1.25rem;
  }

  body[data-sg-page="premium-home"] .mobile-cta-bar :where(.mobile-cta-call, .mobile-cta-quote) {
    font-size: 0.82rem;
  }
}

/* Stack the planning cards cleanly on phone screens. */
@media (max-width: 768px) {
  body[data-sg-page="premium-home"] .hero-dashboard-only {
    display: flex;
    min-height: auto;
    gap: 0.9rem;
    overflow: hidden;
    padding: 1.35rem 0.2rem;
  }

  body[data-sg-page="premium-home"] .hero-dashboard-only .ops-card {
    position: relative;
    inset: auto;
    transform: none;
    animation: none;
    margin: 0;
  }

  body[data-sg-page="premium-home"] .hero-dashboard-only .ops-card-top {
    width: min(19rem, 88%);
    align-self: flex-start;
  }

  body[data-sg-page="premium-home"] .hero-dashboard-only .ops-card-bottom {
    width: min(19rem, 88%);
    align-self: flex-end;
  }

  body[data-sg-page="premium-home"] .hero-dashboard-only .ops-card-main {
    width: 100%;
    align-self: center;
  }
}

@media (max-width: 420px) {
  body[data-sg-page="premium-home"] .hero-dashboard-only {
    padding-inline: 0;
  }

  body[data-sg-page="premium-home"] .hero-dashboard-only .ops-card-mini {
    width: min(92%, 17.5rem);
    padding: 0.72rem 0.78rem;
  }

  body[data-sg-page="premium-home"] .hero-dashboard-only .ops-card-main {
    padding: 1rem;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  body[data-sg-page="premium-home"] :where(.spin-overlay, .exit-popup-overlay) {
    align-items: flex-start;
  }

  body[data-sg-page="premium-home"] .spin-wheel-container {
    width: 9rem;
    margin-bottom: 0.75rem;
  }

  body[data-sg-page="premium-home"] .spin-popup,
  body[data-sg-page="premium-home"] .exit-popup {
    padding-block: 3rem 1rem;
  }
}

@media (hover: none), (pointer: coarse) {
  body[data-sg-page="premium-home"] :where(.cursor-dot, .cursor-outline) {
    display: none !important;
  }

  body[data-sg-page="premium-home"] :where(.service-card, .price-card, .guarantee-item, .horror-card, .ba-card, .contact-card):hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-sg-page="premium-home"] :where(.spin-popup, .exit-popup, .activity-popup, .missed-toast, .chat-widget, .mobile-cta-bar, .surge-banner) {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body[data-sg-page="premium-home"] :where(.promo-banner, .scroll-progress, .activity-popup, .whatsapp-widget, .mobile-cta-bar, .referral-widget, .missed-toast, .spin-overlay, .chat-widget, .surge-banner, .exit-popup-overlay) {
    display: none !important;
  }
}
