/* =====================================================================
   Forge Digitals: Glassmorphism buttons (site-wide)
   Loaded LAST on every page so it overrides every earlier button style.
   Recipe: translucent tint + backdrop blur/saturate + light hairline border
           + inner top highlight + soft coloured shadow.
   ===================================================================== */
:root {
  --gl-blur: 18px;
  --gl-tint: rgba(255, 255, 255, 0.12);
  --gl-tint-hi: rgba(255, 255, 255, 0.2);
  --gl-vio: rgba(139, 92, 246, 0.3);
  --gl-vio-hi: rgba(167, 139, 250, 0.46);
  --gl-edge: rgba(255, 255, 255, 0.34);
  --gl-edge-hi: rgba(255, 255, 255, 0.62);
  --gl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 1. Core glass buttons (solid CTAs) ---------- */
.f,
.f.d,
.f.mini,
.menu-btn,
.wg-cta,
.pp-btn,
.hw-cta,
.mg-btn,
.sv-btn,
.qt-btn,
.wk-btn,
.wk-all,
.wc-btn,
.vm-btn,
.fin-btn,
.pbtn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 1px 2px rgba(10, 4, 30, 0.35);
  background: linear-gradient(
    135deg,
    var(--gl-tint-hi),
    var(--gl-tint) 48%,
    rgba(255, 255, 255, 0.05)
  ) !important;
  -webkit-backdrop-filter: blur(var(--gl-blur)) saturate(1.7);
  backdrop-filter: blur(var(--gl-blur)) saturate(1.7);
  border: 1px solid var(--gl-edge) !important;
  outline: 0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 22px rgba(255, 255, 255, 0.06),
    0 10px 30px -10px rgba(10, 4, 40, 0.55),
    0 0 0 1px rgba(10, 4, 40, 0.12) !important;
  filter: none;
  transition:
    transform 0.35s var(--gl-ease),
    box-shadow 0.35s,
    background 0.35s,
    border-color 0.35s,
    color 0.3s !important;
}

/* Primary (violet-tinted) glass */
.f:not(.d),
.menu-btn,
.wg-cta,
.hw-cta,
.sv-btn,
.qt-btn,
.wk-btn,
.wc-btn,
.fin-btn,
.pbtn {
  background: linear-gradient(
    135deg,
    var(--gl-vio-hi),
    var(--gl-vio) 50%,
    rgba(99, 102, 241, 0.16)
  ) !important;
  border-color: rgba(221, 214, 254, 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 24px rgba(196, 181, 253, 0.12),
    0 14px 34px -12px rgba(124, 58, 237, 0.7),
    0 0 0 1px rgba(10, 4, 40, 0.12) !important;
}

/* Secondary (neutral frosted) glass */
.f.d,
.vm-btn,
.wk-all,
.mg-btn,
.pp-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.08) 55%,
    rgba(255, 255, 255, 0.04)
  ) !important;
}

/* Keep the layout bits each button already had */
.f,
.f.d {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(10, 4, 30, 0.4);
}
.mg-card .mg-btn {
  color: #fff !important;
}
.pbtn {
  color: #fff !important;
  animation: none;
}

/* ---------- 2. Glossy shine layer (replaces old liquid ::before/::after) ---------- */
.f::before,
.menu-btn::before,
.qt-btn::before,
.pp-btn::before,
.wg-cta::before,
.sv-btn::before,
.hw-cta::before,
.mg-btn::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  padding: 0 !important;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  -webkit-mask: none !important;
  mask: none !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
  width: auto !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0) 52%
  ) !important;
  opacity: 0.55;
}
/* moving light sweep on hover */
.f::after,
.menu-btn::after,
.pp-btn::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  left: -75% !important;
  right: auto !important;
  width: 45% !important;
  z-index: -1;
  pointer-events: none;
  border-radius: 0 !important;
  opacity: 1 !important;
  transform: skewX(-20deg) !important;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  ) !important;
  transition: left 0.8s var(--gl-ease) !important;
}
.f:hover::after,
.menu-btn:hover::after,
.pp-btn:hover::after {
  left: 135% !important;
}

/* ---------- 3. Hover / focus / active ---------- */
.f:hover,
.f.d:hover,
.menu-btn:hover,
.wg-cta:hover,
.pp-btn:hover,
.hw-cta:hover,
.mg-btn:hover,
.sv-btn:hover,
.qt-btn:hover,
.wk-btn:hover,
.wk-all:hover,
.wc-btn:hover,
.vm-btn:hover,
.fin-btn:hover,
.f:focus-visible,
.menu-btn:focus-visible,
.wg-cta:focus-visible,
.pp-btn:focus-visible,
.hw-cta:focus-visible,
.sv-btn:focus-visible,
.qt-btn:focus-visible,
.wk-btn:focus-visible,
.wk-all:focus-visible,
.wc-btn:focus-visible,
.vm-btn:focus-visible,
.fin-btn:focus-visible,
.mg-btn:focus-visible {
  transform: translateY(-3px);
  color: #fff !important;
  filter: none !important;
  border-color: var(--gl-edge-hi) !important;
  background: linear-gradient(
    135deg,
    rgba(196, 181, 253, 0.55),
    rgba(139, 92, 246, 0.36) 50%,
    rgba(99, 102, 241, 0.22)
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 28px rgba(221, 214, 254, 0.18),
    0 20px 40px -12px rgba(139, 92, 246, 0.85),
    0 0 0 1px rgba(10, 4, 40, 0.12) !important;
}
.f.d:hover,
.vm-btn:hover,
.wk-all:hover,
.mg-btn:hover,
.pp-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.14) 55%,
    rgba(255, 255, 255, 0.08)
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 20px 40px -14px rgba(10, 4, 40, 0.7),
    0 0 0 1px rgba(10, 4, 40, 0.12) !important;
}
.f:active,
.menu-btn:active,
.wg-cta:active,
.pp-btn:active,
.hw-cta:active,
.sv-btn:active,
.qt-btn:active,
.wk-btn:active,
.wk-all:active,
.wc-btn:active,
.vm-btn:active,
.fin-btn:active,
.mg-btn:active {
  transform: translateY(0) scale(0.97);
}
.f:focus-visible,
.menu-btn:focus-visible,
.wg-cta:focus-visible,
.pp-btn:focus-visible,
.hw-cta:focus-visible,
.sv-btn:focus-visible,
.qt-btn:focus-visible,
.wk-btn:focus-visible,
.wk-all:focus-visible,
.wc-btn:focus-visible,
.vm-btn:focus-visible,
.fin-btn:focus-visible,
.mg-btn:focus-visible {
  outline: 2px solid rgba(221, 214, 254, 0.9) !important;
  outline-offset: 3px !important;
}
.qt-btn[disabled] {
  opacity: 0.6;
  transform: none;
}

