.ios-bubble {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(48px) saturate(185%);
  -webkit-backdrop-filter: blur(48px) saturate(185%);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -16px 40px rgba(0, 0, 0, 0.1),
    0 12px 44px rgba(0, 0, 0, 0.32);
}

.ios-bubble > * {
  position: relative;
  z-index: 1;
}

.ios-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 22%,
    transparent 48%
  );
  pointer-events: none;
  z-index: 0;
}

.ios-bubble::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

.apple-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
}

.apple-chip.ios-bubble::after {
  left: 18%;
  right: 18%;
}

.apple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.28s var(--ease-spring),
    box-shadow 0.28s,
    background 0.28s;
}

.apple-btn-primary {
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(255, 88, 102, 1) 0%,
    rgba(224, 0, 22, 1) 55%,
    rgba(180, 0, 18, 1) 100%
  );
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 12px rgba(0, 0, 0, 0.2),
    0 8px 28px rgba(204, 0, 17, 0.45);
}

.apple-btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 50%;
  border-radius: 100px 100px 60% 60%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.apple-btn-primary:hover {
  transform: scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 12px 36px rgba(204, 0, 17, 0.55);
}

.apple-btn-glass {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -8px 24px rgba(0, 0, 0, 0.08),
    0 8px 28px rgba(0, 0, 0, 0.28);
}

.apple-btn-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 45%
  );
  pointer-events: none;
}

.apple-btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.05);
}

.apple-btn:active,
.apple-btn-primary:active,
.apple-btn-glass:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}

.glass-panel {
  border-radius: var(--radius-xl);
}

.section-glass {
  margin-inline: clamp(16px, 3vw, 36px);
  padding: clamp(52px, 6vw, 76px) clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
}

.ios-bubble-round {
  border-radius: 50%;
}

.ios-bubble-round::after {
  left: 22%;
  right: 22%;
}

.reviews-arrow.ios-bubble {
  z-index: 1;
}

.ios-bubble-inset {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 32px rgba(0, 0, 0, 0.15);
}

.ios-bubble-inset::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 40%
  );
  pointer-events: none;
}

.apple-btn-discord {
  color: #fff;
  background: linear-gradient(180deg, #6b77f5 0%, #5865f2 55%, #4752c4 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -3px 12px rgba(0, 0, 0, 0.18),
    0 12px 40px rgba(88, 101, 242, 0.4);
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

.apple-btn-discord::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 48%;
  border-radius: 100px 100px 55% 55%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.26) 0%,
    transparent 100%
  );
  pointer-events: none;
  transition: opacity 0.3s;
}

.apple-btn-discord::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 45%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.55s var(--ease-out);
}

.discord-big.apple-btn-discord:hover {
  transform: scale(1.08) translateY(-4px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 20px 52px rgba(88, 101, 242, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: discord-glow 1.4s ease-in-out infinite;
}

.discord-big.apple-btn-discord:hover::before {
  opacity: 1;
}

.discord-big.apple-btn-discord:hover::after {
  left: 130%;
}

.discord-big.apple-btn-discord:hover svg {
  transform: scale(1.12) rotate(-6deg);
}

@keyframes discord-glow {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      0 18px 48px rgba(88, 101, 242, 0.5);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      0 22px 56px rgba(114, 137, 218, 0.65);
  }
}

.apple-btn-discord:active {
  transform: scale(0.96) translateY(0);
  animation: none;
  transition-duration: 0.1s;
}

.wcard-img.ios-bubble {
  padding: 3px;
}

.wcard-img.ios-bubble img,
.wcard-img.ios-bubble .placeholder-img {
  border-radius: calc(var(--radius-lg) - 3px);
}
