/* ===== Liquid Glass UI (ref: pin.it liquid home button / Web3) ===== */

.liquid-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.liquid {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(255, 255, 255, 0.12) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  overflow: hidden;
}

.liquid::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.55) 0%,
    transparent 35%,
    transparent 60%,
    rgba(255, 255, 255, 0.12) 100%
  );
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.liquid::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 70%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 68%);
  filter: blur(2px);
  pointer-events: none;
  transition: transform 0.45s ease;
}

.liquid:hover::after {
  transform: translate(18%, 10%) scale(1.05);
}

/* Header becomes liquid bar */
.header {
  background: rgba(10, 10, 10, 0.35) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28) !important;
}

.tabs {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tabs a.is-active {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92),
    rgba(230, 230, 230, 0.85)
  ) !important;
  color: #0a0a0a !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Buttons → liquid glass */
.btn--primary,
.btn--soft,
.btn--ghost {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(235, 235, 235, 0.82) 100%
  ) !important;
  color: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -8px 18px rgba(0, 0, 0, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(10px);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.75) 0%,
    transparent 40%,
    transparent 70%,
    rgba(255, 255, 255, 0.2) 100%
  );
  opacity: 0.7;
  pointer-events: none;
}

.btn--ghost,
.btn--soft {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 22px rgba(0, 0, 0, 0.25);
}

.btn--ghost:hover,
.btn--soft:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

/* Service / review cards */
.svc-card,
.review-card,
.panel,
.feature-card,
.plan,
.cta,
.speed-chip,
.filter-chip,
.reviews-summary,
.review-form-card {
  background: rgba(16, 16, 16, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.28);
}

.speed-chip--hot,
.filter-chip.is-active {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(220, 220, 220, 0.88)
  ) !important;
  color: #0a0a0a !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}

.tg-link {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(230, 230, 230, 0.88)
  ) !important;
  color: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow:
    inset 0 1px 0 #fff,
    0 10px 24px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(12px);
}

/* Floating liquid HOME button (Pinterest ref) */
.liquid-home {
  position: fixed;
  z-index: 60;
  left: 1.15rem;
  bottom: 1.15rem;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.16) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -10px 20px rgba(255, 255, 255, 0.06),
    0 14px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.liquid-home:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 48px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.liquid-home__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.55) 0%,
    transparent 38%,
    transparent 62%,
    rgba(255, 255, 255, 0.15) 100%
  );
  pointer-events: none;
}

.liquid-home__blob {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 70%);
  filter: blur(1px);
  top: 6px;
  left: 8px;
  pointer-events: none;
  animation: liquid-drift 4.5s ease-in-out infinite;
}

.liquid-home__icon {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: block;
}

.liquid-home__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes liquid-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(10px, 8px) scale(1.15); opacity: 1; }
}

/* Sound fab also liquid */
.sound-fab {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(16px) saturate(1.3) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 12px 28px rgba(0, 0, 0, 0.35) !important;
}

.modal__panel {
  background: rgba(18, 18, 18, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 80px rgba(0, 0, 0, 0.55) !important;
}

.brand__logo {
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

.hero__visual,
.hero__tile,
.hero__badge {
  background: rgba(12, 12, 12, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero__visual {
  background: rgba(8, 8, 8, 0.25) !important;
}

@media (prefers-reduced-motion: reduce) {
  .liquid-home__blob { animation: none; }
  .liquid:hover::after,
  .liquid-home:hover { transform: none; }
}

@media (max-width: 560px) {
  .liquid-home {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    left: 0.85rem;
    bottom: 0.85rem;
  }
}
