/* topup.css - Final Fix for popup-card background */

.chanel-card {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
}

.chanel-card-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
}

.chanel-card-info {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  gap: 0.4rem;
  margin-left: 2rem;
}

.stars-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.arrow-icon {
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
}

.exchange-rate {
  color: #9ca3af;
  font-size: 0.85rem;
}

.channel-grid {
  overflow: hidden;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.channel-grid.open {
  transform: scaleY(1);
  opacity: 1;
}

.channel-arrow.open .arrow-icon {
  transform: rotate(180deg);
}

.icon-in-button {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.5rem auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

header .flex {
  display: flex;
  align-items: center;
}

header img {
  margin-right: 0.5rem;
  height: 50px;
  border-radius: 50%;
}

img {
  object-fit: cover;
}

header span {
  font-size: 1.25rem;
  color: #3B82F6;
  font-weight: bold;
}

.hover-box {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
}

.hover-box:hover {
  border: 2px solid yellow;
}

.hover-box .checkmark-container {
  display: none;
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.hover-box:hover .checkmark-container {
  display: block;
}

.icon-navbar {
  width: 2rem;
  height: 2rem;
}

#popup-premium,
#popup-login {
  box-sizing: border-box;
  max-width: 100vw;
  word-wrap: break-word;
}

.popup-channel-grid {
  position: relative;
  z-index: 40;
  background-color: #2f2f2f;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 100%;
  margin-top: 1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: top;
}

.popup-card {
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
  background-color: #2d2d2d;
  color: white;
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}

.popup-card.selected {
  border: 2px solid #facc15;
  background-color: #fef9c3;
  color: black;
}

.popup-card:hover {
  background: #383838;
  transform: translateY(-2px);
}

.checkmark-container {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: transparent;
  align-items: center;
  justify-content: center;
}

.checkmark {
  color: white;
  font-size: 0.8rem;
}

.arrow-icon {
  transition: transform 0.1s ease;
}

.arrow-icon.rotate {
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .popup-channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .popup-channel-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  #popup-premium,
  #popup-login {
    width: 90vw;
    left: 5vw !important;
    right: auto;
  }
}

#confirmModal {
  transition: opacity 0.1s ease, transform 0.1s ease;
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
}

#confirmModal.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hidden {
  display: none;
}

.show {
  display: flex;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
