/* Premium Glassmorphic Modal Dialog Styles */

/* Brand palette (Squarespace monochrome) — single source for all accents */
:root {
  --sqsp-ink: #ffffff;
  --sqsp-ink-soft: rgba(255, 255, 255, 0.72);
  --sqsp-ink-mid: rgba(255, 255, 255, 0.45);
  --sqsp-ink-faint: rgba(255, 255, 255, 0.14);
  --sqsp-gray: #898989;
  --sqsp-gray-light: #dddddd;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Mobile menu drawer must be visible on small screens; the vendor stylesheet
   hides it with display:none as part of a desktop-only rule that leaks. */
@media (max-width: 1279px) {
  .global-navigation__mobile-menu-content,
  .sqsp-modal-card,
  .dashboard-card {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .global-navigation__mobile-menu-content::-webkit-scrollbar,
  .sqsp-modal-card::-webkit-scrollbar,
  .dashboard-card::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .global-navigation__mobile-menu {
    display: flex !important;
    height: 100vh !important;
    height: 100dvh !important;
  }
}

/* Modal Backdrop */
.sqsp-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 999999 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

/* The vendor stylesheet can re-assert pointer-events on the backdrop; keep the
   hidden state unclickable so it never swallows taps on the page below. */
.sqsp-modal-overlay:not(.is-active) {
  pointer-events: none !important;
}

.sqsp-modal-overlay.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Modal Content Card */
.sqsp-modal-card {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  width: 90%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-sizing: border-box;
  position: relative;
  color: #ffffff;
  transform: scale(0.9) translateY(16px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-modal-overlay.is-active .sqsp-modal-card {
  transform: scale(1) translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Exit: settle down-and-out instead of vanishing (added by JS on close) */
.sqsp-modal-overlay.is-closing .sqsp-modal-card {
  transform: scale(0.96) translateY(10px) !important;
  opacity: 0 !important;
  transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1), opacity 0.2s ease !important;
}

.sqsp-modal-overlay.is-closing {
  transition: opacity 0.28s ease, visibility 0.28s ease !important;
}

/* Content stagger: children of an opening modal rise in sequence.
   JS toggles .stagger-in on the card; reduced-motion users skip it via the
   global rule at the bottom of this file. */
.sqsp-modal-card.stagger-in > * {
  animation: modalChildRise 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sqsp-modal-card.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.sqsp-modal-card.stagger-in > *:nth-child(2) { animation-delay: 0.10s; }
.sqsp-modal-card.stagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.sqsp-modal-card.stagger-in > *:nth-child(4) { animation-delay: 0.20s; }
.sqsp-modal-card.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }
.sqsp-modal-card.stagger-in > *:nth-child(6) { animation-delay: 0.30s; }
.sqsp-modal-card.stagger-in > *:nth-child(7) { animation-delay: 0.35s; }
.sqsp-modal-card.stagger-in > *:nth-child(n+8) { animation-delay: 0.40s; }

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

/* Close Button */
.sqsp-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: color 0.2s ease;
}

.sqsp-modal-close:hover {
  color: #ffffff;
}

.sqsp-modal-close:focus-visible,
.sqsp-modal-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* Modal Typography */
.sqsp-modal-title {
  color: #ffffff;
  font-size: 26px;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.sqsp-modal-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Form Styles */
.sqsp-modal-form-group {
  margin-bottom: 20px;
}

.sqsp-modal-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
  font-weight: 600;
}

.sqsp-modal-input, .sqsp-modal-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.sqsp-modal-input:focus, .sqsp-modal-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 0 18px rgba(255, 255, 255, 0.06);
}

/* Select: match inputs, custom chevron, theme-safe options */
.sqsp-modal-select-wrapper {
  position: relative;
}

.sqsp-modal-select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.sqsp-modal-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

/* Unselected (placeholder) state — applied via JS */
.sqsp-modal-select.is-placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Native dropdown list must stay readable in both light & dark OS themes */
.sqsp-modal-select option {
  background: #1c1c1e;
  color: #ffffff;
}

/* Echo of the email entered on step 1 */
.sqsp-modal-email-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 1px 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  word-break: break-all;
}

/* Action row: secondary back button next to primary submit */
.sqsp-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.sqsp-modal-actions .sqsp-modal-btn {
  flex: 1;
  margin-top: 0;
}

.sqsp-modal-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sqsp-modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

/* Error State */
.sqsp-modal-input.has-error,
.sqsp-modal-select.has-error {
  border-color: #ff3b30 !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
  animation: inputErrorPulse 0.4s ease;
}

@keyframes inputErrorPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.35); }
  100% { box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12); }
}

