/* ============================================
   ShiftPx — Ultra Premium Visual Effects
   Animated patterns, glassmorphism, particles,
   gradients, micro-animations & more
   ============================================ */

/* === ANIMATED GRADIENT MESH BACKGROUND === */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(99,102,241,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(168,85,247,0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(217,70,239,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(59,130,246,0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 30% 70%, rgba(139,92,246,0.06) 0%, transparent 45%);
  animation: meshFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-2%, 1%) scale(1.02); }
  50% { transform: translate(1%, -1.5%) scale(0.98); }
  75% { transform: translate(-1%, 2%) scale(1.01); }
}

/* === AURORA BOREALIS RIBBON === */
.aurora-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-ribbon::before,
.aurora-ribbon::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 60%;
  top: -30%;
  left: -25%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(99, 102, 241, 0.015) 20%,
    rgba(139, 92, 246, 0.025) 40%,
    rgba(168, 85, 247, 0.02) 60%,
    rgba(217, 70, 239, 0.01) 80%,
    transparent 100%
  );
  border-radius: 50%;
  animation: auroraWave 15s ease-in-out infinite;
  filter: blur(80px);
}

.aurora-ribbon::after {
  top: auto;
  bottom: -40%;
  animation-delay: -7s;
  animation-duration: 18s;
  background: linear-gradient(
    0deg,
    transparent 0%,
    rgba(59, 130, 246, 0.012) 20%,
    rgba(99, 102, 241, 0.018) 40%,
    rgba(139, 92, 246, 0.015) 60%,
    transparent 100%
  );
}

@keyframes auroraWave {
  0%, 100% { transform: translateX(0) rotate(0deg) scaleY(1); }
  25% { transform: translateX(5%) rotate(1deg) scaleY(1.1); }
  50% { transform: translateX(-3%) rotate(-0.5deg) scaleY(0.95); }
  75% { transform: translateX(4%) rotate(0.5deg) scaleY(1.05); }
}

/* === NOISE TEXTURE OVERLAY === */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* === PREMIUM DOT GRID (enhanced) === */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.4; }
}

/* === FLOATING GEOMETRIC SHAPES === */
.geo-shapes-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.geo-shape {
  position: absolute;
  border: 1px solid rgba(139, 92, 246, 0.06);
  opacity: 0;
  animation: geoFloat 30s ease-in-out infinite;
}

.geo-shape--diamond {
  width: 30px;
  height: 30px;
  transform: rotate(45deg);
  top: 20%;
  left: 8%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.geo-shape--circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 60%;
  right: 12%;
  animation-delay: 4s;
  animation-duration: 28s;
}

.geo-shape--triangle {
  width: 0;
  height: 0;
  border: none;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid rgba(139, 92, 246, 0.05);
  top: 35%;
  right: 25%;
  animation-delay: 8s;
  animation-duration: 32s;
}

.geo-shape--hexagon {
  width: 24px;
  height: 14px;
  background: rgba(99, 102, 241, 0.03);
  position: absolute;
  top: 75%;
  left: 20%;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  border: none;
  animation-delay: 12s;
  animation-duration: 35s;
}

.geo-shape--cross {
  width: 18px;
  height: 18px;
  top: 45%;
  left: 85%;
  border: none;
  background:
    linear-gradient(rgba(168,85,247,0.06), rgba(168,85,247,0.06)) center/2px 100% no-repeat,
    linear-gradient(rgba(168,85,247,0.06), rgba(168,85,247,0.06)) center/100% 2px no-repeat;
  animation-delay: 6s;
  animation-duration: 22s;
}

.geo-shape--ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 102, 241, 0.04);
  top: 15%;
  right: 35%;
  animation-delay: 10s;
  animation-duration: 30s;
}

@keyframes geoFloat {
  0% {
    opacity: 0;
    transform: translateY(20px) rotate(0deg);
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(20px) rotate(360deg);
  }
}


/* === ENHANCED HERO SECTION === */
.hero-section h1 {
  position: relative;
}

.hero-section h1 span {
  background: linear-gradient(
    135deg,
    #8b5cf6 0%,
    #a855f7 25%,
    #d946ef 50%,
    #a855f7 75%,
    #8b5cf6 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: premiumGradient 6s ease infinite;
}

@keyframes premiumGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* === PREMIUM TOOL CARDS WITH ANIMATED BORDERS === */
.hero-tool-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated gradient border */
.hero-tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(139, 92, 246, 0.08),
    rgba(168, 85, 247, 0.15),
    rgba(99, 102, 241, 0.08)
  );
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderGlow 4s ease infinite;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

/* Inner glow effect */
.hero-tool-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  pointer-events: none;
}

