:root {
  --bg: #09090b;
  --surface: #111113;
  --surface-raised: #18181b;
  --border: #27272a;
  --border-subtle: #1f1f23;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-faint: #71717a;
  /* permspoofer blue — matches the shield logo, mirrored across the loader UI. */
  --accent: #0078F0;
  --accent-hover: #1f8bff;
  --accent-glow: rgba(0, 120, 240, 0.30);
  --accent-soft: rgba(0, 120, 240, 0.12);
  --accent-strong: #0060F0;
  --radius-sm: 0.625rem;
  --radius-md: 0.875rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration-normal: 280ms;
  --duration-slow: 480ms;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 #111113;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #111113;
}

*::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 9999px;
  border: 2px solid #111113;
}

*::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

@keyframes site-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes site-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes site-scale-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.site-animate-in {
  animation: site-fade-up var(--duration-slow) var(--ease-smooth) both;
}

.site-animate-fade {
  animation: site-fade-in var(--duration-normal) var(--ease-smooth) both;
}

.site-stagger > * {
  animation: site-fade-up var(--duration-slow) var(--ease-smooth) both;
}

.site-stagger > *:nth-child(1) { animation-delay: 0ms; }
.site-stagger > *:nth-child(2) { animation-delay: 70ms; }
.site-stagger > *:nth-child(3) { animation-delay: 140ms; }
.site-stagger > *:nth-child(4) { animation-delay: 210ms; }
.site-stagger > *:nth-child(5) { animation-delay: 280ms; }
.site-stagger > *:nth-child(6) { animation-delay: 350ms; }

.site-multiline {
  white-space: pre-line;
  word-break: break-word;
}

.site-container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-nav {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(8px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  text-decoration: none;
}

.site-brand-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
}

.site-brand-logo-sm {
  width: 1.75rem;
  height: 1.75rem;
}

.site-brand-logo-lg {
  width: 2.5rem;
  height: 2.5rem;
}

.site-brand-logo-xl {
  width: 3rem;
  height: 3rem;
}

.site-brand-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth),
    transform var(--duration-normal) var(--ease-smooth);
}

.site-card-interactive:hover {
  border-color: #3f3f46;
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.site-card-hover:hover {
  border-color: #3f3f46;
  transform: translateY(-1px);
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition:
    background-color var(--duration-normal) var(--ease-smooth),
    border-color var(--duration-normal) var(--ease-smooth),
    color var(--duration-normal) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.site-btn:active {
  transform: scale(0.98);
}

.site-btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  /* No drop shadow — even a subtle one bled onto adjacent panel
     backgrounds and read as a ghost duplicate of the button.
     Hover uses translateY only. */
  box-shadow: none;
}

.site-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.site-btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.site-btn-secondary:hover {
  background: var(--surface-raised);
  border-color: #3f3f46;
  transform: translateY(-1px);
}

.site-btn-secondary:hover {
  background: var(--surface-raised);
  border-color: #3f3f46;
  transform: translateY(-1px);
}

.site-input,
.site-select,
.site-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  transition:
    border-color var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth),
    background-color var(--duration-normal) var(--ease-smooth);
}

.site-textarea {
  resize: vertical;
  min-height: 8rem;
}

.site-select {
  /* enhanced by custom-select.js */
}

.site-custom-select {
  position: relative;
  width: 100%;
  overflow: visible;
  z-index: 1;
}

.site-custom-select.is-open {
  z-index: 80;
}

.site-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.site-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth),
    background-color var(--duration-normal) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth);
}

.site-custom-select-sm .site-custom-select-trigger {
  padding: 0.4375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-md);
}

.site-custom-select-trigger:hover {
  border-color: #3f3f46;
  background: rgba(255, 255, 255, 0.02);
}

.site-custom-select.is-open .site-custom-select-trigger,
.site-custom-select-trigger:focus-visible {
  outline: none;
  border-color: #52525b;
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.25);
}

.site-custom-select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-custom-select-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--text-faint);
  transition: transform var(--duration-normal) var(--ease-smooth), color var(--duration-normal) var(--ease-smooth);
}

.site-custom-select.is-open .site-custom-select-chevron {
  transform: rotate(180deg);
  color: var(--text-muted);
}

.site-custom-select-menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  z-index: 60;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  max-height: 16rem;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity var(--duration-normal) var(--ease-smooth),
    transform var(--duration-normal) var(--ease-smooth);
}