.sqsp-modal-error-message {
  color: #ff3b30;
  font-size: 12px;
  margin-top: 6px;
  display: none;
  animation: errorSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes errorSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Notice / Warning banner for email lookup fallback */
.sqsp-modal-notice {
  display: flex;
  gap: 12px;
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 16px;
  margin-bottom: 20px;
  text-align: left;
  animation: sqspNoticeFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sqspNoticeFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sqsp-modal-notice-icon {
  flex: 0 0 auto;
  color: #ff9500;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sqsp-modal-notice-content {
  flex: 1;
  min-width: 0;
}

.sqsp-modal-notice-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.35;
}

.sqsp-modal-notice-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  margin-bottom: 12px;
}

.sqsp-modal-notice-btn {
  font-size: 12.5px !important;
  padding: 8px 14px !important;
  height: auto !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 7px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
}

.sqsp-modal-notice-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.faq-block__button {
  min-width: 44px !important;
  min-height: 44px !important;
  flex: 0 0 44px;
  margin: 0;
}

.faq-block__answer-wrapper {
  height: 0;
}

.faq-block__button:focus-visible,
.customer-quotes__prev-button:focus-visible,
.customer-quotes__next-button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* Field hint (e.g. where to find a YouTube Channel ID) */
.sqsp-modal-hint {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.4;
  display: none;
}

/* Cloudflare Captcha simulator */
.cf-captcha-simulator {
  display: flex;
  align-items: center;
  background: #222222;
  border: 1px solid #333333;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #d1d1d1;
  user-select: none;
}

.cf-captcha-checkbox-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.cf-captcha-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #555555;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cf-captcha-checkbox:checked {
  background: #2563eb;
  border-color: #2563eb;
}

.cf-captcha-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cf-captcha-label {
  flex-grow: 1;
  font-weight: 400;
}

.cf-captcha-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 9px;
  color: #777777;
}

.cf-captcha-logo-img {
  width: 32px;
  height: auto;
  opacity: 0.7;
  margin-bottom: 2px;
}

/* Buttons */
.sqsp-modal-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.sqsp-modal-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.14);
}

.sqsp-modal-btn:active {
  transform: scale(0.98);
  box-shadow: none;
}

.sqsp-modal-btn:disabled {
  cursor: default;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

/* Ripple: JS injects a span.sqsp-ripple at the click point */
.sqsp-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  transform: scale(0);
  animation: rippleSpread 0.55s ease-out forwards;
  pointer-events: none;
}

.sqsp-modal-btn-secondary .sqsp-ripple,
.sqsp-dash-ref-copy .sqsp-ripple {
  background: rgba(255, 255, 255, 0.22);
}

@keyframes rippleSpread {
  to { transform: scale(3.2); opacity: 0; }
}

/* Step navigation animation styling */
.sqsp-modal-step {
  display: none;
}

.sqsp-modal-step.is-active {
  display: block;
  animation: modalFadeIn 0.35s ease;
}

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

/* Result screens (success / pending) */
.sqsp-modal-step[id^="apply-step-"]:is(#apply-step-success, #apply-step-pending) {
  text-align: center;
}

.sqsp-modal-result-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px auto;
  border-radius: 50%;
  box-sizing: border-box;
}

.sqsp-modal-result-icon.success {
  color: #ffffff;
  background: rgba(52, 199, 89, 0.16);
  border: 1px solid rgba(52, 199, 89, 0.45);
}

.sqsp-modal-result-icon.pending {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Result icons: white strokes (vendor CSS leaks a global `svg * { stroke: #000 }` rule) */
.sqsp-modal-result-icon svg circle,
.sqsp-modal-result-icon svg polyline,
.sqsp-modal-result-icon svg path {
  stroke: currentColor !important;
}

/* Draw-in animation for the result icon strokes */
.sqsp-modal-step.is-active .sqsp-modal-result-icon svg circle,
.sqsp-modal-step.is-active .sqsp-modal-result-icon svg polyline,
.sqsp-modal-step.is-active .sqsp-modal-result-icon svg path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: iconDraw 0.6s ease 0.15s forwards;
}

