/* user-app/css/popup.css */
/* Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* MPIN Popup */
.mpin-popup {
  background: white;
  width: 90%;
  max-width: 340px;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.popup-overlay.active .mpin-popup {
  transform: scale(1);
}

.mpin-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
}

.mpin-inputs {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 30px;
}

.mpin-box {
  width: 45px;
  height: 50px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 24px;
  text-align: center;
  font-weight: bold;
  outline: none;
  transition: border-color 0.2s;
  background: #fafafa;
}

.mpin-box:focus {
  border-color: #007bff;
  background: white;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.mpin-actions {
  display: flex;
  border-top: 1px solid #f0f0f0;
  margin: 0 -24px -24px -24px;
}

.mpin-btn {
  flex: 1;
  padding: 16px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel {
  color: #333;
  border-right: 1px solid #f0f0f0;
}

.btn-confirm {
  color: #007bff;
}

/* Success Message */
.success-popup {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.popup-overlay.active .success-popup {
  transform: translateY(0);
}

.success-icon {
  width: 40px;
  height: 40px;
  background: #e8f5e9;
  color: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
}

.success-text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}

/* Video Popup */
.video-popup {
  background: black;
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.video-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  background: #111;
}

/* Telegram Popup */
.telegram-popup {
  background: white;
  width: 90%;
  max-width: 340px;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  position: relative;
}

.telegram-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
}

.telegram-icon {
  width: 60px;
  height: 60px;
  background: #e1f5fe;
  color: #03a9f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.telegram-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.telegram-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.btn-telegram {
  background: #03a9f4;
  color: white;
  text-decoration: none;
  display: block;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-telegram:hover {
  background: #0288d1;
}