.hero-tool-card:hover::before {
  opacity: 1;
  animation-duration: 2s;
}

.hero-tool-card:hover::after {
  width: 300px;
  height: 300px;
}

.hero-tool-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 40px rgba(139, 92, 246, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* === PREMIUM TOOL ICON WITH PULSE RING === */
.hero-tool-icon {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(139, 92, 246, 0.1)
  );
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.4s ease;
}

.hero-tool-card:hover .hero-tool-icon {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.4);
}

/* Pulse ring on hover */
.hero-tool-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(139, 92, 246, 0.2);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.hero-tool-card:hover .hero-tool-icon::after {
  opacity: 1;
  transform: scale(1);
  animation: iconPulseRing 2s ease-in-out infinite;
}

@keyframes iconPulseRing {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* === STEP CARDS WITH CONNECTING LINES === */
.step-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.02);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.08);
}

.step-number {
  position: relative;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  transition: all 0.4s ease;
}

.step-card:hover .step-number {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  transform: scale(1.1);
}

/* === UPLOAD ZONE ENHANCED === */
.upload-zone {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scanning line animation */
.upload-zone::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.upload-zone:hover::after {
  opacity: 1;
  animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
  0% { top: -2px; }
  50% { top: calc(100% + 2px); }
  50.01% { top: -2px; opacity: 0; }
  60% { opacity: 1; }
  100% { top: -2px; }
}

/* === SETTINGS PANEL GLASS EFFECT === */
.settings-panel {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow on settings */
.settings-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
}

/* === BUTTONS WITH PREMIUM GLOW === */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated glow behind button */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3), var(--accent-4), var(--accent-1));
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
  animation: borderGlow 3s ease infinite;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 20px rgba(139, 92, 246, 0.4),
    0 8px 32px rgba(139, 92, 246, 0.2);
}

/* === FAQs WITH SMOOTH ACCORDION === */
.faq-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.02);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.faq-item summary {
  transition: all 0.3s ease;
}

.faq-item summary::after {
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

/* === SIDEBAR PREMIUM TREATMENT === */
.sidebar {
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Active nav item glow strip */
.nav-item.active {
  position: relative;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.05);
}

.nav-item {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.04);
}

/* === CONTENT HEADER PREMIUM GLASS === */
.content-header {
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.content-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.15) 30%,
    rgba(99, 102, 241, 0.2) 50%,
    rgba(139, 92, 246, 0.15) 70%,
    transparent
  );
}

/* === PREMIUM STAT COUNTERS === */
.hero-stat-value {
  position: relative;
  display: inline-block;
}

.hero-stat {
  transition: transform 0.3s ease;
}

.hero-stat:hover {
  transform: translateY(-4px);
}

.hero-stat:hover .hero-stat-value {
  filter: brightness(1.3);
}

/* === FOOTER PREMIUM TREATMENT === */
.site-footer {
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
}

.footer-link {
  position: relative;
  transition: all 0.25s ease;
}

.footer-link:hover {
  transform: translateX(4px);
}

.footer-link::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.footer-link:hover::before {
  width: 100%;
}

/* === PRIVACY BADGE GLOW === */
.privacy-badge {
  position: relative;
  overflow: hidden;
}

.privacy-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.08), transparent);
  animation: privacyShimmer 4s ease-in-out infinite;
}

@keyframes privacyShimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

/* === PREVIEW CARDS ENHANCED === */
.preview-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.08);
}

/* === TOAST NOTIFICATIONS ENHANCED === */
.toast {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* === TAB CONTROLS PREMIUM === */
.tab {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tab.active {
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
}

/* === PRESET BUTTON HOVER EFFECT === */
.preset-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.preset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

/* === HEADER BADGE GLOW === */
.header-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 12px 4px rgba(139, 92, 246, 0.1); }
}

/* === RANGE SLIDER GLOW TRACK === */
.range-slider {
  background: linear-gradient(90deg, var(--bg-secondary) 0%, rgba(139, 92, 246, 0.08) 100%);
}

.range-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* === LOADING SPINNER PREMIUM === */
.spinner {
  border: 3px solid rgba(139, 92, 246, 0.1);
  border-top-color: var(--accent-2);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

/* === AEO CALLOUT ENHANCED === */
.aeo-quick-answer {
  position: relative;
  overflow: hidden;
}

.aeo-quick-answer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.04), transparent);
  animation: aeoShimmer 8s ease-in-out infinite;
}

@keyframes aeoShimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

/* === SCROLLBAR PREMIUM === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.4));
}

/* === SELECTION COLOR === */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: #f0f0f5;
}