@keyframes iconDraw {
  to { stroke-dashoffset: 0; }
}

.sqsp-modal-result-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.5px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.25;
}

.sqsp-modal-result-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Channel card (success step + dashboard verification) */
.sqsp-modal-channel-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 28px;
  text-align: left;
}

.sqsp-modal-channel-approved {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #34c759;
  margin-bottom: 12px;
}

.sqsp-modal-channel-approved::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334c759' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 8px;
  background-repeat: no-repeat;
  background-position: center;
}

.sqsp-modal-channel-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sqsp-modal-channel-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sqsp-modal-channel-meta {
  min-width: 0;
}

.sqsp-modal-channel-name {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sqsp-modal-channel-author {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  margin-top: 2px;
}

.sqsp-modal-channel-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  margin-top: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sqsp-modal-channel-link:hover {
  color: #ffffff;
}

/* Dashboard overlay */
.sqsp-dash-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: #111111;
  display: none;
}

.sqsp-dash-overlay.is-active {
  display: block;
}

/* Fake dashboard backdrop */
.sqsp-dash-bg {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  filter: blur(18px);
  transform: scale(1.06);
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease;
}

.sqsp-dash-overlay.is-loaded .sqsp-dash-bg {
  opacity: 1;
  filter: blur(7px);
  transform: scale(1.02);
}

.sqsp-dash-side {
  width: 232px;
  background: #171717;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sqsp-dash-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.sqsp-dash-logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff, #9a9a9a);
  flex: 0 0 auto;
}

.sqsp-dash-logo-word {
  width: 96px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
}