.site-custom-select-menu.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.site-custom-select-option {
  padding: 0.5625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-smooth),
    color var(--duration-fast) var(--ease-smooth);
}

.site-custom-select-sm .site-custom-select-option {
  padding: 0.4375rem 0.625rem;
  font-size: 0.8125rem;
}

.site-custom-select-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.site-custom-select-option.is-selected {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 500;
}

.site-input:focus,
.site-textarea:focus {
  outline: none;
  border-color: #52525b;
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.25);
}

.site-input::placeholder,
.site-textarea::placeholder {
  color: var(--text-faint);
}

.site-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.site-sidebar {
  width: 16rem;
  background: var(--surface);
  border-right: 1px solid var(--border-subtle);
}

.site-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition:
    background-color var(--duration-normal) var(--ease-smooth),
    color var(--duration-normal) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth);
  text-decoration: none;
}

.site-sidebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(2px);
}

.site-sidebar-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-section-title {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}

.site-section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 42rem;
}

.site-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-list-item::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  margin-top: 0.4375rem;
  border-radius: 9999px;
  background: #52525b;
  flex-shrink: 0;
}

.site-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  transition: border-color var(--duration-normal) var(--ease-smooth);
}

.site-alert-error {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.2);
  border: 1px solid rgba(127, 29, 29, 0.4);
  border-radius: var(--radius-md);
  animation: site-fade-up var(--duration-normal) var(--ease-smooth) both;
}

.site-alert-success {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #86efac;
  background: rgba(20, 83, 45, 0.2);
  border: 1px solid rgba(20, 83, 45, 0.4);
  border-radius: var(--radius-md);
  animation: site-fade-up var(--duration-normal) var(--ease-smooth) both;
}

.site-stat-value {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
}

.site-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.site-table {
  width: 100%;
  font-size: 0.875rem;
}

.site-table thead {
  border-bottom: 1px solid var(--border);
}

.site-table th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.site-table td {
  padding: 0.875rem 1.25rem;
  color: var(--text-muted);
}

.site-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
}

.site-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.site-coupon-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-coupon-bar code {
  font-weight: 600;
  color: var(--text);
  padding: 0.125rem 0.375rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--surface-raised);
}

.site-coupon-code {
  font-weight: 600;
  color: var(--text);
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  font-size: 0.875rem;
}

body.site-coupon-modal-open {
  overflow: hidden;
}

body.site-coupon-modal-open #site-app-root {
  filter: blur(8px);
  transform: scale(0.995);
  pointer-events: none;
  user-select: none;
}

.site-coupon-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.site-coupon-modal[hidden] {
  display: none !important;
}

.site-coupon-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: site-fade-in 0.28s var(--ease-smooth);
}

.site-coupon-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  padding: 1.5rem;
  animation: site-scale-in 0.32s var(--ease-smooth);
}

@keyframes site-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes site-scale-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.setup-steps {
  list-style: none;
  counter-reset: setup-step;
  padding: 0;
  margin: 0;
}

.setup-steps li {
  counter-increment: setup-step;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.setup-steps li:last-child {
  margin-bottom: 0;
}

.setup-steps li::before {
  content: counter(setup-step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.6875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.setup-bullets li {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.setup-kbd {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text);
}

.setup-details {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-normal) var(--ease-smooth);
}

.setup-details[open] {
  border-color: #3f3f46;
}

.setup-details-summary {
  padding: 1.25rem;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--duration-normal) var(--ease-smooth);
  user-select: none;
}

.setup-details-summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.setup-details-summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.setup-details-summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(82, 82, 91, 0.6);
  border-radius: var(--radius-lg);
}

.setup-details-summary::-webkit-details-marker {
  display: none;
}

.setup-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition:
    border-color var(--duration-normal) var(--ease-smooth),
    color var(--duration-normal) var(--ease-smooth),
    background-color var(--duration-normal) var(--ease-smooth);
}

.setup-details-summary:hover .setup-details-toggle {
  color: var(--text);
  border-color: #3f3f46;
}

.setup-details[open] .setup-details-toggle {
  color: var(--text);
  border-color: #52525b;
}

.setup-details-toggle-label-hide {
  display: none;
}

.setup-details[open] .setup-details-toggle-label-show {
  display: none;
}

.setup-details[open] .setup-details-toggle-label-hide {
  display: inline;
}

