@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&display=swap');

.tp-toast-wrap {
  position: fixed;
  z-index: 9999;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.tp-toast {
  pointer-events: auto;
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  color: #fff;
  overflow: hidden;
  transform: translateY(-8px);
  opacity: 0;
  animation: tp-toast-in 180ms ease-out forwards;
}

.tp-toast.tp-toast-out {
  animation: tp-toast-out 160ms ease-in forwards;
}

.tp-toast__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tp-toast__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
}

.tp-toast__title {
  font-weight: 900;
  font-size: 14px;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
}

.tp-toast__msg {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
}

.tp-toast__actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.tp-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.tp-btn:hover {
  background: rgba(255, 255, 255, 0.10);
}

.tp-btn:active {
  transform: translateY(1px);
}

.tp-btn--primary {
  border-color: rgba(220, 38, 38, 0.55);
  background: rgba(220, 38, 38, 0.22);
}

.tp-btn--primary:hover {
  background: rgba(220, 38, 38, 0.30);
}

.tp-btn--danger {
  border-color: rgba(239, 68, 68, 0.70);
  background: rgba(239, 68, 68, 0.22);
}

.tp-btn--danger:hover {
  background: rgba(239, 68, 68, 0.30);
}

.tp-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.tp-progress>div {
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: rgba(220, 38, 38, 0.75);
  animation: tp-progress linear forwards;
}

.tp-theme-success .tp-progress>div {
  background: rgba(34, 197, 94, 0.78);
}

.tp-theme-info .tp-progress>div {
  background: rgba(59, 130, 246, 0.78);
}

.tp-theme-warning .tp-progress>div {
  background: rgba(245, 158, 11, 0.85);
}

.tp-theme-error .tp-progress>div {
  background: rgba(239, 68, 68, 0.85);
}

.tp-theme-success .tp-toast__icon {
  border-color: rgba(34, 197, 94, 0.40);
  background: rgba(34, 197, 94, 0.10);
}

.tp-theme-info .tp-toast__icon {
  border-color: rgba(59, 130, 246, 0.40);
  background: rgba(59, 130, 246, 0.10);
}

.tp-theme-warning .tp-toast__icon {
  border-color: rgba(245, 158, 11, 0.40);
  background: rgba(245, 158, 11, 0.10);
}

.tp-theme-error .tp-toast__icon {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.10);
}

.tp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  animation: tp-overlay-in 160ms ease-out forwards;
}

.tp-modal {
  width: min(560px, calc(100vw - 40px));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.80);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.70);
  color: #fff;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  animation: tp-modal-in 180ms ease-out forwards;
}

.tp-modal.tp-theme-success {
  border-color: rgba(34, 197, 94, 0.22);
}

.tp-modal.tp-theme-info {
  border-color: rgba(59, 130, 246, 0.18);
}

.tp-modal.tp-theme-warning {
  border-color: rgba(245, 158, 11, 0.22);
}

.tp-modal.tp-theme-error {
  border-color: rgba(239, 68, 68, 0.24);
}

.tp-modal__top {
  padding: 18px 18px 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tp-modal__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-modal__type {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.tp-theme-success .tp-modal__type {
  border-color: rgba(34, 197, 94, 0.40);
  background: rgba(34, 197, 94, 0.10);
}

.tp-theme-info .tp-modal__type {
  border-color: rgba(59, 130, 246, 0.40);
  background: rgba(59, 130, 246, 0.10);
}

.tp-theme-warning .tp-modal__type {
  border-color: rgba(245, 158, 11, 0.40);
  background: rgba(245, 158, 11, 0.10);
}

.tp-theme-error .tp-modal__type {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.10);
}

.tp-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
}

.tp-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.tp-modal__close:hover {
  background: rgba(255, 255, 255, 0.10);
}

.tp-modal__body {
  padding: 14px 18px 18px 18px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  line-height: 1.45;
}

.tp-image-modal {
  width: min(980px, calc(100vw - 40px));
}

.tp-image-body {
  padding: 0;
}

.tp-image-frame {
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.tp-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
}

.tp-image-caption {
  padding: 12px 18px 16px 18px;
  color: rgba(255, 255, 255, 0.70);
  font-weight: 800;
  font-size: 13px;
}

.tp-modal__actions {
  padding: 14px 18px 18px 18px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.tp-lock-scroll {
  overflow: hidden !important;
}

@keyframes tp-toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tp-toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes tp-progress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@keyframes tp-overlay-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes tp-modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}