/* Analytics Popup - Dynamic Background with Blur Effect */
:root {
  --analytics-primary: #00C2CB;
  --analytics-gold: #ddac63;
  --analytics-dark: #0a0a0a;
  --analytics-darker: #050505;
  --analytics-white: #ffffff;
  --analytics-gray: #888888;
}

/* Fullscreen Overlay */
.analytics-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99998;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.analytics-overlay.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* Blur Background */
.analytics-blur-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.7);
}

/* Interactive Mouse Background Canvas */
.analytics-canvas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Popup Container - Ultra-thin minimalist */
.analytics-popup {
  position: relative;
  z-index: 2;
  max-width: 380px;
  width: 85%;
  background: transparent;
  border: none;
  padding: 0;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
}

.analytics-overlay.visible .analytics-popup {
  transform: translateY(0);
  opacity: 1;
}

/* Close Button - Visible */
.analytics-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.analytics-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 0 40px rgba(0, 194, 203, 0.2);
}

.analytics-close:active {
  transform: rotate(90deg) scale(0.95);
}

.analytics-close svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2.5;
  transition: stroke 0.3s ease;
}

.analytics-close:hover svg {
  stroke: #fff;
}

/* Badge - Ultra minimal */
.analytics-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--analytics-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  position: relative;
}

.analytics-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--analytics-primary);
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

.analytics-badge i {
  display: none;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 194, 203, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(0, 194, 203, 0); }
}

/* Header - Clean typography */
.analytics-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.analytics-logo {
  display: none;
}

.analytics-header h2 {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--analytics-white);
  margin: 0 0 12px;
  line-height: 1.1;
  font-family: 'League Spartan', sans-serif;
  letter-spacing: -0.5px;
}

.analytics-header h2 span {
  background: linear-gradient(135deg, var(--analytics-primary), #00e6f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
}

.analytics-header p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}

/* Features - Inline minimal tags */
.analytics-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.analytics-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
}

.analytics-feature:hover {
  transform: none;
}

.analytics-feature::before {
  content: '•';
  color: var(--analytics-primary);
  font-size: 0.6rem;
}

.analytics-feature i {
  display: none;
}

.analytics-feature span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* CTA Buttons - Clean minimal */
.analytics-cta {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* Demo Button - Arrow-shaped fill effect */
.analytics-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: var(--analytics-white);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--analytics-primary);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'League Spartan', sans-serif;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Arrow-shaped fill using clip-path */
.analytics-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--analytics-primary);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.analytics-btn-primary:hover {
  color: var(--analytics-dark);
  box-shadow: 0 8px 25px rgba(0, 194, 203, 0.3);
}

.analytics-btn-primary:hover::before {
  width: calc(100% + 12px);
}

.analytics-btn-primary:active {
  transform: scale(0.98);
}

.analytics-btn-primary i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.analytics-btn-primary:hover i {
  transform: scale(1.1);
}

/* Request Account Button - Subtle arrow sweep fill */
.analytics-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: transparent;
  color: var(--analytics-white);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'League Spartan', sans-serif;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Arrow-shaped sweep fill - subtle */
.analytics-btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(0, 194, 203, 0.2);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.analytics-btn-secondary:hover::before {
  width: calc(100% + 10px);
}

.analytics-btn-secondary:hover {
  border-color: var(--analytics-primary);
  color: var(--analytics-white);
}

/* Footer Text - Subtle */
.analytics-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
  position: relative;
  z-index: 1;
}

.analytics-footer p {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  letter-spacing: 0.5px;
}

.analytics-footer a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.analytics-footer a:hover {
  color: var(--analytics-primary);
}

/* Floating Particles - Subtle */
.analytics-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--analytics-primary);
  border-radius: 50%;
  opacity: 0.2;
  animation: particleFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.analytics-particle:nth-child(1) { left: -30px; top: 20%; animation-delay: 0s; }
.analytics-particle:nth-child(2) { right: -30px; top: 15%; animation-delay: 1.5s; }
.analytics-particle:nth-child(3) { left: -20px; top: 70%; animation-delay: 3s; }
.analytics-particle:nth-child(4) { right: -25px; top: 75%; animation-delay: 4.5s; }
.analytics-particle:nth-child(5) { left: 50%; top: -20px; animation-delay: 6s; }

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0.2; }
  50% { transform: translate(5px, -8px); opacity: 0.4; }
}

/* Interactive Dots Grid Pattern */
.analytics-dots-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 600px) {
  .analytics-popup {
    max-width: 320px;
    width: 90%;
  }

  .analytics-header h2 {
    font-size: 1.7rem;
  }

  .analytics-header p {
    font-size: 0.8rem;
  }

  .analytics-features {
    gap: 4px 12px;
  }

  .analytics-feature span {
    font-size: 0.7rem;
  }

  .analytics-cta {
    flex-direction: column;
    gap: 10px;
  }

  .analytics-btn-primary,
  .analytics-btn-secondary {
    width: 100%;
    padding: 11px 20px;
    font-size: 0.75rem;
  }

  .analytics-close {
    top: -45px;
    width: 32px;
    height: 32px;
  }

  .analytics-close svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 380px) {
  .analytics-popup {
    max-width: 280px;
  }

  .analytics-header h2 {
    font-size: 1.5rem;
  }

  .analytics-badge {
    font-size: 0.6rem;
  }
}

/* Animation for entry */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Shimmer effect for CTA - Subtle */
.analytics-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Don't show again checkbox - Minimal */
.analytics-dont-show {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.analytics-dont-show input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--analytics-primary);
  cursor: pointer;
  opacity: 0.8;
}

.analytics-dont-show:hover input[type="checkbox"] {
  opacity: 1;
}

.analytics-dont-show span {
  -webkit-user-select: none;
  user-select: none;
}

.analytics-dont-show:hover {
  color: rgba(255, 255, 255, 0.7);
}