.setup-details-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.setup-details[open] .setup-details-chevron {
  transform: rotate(180deg);
}

.setup-details-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  animation: site-fade-in var(--duration-normal) var(--ease-smooth) both;
}

.site-update-card {
  border-radius: var(--radius-lg);
}

.site-ticket-bubble {
  border-radius: var(--radius-lg);
}

.site-ticket-bubble-staff {
  border-top-left-radius: var(--radius-sm);
}

.site-ticket-bubble-user {
  border-top-right-radius: var(--radius-sm);
}

.instruction-toc-link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition:
    color var(--duration-normal) var(--ease-smooth),
    border-color var(--duration-normal) var(--ease-smooth),
    background-color var(--duration-normal) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth);
}

.instruction-toc-link:hover {
  color: var(--text);
  border-color: #3f3f46;
  transform: translateY(-1px);
}

.instruction-section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.instruction-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.instruction-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.instruction-path-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.instruction-path-badge {
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-raised);
}

.instruction-callout {
  border-color: #3f3f46;
}

.instruction-callout-sm {
  padding: 0.875rem 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.instruction-subheading {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.instruction-brand-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-raised);
  transition: border-color var(--duration-normal) var(--ease-smooth);
}

.instruction-brand-panel[open] {
  border-color: #3f3f46;
}

.instruction-brand-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color var(--duration-normal) var(--ease-smooth);
}

.instruction-brand-summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.instruction-brand-summary::-webkit-details-marker {
  display: none;
}

.instruction-brand-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  animation: site-fade-in var(--duration-normal) var(--ease-smooth) both;
}

.instruction-brand-panel[open] .setup-details-toggle-label-show {
  display: none;
}

.instruction-brand-panel[open] .setup-details-toggle-label-hide {
  display: inline;
}

.instruction-brand-panel:not([open]) .setup-details-toggle-label-hide {
  display: none;
}

.instruction-brand-panel[open] .setup-details-chevron {
  transform: rotate(180deg);
}

#site-music-root {
  display: contents;
}

.site-music-wrap {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.site-music-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(17, 17, 19, 0.92);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition:
    border-color var(--duration-normal) var(--ease-smooth),
    background-color var(--duration-normal) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth);
}

.site-music-toggle:hover {
  border-color: #3f3f46;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.site-music-toggle.is-playing {
  border-color: #52525b;
}

.site-music-toggle.is-playing:not(.is-muted)::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(250, 250, 250, 0.12);
  animation: site-music-pulse 2s var(--ease-smooth) infinite;
  pointer-events: none;
}

@keyframes site-music-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

.site-music-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.site-music-toggle .site-music-icon-off {
  display: none;
}

.site-music-toggle.is-muted .site-music-icon-on {
  display: none;
}

.site-music-toggle.is-muted .site-music-icon-off {
  display: block;
  color: var(--text-faint);
}

/* ------- wooferpro-style landing extensions ------- */