.sqsp-dash-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sqsp-dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.sqsp-dash-nav-item.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sqsp-dash-nav-ico {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.sqsp-dash-nav-ico svg {
  width: 100%;
  height: 100%;
}

.sqsp-dash-nav-txt {
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  white-space: nowrap;
}

.sqsp-dash-side-card {
  margin-top: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.sqsp-dash-side-card-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-dash-side-card-txt {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
  margin-top: 4px;
}

.sqsp-dash-side-card-bar {
  margin-top: 12px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sqsp-dash-side-card-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffffff, #898989);
}

.sqsp-dash-main {
  flex: 1;
  padding: 24px 32px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sqsp-dash-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.sqsp-dash-topbar-title {
  color: #fff;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.sqsp-dash-topbar-search {
  flex: 1;
  max-width: 340px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-left: auto;
}

.sqsp-dash-topbar-bell {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}

.sqsp-dash-topbar-bell svg {
  width: 17px;
  height: 17px;
}

.sqsp-dash-topbar-bell i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
}

.sqsp-dash-topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.sqsp-dash-badge {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.sqsp-dash-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px 12px;
  min-width: 0;
}

.sqsp-dash-stat-num {
  color: #ffffff;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sqsp-dash-stat-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
  white-space: nowrap;
}

.sqsp-dash-spark {
  display: block;
  width: 100%;
  height: 22px;
  margin-top: 10px;
}

.sqsp-dash-spark path {
  stroke: #dddddd;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}

.sqsp-dash-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.sqsp-dash-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 18px 20px;
  min-width: 0;
  overflow: hidden;
}

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

.sqsp-dash-panel-title {
  color: rgba(255, 255, 255, 0.85);
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
}

.sqsp-dash-panel-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-dash-panel-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-left: 10px;
}

.sqsp-dash-panel-legend i.a {
  background: rgba(255, 255, 255, 0.35);
}

.sqsp-dash-panel-legend i.b {
  background: #dddddd;
}

.sqsp-dash-panel-chart {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.sqsp-dash-chart {
  position: relative;
  flex: 1;
  min-height: 190px;
  box-sizing: border-box;
}

.sqsp-dash-chart-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.sqsp-dash-chart-bars > div {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
}

.sqsp-dash-chart-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sqsp-dash-chart-line path {
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.sqsp-dash-video {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sqsp-dash-video:last-child {
  border-bottom: none;
}

.sqsp-dash-video-rank {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-dash-video-thumb {
  width: 52px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  flex: 0 0 auto;
}

.sqsp-dash-video-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sqsp-dash-video-meta b {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-dash-video-meta i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-style: normal;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-dash-ref-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  padding: 9px 12px;
  margin-bottom: 14px;
}

.sqsp-dash-ref-url {
  flex: 1;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-dash-ref-copy {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-dash-ref-stats {
  display: flex;
  gap: 10px;
}

.sqsp-dash-ref-stats > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
  padding: 10px 12px;
}

.sqsp-dash-ref-stats b {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-dash-ref-stats i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10.5px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-dash-pay-sum {
  color: #fff;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.sqsp-dash-pay-note {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
  margin-top: 4px;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-dash-pay-bar {
  margin-top: 14px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sqsp-dash-pay-bar span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffffff, #898989);
}

.sqsp-dash-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sqsp-dash-pay-row b {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* Dashboard backdrop on small screens: single column, tighter spacing */
@media (max-width: 900px) {
  .sqsp-dash-side {
    display: none;
  }

  .sqsp-dash-main {
    padding: 16px;
    overflow-y: auto;
  }

  .sqsp-dash-topbar-search {
    display: none;
  }

  .sqsp-dash-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .sqsp-dash-grid {
    grid-template-columns: 1fr;
  }

  .sqsp-dash-panel-chart {
    grid-row: auto;
  }

  .sqsp-dash-chart {
    min-height: 150px;
  }
}

/* Loading state */
.sqsp-dash-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #111111;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 2;
}

.sqsp-dash-overlay.is-loaded .sqsp-dash-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Progress ring shown while the blurred dashboard settles in (before verify modal).
   The arc fills over exactly the reveal window, so it reads as real progress. */
.sqsp-dash-reveal-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1), visibility 0.35s ease;
}

.sqsp-dash-overlay.is-revealing .sqsp-dash-reveal-ring {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.sqsp-dash-reveal-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.sqsp-dash-reveal-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 5;
}

.sqsp-dash-reveal-prog {
  fill: none;
  stroke: url(#dash-ring-grad);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.sqsp-dash-overlay.is-revealing .sqsp-dash-reveal-prog {
  animation: dashRevealProg 2.45s cubic-bezier(0.4, 0, 0.3, 1) forwards;
}

@keyframes dashRevealProg {
  from { stroke-dashoffset: 264; }
  to { stroke-dashoffset: 0; }
}

/* Pulsing logo diamond in the middle */
.sqsp-dash-reveal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffffff, #b9b9b9);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
  animation: dashRevealCore 1.2s ease-in-out infinite;
}

@keyframes dashRevealCore {
  0%, 100% { transform: rotate(45deg) scale(0.85); opacity: 0.75; }
  50% { transform: rotate(45deg) scale(1.05); opacity: 1; }
}

/* Particle orbiting the ring */
.sqsp-dash-reveal-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.65);
  animation: dashRevealOrbit 1.6s linear infinite;
}

@keyframes dashRevealOrbit {
  from { transform: rotate(0deg) translateX(42px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(42px) rotate(-360deg); }
}

.sqsp-dash-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.06) 18%, rgba(255, 255, 255, 0.85) 88%, #ffffff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000000 calc(100% - 3px));
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
  animation: dashSpin 0.85s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

@keyframes dashSpin {
  to { transform: rotate(360deg); }
}

.sqsp-dash-loader-text {
  color: rgba(255, 255, 255, 0.65);
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* Animated ellipsis after the loader label */
.sqsp-dash-loader-text::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: loaderDots 1.4s steps(4, end) infinite;
}

@keyframes loaderDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

/* Verification modal above the blurred dashboard */
.sqsp-dash-verify-overlay {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 999999 !important;
}

.sqsp-dash-verify-overlay.is-active ~ .sqsp-dash-bg,
.sqsp-dash-overlay:has(.sqsp-dash-verify-overlay.is-active) .sqsp-dash-bg,
body.has-verify-active .sqsp-dash-bg {
  filter: blur(10px) grayscale(30%) !important;
  -webkit-filter: blur(10px) grayscale(30%) !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  opacity: 0.75 !important;
}

.sqsp-dash-overlay.verification-tampered .sqsp-dash-bg {
  display: none !important;
}


/* --- Verify card: playful/premium restyle --- */
.sqsp-verify-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, #1c1c1e 0%, #101012 55%, #14161a 100%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  text-align: center;
}

.sqsp-verify-card .sqsp-modal-title {
  margin-top: 14px;
}

.sqsp-verify-shield {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 4px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  animation: verifyShieldPop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.sqsp-verify-shield svg {
  width: 72px;
  height: 72px;
  stroke: currentColor !important;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.3));
}

/* Slow pulsing glow ring around the shield */
.sqsp-verify-shield::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 68%);
  animation: verifyGlow 2.6s ease-in-out infinite;
}

