
.popup-single-frame {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-radius: 40px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  text-align: center;
  outline: none;
}
.popup-icon-bg-large {
  width: 192px;
  height: 192px;
}
.popup-gif-large {
  width: 192px;
  height: 192px;
  top: 0;
  left: 0;
  border-radius: 40px;
}
.popup-frame-single {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 16px;
  gap: 8px;
  width: 340px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-frame-left-small {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-align: left;
  flex: 1;
  white-space: nowrap;
}
.share-btn-small {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 16px 6px 10px;
  border-radius: 10px;
  box-shadow: none;
}
.popup-link-row-no-bg {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 8px;
  gap: 8px;
}
.popup-link-text-no-bg {
  font-size: 13px;
  color: #fff;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  user-select: all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  min-width: 0;
  display: inline-block;
}

.popup-icon-stack {
  position: relative;
  width: 192px;
  height: 192px;
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}


.container .popup-icon-stack {
  width: 100px;
  height: 100px;
  margin: 0 auto 6px auto;
}

.container .popup-gif-large {
  width: 100px !important;
  height: 100px !important;
  border-radius: 20px;
}

.container .popup-title-glow {
  font-size: 15px;
  margin: 12px 0 8px 0;
}

.container .popup-frame-single {
  margin-bottom: 10px;
  gap: 6px;
}

.container .popup-content {
  padding: 15px 0;
}
.popup-icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 192px;
  height: 192px;
  z-index: 1;
  opacity: 0.7;
}
.popup-gif {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 192px;
  height: 192px;
  border-radius: 40px;
  z-index: 2;
  object-fit: cover;
}
.popup-title-glow {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  margin: 24px 0 8px 0;
  filter: drop-shadow(0px 0px 18px #000);
  letter-spacing: 0.5px;
  font-family: 'PolySans Trial', 'PolySans', 'Inter', sans-serif;
}
.popup-frame {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(120, 50, 180, 0.08);
  border: 2px solid rgba(120, 50, 180, 0.3);
  border-radius: 16px;
  padding: 8px 8px 8px 20px;
  margin-bottom: 16px;
  gap: 12px;
}
.popup-frame-left {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  text-align: left;
  flex: 1;
}
.share-btn {
  background: #000;
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 2px #7c3aed44;
  transition: background 0.2s;
}
.share-btn:hover {
  background: #1a1a1a;
}
.x-icon-small {
  width: 24px;
  height: 24px;
}
.popup-link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.popup-link-text {
  font-size: 14px;
  color: #fff;
  background: rgba(120, 50, 180, 0.08);
  border-radius: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(120, 50, 180, 0.18);
  user-select: all;
}
.copy-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}
.copy-link-btn:hover {
  background: rgba(120, 50, 180, 0.12);
}
.copy-icon {
  width: 24px;
  height: 24px;
  filter: none;
  color: #fff;
  fill: #fff;
}


.success-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.success-close:hover {
  background: rgba(255,255,255,0.18);
  color: white;
  border-color: #fff;
}

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


@font-face {
  font-family: 'PolySans Trial Bulky';
  src: url('font/PolySansTrial-Bulky.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PolySans Trial', 'PolySans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: url('images/jw.jpg') center center / cover no-repeat;
  min-height: 100vh;
  color: white;
  position: relative;
  overflow-x: hidden;
}


body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  pointer-events: none;
  z-index: 1;
}


.header {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 740px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 38px;
  height: 32px;
}

.logo-text {
  font-size: 28px;
  font-weight: 400;
  color: white;
  font-family: 'PolySans Trial Bulky';
}

.x-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.x-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.x-icon-header {
  width: 20px;
  height: 20px;
}


.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  padding-top: 180px;
  position: relative;
  z-index: 5;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 50px 40px;
  border-radius: 24px;
  width: 100%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: visible;
}



.card h1 {
  font-family: 'PolySans Trial', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 400;
  font-style: normal;
  line-height: 100%;
  letter-spacing: -1%;
  text-align: center;
  margin-bottom: 16px;
  
  
  background: linear-gradient(180deg, #FFFFFF 0%, #CDCDCD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  
  filter: drop-shadow(0px 0px 20px rgba(255, 255, 255, 0.75));
}

.card p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  font-family: 'PolySans Trial', 'PolySans', 'Inter', sans-serif;
}

.connect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  height: 50px;
  background: linear-gradient(180deg, #000000 0%, #000000 100%);
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 0 4px rgba(120, 50, 180, 0.3), 0 0 0 8px rgba(255,255,255,0.12);
  outline: 2px solid rgba(120, 50, 180, 0.3);
  outline-offset: 4px;
  font-family: 'PolySans Trial', 'PolySans', 'Inter', sans-serif;
}

.connect-btn:hover {
  background: linear-gradient(180deg, #1a1a1a 0%, #1a1a1a 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(120, 50, 180, 0.4), 0 0 0 12px rgba(255,255,255,0.18);
  border-color: #fff;
}




.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  
}