/* Big radial cyan glow behind the hero. */
.site-hero-glow {
  position: relative;
  isolation: isolate;
}
.site-hero-glow::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(0, 120, 240, 0.22) 0%, rgba(0, 120, 240, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.site-hero-headline {
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.site-hero-accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

/* Four-across value strip. */
.site-value-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 700px) { .site-value-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-value-strip { grid-template-columns: repeat(4, 1fr); } }
.site-value-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(0,120,240,0.08), rgba(0,120,240,0.02));
  border: 1px solid rgba(0, 120, 240, 0.28);
}
.site-value-pill-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(0, 120, 240, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-value-pill-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.site-value-pill-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.1;
}
.site-value-pill-sub {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

/* Pricing card price group with strikethrough original. */
.site-price-stack { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.site-price-old {
  color: var(--text-faint);
  text-decoration: line-through;
  font-size: 1.4rem;
  font-weight: 500;
}
.site-price-new {
  color: var(--text);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.site-price-suffix {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-price-save {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Games grid — logos-as-chips. */
.site-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .site-games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .site-games-grid { grid-template-columns: repeat(5, 1fr); } }
.site-game-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--duration-normal) var(--ease-smooth),
              background-color var(--duration-normal) var(--ease-smooth);
}
.site-game-chip:hover {
  border-color: rgba(0, 120, 240, 0.55);
  background: rgba(0, 120, 240, 0.06);
}
.site-game-chip-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* SVGs used as game marks: force their fill/stroke to currentColor so the
   accent tokens (blue) drive them, regardless of the file's own colours. */
.site-game-chip-icon img {
  width: 100%;
  height: 100%;
  filter: brightness(0) saturate(100%) invert(31%) sepia(88%) saturate(4460%) hue-rotate(207deg) brightness(101%) contrast(101%);
}

/* Testimonials. */
.site-testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) { .site-testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.site-testimonial {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.site-testimonial-body {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.site-testimonial-author {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
}
.site-testimonial-avatar {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Best-value badge on a pricing card. */
.site-card-featured {
  border-color: rgba(0, 120, 240, 0.55);
  box-shadow: 0 0 60px -20px rgba(0, 120, 240, 0.55);
}
.site-badge-featured {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 22px var(--accent-glow);
}

/* FAQ accordion — clean details/summary. */
.site-faq details {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}
.site-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  padding-right: 0.25rem;
}
.site-faq summary::-webkit-details-marker { display: none; }
.site-faq summary::after {
  content: "＋";
  color: var(--accent);
  font-weight: 400;
  transition: transform var(--duration-normal) var(--ease-smooth);
}
.site-faq details[open] summary::after { content: "－"; }
.site-faq details[open] summary { color: var(--accent); }
.site-faq-body {
  padding: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   MOBILE — iOS-flavoured overhaul
   Below 768px:
     • Left sidebar collapses into a bottom tab bar (5 primary tabs)
     • Everything else lands in a "More" full-screen sheet
     • Main content clears bottom bar with safe-area padding
     • Larger tap targets, momentum scroll, rounded cards
   Desktop stays exactly as it was.
   ───────────────────────────────────────────────────────────── */

:root {
  --sab: env(safe-area-inset-bottom, 0px);
  --sat: env(safe-area-inset-top, 0px);
}

/* Momentum scroll everywhere touch matters */
/* Momentum touch scroll everywhere. overscroll-behavior stays off html so
   the browser owns wheel scrolling; keep it contained on body-level scroll
   surfaces only (mobile sheet, chat panels) where we set it explicitly. */
body { -webkit-overflow-scrolling: touch; }

/* iOS bottom nav skeleton — hidden on desktop */
.site-mobile-tabbar { display: none; }
.site-mobile-more-sheet { display: none; }

@media (max-width: 767px) {

  /* Kill the desktop sidebar on mobile, we render our own tab bar */
  .site-sidebar { display: none !important; }

  /* Main-content pages typically use .ml-64 — clear on mobile so full
     width is reclaimed and content clears the bottom bar. */
  main.ml-64,
  .ml-64          { margin-left: 0 !important; }
  main            { padding-bottom: calc(76px + var(--sab)) !important; }

  /* Container padding: iOS uses generous side breathing room */
  main.px-6, main.lg\:px-10 { padding-left: 16px !important; padding-right: 16px !important; }
  main { padding-top: max(20px, var(--sat)) !important; }

  /* Cards get a softer, iOS-native look */
  .site-card {
    border-radius: 14px;
    background: rgba(24, 24, 27, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  /* Typography: tighter headings, larger body */
  h1, .text-2xl { font-size: 1.4rem !important; line-height: 1.25; }
  h2 { font-size: 1.15rem !important; }
  h3 { font-size: 1rem !important; }
  body, p, .text-sm { font-size: 15px; }

  /* Tap targets — every button/link ≥ 44px */
  .site-btn, button.site-btn, a.site-btn { min-height: 44px; padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
  .site-input, .site-textarea, .site-select { min-height: 44px; font-size: 16px; /* 16px avoids iOS zoom-in */ }

  /* Bottom tab bar */
  .site-mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(64px + var(--sab));
    padding-bottom: var(--sab);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    justify-content: space-around;
    align-items: stretch;
  }
  .site-mobile-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.02em;
    padding: 4px 6px;
    transition: color .15s ease, transform .15s ease;
    position: relative;
  }
  .site-mobile-tab svg { width: 22px; height: 22px; stroke-width: 2; }
  .site-mobile-tab.active { color: #0078F0; }
  .site-mobile-tab.active::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: #0078F0;
  }
  .site-mobile-tab:active { transform: scale(0.95); }
  .site-mobile-tab-badge {
    position: absolute; top: 6px; right: calc(50% - 18px);
    background: #ef4444; color: #fff; font-size: 9px; font-weight: 600;
    padding: 1px 5px; border-radius: 999px; min-width: 15px; text-align: center;
  }

  /* Mobile "More" full-screen sheet */
  .site-mobile-more-sheet {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    opacity: 0; pointer-events: none;
    transition: opacity .18s ease;
  }
  .site-mobile-more-sheet.open { opacity: 1; pointer-events: auto; }
  .site-mobile-more-panel {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: #111112;
    border-top-left-radius: 20px; border-top-right-radius: 20px;
    padding: 12px 16px calc(24px + var(--sab));
    max-height: 82vh; overflow-y: auto;
    transform: translateY(100%);
    transition: transform .22s cubic-bezier(.22,.9,.36,1);
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .site-mobile-more-sheet.open .site-mobile-more-panel { transform: translateY(0); }
  .site-mobile-more-handle {
    width: 36px; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,.2);
    margin: 4px auto 16px;
  }
  .site-mobile-more-heading {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(255,255,255,.4); margin: 12px 4px 6px;
  }
  .site-mobile-more-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 12px; color: #e4e4e7; text-decoration: none;
    border-radius: 10px; font-size: 15px;
  }
  .site-mobile-more-item:active { background: rgba(255,255,255,.05); }
  .site-mobile-more-item svg { width: 20px; height: 20px; color: rgba(255,255,255,.5); }
  .site-mobile-more-code {
    background: rgba(0,120,240,.06); border: 1px solid rgba(0,120,240,.25);
    padding: 12px 14px; border-radius: 12px; margin: 8px 0 4px;
  }
  .site-mobile-more-code code {
    font-size: 15px; color: #4ade80; font-family: ui-monospace, Menlo, monospace;
    letter-spacing: 0.05em; word-break: break-all;
  }

  /* Admin: fold wide tables into stacked cards */
  table.w-full, table.divide-y { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Ticket page: right-side admin panel goes below on mobile */
  main.max-w-7xl.grid { display: block !important; }

  /* Two-column dashboards → stack */
  .grid.grid-cols-1.lg\:grid-cols-2,
  .grid.grid-cols-2.sm\:grid-cols-4.lg\:grid-cols-7,
  .grid.grid-cols-2.sm\:grid-cols-3.lg\:grid-cols-6 {
    grid-template-columns: 1fr !important;
  }

  /* Alerts sit above the tab bar */
  .site-alert-success, .site-alert-error {
    border-radius: 12px;
  }

  /* Admin user drawer becomes a full-height sheet on mobile */
  aside#user-drawer {
    width: 100% !important;
    border-left: 0 !important;
  }
}

/* Tap highlight cleanup on iOS */
a, button { -webkit-tap-highlight-color: transparent; }

/* ─────────────────────────────────────────────────────────────
   MOBILE HARDENING — "just works" polish
   Fixes iOS Safari quirks around fixed positioning, tap delay,
   horizontal overflow, and rubber-band scroll on sheets.
   ───────────────────────────────────────────────────────────── */

/* Only clamp horizontal overflow on <body>. Setting overflow-x on <html>
   too makes some browsers compute overflow-y as hidden on <html>, which
   kills wheel scrolling site-wide. Force <html> to own vertical scroll. */
html { overflow-y: auto; }
body { overflow-x: hidden; }

@media (max-width: 767px) {
  /* Force the tab bar and sheets onto their own composited layer so
     nothing above them can trap their fixed positioning. Also gives
     iOS a stable snapshot to render at 60fps during momentum scroll. */
  .site-mobile-tabbar,
  .site-mobile-more-sheet {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }

  /* Kill iOS tap-delay + double-tap-zoom on interactive controls */
  button, a, .site-btn, .site-mobile-tab, .site-mobile-more-item {
    touch-action: manipulation;
  }

  /* No horizontal scrolling ever on the page body — wide content
     scrolls inside its own container instead. */
  body > * { max-width: 100vw; }

  /* Bottom-sheet swipe-down gesture: allow vertical pan on the sheet
     itself so the momentum scroll inside doesn't fight the browser. */
  .site-mobile-more-panel { touch-action: pan-y; overscroll-behavior: contain; }

  /* Snappy tap feedback on primary buttons */
  .site-btn-primary:active,
  .site-btn-secondary:active { transform: scale(0.97); }
}

/* Fixed elements never get a tap-highlight rectangle */
.site-mobile-tabbar, .site-mobile-more-sheet { -webkit-tap-highlight-color: transparent; }