/* ---------- 4. Per-button shape fixes ---------- */
.f {
  border-radius: 999px;
}
.pp-btn {
  border-radius: 14px;
}
.vm-btn {
  border-radius: 16px;
}
.wk-btn,
.wk-all {
  border-radius: 999px;
}
.wk-all {
  padding: 14px 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--gl-edge) !important;
}
.sv-btn,
.qt-btn,
.wg-cta {
  border-radius: 18px;
}
.mg-card .mg-btn {
  border-radius: 999px;
}

/* Split CTA: glass pill with a frosted round arrow chip */
.hw-cta {
  border-radius: 999px;
  align-items: center;
}
.hw-cta i {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-radius: 50% !important;
}
.fin-btn span {
  background: rgba(255, 255, 255, 0.26) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* Round arrow button (about / finance rows) */
.fin-go {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.06)
  ) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid var(--gl-edge) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 8px 20px -8px rgba(10, 4, 40, 0.6);
}
.fin-go:hover,
.fin-go:focus-visible {
  background: linear-gradient(
    135deg,
    rgba(196, 181, 253, 0.6),
    rgba(139, 92, 246, 0.35)
  ) !important;
  border-color: var(--gl-edge-hi) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 12px 26px -8px rgba(139, 92, 246, 0.8);
}

/* Pricing buttons sit on 3 different cards: pick text colour per card */
.pp-c.s .pp-btn {
  color: #1a1230 !important;
  text-shadow: none;
  background: linear-gradient(135deg, rgba(20, 16, 31, 0.14), rgba(139, 92, 246, 0.16)) !important;
  border-color: rgba(76, 29, 149, 0.3) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 26px -12px rgba(76, 29, 149, 0.55) !important;
}
.pp-c.s .pp-btn:hover {
  color: #1a1230 !important;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.34),
    rgba(167, 139, 250, 0.22)
  ) !important;
}
.pp-c.s .pp-btn::after {
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  ) !important;
}

/* Navbar mini button + menu button */
.bar .f.mini {
  padding: 11px 24px;
  border-radius: 999px;
}
.menu-btn {
  border-radius: 999px;
}

/* ---------- 5. Tabs / pills / chips that behave like buttons ---------- */
.wg-tab,
.jr-pill,
.st-tab,
.wk-i {
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 22px -12px rgba(10, 4, 40, 0.6);
  color: #f1ecff;
  transition:
    transform 0.35s var(--gl-ease),
    background 0.35s,
    border-color 0.35s,
    box-shadow 0.35s,
    color 0.3s;
}
.wg-tab:hover,
.jr-pill:hover,
.st-tab:hover,
.wk-i:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
}
.wg-tab.on,
.jr-pill.on,
.st-tab[aria-selected="true"],
.wk-i.on {
  color: #fff;
  border-color: rgba(221, 214, 254, 0.65);
  background: linear-gradient(
    135deg,
    rgba(196, 181, 253, 0.5),
    rgba(139, 92, 246, 0.3) 55%,
    rgba(99, 102, 241, 0.2)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 24px rgba(221, 214, 254, 0.15),
    0 16px 34px -12px rgba(139, 92, 246, 0.8);
}
.jr-pill.on sup {
  color: #ede9fe;
}
.st-tab {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.st-tab[aria-selected="true"] {
  border-bottom-color: rgba(221, 214, 254, 0.65);
}

/* Slider dots */
.tr-dot {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.tr-dot[aria-current="true"] {
  background: rgba(167, 139, 250, 0.75);
  border-color: rgba(237, 233, 254, 0.9);
}

/* ---------- 6. Mobile + accessibility ---------- */
@media (max-width: 860px) {
  :root {
    --gl-blur: 14px;
  }
  .wk-btn {
    padding: 12px 20px;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .f,
  .f.d,
  .menu-btn,
  .wg-cta,
  .pp-btn,
  .hw-cta,
  .mg-btn,
  .sv-btn,
  .qt-btn,
  .wk-btn,
  .wk-all,
  .wc-btn,
  .vm-btn,
  .fin-btn,
  .fin-go,
  .wg-tab,
  .jr-pill,
  .st-tab,
  .wk-i {
    background: rgba(60, 36, 120, 0.82) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .f,
  .menu-btn,
  .wg-cta,
  .pp-btn,
  .hw-cta,
  .mg-btn,
  .sv-btn,
  .qt-btn,
  .wk-btn,
  .wk-all,
  .wc-btn,
  .vm-btn,
  .fin-btn,
  .fin-go {
    transition: none !important;
  }
  .f::after,
  .menu-btn::after,
  .pp-btn::after {
    display: none !important;
  }
}
