/* Sticky Sidebar Container */
.sticky-sidebar {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 9999;
}

/* Button Base */
.sidebar-btn {
  position: relative;
  display: inline-block;
  padding: 12px 28px;
  color: #fff;
  background: #1A85B2;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  border-radius: 50px;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

/* Rotating Blue Border (Full Smooth Circle) */
.sidebar-btn::before {
  content: "";
  position: absolute;
  inset: -2px; /* border extends just slightly outward */
  border-radius: 50px;
  background: conic-gradient(
    from 0deg,
    #1A85B2,
    #4DB7E8,
    #1A85B2,
    #4DB7E8,
    #1A85B2
  );
  animation: spin 2.5s linear infinite;
  z-index: -1;
}

/* Inner Background to mask border gap */
.sidebar-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #1A85B2;
  border-radius: 50px;
  z-index: -1;
}

/* Hover Effect */
.sidebar-btn:hover {
  color: white;
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(26, 133, 178, 0.4);
}

/* Rotating Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* Tablet View (769px to 1024px) */
@media (max-width: 1024px) {
  .sticky-sidebar {
    right: 15px;
    gap: 14px;
  }

  .sidebar-btn {
    width: auto;
    padding: 8px 22px;
    font-size: 14px;
  }

  .sidebar-btn::before {
    inset: -1px;
  }

  .sidebar-btn::after {
    inset: 1px;
  }
}

/* Phone View (Up to 768px) */
@media (max-width: 768px) {
  .sticky-sidebar {
    right: 10px;
    gap: 10px;
  }

  .sidebar-btn {
    width: auto;
    padding: 6px 16px;
    font-size: 12px;
  }

  .sidebar-btn::before {
    inset: -1px;
  }

  .sidebar-btn::after {
    inset: 1px;
  }
}

.backrx-wrap {
  position: relative;
  max-width: 520px;
  border-radius: 24px;
  overflow: hidden;
}

.backrx-img {
  width: 100%;
  display: block;
  border-radius: 24px;
}

/* Floating stat cards */
.bx-card {
  position: absolute;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  text-align: center;
  animation: float 5s ease-in-out infinite;
  will-change: transform;
}

.bx-card strong {
  font-size: 22px;
  font-weight: 700;
  color: #2BAE9E;
  display: block;
}

.bx-card span {
  font-size: 13px;
  color: #6B7C7B;
}

/* Positions */
.bx-left {
  top: 32px;
  left: -36px;
}

.bx-right {
  bottom: 40px;
  right: -32px;
  animation-delay: 1.5s;
}

/* Smooth floating */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Mobile fix */
@media (max-width: 768px) {
  .bx-left { left: 12px; }
  .bx-right { right: 12px; }
}

/* Wrapper */
.backrx-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
}

/* Glow effect */
.backrx-glow {
    position: absolute;
    width: 280px;
    height: 480px;
    background: radial-gradient(circle, rgba(46,201,170,0.35), transparent 70%);
    filter: blur(60px);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 0.6; transform: scale(1); }
}

/* Phone body */
.backrx-phone {
    position: relative;
    width: 260px;
    height: 500px;
    background: #ffffff;
    border-radius: 36px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.25);
    padding: 40px 24px;
    text-align: center;
    animation: floatPhone 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes floatPhone {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* Notch */
.backrx-notch {
    width: 120px;
    height: 24px;
    background: #111;
    border-radius: 20px;
    margin: -18px auto 30px;
}

/* Logo */
.backrx-logo img {
    width: 64px;
    height: auto;
    margin-bottom: 16px;
}

/* Text */
.backrx-phone h3 {
    font-size: 20px;
    margin: 6px 0;
    color: #0f172a;
}

.backrx-phone p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 30px;
}

/* Button */
.backrx-btn {
    display: inline-block;
    background: #2EC9AA;
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(46,201,170,0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.backrx-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 40px rgba(46,201,170,0.6);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .backrx-phone {
        width: 220px;
        height: 460px;
    }
}