@keyframes verifyShieldPop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes verifyGlow {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* Channel card with an animated gradient border */
.sqsp-verify-channel {
  position: relative;
  border: 1px solid transparent !important;
  background:
    linear-gradient(#18181a, #18181a) padding-box,
    linear-gradient(120deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.5)) border-box;
  background-size: 100% 100%, 220% 220%;
  animation: verifyBorderFlow 5s linear infinite;
  text-align: left;
}

@keyframes verifyBorderFlow {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 220% 50%; }
}

/* What verification unlocks */
.sqsp-verify-list {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sqsp-verify-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  line-height: 1.4;
}

.sqsp-verify-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

/* Disabled button stays alive: subtle shimmer instead of dead grey */
.sqsp-verify-btn:disabled {
  position: relative;
  overflow: hidden;
  opacity: 1;
  cursor: not-allowed;
  color: rgba(0, 0, 0, 0.55);
  background: linear-gradient(110deg, #6d6d70 25%, #8a8a8e 42%, #6d6d70 60%);
  background-size: 220% 100%;
  animation: verifyBtnShimmer 2.4s linear infinite;
}

.sqsp-verify-btn:disabled:hover {
  opacity: 1;
}

.sqsp-verify-btn:disabled:active {
  transform: none;
}

@keyframes verifyBtnShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.sqsp-dash-verify-hint {
  display: block !important;
  text-align: center;
  margin-top: 12px;
}

/* --- Welcome (first sign-in) modal --- */
.sqsp-welcome-overlay {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 100002 !important;
}

.sqsp-welcome-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, #1c1c1e 0%, #101012 55%, #14161a 100%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  text-align: center;
  max-width: 480px;
}

.sqsp-welcome-hero {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 4px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sqsp-welcome-lottie {
  position: relative;
  width: 84px;
  height: 84px;
}

.sqsp-welcome-lottie svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
}

/* Static fallback mark if lottie-web is unavailable */
.sqsp-welcome-lottie.is-fallback {
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  position: relative;
}

.sqsp-welcome-lottie.is-fallback::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 18px;
  border-left: 5px solid #ffffff;
  border-bottom: 5px solid #ffffff;
  transform: translate(-50%, -62%) rotate(-45deg);
}

/* Radiating confetti ring behind the star — monochrome sparkles */
.sqsp-welcome-confetti {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.55) 0 3px, transparent 4px),
    radial-gradient(circle at 93% 25%, rgba(255, 255, 255, 0.3) 0 3px, transparent 4px),
    radial-gradient(circle at 93% 75%, rgba(221, 221, 221, 0.45) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.55) 0 3px, transparent 4px),
    radial-gradient(circle at 7% 75%, rgba(255, 255, 255, 0.3) 0 3px, transparent 4px),
    radial-gradient(circle at 7% 25%, rgba(221, 221, 221, 0.45) 0 3px, transparent 4px);
  animation: welcomeConfettiSpin 9s linear infinite;
}

