* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #f8f8ff;
  background: url('assets/background-img.jpg') center center / cover no-repeat fixed;
  background-color: #7c3aed;
}

/* Main splash screen */
.main-splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 60px;
}

/* Logo styling */
.logo-container {
  text-align: center;
  background: none;
}

.logo-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  background: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  animation: logoGlow 2s ease-in-out infinite;
  /* mix-blend-mode: multiply; */
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  }
  50% {
    filter: drop-shadow(0 6px 30px rgba(217, 70, 239, 0.6));
  }
}

/* Button container */
.button-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 500px;
}

/* Chat button */
.btn-chat {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid rgba(94, 24, 170, 0.3);
  background: rgba(94, 24, 170, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 18px 30px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.btn-chat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(94, 24, 170, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(94, 24, 170, 0.45);
  border-color: rgba(94, 24, 170, 0.5);
}

.btn-chat:active {
  transform: translateY(-2px);
}

.btn-title {
  display: block;
  font-size: 1em;
}

.btn-subtitle {
  display: block;
  font-size: 0.45em;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 1px;
}

/* Play button */
.btn-play {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: #9742f1;
  color: #ffffff;
  padding: 20px 30px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 36px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(151, 66, 241, 0.6), 0 0 60px rgba(151, 66, 241, 0.4);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-play:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(151, 66, 241, 0.8), 0 0 80px rgba(151, 66, 241, 0.6);
  background: #a555f3;
}

.btn-play:active {
  transform: translateY(-2px) scale(1);
}

/* Status text */
.status-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-align: center;
  margin: 0;
}

.btn {
  appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700; letter-spacing: .5px;
}
.btn.primary { background: #7c3aed; border-color: #7c3aed; color: white; }
.btn.accent  { background: #8b5cf6; border-color: #8b5cf6; color: white; }
.btn.install { position: relative; background: #4e23eb; border-color: #4e23eb; color: white; }
.btn:active { transform: translateY(1px); }

.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(2,6,23,0.55);
  display: flex; align-items: center; justify-content: center;
}
.modal.hidden { display: none; }
.modal-content {
  width: min(92vw, 420px);
  background: #1f123d;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #e9e7ff;
}
.modal-content h2 { margin: 0 0 8px; }
.modal-content p { margin: 0 0 12px; }
.modal-content input {
  width: 100%; padding: 12px 14px; margin-bottom: 12px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06); color: #fff;
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.error { color: #ef4444; }
.hidden { display: none; }

/* Notification guide modal */
.guide-modal {
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
}
.guide-steps {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  text-align: left;
}
.guide-steps ol {
  margin: 8px 0;
  padding-left: 20px;
}
.guide-steps ul {
  margin: 6px 0;
  padding-left: 20px;
  list-style-type: none;
}
.guide-steps li {
  margin: 8px 0;
  line-height: 1.6;
}
.guide-steps ul li {
  margin: 4px 0;
  font-size: 14px;
}
.guide-steps strong {
  color: #a78bfa;
}
.guide-steps .browser-note {
  background: rgba(124, 58, 237, 0.2);
  border-left: 3px solid #7c3aed;
  padding: 8px 12px;
  margin: 12px 0;
  border-radius: 4px;
  font-size: 14px;
}
.guide-steps .icon-hint {
  color: #cbd5e1;
  font-size: 13px;
  font-style: italic;
}
.guide-steps p {
  margin: 12px 0;
  font-size: 15px;
}
.guide-steps .mobile-shortcut {
  background: rgba(16, 185, 129, 0.15);
  border-left: 3px solid #10b981;
  padding: 10px 12px;
  margin: 12px 0;
  border-radius: 4px;
  font-size: 14px;
  color: #d1fae5;
}

.install-cta {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: calc(100% - 32px);
  max-width: 500px;
  animation: slideInUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.install-cta .btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 20px 24px;
  border-radius: 24px;
  border: 2px solid rgba(94, 24, 170, 0.3);
  background: rgb(94 24 170 / 87%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.install-cta .btn .install-icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.install-cta .btn .install-text {
  color: #ffffff;
  font-size: 1em;
  letter-spacing: 1px;
}

.install-cta .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(94, 24, 170, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(94, 24, 170, 0.45);
  border-color: rgba(94, 24, 170, 0.5);
}

.install-cta .btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 16px rgba(94, 24, 170, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.1s ease;
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Tablet responsive adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  .main-splash {
    gap: 50px;
  }
  
  .logo-image {
    max-width: 500px;
  }
  
  .button-container {
    max-width: 480px;
  }
  
  .btn-chat {
    padding: 22px 36px;
    font-size: 30px;
  }
  
  .btn-play {
    padding: 26px 36px;
    font-size: 40px;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .main-splash {
    gap: 40px;
    padding: 16px;
  }
  
  .logo-image {
    max-width: 400px;
  }
  
  /* .button-container {
    max-width: 100%;
  } */
  
  .btn-chat {
    padding: 20px 32px;
    font-size: 28px;
  }
  
  .btn-play {
    padding: 24px 32px;
    font-size: 36px;
  }
  
  .install-cta {
    width: calc(100% - 24px);
    max-width: 450px;
    bottom: 12px;
  }
  
  .install-cta .btn {
    padding: 16px 20px;
    font-size: 18px;
    gap: 10px;
  }
  
  .install-cta .btn .install-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .main-splash {
    gap: 30px;
  }
  
  .logo-image {
    max-width: 320px;
  }
  
  .btn-chat {
    padding: 18px 22px;
    font-size: 24px;
    border-radius: 20px;
  }
  
  .btn-play {
    padding: 12px 18px;
    font-size: 32px;
    border-radius: 20px;
  }
  
  .install-cta {
    width: calc(100% - 20px);
    max-width: 100%;
    bottom: 10px;
  }
  
  .install-cta .btn {
    padding: 14px 18px;
    font-size: 16px;
    gap: 8px;
    border-radius: 20px;
  }
  
  .install-cta .btn .install-icon {
    width: 24px;
    height: 24px;
  }
}

/* Backup close chat button overlay */
.chat-overlay-close {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999998;
  padding: 12px;
  background: linear-gradient(180deg, rgba(20,10,40,0.95) 0%, rgba(20,10,40,0) 100%);
  pointer-events: none;
}
.chat-overlay-close.hidden {
  display: none;
}
.backup-close-btn {
  appearance: none;
  background: rgba(124, 58, 237, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.backup-close-btn:hover {
  background: rgba(139, 92, 246, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.backup-close-btn:active {
  transform: translateY(0);
}

/* Show backup close button only in fullscreen chat mode */
body:not(.chat-fullscreen) .chat-overlay-close {
  display: none !important;
}

/* Full-screen chat helper: hide app chrome when chat shows */
body.chat-fullscreen .main-splash,
body.chat-fullscreen .install-cta { display: none !important; }



@media (max-width: 480px) {
  #zsiq_float,
.zsiq_float,
.zsiq-float,
.zsiq_cnt {
    margin-bottom: 45px;
  }
}
