/* ============================================
   COIN ALERT POPUP COMPONENT
   ============================================ */

/* Overlay */
.coin-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 10000;
  pointer-events: none;
  padding: 20px;
}

.coin-alert-overlay.active {
  display: flex;
}

/* Alert Box */
.coin-alert-box {
  position: relative;
  width: 241px;
  min-height: 166px;
  background: linear-gradient(90deg, #8d0a00 0%, #885100 100%);
  border: 1px solid #e2a301;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.coin-alert-overlay.active .coin-alert-box {
  transform: translateY(0);
  opacity: 1;
}

.coin-alert-overlay.closing .coin-alert-box {
  transform: translateY(100%);
  opacity: 0;
}

/* Close Button */
.alert-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #ffd500;
  font-size: 20px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 10;
  font-weight: bold;
}

.alert-close-btn:hover {
  color: #fff;
}

/* Alert Header */
.alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.alert-warning-icon {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
}

.alert-title {
  font-family: var(--font-primary);
  font-size: 25px;
  font-weight: var(--font-weight-medium);
  color: #ffd500;
  margin: 0;
  line-height: 1.2;
}

/* Alert Message */
.alert-message {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: #fff;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.alert-message p {
  margin: 0 0 4px 0;
}

.alert-message p:last-child {
  margin-bottom: 0;
}

/* Divider Line */
.alert-divider {
  width: 100%;
  height: 1px;
  background: #e2a301;
  margin: 20px 0 16px 0;
  opacity: 0.5;
}

/* See Details Link */
.alert-details-link {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  color: #ffd500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-block;
}

.alert-details-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .coin-alert-overlay {
    padding: 15px;
  }

  .coin-alert-box {
    width: calc(100% - 30px);
    max-width: 300px;
  }

  .alert-title {
    font-size: 22px;
  }

  .alert-message {
    font-size: 14px;
  }

  .alert-details-link {
    font-size: 18px;
  }
}