@keyframes welcomeStarPop {
  0% { transform: scale(0.3) rotate(-30deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes welcomeConfettiSpin {
  to { transform: rotate(360deg); }
}

.sqsp-welcome-list {
  margin: 16px 0 22px;
}

.sqsp-welcome-card form {
  text-align: left;
}

/* Password strength meter */
.sqsp-pw-strength {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.sqsp-pw-strength span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease;
}

.sqsp-pw-hint {
  margin-top: 8px;
}

/* Loading state for the password button */
.sqsp-modal-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

/* --- Dashboard channel header (real YouTube data) --- */
.sqsp-dash-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.sqsp-dash-channel-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.sqsp-dash-channel-title {
  color: #fff;
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.sqsp-dash-channel-handle {
  color: rgba(255, 255, 255, 0.55);
  font-family: Clarkson, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  margin-top: 3px;
}

/* --- Compact layout for small screens (iPhone 15 ~390px and below) --- */
@media (max-width: 480px) {
  .sqsp-modal-overlay {
    /* Center like desktop; the overflow guard below keeps tall cards usable */
    align-items: center !important;
    padding: 12px;
    box-sizing: border-box;
  }

  .sqsp-modal-card {
    width: 100%;
    max-width: 100%;
    padding: 22px 20px;
    max-height: calc(100dvh - 24px);
    margin: auto 0; /* lets an over-tall card scroll instead of clipping */
    /* Hide the scrollbar: a visible track inside a rounded card looks broken */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sqsp-modal-card::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .sqsp-modal-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .sqsp-modal-subtitle {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .sqsp-modal-form-group {
    margin-bottom: 14px;
  }

  .sqsp-modal-btn {
    padding: 13px 16px;
  }

  /* Welcome modal: tighten hero, list and form so everything fits on screen */
  .sqsp-welcome-hero {
    width: 56px;
    height: 56px;
    margin: 6px auto 12px;
  }

  .sqsp-welcome-icon {
    width: 44px;
    height: 44px;
  }

  .sqsp-welcome-confetti {
    inset: -10px;
  }

  .sqsp-welcome-list {
    margin: 10px 0 16px;
    gap: 7px;
  }

  .sqsp-welcome-list li {
    font-size: 12.5px;
    line-height: 1.35;
  }

  .sqsp-pw-hint {
    font-size: 11px;
    margin-top: 5px;
  }
}

/* --- Short landscape screens (any width): let the card scroll within view --- */
@media (max-height: 760px) and (min-width: 481px) {
  .sqsp-modal-card {
    max-height: calc(100dvh - 24px);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sqsp-modal-card::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

/* Shake animation for errors */
.sqsp-modal-shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Skeleton shimmer: fills dashboard numbers while channel data is loading.
   JS adds .is-loading to the value element and removes it once filled. */
.sqsp-dash-stat-num.is-loading,
.sqsp-dash-panel [id].is-loading {
  color: transparent !important;
  border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.07) 25%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.07) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  user-select: none;
}

@keyframes skeletonShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Gentle tilt on the verify card follows the cursor. Applied only once the
   overlay is open (JS adds .is-tilting) so it never overrides the modal
   entrance/exit transforms, and it composes with the base scale via
   --tilt-scale. */
.sqsp-verify-card.is-tilting {
  transform: scale(var(--tilt-scale, 1)) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) !important;
  transition: transform 0.18s ease-out !important;
  will-change: transform;
}

/* Success burst: monochrome particles fired from a button or the Lottie mark.
   JS creates span.sqsp-burst elements inside a relatively-positioned host. */
.sqsp-burst {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: #ffffff;
  pointer-events: none;
  z-index: 5;
  animation: burstFly 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sqsp-burst.b-grey { background: rgba(255, 255, 255, 0.45); }
.sqsp-burst.b-dim { background: rgba(255, 255, 255, 0.25); }

@keyframes burstFly {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--bx), var(--by)) rotate(var(--br)) scale(0.4); }
}

/* "Copied" feedback on the referral link */
.sqsp-dash-ref-copy {
  transition: color 0.2s ease, background 0.2s ease;
}
.sqsp-dash-ref-copy.is-copied {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sqsp-modal-overlay,
  .sqsp-modal-card,
  .sqsp-modal-step.is-active {
    transition: none;
    animation: none;
  }
  .sqsp-modal-card.stagger-in > *,
  .sqsp-dash-spinner,
  .sqsp-dash-loader-text::after,
  .sqsp-dash-reveal-core,
  .sqsp-dash-reveal-orbit,
  .sqsp-ripple,
  .sqsp-burst,
  .sqsp-modal-input.has-error,
  .sqsp-modal-select.has-error,
  .sqsp-dash-stat-num.is-loading,
  .sqsp-dash-panel [id].is-loading {
    animation: none !important;
  }
  .sqsp-verify-card {
    transform: none !important;
  }
}
