.tiger-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tiger-popup-overlay.dark-mode {
  background: rgba(0, 0, 0, 0.7);
}

.tiger-popup-overlay.no-overlay {
  background: transparent;
  pointer-events: none;
}

.tiger-popup {
  --primary: #4F46E5;
  --primary-light: #818CF8;
  --neutral-100: #FFFFFF;
  --neutral-200: #E5E7EB;
  --neutral-400: #9CA3AF;
  --neutral-500: #6B7280;
  --neutral-600: #4B5563;
  --neutral-700: #374151;
  --danger: #F53F3F;
  --success: #00B42A;
  --warning: #FF7D00;
  --card-bg: #FFFFFF;
}

.tiger-popup.loading-mode, .dark-mode .tiger-popup.loading-mode {
  --card-bg: transparent;
  --neutral-100: transparent;
  --neutral-600: #FFFFFF;
}

.tiger-popup.dark-mode {
  --primary: #818CF8;
  --primary-light: #4F46E5;
  --neutral-100: #111827;
  --neutral-200: #374151;
  --neutral-400: #9CA3AF;
  --neutral-500: #D1D5DB;
  --neutral-600: #E5E7EB;
  --neutral-700: #F3F4F6;
  --danger: #F87171;
  --card-bg: #1F2937;
}

.tiger-popup-overlay.closing {
  transition: all 0.2s ease-out;
}

.tiger-popup-overlay.closing .tiger-popup {
  transform: translateY(15px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.6, 1), opacity 0.2s ease-out;
}

.tiger-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tiger-popup-overlay.active .tiger-popup-msg {
  transform: translateY(0);
  opacity: 1;
}

.tiger-popup {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
  width: 90%;
  max-width: 500px;
  transform: translateY(-15px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tiger-popup-border-red {
  border: 3px solid var(--danger) !important;
}
.tiger-popup-border-red .tiger-popup-title{
  color: var(--danger);
}

.tiger-popup-border-green {
  border: 3px solid var(--success) !important;
}
.tiger-popup-border-green .tiger-popup-title{
  color: var(--success);
}

.tiger-popup-overlay.active .tiger-popup {
  transform: translateY(0) scale(1);
}

.tiger-popup-header {
  padding: 0 20px;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, var(--card-bg), var(--neutral-100));
}

.tiger-popup-title {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 600;
  color: var(--neutral-700);
  letter-spacing: 0.3px;
  margin:1rem 0;
}
.tiger-popup-title i{
  margin-right: 8px;
}

.tiger-popup-body {
  padding: 26px 20px;
  color: var(--neutral-600);
  background: var(--neutral-100);
  /* margin: 12px; */
  line-height: 1.6;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tiger-popup-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--neutral-400);
  cursor: pointer;
  transition: color 0.2s;
}

.tiger-popup-close:hover {
  color: var(--danger);
}

.tiger-popup-close.standalone-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.tiger-popup-close.standalone-close-btn i{
    margin-right:0;
}


.tiger-popup-close:active { transform: scale(0.9); }

.tiger-popup-footer {
  padding: 12px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: linear-gradient(to top, var(--card-bg), var(--neutral-100));
  flex-wrap: wrap;
}

.tiger-popup-btn {
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.tiger-popup-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.tiger-popup *:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  z-index: 1055;
}

.tiger-popup input:focus,
.tiger-popup textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
  outline: none;
  transition: border-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tiger-popup input,
.tiger-popup textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  margin-bottom: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s, color 0.3s;
}

.tiger-popup input:hover,
.tiger-popup textarea:hover {
  border-color: var(--neutral-300);
}

.tiger-popup input:disabled,
.tiger-popup textarea:disabled {
  background: var(--neutral-100);
  border-color: var(--neutral-200);
  color: var(--neutral-400);
  cursor: not-allowed;
  opacity: 0.8;
}

.tiger-popup input.error,
.tiger-popup textarea.error {
  border-color: var(--danger);
}

.tiger-popup input.success,
.tiger-popup textarea.success {
  border-color: var(--success);
}

.tiger-popup .error-message {
  color: var(--danger);
  font-size: 12px;
  margin-top: -12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.tiger-popup .error-message i {
  margin-right: 4px;
  font-size: 14px;
}

.tiger-popup input::placeholder,
.tiger-popup textarea::placeholder {
  color: var(--neutral-400);
  font-style: italic;
}

@media (max-width: 480px) {
  .tiger-popup-btn {
    width: 100%;
    margin-bottom: 8px;
  }
}

.tiger-popup-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tiger-popup-btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tiger-popup-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.tiger-popup-btn-secondary {
  background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
  color: var(--neutral-600);
  border: 1px solid var(--neutral-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tiger-popup-btn-secondary:hover {
  background: var(--neutral-200);
  transform: translateY(-2px) scale(1.02);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tiger-popup-btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.tiger-popup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.tiger-popup-btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.tiger-popup-btn.loading .tiger-loading {
  width: 16px;
  height: 16px;
  margin-right: 12px;
}

.tiger-loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid transparent;
  border-radius: 50%;
  border-top-color: var(--primary);
  border-bottom-color: var(--primary-light);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
}

.tiger-popup-msg {
  background: #000000b0;
  color: white;
  padding: 16px 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(15px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.tiger-popup-msg i {
  font-size: 24px;
  width: 28px;
  text-align: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.tiger-popup-msg.success i {
  color: var(--success);
}

.tiger-popup-msg.error i {
  color: var(--danger);
}

.tiger-popup-msg.warning i {
  color: var(--warning);
}

.tiger-popup-msg.info {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(69, 60, 219, 0.95));
}

.tiger-popup-msg.success i:before {
  content: '\f058';
}

.tiger-popup-msg.error i:before {
  content: '\f057';
}

.tiger-popup-msg.warning i:before {
  content: '\f06a';
}

.tiger-popup-msg.info i:before {
  content: '\f05a';
}

@media (max-width: 768px) {
  .tiger-popup {
    width: 95% !important;
  }

  .tiger-popup-footer {
    flex-direction: column;
  }

  .tiger-popup-btn {
    width: 100%;
  }
}