.login-required-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  visibility: hidden;
  transition: none !important;
  animation: none !important;
  pointer-events: none;
}

.login-required-modal.active {
  visibility: visible;
}

.login-required-content {
  position: relative;
  background: #ffcf25;
  width: 257px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 18px 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: none !important;
  animation: none !important;
  transform: none !important;
  pointer-events: auto;
}

.login-required-header {
  width: 100%;
  text-align: center;
  margin-bottom: 12px;
}

.login-required-title {
  margin: 0;
  color: white;
  font-size: 22px;
  font-weight: 500;
}

.login-required-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-required-close:hover {
  background: rgba(255, 255, 255, 0.5);
}

.login-required-close::before,
.login-required-close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background: white;
}

.login-required-close::before {
  transform: rotate(45deg);
}

.login-required-close::after {
  transform: rotate(-45deg);
}

.login-required-body {
  width: 100%;
  text-align: center;
}

.login-required-message {
  font-size: 14px;
  color: #666666;
  margin: 0 0 16px 0;
}

.login-required-button {
  width: 150px;
  height: 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  line-height: 32px;
  text-transform: none;
  font-size: 13px;
  background-color: white;
  color: #787578;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
}

.login-required-button:hover {
  background-color: #c7a3a3;
  color: #ffffff;
}

.login-required-button:active {
  transform: scale(0.98);
}

.upgrade-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10010;
}

.upgrade-modal.active {
  display: flex;
}

.upgrade-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 444px;
  min-width: 444px;
  max-width: 94vw;
  padding: 0 0 28px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: none;
}

.upgrade-modal-header {
  width: 444px;
  background: #ffcf25;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 22px 0px 18px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-modal-title {
  color: #fff;
  font-size: 22px;
  margin-left: 23px;
  font-weight: bold;
}

.upgrade-modal-close {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
}

.upgrade-modal-body {
  padding: 28px 32px 0 32px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.upgrade-modal-subtitle {
  color: #666666;
  font-size: 16px;
  margin-bottom: 28px;
}

.upgrade-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.upgrade-modal-update {
  background: #ffe725;
  color: #90773c;
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.upgrade-modal-update:hover {
  background: #ffcf25;
}

.upgrade-modal-cancel {
  background: #b3b3b3;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.upgrade-modal-cancel:hover {
  background: #c7a3a3;
}

.create-glubler-popup {
  position: fixed;
  background: #ffe725;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 10000;
  width: 200px;
}

.create-glubler-input {
  width: 90%;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 14px;
}

.create-glubler-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
}

.create-glubler-popup-button {
  padding: 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.create-glubler-popup-button:hover {
  opacity: 0.9;
}

.glue-popup {
  position: fixed;
  bottom: -100px; /* Start position: hidden below the viewport */
  left: 50%;
  transform: translateX(-50%);
  background: #ffcf25;
  color: #666666;
  padding: 15px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  font-weight: bold;
  opacity: 1; /* Always opaque */
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Slower smooth easing */
  z-index: 1000;
  width: 222px;
  text-align: center;
  overflow: hidden; /* Clip shapes to rounded border */
  /* Removed white border */
}

/* Ensure text content is above shapes */
.glue-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.glue-popup.show {
  bottom: 42px; /* End position: 42px from bottom (lowered by 66px) */
  opacity: 1; /* Always opaque */
  visibility: visible;
  transform: translateX(-50%) scale(1);
  animation: slideUpBounce 0.8s ease-out; /* Slower animation */
}

.glue-popup.hide {
  bottom: -100px; /* Slide back down */
  opacity: 1; /* Stay opaque while hiding */
  visibility: hidden;
  transform: translateX(-50%) scale(0.95);
  transition: all 0.6s ease-in; /* Slower hide transition */
}

/* Keyframe animation for a subtle bounce effect when sliding up */
@keyframes slideUpBounce {
  0% {
    bottom: -100px;
    opacity: 1; /* Always opaque */
    transform: translateX(-50%) scale(0.9);
  }
  60% {
    bottom: 47px;
    transform: translateX(-50%) scale(1.02);
  }
  100% {
    bottom: 42px;
    opacity: 1; /* Always opaque */
    transform: translateX(-50%) scale(1);
  }
}
