:root {
  --pb-bg-0: #070d16;
  --pb-bg-1: #0a1322;
  --pb-bg-2: #0f1c30;
  --pb-surface: #101d31;
  --pb-surface-soft: rgba(18, 34, 57, 0.72);
  --pb-border: rgba(145, 177, 219, 0.22);
  --pb-text: #eaf3ff;
  --pb-text-dim: #b8cbe6;
  --pb-accent: #20c997;
  --pb-accent-soft: rgba(32, 201, 151, 0.18);
  --pb-shadow-lg: 0 22px 45px rgba(2, 8, 18, 0.42);
  --pb-shadow-card: 0 14px 28px rgba(3, 10, 22, 0.28);
}

body.pb-premium-active {
  background:
    radial-gradient(1200px 480px at 7% -12%, rgba(69, 144, 255, 0.17), transparent 58%),
    radial-gradient(900px 420px at 96% 0%, rgba(32, 201, 151, 0.13), transparent 62%),
    var(--pb-bg-0);
}

body.pb-premium-active::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  z-index: 0;
  background-image:
    radial-gradient(circle at 1px 1px, #fff 1px, transparent 0),
    radial-gradient(circle at 2px 2px, #fff 1px, transparent 0);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: soft-light;
}

.pb-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 100001;
  background: linear-gradient(90deg, #20c997, #7dd3fc);
  transition: width 0.12s linear;
}

body.pb-premium-active .navbar.pb-nav-glass {
  background: rgba(239, 241, 221, 0.78);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(26, 26, 26, 0.12);
  box-shadow: 0 6px 24px rgba(5, 10, 17, 0.15);
}

.pb-page-root {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.pb-page-root.pb-page-mounted {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pb-cursor {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(32, 201, 151, 0.16);
  pointer-events: none;
  z-index: 100002;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, background 0.18s ease;
}
.pb-cursor.is-hover {
  width: 34px;
  height: 34px;
  background: rgba(32, 201, 151, 0.1);
}

.pb-ripple-target {
  position: relative;
  overflow: hidden;
}
.pb-ripple-wave {
  position: absolute;
  border-radius: 999px;
  transform: scale(0);
  animation: pb-ripple 0.5s ease-out;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}
@keyframes pb-ripple {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

.pb-pressable:active {
  transform: scale(0.97);
}

.pb-link-underline {
  position: relative;
}
.pb-link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--pb-accent);
  transition: transform 0.22s ease;
}
.pb-link-underline:hover::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .pb-page-root,
  [data-reveal],
  .pb-progress,
  .pb-cursor,
  .pb-link-underline::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
