/* ===== GLOBAL ===== */
body {
  margin: 0;
  background: linear-gradient(#02a88f, #b011dc);
  font-family: Arial, sans-serif;
  overflow-x: hidden; /* horizontal zoom scroll prevent */
}

.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 12px;
  transform: none; /* parent scale remove */
}

/* ===== CARD ===== */
.card {
  background: #18167d;
  border: 3px solid #29ff00;
  border-radius: 18px;
  padding: 8px;
  position: relative;
  transform: none; /* remove any accidental zoom */
}

/* ===== ONLINE BADGE ===== */
.status {
  position: absolute;
  top: 12px;
  left: 12px;

  font-size: 14px;
  font-weight: 600;
  color: white;

  padding: 7px 16px;
  border-radius: 40px;

  display: flex;
  align-items: center;
  gap: 10px;

  background: rgba(180, 180, 180, 0.65);
  backdrop-filter: blur(8px);

  z-index: 2;
}

/* ===== GREEN LIVE DOT ===== */
.dot {
  width: 12px;
  height: 12px;
  background: #37ff00;
  border-radius: 50%;

  box-shadow: 0 0 12px rgba(55, 255, 0, 0.95);

  animation: livePulse 1.2s infinite;
  transform-origin: center center;
}

@keyframes livePulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.35); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== MEDIA ===== */
.media {
  height: 175px;
  background: #06124a;
  border-radius: 14px;
  overflow: hidden;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== INFO ===== */
.info {
  background: rgba(34, 139, 34, 0.95);
  margin-top: 8px;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  color: white;
}

.info h3 {
  margin: 0;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.info p {
  margin: 3px 0 0;
  font-size: 14px;
}

/* ===== CARD WHATSAPP BUTTON ===== */
.card-btn {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  background: #e4ffd9;
  color: black;
  text-decoration: none;

  padding: 13px;
  border-radius: 12px;

  font-size: 17px;
  font-weight: bold;

  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.card-btn img {
  width: 28px;
  height: 28px;
}

/* ===== POPUP PAYMENT BUTTON ===== */
.popup-btn-call {
  display: block;
  margin-top: 12px;
  animation: pulse 1.2s infinite;
}

.popup-btn-call img {
  width: 100%;
  border-radius: 30px;
}

/* ===== TOP SLIDER ===== */
.top-slider {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
  background: black;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slides img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.slides img.active {
  opacity: 1;
}

/* ===== FOOTER ===== */
.site-footer {
  width: 100%;
  background-color: #4300ca;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  position: relative;
  bottom: 0;
}

/* ===== POPUP BASE ===== */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 9999;
}

.popup.show {
  visibility: visible;
  opacity: 1;
}

.popup-content {
  background: #fff;
  color: #111;
  padding: 25px 30px;
  border-radius: 15px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.popup-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  gap: 15px;
}

.popup-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

#yesBtn { background-color: #29ff00; color: #111; }
#noBtn  { background-color: #ff3b3b; color: #fff; }

.popup-btn:hover { transform: scale(1.05); }

/* ===== POPUP PAYMENT FIX ===== */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5555;
    padding: 20px; /* extra padding to prevent cut */
}

.popup-box {
    width: 350px;
    max-height: 85vh; /* prevent overflow from cutting content */
    overflow-y: auto; /* enable scroll if content exceeds */
    background: #0f8b6d;
    border-radius: 12px;
    padding: 30px 20px 20px 20px; /* extra top padding so close button not cut */
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    animation: fadeIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 20px; /* move a bit down so it's visible */
    right: 20px;
    color: white;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.confirm-btn {
  display: block;
  margin-top: 14px;
  background: #16c60c;
  color: white;
  padding: 14px;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.confirm-btn:active {
  transform: scale(0.97);
}
/* ===== AD SECTION ===== */
.ad-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 5px;
  padding: 0 10px;
}

.ad-box {
  width: 100%;
  max-width: 350px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive fix */
@media (min-width: 768px) {
  .ad-box {
    max-width: 728px; /* Tablet/Desktop */
  }
}