.popup-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.popup {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  padding: 50px 40px;
  width: 90%;
  max-width: 450px;
  position: relative;
  text-align: center;
  overflow: visible;
  outline: 2px solid rgba(120, 50, 180, 0.3);
  outline-offset: 4px;
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 20px;
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.popup-close:hover {
  background: rgba(255,255,255,0.18);
  color: white;
  border-color: #fff;
}

.popup-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #7c3aed;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.popup h2 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #fff;
  text-align: center;
  letter-spacing: 0;
  background: none;
  filter: none;
}


.popup-analyze {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  margin: 24px 0 16px 0;
  background: none;
  filter: drop-shadow(0px 0px 12px rgba(0,0,0,0.8));
}

.share-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(120, 50, 180, 0.08);
  border: 2px solid rgba(120, 50, 180, 0.3);
  border-radius: 16px;
  padding: 8px 8px 8px 20px;
  margin-bottom: 16px;
}

#share-url {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(120, 50, 180, 0.3);
  border-radius: 16px;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  text-align: left;
  outline: none;
  margin-right: 0;
  font-weight: 500;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  background: #000000;
  border: 2px solid rgba(120, 50, 180, 0.3);
  border-radius: 16px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}

.share-btn:hover {
  background: #1a1a1a;
  border-color: #fff;
}

.x-icon-small {
  width: 16px;
  height: 16px;
}


.floating-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 59, 48, 0.95);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(255, 59, 48, 0.3);
  font-family: 'PolySans Trial', 'PolySans', 'Inter', sans-serif;
}

.floating-text.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.floating-text.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}


.error-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(220, 38, 38, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px 24px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.error-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  z-index: 10;
  font-family: 'PolySans Trial', 'PolySans', 'Inter', sans-serif;
}

.footer h2 {
  font-family: 'PolySans Trial', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  font-style: normal;
  line-height: 100%;
  letter-spacing: -2%;
  text-align: center;
  margin-left: 10%;
  
  
  background: linear-gradient(180deg, #FFFFFF 0%, #CDCDCD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  
  filter: drop-shadow(0px 0px 20px rgba(255, 255, 255, 0.75));
  text-shadow:
      0 0 4px rgba(255, 255, 255, 0.4),
      0 0 10px rgba(150, 80, 255, 0.4),
      0 0 20px rgba(150, 80, 255, 0.2);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 1);
}


@media (max-width: 768px) {
  .header {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    height: 60px;
    padding: 12px 20px;
  }
  
  .logo {
    width: 28px;
    height: 24px;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .x-icon-header {
    width: 16px;
    height: 16px;
  }
  
  .x-link {
    width: 32px;
    height: 32px;
  }
  
  .container {
    margin: 20px;
    padding: 16px 20px;
  }
  
  .card {
    padding: 35px 25px;
    margin: 20px;
    max-width: 90%;
  }
  
  .card h1 {
    font-size: 24px;
  }
  
  .card p {
    font-size: 13px;
    margin-bottom: 24px;
  }
  
  .connect-btn {
    width: 100%;
    height: 45px;
    font-size: 14px;
    border-radius: 22px;
    max-width: 280px;
  }
  
  
  .popup-frame-single {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: stretch;
  }
  
  .popup-frame-left-small {
    text-align: center;
    white-space: normal;
    font-size: 12px;
  }
  
  .share-btn-small {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .popup-link-row-no-bg {
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  .popup-link-text-no-bg {
    max-width: 250px;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    flex: 1;
    display: block;
  }
  
  .copy-link-btn {
    padding: 8px;
  }
  
  .success-close {
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  
  .footer {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    text-align: center;
  }
  
  .footer h2 {
    font-size: 16px;
    order: -1; 
    text-align: center !important;
    width: 100%;
    display: block;
    margin: 0 auto;
  }
  
  .footer-links {
    gap: 16px;
    justify-content: center;
  }
  
  .popup {
    margin: 20px;
    padding: 30px;
  }

  .container {
    padding-top: 70px; 
  }
}


.firefly {
  position: fixed;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, 
    #ffffff 0%, 
    #ffff88 30%, 
    #ffff44 60%, 
    transparent 100%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 8px #ffff88, 0 0 16px #ffff44;
  animation: firefly-glow var(--duration, 8s) infinite ease-in-out;
  animation-delay: var(--delay, 0s);
}

.firefly:nth-child(odd) {
  background: radial-gradient(circle, 
    #ffffff 0%, 
    #ff88ff 30%, 
    #ff44ff 60%, 
    transparent 100%);
  box-shadow: 0 0 8px #ff88ff, 0 0 16px #ff44ff;
}

@keyframes firefly-glow {
  0%, 20% { 
    opacity: 0; 
    transform: translateY(0px) translateX(0px) scale(0.5);
  }
  25% { 
    opacity: 0.3; 
    transform: translateY(-10px) translateX(5px) scale(0.8);
  }
  50% { 
    opacity: 1; 
    transform: translateY(-20px) translateX(-8px) scale(1);
  }
  75% { 
    opacity: 0.6; 
    transform: translateY(-15px) translateX(12px) scale(0.9);
  }
  80%, 100% { 
    opacity: 0; 
    transform: translateY(-30px) translateX(-5px) scale(0.3);
  }
}


.firefly-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
}
