/* ========================================================
   SMART TOOL LAUNCH NOTIFICATION & STEP-BY-STEP MODAL CSS
   Features: Glassmorphism, Responsive, Dark/Light Themes
   ======================================================== */

/* --- 1. FLOATING MINI TRIGGER BADGE --- */
.stl-floating-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  user-select: none;
}

.stl-floating-pill:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 30px -5px rgba(236, 72, 153, 0.6), 0 0 0 2px rgba(244, 114, 182, 0.5);
  color: #ffffff;
}

.stl-pulse-dot {
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: stl-pulse 1.8s infinite;
}

@keyframes stl-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* --- 2. LIVE PERIODIC TOAST NOTIFICATION --- */
.stl-toast-wrapper {
  position: fixed;
  bottom: 84px;
  left: 24px;
  z-index: 99999;
  max-width: 390px;
  width: calc(100vw - 48px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
}

.stl-toast-wrapper.stl-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.stl-toast-card {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 27, 75, 0.96) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(168, 85, 247, 0.25);
  color: #ffffff;
  overflow: hidden;
  cursor: pointer;
}

.stl-toast-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6, #10b981);
  animation: stl-rainbow-bar 4s linear infinite;
  background-size: 200% 100%;
}

@keyframes stl-rainbow-bar {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.stl-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stl-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 9px;
  border-radius: 9999px;
}

.stl-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.stl-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #f87171;
  transform: scale(1.1);
}

.stl-toast-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.stl-rocket-icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 16px -4px rgba(236, 72, 153, 0.4);
}

.stl-toast-text {
  flex: 1;
}

.stl-toast-title {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 3px 0;
  line-height: 1.35;
}

.stl-toast-desc {
  font-size: 12px;
  color: #cbd5e1;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.stl-toast-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.2s;
}

.stl-toast-cta-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  transform: translateX(3px);
  color: #ffffff;
}

/* --- 3. STEP-BY-STEP LAUNCH MODAL --- */
.stl-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000000;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
}

.stl-modal-backdrop.stl-open {
  opacity: 1;
  visibility: visible;
}

.stl-modal-container {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 24px;
  border: 1px solid #334155;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(99, 102, 241, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stl-modal-backdrop.stl-open .stl-modal-container {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.stl-modal-header {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 40%, #a855f7 100%);
  padding: 18px 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.stl-modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stl-modal-title-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.stl-modal-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stl-modal-badge {
  font-size: 11px;
  font-weight: 800;
  background: #fde047;
  color: #0f172a;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.stl-modal-subtitle {
  font-size: 13px;
  color: #e0e7ff;
  margin: 3px 0 0 0;
  font-weight: 500;
}

.stl-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.stl-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

/* Modal Body */
.stl-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Step Cards */
.stl-step-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 20px;
  position: relative;
  transition: all 0.25s ease;
}

.stl-step-card:hover {
  border-color: #64748b;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.stl-step-card.stl-featured {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(46, 16, 101, 0.25) 100%);
  box-shadow: 0 12px 30px -10px rgba(139, 92, 246, 0.3);
}

.stl-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.stl-step-number-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stl-step-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.stl-step-card.stl-featured .stl-step-num-badge {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
}

.stl-step-title {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.stl-step-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.stl-step-card.stl-featured .stl-step-pill {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.3);
}

.stl-step-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

/* Hostinger Box */
.stl-hostinger-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.stl-coupon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px dashed #10b981;
  color: #34d399;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.stl-btn-hostinger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #673ab7 0%, #512da8 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(103, 58, 183, 0.4);
  transition: all 0.2s;
}

.stl-btn-hostinger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(103, 58, 183, 0.6);
  color: #ffffff;
}

/* Step 2 Pricing & Form */
.stl-price-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.stl-price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stl-current-price {
  font-size: 26px;
  font-weight: 900;
  color: #22c55e;
}

.stl-old-price {
  font-size: 15px;
  color: #64748b;
  text-decoration: line-through;
}

.stl-discount-chip {
  font-size: 11px;
  font-weight: 800;
  background: #ef4444;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
}

.stl-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stl-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.5);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.stl-buyer-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stl-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.stl-input-field {
  width: 100%;
  box-sizing: border-box;
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.stl-input-field:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.stl-btn-pay {
  width: 100%;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  transition: all 0.25s;
}

.stl-btn-pay:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

/* Post Payment Screen */
.stl-payment-success-box {
  display: none;
  background: rgba(6, 78, 59, 0.3);
  border: 1.5px solid #10b981;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-top: 16px;
  animation: stl-pop-in 0.4s ease;
}

@keyframes stl-pop-in {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.stl-success-icon {
  width: 60px;
  height: 60px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px auto;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
}

.stl-success-title {
  font-size: 18px;
  font-weight: 900;
  color: #34d399;
  margin: 0 0 6px 0;
}

.stl-success-message {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.5;
  background: rgba(15, 23, 42, 0.6);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin: 12px 0 16px 0;
}

.stl-btn-wa-screenshot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 900;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.stl-btn-wa-screenshot:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

/* Step 3 Support Buttons */
.stl-support-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.stl-admin-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stl-admin-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
}

.stl-support-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stl-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s;
}

.stl-btn-action.wa {
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.stl-btn-action.wa:hover {
  background: #1eb855;
  transform: translateY(-2px);
  color: #ffffff;
}

.stl-btn-action.call {
  background: #3b82f6;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.stl-btn-action.call:hover {
  background: #2563eb;
  transform: translateY(-2px);
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .stl-toast-wrapper {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 74px;
  }
  .stl-floating-pill {
    left: 12px;
    bottom: 16px;
    padding: 8px 14px;
    font-size: 12px;
  }
  .stl-modal-header {
    padding: 14px 16px;
  }
  .stl-modal-body {
    padding: 16px;
    gap: 14px;
  }
  .stl-step-card {
    padding: 14px;
  }
  .stl-hostinger-box, .stl-support-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .stl-btn-hostinger, .stl-support-actions, .stl-btn-action {
    width: 100%;
    justify-content: center;
  }
}
