.code-block-3 {
  margin: 8px auto;
  text-align: center;
  clear: both;
}

/* Button Style */
.wa-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(45deg, #25D366, #1ebe57);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: pulse 1.8s infinite, bounce 2s infinite;
}

/* Icon Animation */
.wa-join-icon {
  font-size: 22px;
  animation: shake 1.5s infinite;
}

/* Hover Effect */
.wa-join-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Pulse Effect */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Bounce Effect */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Phone Shake */
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}
/* Wrapper */
.custom-wa-join-wrapper {
  text-align: center;
  margin: 15px auto;
}

/* Button */
.custom-wa-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease-in-out;
  animation: customBounce 2s infinite ease-in-out;
}

/* Glow Pulse Ring */
.custom-wa-join-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 60px;
  background: rgba(255, 75, 43, 0.5);
  z-index: -1;
  animation: customPulse 2s infinite;
}

/* Icon */
.custom-wa-join-icon {
  font-size: 22px;
  animation: ring 1.5s infinite;
}

/* Hover */
.custom-wa-join-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Animations */
@keyframes customBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes customPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-8deg); }
}
.video-frame {
    position: relative;
    width: 100%;
    height: 300px;   /* card height */
    overflow: hidden;
}

.yt-player,
.yt-player iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
}
@media (max-width: 600px) {
    .profile-section .profiles {
        grid-template-columns: 1fr;
    }
}
.profile-list {
    width: 24rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #111;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-details {
    flex: 1;
}

.profile-details h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.status {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
}

.live-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 20px;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #fff;
    background: #444;
}

.btn.call {
    background: #28a745;
}

.btn.video {
    background: #e91e63;
}
.popup-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999999;
}

.popup-box{
    background:#fff;
    padding:25px;
    width:320px;
    text-align:center;
    border-radius:12px;
    animation:pop .25s ease;
}

.popup-box button{
    padding:10px 18px;
    margin:6px;
    border:none;
    border-radius:6px;
    cursor:pointer;
}
.popup-btn{
    width:100%;
    padding:15px;
    border:none;
    border-radius:14px;
    font-weight:bold;
    font-size:16px;
    cursor:pointer;
    margin-top:14px;
    transition:0.35s;
    letter-spacing:0.5px;
    color:white;
}

/* Cancel Button */
.cancel-btn{
    background: rgba(0,0,0,0.35);
}

/* Public Room Button */
.public-btn{
    background: linear-gradient(45deg,#ff512f,#f09819,#ff4d6d);
    box-shadow:0 0 18px rgba(255,80,80,0.7);
}

/* Private Premium Button */
.private-btn{
    background: linear-gradient(45deg,#7f00ff,#e100ff,#ff4da6);
    box-shadow:0 0 20px rgba(180,0,255,0.7);
}

/* Hover Effect */
.popup-btn:hover{
    transform:scale(1.06);
    filter:brightness(1.15);
}
@keyframes pop{
    from{transform:scale(.7);opacity:0}
    to{transform:scale(1);opacity:1}
}
.video-frame {
    
          /* Important: makes the preloader position correctly */
    width: 100%;              /* or your desired width */
    aspect-ratio: 16 / 9;     /* typical video ratio - adjust as needed */
    background: #000;         /* dark background like YouTube */
    overflow: hidden;
}

.video-preloader {
    position: absolute;
    inset: 0;                 /* shorthand for top:0; right:0; bottom:0; left:0; */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);   /* semi-transparent dark overlay */
    z-index: 10;              /* above the player */
    transition: opacity 0.4s ease;
}

.video-preloader.hidden {
    opacity: 0;
    pointer-events: none;     /* clicks go through when hidden */
}

/* Simple modern spinner (pure CSS) */
.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #ffffff33;        /* semi-transparent white ring */
    border-top: 5px solid #ffffff;      /* bright white top for rotation effect */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.video-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #f00;           /* YouTube red */
    z-index: 20;
    transition: width 0.3s ease;
}

.video-frame.loading::before {
    width: 100%;
    animation: indeterminate 2s linear infinite;
}

@keyframes indeterminate {
    0%   { width: 0%;   left: 0; }
    50%  { width: 70%;  left: 15%; }
    100% { width: 0%;   left: 100%; }
}
.video-frame {
    /*position: relative;*/
        position: initial;
    width: 100%;
    aspect-ratio: 16 / 9;     /* or your video ratio */
    background: #000;
    overflow: hidden;
}

.video-preloader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);   /* optional semi-dark overlay */
    z-index: 10;
    transition: opacity 0.4s ease;
}

.video-preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-gif {
    width: 64px;     /* adjust size as needed */
    height: 64px;
    object-fit: contain;
}

