/* Scoped Support Waypoint — do not change desktop viewport or Fold detection. */
.wp-support-header-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  margin-right: 8px;
  border: 1px solid rgba(212, 168, 75, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(28, 24, 16, 0.92), rgba(8, 10, 12, 0.96));
  color: #f3d48a;
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(12, 18, 24, 0.6), 0 0 18px rgba(212, 168, 75, 0.12);
}

.wp-support-header-btn::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #7ee8ff 0%, #d4a84b 55%, transparent 70%);
  box-shadow: 0 0 10px rgba(126, 232, 255, 0.45);
}

.wp-support-header-btn:hover,
.wp-support-header-btn:focus-visible {
  outline: none;
  border-color: rgba(243, 212, 138, 0.8);
  box-shadow: 0 0 0 1px rgba(126, 232, 255, 0.25), 0 0 22px rgba(212, 168, 75, 0.2);
}

@media (prefers-reduced-motion: no-preference) {
  .wp-support-header-btn::before {
    animation: wp-support-pulse 4.8s ease-in-out infinite;
  }
}

@keyframes wp-support-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.wp-support-root[hidden],
.wp-support-header-btn[hidden],
.wp-support-mobile-btn[hidden] { display: none !important; }

.wp-support-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.wp-support-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 10, 0.72);
}

.wp-support-sheet {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(212, 168, 75, 0.28);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(126, 232, 255, 0.08), transparent 40%),
    radial-gradient(900px 360px at 110% 0%, rgba(212, 80, 180, 0.08), transparent 42%),
    linear-gradient(180deg, #14181d 0%, #0b0e11 100%);
  color: #e8edf2;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.wp-support-sheet h2,
.wp-support-thanks h1 {
  font-family: Cinzel, "Times New Roman", serif;
  letter-spacing: 0.06em;
  color: #f3d48a;
  margin: 0 0 8px;
}

.wp-support-head,
.wp-support-copy,
.wp-support-legacy,
.wp-support-checkout,
.wp-support-legal {
  padding: 22px 24px 0;
}

.wp-support-legal { padding-bottom: 24px; }

.wp-support-sub {
  color: #c9d2dc;
  margin: 0 0 12px;
}

.wp-support-copy p,
.wp-support-legacy p,
.wp-support-legal p {
  color: #c5ced8;
  line-height: 1.55;
  margin: 0 0 12px;
}

.wp-support-copy ul {
  margin: 0 0 14px 18px;
  color: #d5dde6;
}

.wp-support-legacy {
  margin: 16px 24px 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(126, 232, 255, 0.18);
  background: rgba(12, 20, 26, 0.72);
}

.wp-support-checkout {
  display: grid;
  gap: 10px;
}

.wp-support-checkout label {
  display: grid;
  gap: 6px;
  color: #f3d48a;
  font-size: 13px;
}

.wp-support-checkout input {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 75, 0.3);
  background: #0c1014;
  color: #fff;
  padding: 0 12px;
  font-size: 16px;
}

.wp-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.wp-support-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #f3d48a;
  font-size: 22px;
  cursor: pointer;
}

.wp-support-thanks {
  position: fixed;
  inset: 0;
  z-index: 81;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top));
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(212, 168, 75, 0.16), transparent 50%),
    #07090c;
}

.wp-support-thanks-card {
  width: min(680px, 100%);
  padding: 28px 24px;
  border-radius: 22px;
  border: 1px solid rgba(212, 168, 75, 0.35);
  background: rgba(12, 14, 18, 0.92);
  text-align: left;
}

.wp-support-thanks-card p { color: #d0d7df; line-height: 1.55; }

.wp-support-error { color: #f0b4b4; }

.wp-support-mobile-btn {
  position: relative;
  overflow: hidden;
  border-color: rgba(212, 168, 75, 0.55) !important;
  background:
    linear-gradient(180deg, rgba(32, 26, 14, 0.95), rgba(10, 12, 14, 0.96)) !important;
}

.wp-support-mobile-btn span { color: #f3d48a; letter-spacing: 0.1em; }
.wp-support-mobile-btn strong { color: #f7f1de; }

.wp-support-mobile-btn::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 232, 255, 0.18), transparent 70%);
  pointer-events: none;
}

@media (max-width: 720px) {
  .wp-support-root { align-items: stretch; padding: 0; }
  .wp-support-sheet {
    width: 100%;
    max-height: 100%;
    min-height: 100%;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .wp-support-header-btn { padding: 0 10px; font-size: 10px; margin-right: 6px; }
}

html.waypoint-fold-tablet .wp-support-header-btn,
[data-device-mode="fold-tablet"] .wp-support-header-btn {
  min-height: 34px;
  font-size: 10px;
}

.wp-support-account-list {
  display: grid;
  gap: 10px;
}

.wp-support-account-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-support-badge,
.pm-admin-support-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d62828;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

#pmAdminBtn { position: relative; }