/* === SMOOTH PAGE TRANSITIONS === */
.tool-page {
  animation: premiumFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes premiumFadeIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* === INTERACTIVE PARTICLE CANVAS === */
#premiumParticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* === LOGO PREMIUM TREATMENT === */
.logo-icon {
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent 60%
  );
  animation: logoSheen 6s linear infinite;
}

@keyframes logoSheen {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === STAGGERED REVEAL ANIMATIONS === */
.hero-tool-card:nth-child(1) { animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both; }
.hero-tool-card:nth-child(2) { animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; }
.hero-tool-card:nth-child(3) { animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both; }
.hero-tool-card:nth-child(4) { animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both; }
.hero-tool-card:nth-child(5) { animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both; }
.hero-tool-card:nth-child(6) { animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both; }
.hero-tool-card:nth-child(7) { animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.7s both; }
.hero-tool-card:nth-child(8) { animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both; }
.hero-tool-card:nth-child(9) { animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.9s both; }
.hero-tool-card:nth-child(10) { animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.0s both; }

@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* === MOUSE GLOW CURSOR EFFECT (via JS) === */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* === RESPONSIVE: OPTIMIZED EFFECTS ON MOBILE === */
@media (max-width: 768px) {
  /* Keep geometric shapes and aurora ribbon visible but optimized for mobile performance */
  .geo-shapes-container {
    display: block;
  }

  .aurora-ribbon {
    display: block;
    opacity: 0.8;
  }

  /* Reduce blur radius on mobile to prevent paint lag on older mobile GPUs */
  .aurora-ribbon::before,
  .aurora-ribbon::after {
    filter: blur(40px);
  }

  /* Enable touch-glow on mobile and make it smaller */
  .cursor-glow {
    display: block;
    width: 250px;
    height: 250px;
    background: radial-gradient(
      circle,
      rgba(139, 92, 246, 0.05) 0%,
      rgba(99, 102, 241, 0.02) 40%,
      transparent 70%
    );
  }

  body::after {
    /* Keep the subtle dot-grid pulse animation active on mobile */
    animation: gridPulse 12s ease-in-out infinite;
    opacity: 0.5;
  }

  .hero-tool-card,
  .settings-panel {
    background: rgba(18, 18, 28, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .faq-item {
    background: rgba(18, 18, 28, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hero-tool-card:hover {
    transform: translateY(-2px);
    background: rgba(18, 18, 28, 0.85);
  }
}

/* Fallback for browsers/devices that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .settings-panel,
  .hero-tool-card,
  .faq-item {
    background: rgba(15, 15, 23, 0.95) !important;
  }
}
@supports not (-webkit-backdrop-filter: blur(10px)) {
  .settings-panel,
  .hero-tool-card,
  .faq-item {
    background: rgba(15, 15, 23, 0.95) !important;
  }
}

/* === REDUCE MOTION FOR ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .geo-shapes-container,
  .aurora-ribbon,
  .noise-overlay,
  .cursor-glow,
  #premiumParticles {
    display: none !important;
  }
}

/* === VIGNETTE OVERLAY === */
.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(5, 5, 10, 0.35) 100%
  );
}

/* === GLOWING SECTION DIVIDERS === */
.how-it-works,
.faq-section,
.seo-content-section {
  position: relative;
}

.how-it-works::before,
.faq-section::before,
.seo-content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.25) 30%, rgba(99, 102, 241, 0.35) 50%, rgba(139, 92, 246, 0.25) 70%, transparent);
}

/* === SIDEBAR EDGE GLOW === */
.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(99, 102, 241, 0.2) 20%,
    rgba(139, 92, 246, 0.3) 50%,
    rgba(99, 102, 241, 0.2) 80%,
    transparent 100%
  );
  animation: sidebarEdgePulse 6s ease-in-out infinite;
}

@keyframes sidebarEdgePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* === HERO SUBTITLE GLOW === */
.hero-subtitle {
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.08);
}

/* === UPLOAD ZONE GLASS === */
.upload-zone {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* === ENHANCED HERO STATS === */
.hero-stats {
  position: relative;
}

.hero-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

/* === NAV SECTION TITLE ACCENT === */
.nav-section-title {
  position: relative;
  padding-left: 20px !important;
}

.nav-section-title::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-30%);
  width: 3px;
  height: 10px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0.5;
}

/* === TOOL PAGE SECTION HEADERS === */
.settings-title {
  position: relative;
}

.settings-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  opacity: 0.6;
}

/* === INPUT FOCUS GLOW === */
.setting-input:focus,
.setting-select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1), 0 0 16px rgba(139, 92, 246, 0.06);
}

/* === ENHANCED CURSOR GLOW === */
.cursor-glow {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.05) 0%,
    rgba(99, 102, 241, 0.03) 30%,
    transparent 70%
  );
}
