﻿:root { 
  --accent: #d23f31;
  --accent-secondary: #1f2a44;
  --accent-glow: rgba(210, 63, 49, 0.5);
  --accent-secondary-glow: rgba(31, 42, 68, 0.5);
  --gradient-primary: linear-gradient(135deg, #d23f31, #1f2a44);
  --gradient-reverse: linear-gradient(135deg, #1f2a44, #d23f31);
  --bg-dark: #0b0d12;
  --bg-overlay: rgba(10, 9, 8, 0.55);
  --glass-bg: rgba(18, 16, 14, 0.55);
  --glass-border: rgba(245, 241, 232, 0.12);
  --text-primary: #f5f1e8;
  --text-secondary: rgba(245, 241, 232, 0.9);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  --border-radius: 10px;
  --shadow-glow: 0 0 20px var(--accent);
  --shadow-glow-secondary: 0 0 20px var(--accent-secondary);
  
  /* Scene grading */
  --scene-saturate: 1.05;
  --scene-contrast: 1.08;
  --scene-brightness: 0.92;
  --scene-hue: 3deg;
  --scene-grade: saturate(var(--scene-saturate)) contrast(var(--scene-contrast)) brightness(var(--scene-brightness)) hue-rotate(var(--scene-hue));
  
  /* Glassmorphism 2.0 Variables */
  --glass-bg-2: rgba(255, 255, 255, 0.08);
  --glass-border-2: rgba(255, 255, 255, 0.15);
  --glass-shadow-2: rgba(0, 0, 0, 0.4);
  --glass-blur: blur(20px);
  --glass-blur-light: blur(10px);
  --glass-refraction: rgba(255, 255, 255, 0.03);
  
  /* Neumorphism Variables */
  --neuro-light: #ffffff;
  --neuro-dark: #2d3436;
  --neuro-shadow-light: rgba(255, 255, 255, 0.5);
  --neuro-shadow-dark: rgba(0, 0, 0, 0.5);
  --neuro-bg: #1a1a1a;
  --neuro-highlight: rgba(255, 255, 255, 0.1);
  --neuro-inset: rgba(0, 0, 0, 0.3);
  
  /* Liquid Animation Variables */
  --liquid-duration: 0.8s;
  --liquid-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --liquid-tension: 80;
  --liquid-friction: 12;
  
  /* Micro-Interactions 2.0 Variables */
  --micro-scale: 1.05;
  --micro-rotate: 2deg;
  --micro-translate: -2px;
  --micro-duration: 0.2s;
  --micro-easing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --magnet-strength: 15px;
  --magnet-duration: 0.3s;
  --ripple-size: 200px;
  --ripple-duration: 0.6s;
  
  /* Dynamic Themes Variables */
  --theme-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --theme-rotation: 0deg;
  
  /* Brand Colors */
  --steam-color: #1b2838;
  --steam-border: #66c0f4;
  --steam-glow: rgba(102, 192, 244, 0.3);
  
  --discord-color: #5865f2;
  --discord-border: #7289da;
  --discord-glow: rgba(114, 137, 218, 0.3);
  
  --spotify-color: #1db954;
  --spotify-border: #1ed760;
  --spotify-glow: rgba(30, 215, 96, 0.3);
}

/* Global Glitch Effect - ENHANCED */
@keyframes globalGlitch {
  0%, 92%, 100% {
    transform: translate(0);
    filter: hue-rotate(0deg) brightness(1) contrast(1);
  }
  93% {
    transform: translate(-2px, 2px);
    filter: hue-rotate(90deg) brightness(1.2) contrast(1.1) saturate(1.5);
  }
  94% {
    transform: translate(2px, -2px);
    filter: hue-rotate(180deg) brightness(0.8) contrast(1.3) saturate(2);
  }
  95% {
    transform: translate(-1px, 1px);
    filter: hue-rotate(270deg) brightness(1.1) contrast(0.9) saturate(0.8);
  }
  96% {
    transform: translate(1px, -1px);
    filter: hue-rotate(360deg) brightness(0.9) contrast(1.2) saturate(1.2);
  }
  97% {
    transform: translate(-3px, 3px);
    filter: hue-rotate(45deg) brightness(1.3) contrast(1.4) saturate(2.5);
  }
  98% {
    transform: translate(3px, -3px);
    filter: hue-rotate(135deg) brightness(0.7) contrast(1.5) saturate(3);
  }
  99% {
    transform: translate(-1px, -1px);
    filter: hue-rotate(225deg) brightness(1.1) contrast(0.8) saturate(0.5);
  }
  100% {
    transform: translate(0);
    filter: hue-rotate(360deg) brightness(1) contrast(1) saturate(1);
  }
}

body {
  animation: globalGlitch 6s infinite 2s;
}

main {
  animation: globalGlitch 5s infinite 1.5s;
}

/* Exclude tool modals from global animations */
.tool-modal {
  animation: none !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.tool-modal * {
  animation: none !important;
  transform: none !important;
  filter: none !important;
}

/* Ensure tool content is fully visible */
.tool-modal .tool-header,
.tool-modal .tool-content,
.tool-modal input,
.tool-modal button,
.tool-modal textarea,
.tool-modal select,
.tool-modal label,
.tool-modal h3,
.tool-modal h4,
.tool-modal p,
.tool-modal span,
.tool-modal div {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
  transform: none !important;
}

h1 {
  animation: slideIn 0.8s ease 0.4s forwards, glitchText 3s infinite 1.5s, globalGlitch 4s infinite 1s;
}

p {
  animation: slideIn 0.8s ease 0.6s forwards, globalGlitch 7s infinite 3s;
}

#stats {
  animation: globalGlitch 4s infinite 0.8s;
}

#links {
  animation: fadeIn 0.8s ease 0.8s forwards, globalGlitch 8s infinite 4s;
}

/* Glitch Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 246, 255, 0.08) 1px,
    rgba(0, 246, 255, 0.08) 2px,
    transparent 2px,
    transparent 3px,
    rgba(147, 51, 234, 0.06) 3px,
    rgba(147, 51, 234, 0.06) 4px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 1000;
  animation: scanlines 4s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(8px); }
}

/* Random Glitch Blocks */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(transparent 45%, rgba(0, 246, 255, 0.2) 50%, transparent 55%),
    linear-gradient(90deg, transparent 45%, rgba(147, 51, 234, 0.2) 50%, transparent 55%),
    linear-gradient(45deg, transparent 48%, rgba(255, 0, 136, 0.15) 50%, transparent 52%),
    linear-gradient(135deg, transparent 47%, rgba(0, 255, 136, 0.15) 50%, transparent 53%);
  background-size: 100% 3px, 3px 100%, 100% 4px, 4px 100%;
  pointer-events: none;
  z-index: 999;
  animation: glitchBlocks 2s steps(1) infinite;
  opacity: 0.3;
}

@keyframes glitchBlocks {
  0%, 80%, 100% { 
    opacity: 0.2; 
    transform: translate(0, 0);
    background: 
      linear-gradient(transparent 45%, rgba(0, 246, 255, 0.1) 50%, transparent 55%),
      linear-gradient(90deg, transparent 45%, rgba(147, 51, 234, 0.1) 50%, transparent 55%),
      linear-gradient(45deg, transparent 48%, rgba(255, 0, 136, 0.08) 50%, transparent 52%),
      linear-gradient(135deg, transparent 47%, rgba(0, 255, 136, 0.08) 50%, transparent 53%);
  }
  81% { 
    opacity: 0.6; 
    transform: translate(-4px, 3px);
    background: 
      linear-gradient(transparent 40%, rgba(0, 246, 255, 0.3) 50%, transparent 60%),
      linear-gradient(90deg, transparent 40%, rgba(147, 51, 234, 0.3) 50%, transparent 60%),
      linear-gradient(45deg, transparent 43%, rgba(255, 0, 136, 0.25) 50%, transparent 57%),
      linear-gradient(135deg, transparent 42%, rgba(0, 255, 136, 0.25) 50%, transparent 58%);
  }
  82% { 
    opacity: 0.8; 
    transform: translate(4px, -3px);
    background: 
      linear-gradient(transparent 35%, rgba(255, 0, 136, 0.4) 50%, transparent 65%),
      linear-gradient(90deg, transparent 35%, rgba(0, 255, 136, 0.4) 50%, transparent 65%),
      linear-gradient(45deg, transparent 38%, rgba(0, 246, 255, 0.35) 50%, transparent 62%),
      linear-gradient(135deg, transparent 37%, rgba(147, 51, 234, 0.35) 50%, transparent 63%);
  }
  83% { 
    opacity: 0.5; 
    transform: translate(-3px, 4px);
    background: 
      linear-gradient(transparent 42%, rgba(147, 51, 234, 0.35) 50%, transparent 58%),
      linear-gradient(90deg, transparent 42%, rgba(0, 246, 255, 0.35) 50%, transparent 58%),
      linear-gradient(45deg, transparent 45%, rgba(255, 0, 136, 0.3) 50%, transparent 55%),
      linear-gradient(135deg, transparent 44%, rgba(0, 255, 136, 0.3) 50%, transparent 56%);
  }
  84% { 
    opacity: 0.7; 
    transform: translate(3px, -4px);
    background: 
      linear-gradient(transparent 38%, rgba(0, 255, 136, 0.45) 50%, transparent 62%),
      linear-gradient(90deg, transparent 38%, rgba(255, 0, 136, 0.45) 50%, transparent 62%),
      linear-gradient(45deg, transparent 41%, rgba(147, 51, 234, 0.4) 50%, transparent 59%),
      linear-gradient(135deg, transparent 40%, rgba(0, 246, 255, 0.4) 50%, transparent 60%);
  }
  85% { 
    opacity: 0.6; 
    transform: translate(-2px, 2px);
    background: 
      linear-gradient(transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%),
      linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  }
  86% { 
    opacity: 0.4; 
    transform: translate(2px, -2px);
    background: 
      linear-gradient(transparent 45%, rgba(255, 0, 255, 0.3) 50%, transparent 55%),
      linear-gradient(90deg, transparent 45%, rgba(0, 255, 255, 0.3) 50%, transparent 55%);
  }
  87% { 
    opacity: 0.6; 
    transform: translate(-1px, 3px);
    background: 
      linear-gradient(transparent 40%, rgba(255, 255, 0, 0.35) 50%, transparent 60%),
      linear-gradient(90deg, transparent 40%, rgba(255, 0, 255, 0.35) 50%, transparent 60%);
  }
  88% { 
    opacity: 0.8; 
    transform: translate(1px, -3px);
    background: 
      linear-gradient(transparent 35%, rgba(0, 255, 255, 0.4) 50%, transparent 65%),
      linear-gradient(90deg, transparent 35%, rgba(255, 255, 0, 0.4) 50%, transparent 65%);
  }
  89% { 
    opacity: 0.3; 
    transform: translate(-2px, 1px);
    background: 
      linear-gradient(transparent 48%, rgba(255, 0, 136, 0.25) 50%, transparent 52%),
      linear-gradient(90deg, transparent 48%, rgba(0, 255, 136, 0.25) 50%, transparent 52%);
  }
  90% { 
    opacity: 0.5; 
    transform: translate(2px, -1px);
    background: 
      linear-gradient(transparent 42%, rgba(147, 51, 234, 0.3) 50%, transparent 58%),
      linear-gradient(90deg, transparent 42%, rgba(0, 246, 255, 0.3) 50%, transparent 58%);
  }
}

html,
body{
  width: 100%;
  min-height: 100%;
}

body{
  background:var(--bg-dark);
  color:var(--text-primary);
  font-family: 'Zen Kaku Gothic Antique', 'Segoe UI', sans-serif;
  min-height:100vh;
  height:auto;
  overflow-y:auto;
  overflow-x:hidden;
  cursor:none;
  letter-spacing: 0.5px;
}

body,
body * {
  cursor: none !important;
}

.cursor{
  position: fixed;
  pointer-events: none;
  z-index: 2147483647;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow), 0 0 24px rgba(210, 63, 49, 0.35);
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
  opacity: 1;
}

#bg{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  min-width:100vw;
  min-height:100vh;
  object-fit:cover;
  z-index:-2;
  filter: saturate(0.95) contrast(1.05) brightness(0.85);
  transform-origin: center;
  will-change: transform, filter;
  transform-style: preserve-3d;
}

.overlay{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  background:
    radial-gradient(80% 60% at 20% 20%, rgba(31, 42, 68, 0.25), transparent 55%),
    radial-gradient(70% 50% at 80% 10%, rgba(210, 63, 49, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.55), rgba(10, 9, 8, 0.75));
  backdrop-filter:blur(6px) saturate(0.9);
  -webkit-backdrop-filter:blur(6px) saturate(0.9);
  border: 1px solid var(--glass-border);
  z-index:-1;
  transform-origin: center;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(245, 241, 232, 0.04),
      rgba(245, 241, 232, 0.04) 1px,
      transparent 1px,
      transparent 36px
    );
  opacity: 0.25;
  pointer-events: none;
}

.enter{
  position:fixed;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:1.4rem;
  letter-spacing:4px;
  color:var(--accent);
  text-shadow:0 0 15px var(--accent);
  cursor: none;
  transition:var(--transition-smooth);
  transform:scale(1);
}

.enter:hover{
  transform:scale(1.05);
  text-shadow:0 0 25px var(--accent), 0 0 40px var(--accent-glow);
}

.enter:active{
  transform:scale(0.95);
}

.hidden{display:none}

main{
  position:relative;
  margin: 140px auto 120px;
  text-align:center;
  opacity: 0;
  animation: fadeInUpRelative 0.8s ease forwards;
  background: var(--glass-bg);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.35);
  max-width: 900px;
  width: min(92vw, 900px);
}

@keyframes fadeInUpRelative {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#avatar{
  width:280px;
  height:280px;
  border-radius:50%;
  border:3px solid var(--accent);
  margin-bottom:20px;
  transition:all 0.3s ease;
  cursor: none !important;
  box-shadow:0 0 40px var(--accent-glow);
  position:relative;
  overflow:hidden;
  animation: morphIn 1s ease 0.2s forwards, avatarGlitch 3s infinite 2s;
}

#avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 246, 255, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#avatar:hover::after {
  opacity: 1;
}

@keyframes morphIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
    border-radius: 20%;
  }
  50% {
    transform: scale(1.1) rotate(90deg);
    border-radius: 40%;
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    border-radius: 50%;
  }
}

@keyframes avatarGlitch {
  0%, 85%, 90%, 100% {
    transform: scale(1) rotate(0deg);
    filter: hue-rotate(0deg) brightness(1) contrast(1);
    box-shadow: 0 0 30px var(--accent-glow);
  }
  86% {
    transform: scale(1.02) rotate(-1deg) translateX(-2px);
    filter: hue-rotate(90deg) saturate(1.5) brightness(1.1) contrast(1.2);
    box-shadow: -2px 0 20px var(--accent-secondary), 2px 0 20px var(--accent);
  }
  87% {
    transform: scale(0.98) rotate(1deg) translateX(2px);
    filter: hue-rotate(180deg) saturate(2) brightness(0.9) contrast(1.3);
    box-shadow: 2px 0 25px var(--accent), -2px 0 25px var(--accent-secondary);
  }
  88% {
    transform: scale(1.01) rotate(-0.5deg) translateX(-1px);
    filter: hue-rotate(270deg) saturate(1.2) brightness(1.05) contrast(0.9);
    box-shadow: -1px 0 15px var(--accent-secondary), 1px 0 15px var(--accent);
  }
  89% {
    transform: scale(0.99) rotate(0.5deg) translateX(1px);
    filter: hue-rotate(360deg) saturate(0.8) brightness(0.95) contrast(1.1);
    box-shadow: 1px 0 10px var(--accent), -1px 0 10px var(--accent-secondary);
  }
  90% {
    transform: scale(1.03) rotate(-2deg) translateX(-3px);
    filter: hue-rotate(45deg) saturate(2.5) brightness(1.2) contrast(1.4);
    box-shadow: -3px 0 30px var(--accent-secondary), 3px 0 30px var(--accent);
  }
  91% {
    transform: scale(0.97) rotate(2deg) translateX(3px);
    filter: hue-rotate(135deg) saturate(3) brightness(0.8) contrast(1.5);
    box-shadow: 3px 0 35px var(--accent), -3px 0 35px var(--accent-secondary);
  }
  92% {
    transform: scale(1.02) rotate(-1.5deg) translateX(-2px);
    filter: hue-rotate(225deg) saturate(1.8) brightness(1.1) contrast(0.8);
    box-shadow: -2px 0 25px var(--accent-secondary), 2px 0 25px var(--accent);
  }
  93% {
    transform: scale(0.98) rotate(1.5deg) translateX(2px);
    filter: hue-rotate(315deg) saturate(1.5) brightness(0.9) contrast(1.2);
    box-shadow: 2px 0 20px var(--accent), -2px 0 20px var(--accent-secondary);
  }
  94% {
    transform: scale(1.01) rotate(-0.8deg) translateX(-1px);
    filter: hue-rotate(60deg) saturate(1.3) brightness(1.05) contrast(1.1);
    box-shadow: -1px 0 18px var(--accent-secondary), 1px 0 18px var(--accent);
  }
  95% {
    transform: scale(0.99) rotate(0.8deg) translateX(1px);
    filter: hue-rotate(120deg) saturate(0.9) brightness(0.95) contrast(0.9);
    box-shadow: 1px 0 12px var(--accent), -1px 0 12px var(--accent-secondary);
  }
}

#avatar:hover{
  transform:scale(1.05) rotate(2deg);
  box-shadow:0 0 30px var(--accent), 0 0 50px var(--accent-glow), 0 0 40px var(--accent-secondary), 0 0 60px var(--accent-secondary-glow);
  border-color: var(--accent-secondary);
  animation: avatarFloat 3s ease-in-out infinite, avatarGlitchHover 0.5s infinite;
}

@keyframes avatarFloat {
  0%, 100% { transform: scale(1.05) rotate(2deg) translateY(0); }
  50% { transform: scale(1.05) rotate(2deg) translateY(-5px); }
}

@keyframes avatarGlitchHover {
  0%, 100% {
    filter: hue-rotate(0deg) brightness(1);
    transform: scale(1.05) rotate(2deg);
  }
  25% {
    filter: hue-rotate(180deg) brightness(1.2) contrast(1.1);
    transform: scale(1.06) rotate(1deg) translateX(-1px);
  }
  50% {
    filter: hue-rotate(90deg) brightness(0.9) contrast(1.2);
    transform: scale(1.04) rotate(3deg) translateX(1px);
  }
  75% {
    filter: hue-rotate(270deg) brightness(1.1) contrast(0.9);
    transform: scale(1.07) rotate(1deg) translateX(-2px);
  }
}

h1{
  font-size:2.8rem;
  font-family: 'Shippori Mincho', serif;
  letter-spacing: 1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow:
    0 0 1px rgba(245, 241, 232, 0.35),
    1px 0 0 rgba(0,0,0,0.3),
    -1px 0 0 rgba(0,0,0,0.3),
    0 1px 0 rgba(0,0,0,0.25),
    0 -1px 0 rgba(0,0,0,0.25),
    0 0 6px var(--accent-glow),
    0 0 16px var(--accent-secondary-glow),
    0 0 24px rgba(0, 0, 0, 0.55);
  transition:var(--transition-smooth);
  opacity: 0;
  animation: slideIn 1.1s ease 0.4s forwards;
  position: relative;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glitchText {
  0%, 88%, 100% {
    text-shadow: 
      0 0 6px var(--accent-glow),
      0 0 18px var(--accent-secondary-glow);
    transform: translate(0);
    filter: hue-rotate(0deg) brightness(1);
  }
  89% {
    text-shadow: 
      -3px 0 var(--accent-secondary),
      3px 0 var(--accent),
      0 0 20px var(--accent-glow);
    transform: translate(-3px, 3px);
    filter: hue-rotate(90deg) brightness(1.3) saturate(2);
  }
  90% {
    text-shadow: 
      3px 0 var(--accent-secondary),
      -3px 0 var(--accent),
      0 0 25px var(--accent-secondary-glow);
    transform: translate(3px, -3px);
    filter: hue-rotate(180deg) brightness(0.7) saturate(3);
  }
  91% {
    text-shadow: 
      -2px 0 var(--accent),
      2px 0 var(--accent-secondary),
      0 0 15px var(--accent-glow);
    transform: translate(-2px, 2px);
    filter: hue-rotate(270deg) brightness(1.2) saturate(1.5);
  }
  92% {
    text-shadow: 
      2px 0 var(--accent),
      -2px 0 var(--accent-secondary),
      0 0 30px var(--accent-secondary-glow);
    transform: translate(2px, -2px);
    filter: hue-rotate(360deg) brightness(0.8) saturate(2.5);
  }
  93% {
    text-shadow: 
      -4px 0 var(--accent-secondary),
      4px 0 var(--accent),
      0 0 35px var(--accent-glow);
    transform: translate(-4px, 4px);
    filter: hue-rotate(45deg) brightness(1.4) saturate(4);
  }
  94% {
    text-shadow: 
      4px 0 var(--accent-secondary),
      -4px 0 var(--accent),
      0 0 40px var(--accent-secondary-glow);
    transform: translate(4px, -4px);
    filter: hue-rotate(135deg) brightness(0.6) saturate(5);
  }
  95% {
    text-shadow: 
      -1px 0 var(--accent),
      1px 0 var(--accent-secondary),
      0 0 10px var(--accent-glow);
    transform: translate(-1px, 1px);
    filter: hue-rotate(225deg) brightness(1.1) saturate(1.2);
  }
  96% {
    text-shadow: 
      1px 0 var(--accent),
      -1px 0 var(--accent-secondary),
      0 0 12px var(--accent-secondary-glow);
    transform: translate(1px, -1px);
    filter: hue-rotate(315deg) brightness(0.9) saturate(1.8);
  }
  97% {
    text-shadow: 
      0 0 6px var(--accent-glow),
      0 0 18px var(--accent-secondary-glow);
    transform: translate(0);
    filter: hue-rotate(0deg) brightness(1);
  }
}

h1:hover{
  background: var(--gradient-reverse);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow:0 0 10px var(--accent),0 0 25px var(--accent-secondary), 0 0 40px var(--accent-glow), 0 0 55px var(--accent-secondary-glow);
}

@keyframes glitchHover {
  0%, 100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-1px, 1px);
  }
  40% {
    transform: translate(-1px, -1px);
  }
  60% {
    transform: translate(1px, 1px);
  }
  80% {
    transform: translate(1px, -1px);
  }
}

/* Bio Badges 2.0 */
.bio-badge {
  background: linear-gradient(135deg, rgba(18, 16, 14, 0.75), rgba(18, 16, 14, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 8px;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  cursor: none !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.bio-badge::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: conic-gradient(from 120deg, rgba(210, 63, 49, 0.6), rgba(31, 42, 68, 0.6), rgba(210, 63, 49, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.bio-badge::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--accent-glow);
}

.bio-badge.badge-static::after {
  display: none;
}

.bio-badge:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(210, 63, 49, 0.15), rgba(31, 42, 68, 0.25));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(210, 63, 49, 0.25);
}

.bio-badge:hover::before {
  opacity: 0.7;
}

/* Bio detail modal */
.bio-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10050;
}

.bio-modal,
.bio-modal * {
  cursor: none !important;
}

.bio-modal.hidden {
  display: none;
}

.bio-modal-card {
  width: min(520px, 92vw);
  background: linear-gradient(135deg, rgba(18, 16, 14, 0.9), rgba(18, 16, 14, 0.65));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  color: var(--text-primary);
  position: relative;
  animation: fadeIn 0.2s ease-out;
}

.bio-modal-card h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: 0.6px;
}

.bio-modal-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.bio-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.bio-modal-close:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(210, 63, 49, 0.35);
}

/* Final cursor override to keep OS cursor hidden everywhere */
body,
body * {
  cursor: none !important;
}

@keyframes badgeGlitch {
  0%, 85%, 100% {
    transform: translateY(-2px) scale(1.05) translate(0, 0);
    filter: hue-rotate(0deg) brightness(1) saturate(1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(147, 51, 234, 0.25));
  }
  86% {
    transform: translateY(-2px) scale(1.05) translate(-2px, 2px);
    filter: hue-rotate(90deg) brightness(1.3) saturate(1.8);
    background: linear-gradient(135deg, rgba(0, 246, 255, 0.25), rgba(184, 41, 221, 0.35));
    box-shadow: -2px 0 15px rgba(0, 246, 255, 0.4), 2px 0 15px rgba(184, 41, 221, 0.4);
  }
  87% {
    transform: translateY(-2px) scale(1.05) translate(2px, -2px);
    filter: hue-rotate(180deg) brightness(0.7) saturate(2.5);
    background: linear-gradient(135deg, rgba(255, 0, 136, 0.3), rgba(0, 255, 65, 0.4));
    box-shadow: 2px 0 20px rgba(255, 0, 136, 0.5), -2px 0 20px rgba(0, 255, 65, 0.5);
  }
  88% {
    transform: translateY(-2px) scale(1.05) translate(-1px, 1px);
    filter: hue-rotate(270deg) brightness(1.2) saturate(1.5);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.35), rgba(0, 246, 255, 0.3));
    box-shadow: -1px 0 12px rgba(147, 51, 234, 0.4), 1px 0 12px rgba(0, 246, 255, 0.4);
  }
  89% {
    transform: translateY(-2px) scale(1.05) translate(1px, -1px);
    filter: hue-rotate(360deg) brightness(0.8) saturate(2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 0, 255, 0.35));
    box-shadow: 1px 0 18px rgba(255, 255, 255, 0.3), -1px 0 18px rgba(255, 0, 255, 0.3);
  }
  90% {
    transform: translateY(-2px) scale(1.05) translate(-3px, 3px);
    filter: hue-rotate(45deg) brightness(1.4) saturate(3);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.4), rgba(255, 255, 0, 0.35));
    box-shadow: -3px 0 25px rgba(0, 255, 136, 0.6), 3px 0 25px rgba(255, 255, 0, 0.6);
  }
  91% {
    transform: translateY(-2px) scale(1.05) translate(3px, -3px);
    filter: hue-rotate(135deg) brightness(0.6) saturate(4);
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.45), rgba(0, 255, 255, 0.4));
    box-shadow: 3px 0 30px rgba(255, 0, 255, 0.7), -3px 0 30px rgba(0, 255, 255, 0.7);
  }
  92% {
    transform: translateY(-2px) scale(1.05) translate(-2px, 2px);
    filter: hue-rotate(225deg) brightness(1.1) saturate(1.8);
    background: linear-gradient(135deg, rgba(184, 41, 221, 0.3), rgba(255, 0, 136, 0.35));
    box-shadow: -2px 0 20px rgba(184, 41, 221, 0.5), 2px 0 20px rgba(255, 0, 136, 0.5);
  }
  93% {
    transform: translateY(-2px) scale(1.05) translate(2px, -2px);
    filter: hue-rotate(315deg) brightness(0.9) saturate(2.2);
    background: linear-gradient(135deg, rgba(0, 246, 255, 0.25), rgba(255, 255, 255, 0.3));
    box-shadow: 2px 0 15px rgba(0, 246, 255, 0.4), -2px 0 15px rgba(255, 255, 255, 0.4);
  }
  94% {
    transform: translateY(-2px) scale(1.05) translate(-1px, 1px);
    filter: hue-rotate(60deg) brightness(1.2) saturate(1.6);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.35), rgba(0, 255, 65, 0.3));
    box-shadow: -1px 0 18px rgba(147, 51, 234, 0.5), 1px 0 18px rgba(0, 255, 65, 0.5);
  }
  95% {
    transform: translateY(-2px) scale(1.05) translate(1px, -1px);
    filter: hue-rotate(120deg) brightness(0.85) saturate(1.9);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 0, 136, 0.3));
    box-shadow: 1px 0 22px rgba(255, 255, 255, 0.4), -1px 0 22px rgba(255, 0, 136, 0.4);
  }
}

@keyframes badgeColorMorph {
  0%, 100% {
    background: linear-gradient(135deg, var(--glass-bg), rgba(147, 51, 234, 0.2));
    border-color: var(--accent);
    color: var(--accent);
  }
  25% {
    background: linear-gradient(135deg, var(--glass-bg), rgba(0, 246, 255, 0.2));
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
  }
  50% {
    background: linear-gradient(135deg, var(--glass-bg), rgba(147, 51, 234, 0.3));
    border-color: var(--accent);
    color: var(--text-primary);
  }
  75% {
    background: linear-gradient(135deg, var(--glass-bg), rgba(0, 246, 255, 0.3));
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
  }
}

@keyframes badgePulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.3;
  }
}

/* Particle burst effect for badges */
.bio-badge.particle-burst::before {
  animation: none;
}

.bio-badge.particle-burst::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: particleBurst 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes particleBurst {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-glow);
  }
  100% {
    transform: translate(-50%, -50%) scale(20);
    opacity: 0;
    box-shadow: 0 0 30px transparent;
  }
}

p{
  margin-top:12px;
  font-size:1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: none !important;
  opacity: 0;
  animation: slideIn 0.8s ease 0.6s forwards;
}

#links{margin-top:40px; opacity: 0; animation: fadeIn 0.8s ease 0.8s forwards;}

.updates-section {
  margin: 40px auto 0;
  width: min(900px, 92vw);
  text-align: left;
}

.updates-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.updates-header h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.updates-sub {
  font-size: 0.85rem;
  opacity: 0.75;
}

.updates-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.updates-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  letter-spacing: 0.6px;
  font-size: 0.8rem;
  cursor: none !important;
  transition: var(--transition-smooth);
}

.updates-tab:hover,
.updates-tab.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  background: rgba(210, 63, 49, 0.18);
}

.updates-project-subtitle {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 6px;
}

.updates-list {
  display: grid;
  gap: 14px;
  width: 100%;
}

.update-card {
  background: linear-gradient(135deg, rgba(18, 16, 14, 0.7), rgba(18, 16, 14, 0.45));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.update-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.update-head h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.6px;
}

.update-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.update-status.active {
  border-color: rgba(46, 204, 113, 0.6);
  color: #2ecc71;
}

.update-status.building {
  border-color: rgba(241, 196, 15, 0.6);
  color: #f1c40f;
}

.update-status.planned {
  border-color: rgba(52, 152, 219, 0.6);
  color: #3498db;
}

.update-meta {
  margin-top: 6px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.update-card p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 1;
  animation: none;
}

.update-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.update-tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  letter-spacing: 0.6px;
}

.updates-empty {
  padding: 14px 16px;
  border: 1px dashed var(--glass-border);
  border-radius: 12px;
  opacity: 0.7;
}

/* Resource Hub */
.resources-section {
  margin: 40px auto 60px;
  width: min(900px, 92vw);
  text-align: left;
}

.resources-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.resources-header h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.resources-sub {
  font-size: 0.85rem;
  opacity: 0.75;
}

.resources-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.resources-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.resources-search {
  width: min(320px, 100%);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(18, 16, 14, 0.6);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  cursor: none !important;
  transition: var(--transition-smooth);
}

.resources-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(210, 63, 49, 0.35);
}

.resources-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  letter-spacing: 0.6px;
  font-size: 0.8rem;
  cursor: none !important;
  transition: var(--transition-smooth);
}

.resources-tab:hover,
.resources-tab.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  background: rgba(210, 63, 49, 0.18);
}

.resources-list {
  display: grid;
  gap: 14px;
}

.resource-card {
  background: linear-gradient(135deg, rgba(18, 16, 14, 0.7), rgba(18, 16, 14, 0.45));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.resource-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.resource-head h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.6px;
}

.resource-type {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.resource-card p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 1;
  animation: none;
}

.resource-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  letter-spacing: 0.6px;
}

.resource-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.resource-copy {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  cursor: none !important;
  transition: var(--transition-smooth);
}

.resource-copy:disabled {
  opacity: 0.5;
}

.resource-copy:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(210, 63, 49, 0.25);
}

.resource-link {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(210, 63, 49, 0.15);
  color: var(--text-primary);
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  text-decoration: none;
  cursor: none !important;
  transition: var(--transition-smooth);
}

.resource-link[aria-disabled="true"] {
  opacity: 0.5;
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}

.resource-link:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(210, 63, 49, 0.35);
  transform: translateY(-1px);
}

.resources-empty {
  padding: 14px 16px;
  border: 1px dashed var(--glass-border);
  border-radius: 12px;
  opacity: 0.7;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#stats{
  margin-top:30px;
  display:flex;
  justify-content:center;
  gap:8px;
  font-size:0.85rem;
  color:var(--text-secondary);
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
  padding: 20px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#stats span {
  text-align: center;
  white-space: nowrap;
}

.stats-badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(18, 16, 14, 0.55);
  font-size: 0.85rem;
}

.stats-action {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(210, 63, 49, 0.12);
  color: var(--text-primary);
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.stats-action:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(210, 63, 49, 0.35);
  transform: translateY(-1px);
}

.time-widget {
  background: linear-gradient(135deg, var(--glass-bg), rgba(0, 246, 255, 0.1));
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--accent-glow);
  animation: timeGlow 2s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
  min-width: 100px;
  text-align: center;
}

.time-widget::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-secondary), var(--accent));
  border-radius: 20px;
  z-index: -1;
  animation: borderRotate 3s linear infinite;
  opacity: 0.7;
}

@keyframes timeGlow {
  0% { 
    text-shadow: 0 0 10px var(--accent-glow);
    box-shadow: 0 0 15px var(--accent-glow);
  }
  100% { 
    text-shadow: 0 0 20px var(--accent-glow), 0 0 30px var(--accent-secondary-glow);
    box-shadow: 0 0 25px var(--accent-glow), 0 0 35px var(--accent-secondary-glow);
  }
}


@keyframes weatherBorderRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#visitor-count, #online-status, #weather-widget{
  padding:6px 16px;
  border:1px solid var(--accent);
  border-radius:20px;
  background: var(--glass-bg);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  border: 1px solid var(--glass-border);
  transition:var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 246, 255, 0.1);
  cursor: none !important;
}

#online-status.online{
  color:#00ff00;
  border-color:#00ff00;
  text-shadow:0 0 6px #00ff00;
}

#online-status.offline{
  color:#ff4444;
  border-color:#ff4444;
  text-shadow:0 0 6px #ff4444;
}

#visitor-count:hover, #online-status:hover, #weather-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 246, 255, 0.2), 0 6px 25px rgba(147, 51, 234, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

#links a{
  display:block;
  margin:14px 0;
  padding:12px 12px 12px 50px;
  border:1px solid var(--accent);
  border-radius:var(--border-radius);
  color:var(--accent);
  text-decoration:none;
  background: var(--glass-bg);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border: 1px solid var(--glass-border);
  transition:var(--transition-smooth);
  transform:translateZ(0);
  position:relative;
  overflow:hidden;
  opacity: 0;
  animation: staggerIn 0.5s ease forwards;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  cursor: none !important;
}

/* Brand logos */
#links a::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: none;
  z-index: 2;
}

#links a[href*="steam"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2366c0f4'%3E%3Cpath d='M11.979 0C5.678 0 .511 5.043.5 11.302l.004.458c.044 2.785 1.093 5.342 2.822 7.355l.004.006c.025.028.05.055.075.083.13.148.262.293.398.435.045.047.09.094.136.14.13.13.263.258.399.382l.003.003c.058.053.117.105.176.157.13.113.263.224.398.332l.008.006c.06.048.12.095.181.142.14.108.283.213.428.315l.003.002c.058.04.116.08.175.119.15.1.302.197.456.291l.003.002c.055.033.11.067.166.1.16.094.322.184.487.27l.003.001c.05.025.1.05.151.074.17.08.342.156.516.228l.003.001c.045.018.09.037.135.055.18.07.363.136.548.197l.003.001c.038.012.076.025.114.037.19.06.383.115.578.165l.003.001c.032.008.064.017.096.025.2.053.403.101.608.144l.003.001c.025.005.05.01.075.015.21.042.423.078.637.108l.003.001c.02.003.04.006.06.008.22.03.442.054.666.073l.003.001c.017.002.034.003.05.004.23.018.462.03.696.036l.003.001c.014 0 .028.001.042.001.238.006.477.006.718 0l.003-.001c.014 0 .028-.001.042-.001l.003-.001c.234-.006.466-.018.696-.036l.05-.004.003-.001c.224-.019.446-.043.666-.073l.06-.008.003-.001c.214-.03.427-.066.637-.108l.075-.015.003-.001c.205-.043.408-.091.608-.144l.096-.025.003-.001c.195-.05.388-.105.578-.165l.114-.037.003-.001c.185-.061.368-.127.548-.197l.135-.055.003-.001c.174-.072.346-.148.516-.228l.151-.074.003-.001c.165-.086.327-.176.487-.27l.166-.1.003-.002c.154-.094.306-.191.456-.291l.175-.119.003-.002c.145-.102.288-.207.428-.315l.181-.142.008-.006c.135-.108.268-.219.398-.332l.176-.157.003-.003c.136-.124.269-.252.399-.382l.136-.14c.136-.142.268-.287.398-.435.025-.028.05-.055.075-.083l.004-.006c1.729-2.013 2.778-4.57 2.822-7.355l.004-.458C23.447 5.043 18.28 0 11.979 0zm0 2.16c5.874 0 10.633 4.688 10.633 10.48 0 5.791-4.759 10.48-10.633 10.48-5.874 0-10.633-4.689-10.633-10.48 0-5.792 4.759-10.48 10.633-10.48z'/%3E%3Cpath d='M8.29 11.357c-1.085 0-1.965.864-1.965 1.928s.88 1.928 1.965 1.928c1.085 0 1.965-.864 1.965-1.928s-.88-1.928-1.965-1.928zm7.378 0c-1.085 0-1.965.864-1.965 1.928s.88 1.928 1.965 1.928c1.085 0 1.965-.864 1.965-1.928s-.88-1.928-1.965-1.928z'/%3E%3C/svg%3E");
}

#links a[href*="discord"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237289da'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0a12.64 12.64 0 0 0-.617-1.25a.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.078.078 0 0 0 .084-.028a14.09 14.09 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13.107 13.107 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10.2 10.2 0 0 0 .372-.292a.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127a12.299 12.299 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028a19.839 19.839 0 0 0 6.002-3.03a.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418z'/%3E%3C/svg%3E");
}

#links a[href*="spotify"]::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231ed760'%3E%3Cpath d='M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12s12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24c-2.82-1.74-6.36-2.101-10.561-1.141c-.418.122-.779-.179-.899-.539c-.12-.421.18-.78.54-.9c4.56-1.021 8.52-.6 11.64 1.32c.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3c-3.239-1.98-8.159-2.58-11.939-1.38c-.479.12-1.02-.12-1.14-.6c-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721c-.18-.601.18-1.2.72-1.381c4.26-1.26 11.28-1.02 15.721 1.621c.539.3.719 1.02.419 1.56c-.299.421-1.02.599-1.559.3z'/%3E%3C/svg%3E");
}

/* Brand-specific link styles */
#links a[href*="steam"] {
  border-color: var(--steam-border);
  color: var(--steam-border);
  background: linear-gradient(135deg, var(--glass-bg), rgba(27, 40, 56, 0.1));
}

#links a[href*="discord"] {
  border-color: var(--discord-border);
  color: var(--discord-border);
  background: linear-gradient(135deg, var(--glass-bg), rgba(88, 101, 242, 0.1));
}

#links a[href*="spotify"] {
  border-color: var(--spotify-border);
  color: var(--spotify-border);
  background: linear-gradient(135deg, var(--glass-bg), rgba(29, 185, 84, 0.1));
}

#links a[href*="kizenn.net"] {
  border-color: var(--accent);
  color: var(--accent);
  background: linear-gradient(135deg, var(--glass-bg), rgba(0, 246, 255, 0.12));
}

#links a[href*="steam"]:hover {
  background: var(--steam-color);
  box-shadow: 0 5px 20px var(--steam-glow);
  border-color: var(--steam-border);
}

#links a[href*="discord"]:hover {
  background: var(--discord-color);
  box-shadow: 0 5px 20px var(--discord-glow);
  border-color: var(--discord-border);
}

#links a[href*="spotify"]:hover {
  background: var(--spotify-color);
  box-shadow: 0 5px 20px var(--spotify-glow);
  border-color: var(--spotify-border);
}

#links a[href*="kizenn.net"]:hover {
  background: linear-gradient(135deg, rgba(0, 246, 255, 0.24), rgba(147, 51, 234, 0.2));
  box-shadow: 0 5px 20px var(--accent-glow);
  border-color: var(--accent);
}

#links a:nth-child(1) { animation-delay: 0.9s; }
#links a:nth-child(2) { animation-delay: 1.0s; }
#links a:nth-child(3) { animation-delay: 1.1s; }
#links a:nth-child(4) { animation-delay: 1.2s; }
#links a:nth-child(5) { animation-delay: 1.3s; }

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateX(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

#links a::before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition:left 0.5s ease;
  z-index: 1;
}

#links a:hover::before{
  left:100%;
}

#links a:hover{
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px var(--accent-glow);
  border-color: var(--text-primary);
}

.link-stats{
  float:right;
  font-size:0.8rem;
  opacity:0.7;
  font-weight:normal;
}

#links a.has-custom-logo::after {
  display: none;
}

.link-logo {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  z-index: 3;
}

.link-label {
  position: relative;
  z-index: 2;
}

@keyframes glow{
  0%{box-shadow:0 5px 20px var(--accent-glow), 0 5px 30px var(--accent-secondary-glow)}
  50%{box-shadow:0 5px 25px var(--accent-secondary-glow), 0 5px 35px var(--accent-glow)}
  100%{box-shadow:0 5px 20px var(--accent-glow), 0 5px 30px var(--accent-secondary-glow)}
}

@keyframes glitch{
  0%{text-shadow:2px 0 var(--accent-secondary)}
  25%{text-shadow:-2px 0 var(--accent)}
  50%{text-shadow:2px 0 var(--accent-secondary)}
  75%{text-shadow:-2px 0 var(--accent)}
  100%{text-shadow:2px 0 var(--accent-secondary)}
}

/* Old cursor removed - replaced by Micro-Interactions 2.0 */

/* Theme Switcher Cursor Fix */
.theme-switcher,
.theme-switcher * {
  cursor: none !important;
}

/* Enhanced Social Links Animations - FINAL VERSION */
#links a {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: none !important;
  display: block !important;
  opacity: 1 !important;
  animation: none !important;
}

#links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

#links a:hover::before {
  left: 100%;
}

#links a:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px var(--accent-glow);
  border-color: var(--text-primary);
}

#links a:active {
  transform: translateY(-2px) scale(1.02);
}

/* Steam specific animation */
#links a[href*="steam"]:hover {
  background: linear-gradient(135deg, var(--steam-color), var(--steam-border)) !important;
  box-shadow: 0 0 30px var(--steam-glow), 0 10px 40px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
}

/* Discord specific animation */
#links a[href*="discord"]:hover {
  background: linear-gradient(135deg, var(--discord-color), var(--discord-border)) !important;
  box-shadow: 0 0 30px var(--discord-glow), 0 10px 40px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
}

/* Spotify specific animation */
#links a[href*="spotify"]:hover {
  background: linear-gradient(135deg, var(--spotify-color), #1ed760) !important;
  box-shadow: 0 0 30px rgba(30, 215, 96, 0.4), 0 10px 40px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
}

.preloader{
  position:fixed;
  inset:0;
  background:
    radial-gradient(140% 100% at 20% 20%, rgba(31, 42, 68, 0.35), transparent 55%),
    radial-gradient(120% 100% at 80% 10%, rgba(210, 63, 49, 0.25), transparent 60%),
    var(--bg-dark);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:10000;
  transition:opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.preloader.hidden{
  opacity:0;
  visibility:hidden;
}

.loader{
  width: min(520px, 86vw);
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  align-items: center;
  padding: 24px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18, 16, 14, 0.75), rgba(18, 16, 14, 0.45));
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.preloader.hidden .loader {
  opacity: 0;
  visibility: hidden;
}

.loader-title {
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-shadow: 0 0 15px var(--accent-glow);
}

.loader-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
}

.loader-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  box-shadow: 0 0 20px var(--accent-glow);
  transition: width 0.25s ease;
}

.loader-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@keyframes spin{
  0%{transform: rotate(0deg)}
  100%{transform: rotate(360deg)}
}

@keyframes spinReverse{
  0%{transform: rotate(360deg)}
  100%{transform: rotate(0deg)}
}

@keyframes pulse{
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

::-webkit-scrollbar{
  width:8px;
}

::-webkit-scrollbar-track{
  background:var(--bg-dark);
}

::-webkit-scrollbar-thumb{
  background:var(--accent);
  border-radius:4px;
  box-shadow:var(--shadow-glow);
}

::-webkit-scrollbar-thumb:hover{
  background:var(--text-primary);
}

#particles, #visualizer{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  width:100vw;
  height:100vh;
  transform-origin: center;
  will-change: transform;
  transform-style: preserve-3d;
}

#visualizer{
  z-index:0;
  opacity:0.3;
}

/* Parallax Effect */
.parallax-layer {
  position: fixed;
  pointer-events: none;
}

.parallax-bg {
  z-index: -3;
  transform: translateZ(-10px) scale(1.1);
}

.parallax-mid {
  z-index: -2;
  transform: translateZ(-5px) scale(1.05);
}

.parallax-front {
  z-index: -1;
  transform: translateZ(-2px) scale(1.02);
}

#tag {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 0.9rem;
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent);
  font-family: Arial, sans-serif;
  opacity: 0.8;
  z-index: 1000;
}

#volume-control {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 246, 255, 0.1);
  cursor: none !important;
}

#volume-control::before {
  content: '🔊';
  font-size: 1rem;
  opacity: 0.8;
}

#volume-control:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 246, 255, 0.2);
  border-color: var(--accent);
}

#volume-slider {
  width: 100px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  cursor: none !important;
  padding: 10px 0;
  margin: -10px 0;
}

#volume-slider::-webkit-slider-track {
  width: 100%;
  height: 6px;
  background: var(--glass-border);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: none !important;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: var(--transition-fast);
  border: 2px solid var(--text-primary);
  margin-top: -6px;
}

#volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px var(--accent-glow), 0 0 25px var(--accent-secondary-glow);
  background: var(--accent-secondary);
}

#volume-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: var(--glass-border);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: none !important;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: var(--transition-fast);
  border: 2px solid var(--text-primary);
  border: none;
}


@media(max-width:600px){
  h1{font-size:1.8rem}
  #avatar{width:100px;height:100px}
  
  .cursor{
    display:none !important;
  }
  
  .enter{
    font-size:1.2rem;
    letter-spacing:2px;
  }
  
  #stats{
    flex-direction:column;
    gap:10px;
    font-size:0.8rem;
  }
  
  #links a{
    margin:10px 0;
    padding:15px;
    font-size:0.9rem;
  }
  
  .link-stats{
    display:block;
    float:none;
    margin-top:5px;
    font-size:0.7rem;
  }
  
  #volume-control{
    bottom:10px;
    right:10px;
  }
  
  #volume-slider{
    width:80px;
  }

  main{
    padding: 30px 20px;
    width: 95%;
    margin: 20px;
  }

  /* Enhanced mobile touch targets */
  #links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Better mobile animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translate(-50%, -30%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }

  /* Mobile-optimized parallax */
  #bg {
    transform: none !important;
  }

  .overlay {
    transform: none !important;
  }

  #particles {
    transform: none !important;
  }
}

/* ===== TOOLS STYLING ===== */

/* Tools Container */
#tools-container {
  position: fixed;
  bottom: 140px;
  right: 20px;
  z-index: 1000;
}

.tools-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  cursor: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 246, 255, 0.1);
}

.tools-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 246, 255, 0.2);
  border-color: var(--accent);
}

.tools-menu {
  position: absolute;
  bottom: 60px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--glass-bg-2);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-2);
  border-radius: var(--border-radius);
  padding: 15px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 200px;
}

.tools-menu:not(.hidden) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.tool-btn {
  width: 50px;
  height: 50px;
  background: var(--glass-bg-2);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-2);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--micro-duration) var(--micro-easing);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tool-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 246, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.tool-btn:hover::before {
  left: 100%;
}

.tool-btn:hover {
  background: var(--glass-bg);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 30px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tool-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 2px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tools-toggle {
  width: 50px;
  height: 50px;
  background: var(--glass-bg-2);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-2);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--micro-duration) var(--micro-easing);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tools-toggle:hover {
  background: var(--glass-bg);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 30px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tools-toggle.magnetic-active {
  border-color: var(--accent-secondary);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 30px var(--accent-secondary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tool-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.95) 0%, 
    rgba(13, 13, 13, 0.95) 50%, 
    rgba(0, 0, 0, 0.95) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 2px solid transparent !important;
  border-image: linear-gradient(135deg, var(--accent), var(--accent-secondary)) 1 !important;
  border-radius: 20px !important;
  padding: 0 !important;
  width: 90% !important;
  max-width: 700px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  z-index: 99999 !important;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 40px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  
  /* RESTORE CURSOR */
  cursor: auto !important;
  
  /* Enhanced animation */
  animation: cyberpunkToolSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Enhanced cyberpunk slide-in animation */
@keyframes cyberpunkToolSlideIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotateX(10deg);
    filter: blur(10px);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.02) rotateX(2deg);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateX(0deg);
    filter: blur(0px);
  }
}

.tool-modal:not(.hidden) {
  animation: cyberpunkToolSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* FORCE OVERRIDE FOR ALL CHILD ELEMENTS */
.tool-modal *,
.tool-modal *::before,
.tool-modal *::after {
  animation: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  opacity: 1 !important;
  text-shadow: none !important;
  clip-path: none !important;
  mask: none !important;
  mix-blend-mode: normal !important;
  isolation: isolate !important;
  
  /* RESTORE CURSOR FOR ALL ELEMENTS */
  cursor: auto !important;
}

/* Tool Header - CYBERPUNK DESIGN */
.tool-modal .tool-header {
  background: linear-gradient(135deg, 
    var(--accent) 0%, 
    var(--accent-secondary) 50%, 
    var(--accent) 100%) !important;
  background-size: 200% 200% !important;
  animation: cyberpunkGradient 3s ease infinite !important;
  color: #000000 !important;
  padding: 20px 25px !important;
  border-radius: 18px 18px 0 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
}

.tool-modal .tool-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  animation: cyberpunkSweep 2s ease-in-out infinite;
}

@keyframes cyberpunkGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes cyberpunkSweep {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.tool-modal .tool-header h3 {
  color: #000000 !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  position: relative !important;
  z-index: 2 !important;
}

.tool-modal .close-tool {
  background: rgba(0, 0, 0, 0.3) !important;
  color: #000000 !important;
  border: 2px solid rgba(0, 0, 0, 0.5) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 1.3rem !important;
  font-weight: bold !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  z-index: 2 !important;
  overflow: hidden !important;
}

.tool-modal .close-tool::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.tool-modal .close-tool:hover::before {
  width: 100%;
  height: 100%;
}

.tool-modal .close-tool:hover {
  background: rgba(0, 0, 0, 0.5) !important;
  transform: scale(1.1) rotate(90deg) !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

/* Tool Content - CYBERPUNK DESIGN */
.tool-modal .tool-content {
  padding: 30px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(13, 13, 13, 0.85) 50%,
    rgba(0, 0, 0, 0.9) 100%) !important;
  border-radius: 0 0 18px 18px !important;
  position: relative !important;
  
  /* Cyberpunk grid pattern */
  background-image: 
    linear-gradient(rgba(0, 246, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 246, 255, 0.03) 1px, transparent 1px) !important;
  background-size: 20px 20px !important;
  
  /* Enhanced inner shadow */
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(0, 246, 255, 0.05) !important;
}

/* ALL TEXT IN TOOLS - CYBERPUNK WHITE */
.tool-modal .tool-content,
.tool-modal .tool-content *,
.tool-modal label,
.tool-modal span,
.tool-modal p,
.tool-modal h1,
.tool-modal h2,
.tool-modal h3,
.tool-modal h4,
.tool-modal h5,
.tool-modal h6 {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(0, 246, 255, 0.3) !important;
  font-weight: 500 !important;
}

/* INPUT FIELDS - CYBERPUNK ENHANCED */
.tool-modal input,
.tool-modal textarea,
.tool-modal select {
  background: linear-gradient(135deg,
    rgba(0, 246, 255, 0.05) 0%,
    rgba(147, 51, 234, 0.05) 100%) !important;
  color: #ffffff !important;
  border: 2px solid rgba(0, 246, 255, 0.3) !important;
  border-radius: 15px !important;
  padding: 18px 22px !important;
  font-size: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 12px 0 24px 0 !important;
  
  /* Enhanced cyberpunk effects */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(0, 246, 255, 0.05) !important;
  
  /* CURSOR FOR INPUTS */
  cursor: text !important;
  
  /* Cyberpunk glow on focus */
  position: relative !important;
}

.tool-modal input:focus,
.tool-modal textarea:focus,
.tool-modal select:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 
    0 0 30px var(--accent-glow),
    0 0 60px rgba(0, 246, 255, 0.2),
    inset 0 0 20px rgba(0, 246, 255, 0.1) !important;
  background: linear-gradient(135deg,
    rgba(0, 246, 255, 0.08) 0%,
    rgba(147, 51, 234, 0.08) 100%) !important;
  transform: translateY(-2px) !important;
}

.tool-modal input::placeholder,
.tool-modal textarea::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic !important;
  opacity: 0.8 !important;
}

/* BUTTONS - CYBERPUNK ENHANCED */
.tool-modal button {
  background: linear-gradient(135deg, 
    var(--accent) 0%, 
    var(--accent-secondary) 100%) !important;
  background-size: 200% 200% !important;
  animation: cyberpunkButtonGradient 2s ease infinite !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 15px !important;
  padding: 16px 28px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 
    0 6px 25px rgba(0, 246, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

@keyframes cyberpunkButtonGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tool-modal button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent);
  transition: left 0.6s ease;
}

.tool-modal button:hover::before {
  left: 100%;
}

.tool-modal button:hover {
  background: linear-gradient(135deg, 
    var(--accent-secondary) 0%, 
    var(--accent) 100%) !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 
    0 10px 35px rgba(0, 246, 255, 0.4),
    0 0 40px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.tool-modal button:active {
  transform: translateY(-1px) scale(0.98) !important;
  box-shadow: 
    0 4px 20px rgba(0, 246, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.tool-modal button:hover {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent)) !important;
  transform: translateY(-1px) !important;
  box-shadow: 
    0 6px 25px rgba(0, 246, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 5px 16px rgba(0, 246, 255, 0.3) !important;
}

.tool-modal button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(0, 246, 255, 0.2) !important;
}

/* RESULT AREAS - CYBERPUNK ENHANCED */
.tool-modal .result-area {
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(13, 13, 13, 0.75) 50%,
    rgba(0, 0, 0, 0.8) 100%) !important;
  border: 2px solid transparent !important;
  border-image: linear-gradient(135deg, 
    rgba(0, 246, 255, 0.3), 
    rgba(147, 51, 234, 0.3)) 1 !important;
  border-radius: 15px !important;
  padding: 25px !important;
  margin: 20px 0 !important;
  color: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
  
  /* Cyberpunk grid pattern */
  background-image: 
    linear-gradient(rgba(0, 246, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 246, 255, 0.02) 1px, transparent 1px) !important;
  background-size: 15px 15px !important;
  
  /* Enhanced shadow */
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(0, 246, 255, 0.05),
    0 0 20px rgba(0, 246, 255, 0.1) !important;
}

.tool-modal .result-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--accent), 
    transparent);
  animation: cyberpunkScan 3s ease-in-out infinite;
}

@keyframes cyberpunkScan {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Special Cyberpunk Components */

/* Dice Animation - CYBERPUNK */
.dice-3d {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, 
    var(--accent) 0%, 
    var(--accent-secondary) 100%) !important;
  border-radius: 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2rem !important;
  box-shadow: 
    0 0 30px var(--accent-glow),
    inset 0 0 20px rgba(255, 255, 255, 0.2) !important;
  position: relative !important;
}

.dice-3d.rolling {
  animation: cyberpunkDiceRoll 2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes cyberpunkDiceRoll {
  0% {
    transform: rotateX(0deg) rotateY(0deg) scale(1);
    box-shadow: 0 0 30px var(--accent-glow);
  }
  25% {
    transform: rotateX(720deg) rotateY(360deg) scale(1.2);
    box-shadow: 0 0 50px var(--accent-secondary-glow);
  }
  50% {
    transform: rotateX(1440deg) rotateY(720deg) scale(1.1);
    box-shadow: 0 0 40px var(--accent-glow);
  }
  75% {
    transform: rotateX(2160deg) rotateY(1080deg) scale(1.05);
    box-shadow: 0 0 35px var(--accent-secondary-glow);
  }
  100% {
    transform: rotateX(2880deg) rotateY(1440deg) scale(1);
    box-shadow: 0 0 30px var(--accent-glow);
  }
}

/* Coin Animation - CYBERPUNK */
.coin-3d {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, 
    #ffd700 0%, 
    #ffed4e 50%, 
    #ffd700 100%) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2rem !important;
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
  position: relative !important;
  border: 3px solid rgba(255, 215, 0, 0.3) !important;
}

.coin-3d.flipping {
  animation: cyberpunkCoinFlip 2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes cyberpunkCoinFlip {
  0% {
    transform: rotateY(0deg) scale(1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  }
  25% {
    transform: rotateY(900deg) scale(1.1);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.7);
  }
  50% {
    transform: rotateY(1800deg) scale(1.2);
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.8);
  }
  75% {
    transform: rotateY(2700deg) scale(1.1);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.7);
  }
  100% {
    transform: rotateY(3600deg) scale(1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  }
}

/* QR Code Display - CYBERPUNK */
#qr-code {
  background: #ffffff !important;
  padding: 20px !important;
  border-radius: 15px !important;
  box-shadow: 
    0 0 30px var(--accent-glow),
    0 8px 32px rgba(0, 0, 0, 0.3) !important;
  border: 2px solid var(--accent) !important;
  display: inline-block !important;
}

#qr-code canvas {
  border-radius: 10px !important;
}

/* Password Strength Bar - CYBERPUNK */
.strength-bar {
  width: 100% !important;
  height: 12px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  margin-bottom: 10px !important;
  border: 1px solid rgba(0, 246, 255, 0.2) !important;
  position: relative !important;
}

.strength-fill {
  height: 100% !important;
  width: 0% !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 6px !important;
  position: relative !important;
  overflow: hidden !important;
}

.strength-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  animation: strengthScan 2s ease-in-out infinite;
}

@keyframes strengthScan {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* History Lists - CYBERPUNK */
.dice-history-list,
.coin-history-list {
  max-height: 200px !important;
  overflow-y: auto !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(0, 246, 255, 0.2) !important;
  border-radius: 10px !important;
  padding: 15px !important;
  
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.1);
}

.dice-history-list::-webkit-scrollbar,
.coin-history-list::-webkit-scrollbar {
  width: 6px;
}

.dice-history-list::-webkit-scrollbar-track,
.coin-history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.dice-history-list::-webkit-scrollbar-thumb,
.coin-history-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.dice-history-item,
.coin-history-item {
  padding: 10px !important;
  margin-bottom: 8px !important;
  background: rgba(0, 246, 255, 0.05) !important;
  border-left: 3px solid var(--accent) !important;
  border-radius: 5px !important;
  transition: all 0.3s ease !important;
}

.dice-history-item:hover,
.coin-history-item:hover {
  background: rgba(0, 246, 255, 0.1) !important;
  transform: translateX(5px) !important;
  box-shadow: 0 0 15px rgba(0, 246, 255, 0.2) !important;
}

/* ASCII Art Display - CYBERPUNK */
#ascii-output {
  background: #000000 !important;
  color: #00ff00 !important;
  padding: 20px !important;
  border-radius: 10px !important;
  font-family: 'Courier New', monospace !important;
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
  border: 2px solid #00ff00 !important;
  box-shadow: 
    0 0 20px rgba(0, 255, 0, 0.3),
    inset 0 0 10px rgba(0, 255, 0, 0.1) !important;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5) !important;
  overflow: auto !important;
  max-height: 400px !important;
}

/* Markdown Preview - CYBERPUNK */
#markdown-output {
  background: rgba(0, 0, 0, 0.7) !important;
  padding: 20px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(0, 246, 255, 0.3) !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 1.6 !important;
  
  /* Cyberpunk headers */
  h1, h2, h3, h4, h5, h6 {
    color: var(--accent) !important;
    text-shadow: 0 0 10px var(--accent-glow) !important;
    margin-bottom: 15px !important;
  }
  
  /* Cyberpunk links */
  a {
    color: var(--accent-secondary) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--accent-secondary) !important;
    transition: all 0.3s ease !important;
  }
  
  a:hover {
    color: var(--accent) !important;
    border-bottom-color: var(--accent) !important;
    text-shadow: 0 0 10px var(--accent-glow) !important;
  }
  
  /* Cyberpunk code blocks */
  pre, code {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(0, 246, 255, 0.2) !important;
    border-radius: 5px !important;
    padding: 10px !important;
    color: #00ff00 !important;
    font-family: 'Courier New', monospace !important;
  }
}

/* Security Indicators - CYBERPUNK */
.security-indicators {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(13, 13, 13, 0.65) 50%,
    rgba(0, 0, 0, 0.7) 100%) !important;
  border: 1px solid rgba(0, 246, 255, 0.3) !important;
  border-radius: 15px !important;
}

.security-indicators h4 {
  color: var(--accent) !important;
  text-shadow: 0 0 10px var(--accent-glow) !important;
  margin-bottom: 15px !important;
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.indicator.safe {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.3);
}

.indicator.warning {
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.indicator.info {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.indicator:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 246, 255, 0.2);
}

/* Enhanced Map Display */
.map-info {
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(13, 13, 13, 0.65) 50%,
    rgba(0, 0, 0, 0.7) 100%) !important;
  border: 1px solid rgba(0, 246, 255, 0.3) !important;
  border-radius: 15px !important;
  padding: 20px !important;
}

.map-info h4 {
  color: var(--accent) !important;
  text-shadow: 0 0 10px var(--accent-glow) !important;
  margin-bottom: 15px !important;
}

.location-details {
  margin-bottom: 15px;
}

.location-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 246, 255, 0.1);
}

.location-item:last-child {
  border-bottom: none;
}

.location-item span:first-child {
  color: rgba(255, 255, 255, 0.7);
}

.location-item span:last-child {
  color: var(--accent);
  font-weight: bold;
}

.map-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.map-actions .action-btn {
  background: linear-gradient(135deg, 
    rgba(0, 246, 255, 0.2) 0%, 
    rgba(147, 51, 234, 0.2) 100%) !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
}

.map-actions .action-btn:hover {
  background: linear-gradient(135deg, 
    rgba(0, 246, 255, 0.3) 0%, 
    rgba(147, 51, 234, 0.3) 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 20px var(--accent-glow) !important;
  color: #ffffff !important;
}

/* Enhanced Input Validation */
#domain-input:invalid {
  border-color: rgba(255, 0, 0, 0.5) !important;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2) !important;
}

#domain-input:valid {
  border-color: rgba(0, 255, 0, 0.3) !important;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.1) !important;
}

/* Current IP Button */
#current-ip-btn {
  background: linear-gradient(135deg, 
    rgba(0, 246, 255, 0.2) 0%, 
    rgba(147, 51, 234, 0.2) 100%) !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 16px 20px !important;
  border-radius: 15px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

#current-ip-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 246, 255, 0.3), 
    transparent);
  transition: left 0.6s ease;
}

#current-ip-btn:hover::before {
  left: 100%;
}

#current-ip-btn:hover {
  background: linear-gradient(135deg, 
    rgba(0, 246, 255, 0.3) 0%, 
    rgba(147, 51, 234, 0.3) 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 20px var(--accent-glow) !important;
  color: #ffffff !important;
}

/* Tab System - CYBERPUNK */
.tab-btn {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(0, 246, 255, 0.3) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.3s ease !important;
}

.tab-btn.active {
  background: var(--accent) !important;
  color: #000000 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 20px var(--accent-glow) !important;
}

.tab-content {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(0, 246, 255, 0.2) !important;
  border-radius: 10px !important;
  padding: 20px !important;
}

/* Action Buttons - CYBERPUNK */
.action-btn {
  background: linear-gradient(135deg, 
    rgba(0, 246, 255, 0.2) 0%, 
    rgba(147, 51, 234, 0.2) 100%) !important;
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 246, 255, 0.3), 
    transparent);
  transition: left 0.6s ease;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  background: linear-gradient(135deg, 
    rgba(0, 246, 255, 0.3) 0%, 
    rgba(147, 51, 234, 0.3) 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 20px var(--accent-glow) !important;
  color: #ffffff !important;
}

/* Responsive Design for Cyberpunk Tools */
@media (max-width: 768px) {
  .tool-modal {
    width: 95vw !important;
    max-height: 90vh !important;
    border-radius: 15px !important;
  }
  
  .tool-modal .tool-header {
    padding: 15px 20px !important;
    border-radius: 15px 15px 0 0 !important;
  }
  
  .tool-modal .tool-header h3 {
    font-size: 1.2rem !important;
  }
  
  .tool-modal .tool-content {
    padding: 20px !important;
  }
  
  .tools-menu {
    bottom: 60px;
    right: -10px;
    min-width: 180px !important;
  }
  
  .tool-btn {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.1rem !important;
  }
}

/* FORCE NO BLUR ON ANYTHING INSIDE TOOLS */
.tool-modal * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

/* Enhanced Tool Component Styles */

/* QR Code Contrast Indicator */
.contrast-info {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

.contrast-indicator {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contrast-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.contrast-fill {
  height: 100%;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 4px;
}

.contrast-status {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* QR Code Tool Styles */
.qr-input-section {
  margin-bottom: 20px;
}

.qr-options {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.qr-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.qr-options select,
.qr-options input[type="color"] {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 246, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.qr-preview {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.qr-info {
  flex: 1;
  min-width: 200px;
}

.qr-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* Password Tool Styles */
.password-config {
  margin-bottom: 20px;
}

.option-group {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkbox-label:hover {
  color: var(--accent);
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 246, 255, 0.3);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000000;
  font-weight: bold;
  font-size: 12px;
}

.password-generate {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.password-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.password-field {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
}

.strength-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.strength-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.password-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

/* Button Variants */
.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary)) !important;
  color: #000000 !important;
  font-weight: 600 !important;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 2px solid rgba(0, 246, 255, 0.3) !important;
}

.action-btn {
  background: rgba(0, 246, 255, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 246, 255, 0.4) !important;
  padding: 8px 16px !important;
  font-size: 0.9rem !important;
}

.copy-btn,
.regenerate-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 246, 255, 0.3) !important;
  padding: 10px !important;
  min-width: 40px !important;
}

/* Enhanced Input Groups */
.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}

.input-group input {
  flex: 1;
}

/* Length Display */
.length-value {
  background: rgba(0, 246, 255, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}

/* Enhanced QR Code Options */
.qr-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.qr-options-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.qr-options-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 120px;
}

.qr-options-row label span {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.qr-options-row select,
.qr-options-row input[type="color"] {
  padding: 8px;
  border: 1px solid rgba(0, 246, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.9rem;
}

.qr-options-row select {
  cursor: pointer;
  transition: all 0.3s ease;
}

.qr-options-row select:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.qr-options-row input[type="color"] {
  width: 50px;
  height: 35px;
  cursor: pointer;
}

.qr-options-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.qr-options-row input[type="color"]::-webkit-color-swatch {
  border-radius: 4px;
  border: 1px solid rgba(0, 246, 255, 0.3);
}

/* Logo Upload Section */
.qr-logo-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
  background: rgba(0, 246, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

.qr-logo-section label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qr-logo-section label span {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.logo-name {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
}

.logo-size-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: all 0.3s ease;
}

.logo-size-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo-size-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--accent-glow);
}

#qr-logo-size-value {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-left: 10px;
}

/* Enhanced QR Preview */
.qr-preview {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

#qr-code {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

#qr-code canvas {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 246, 255, 0.2);
  transition: all 0.3s ease;
}

#qr-code canvas:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(0, 246, 255, 0.3);
}

.qr-info {
  flex: 1;
  min-width: 200px;
}

.qr-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.qr-actions .action-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.qr-actions .action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 246, 255, 0.3);
}

/* QR Frame Styles */
.qr-frame-square {
  border: 4px solid var(--accent);
  border-radius: 8px;
}

.qr-frame-rounded {
  border: 4px solid var(--accent);
  border-radius: 16px;
}

.qr-frame-circle {
  border: 4px solid var(--accent);
  border-radius: 50%;
  padding: 10px;
}

/* QR Corner Styles */
.qr-corners-rounded #qr-code canvas {
  border-radius: 16px;
}

.qr-corners-circle #qr-code canvas {
  border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .qr-options-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .qr-options-row label {
    min-width: auto;
  }
  
  .qr-preview {
    flex-direction: column;
    align-items: center;
  }
  
  .qr-actions {
    justify-content: center;
  }
  
  .qr-logo-section {
    padding: 10px;
  }
}

@media (max-width: 600px) {
  .qr-options {
    flex-direction: column;
    gap: 10px;
  }
  
  .qr-preview {
    flex-direction: column;
    align-items: center;
  }
  
  .password-generate {
    flex-direction: column;
  }
  
  .password-actions {
    flex-direction: column;
  }
  
  .qr-actions {
    flex-direction: column;
  }
  
  .password-details {
    grid-template-columns: 1fr;
  }
}

.password-display {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.password-display input {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.password-display button {
  padding: 12px 16px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  cursor: none !important;
  transition: var(--transition-smooth);
}

.password-strength {
  height: 6px;
  background: var(--glass-border);
  border-radius: 3px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  transition: width 0.3s ease, background 0.3s ease;
}

/* Enhanced URL Shortener Styles */
.url-input-section {
  margin-bottom: 20px;
}

.url-display {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.url-display input {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.url-display button {
  padding: 12px 16px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.url-display button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 246, 255, 0.3);
}

.url-display .qr-btn {
  background: rgba(0, 246, 255, 0.2);
  color: var(--accent);
  border: 1px solid rgba(0, 246, 255, 0.3);
}

.url-display .qr-btn:hover {
  background: rgba(0, 246, 255, 0.3);
}

.url-stats {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.url-stat-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.url-stat-item:last-child {
  border-bottom: none;
}

/* UTM Builder Styles */
.utm-builder-section {
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(0, 246, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

.utm-builder-section h4 {
  color: var(--accent);
  margin: 0 0 15px 0;
  font-size: 1rem;
}

.utm-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.utm-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: end;
}

.utm-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 200px;
}

.utm-row label span {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.utm-row input {
  padding: 8px;
  border: 1px solid rgba(0, 246, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.9rem;
}

.utm-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.2);
}

/* URL QR Code Section */
.url-qr-section {
  margin: 20px 0;
  padding: 20px;
  background: rgba(0, 246, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

.url-qr-section h4 {
  color: var(--accent);
  margin: 0 0 15px 0;
}

#url-qr-code {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  margin-bottom: 15px;
}

#url-qr-code canvas {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 246, 255, 0.2);
}

/* URL Tracking Section */
.url-tracking-section {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 246, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

.url-tracking-section h4 {
  color: var(--accent);
  margin: 0 0 15px 0;
}

.tracking-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.url-analytics {
  margin-top: 20px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.analytics-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.2);
  text-align: center;
  transition: all 0.3s ease;
}

.analytics-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 246, 255, 0.2);
}

.analytics-card h5 {
  color: var(--accent);
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.analytics-card span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.analytics-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.chart-container {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

.chart-container h5 {
  color: var(--accent);
  margin: 0 0 15px 0;
  font-size: 0.9rem;
}

.chart {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-item:last-child {
  border-bottom: none;
}

.chart-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 5px;
}

.chart-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* URL Actions */
.url-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.url-actions .action-btn {
  padding: 8px 16px;
  background: rgba(0, 246, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 246, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.url-actions .action-btn:hover {
  background: rgba(0, 246, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 246, 255, 0.2);
}

/* Responsive Design for URL Shortener */
@media (max-width: 768px) {
  .utm-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .utm-row label {
    min-width: auto;
  }
  
  .tracking-controls {
    flex-direction: column;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .analytics-charts {
    grid-template-columns: 1fr;
  }
  
  .url-actions {
    flex-direction: column;
  }
  
  .url-display {
    flex-direction: column;
  }
}

/* Secondary Button Style */
.secondary-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Primary Button Style */
.primary-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 246, 255, 0.3);
}

/* Enhanced Markdown Preview Styles */
.markdown-editor {
  margin-bottom: 20px;
}

#markdown-input {
  width: 100%;
  min-height: 300px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  resize: vertical;
  transition: all 0.3s ease;
}

#markdown-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.2);
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.editor-toolbar button {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.editor-toolbar button:hover {
  background: var(--accent);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 246, 255, 0.2);
}

.editor-toolbar .preset-btn {
  background: rgba(210, 63, 49, 0.12);
  border-color: var(--accent);
  color: var(--text-primary);
}

.editor-toolbar .preset-btn:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(210, 63, 49, 0.35);
}

.markdown-preview {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

.markdown-preview h4 {
  color: var(--accent);
  margin: 0 0 15px 0;
  font-size: 1rem;
}

#markdown-output {
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 200px;
}

#markdown-output h1, #markdown-output h2, #markdown-output h3,
#markdown-output h4, #markdown-output h5, #markdown-output h6 {
  color: var(--accent);
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

#markdown-output h1 { font-size: 1.8rem; }
#markdown-output h2 { font-size: 1.5rem; }
#markdown-output h3 { font-size: 1.3rem; }
#markdown-output h4 { font-size: 1.1rem; }

#markdown-output code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--accent);
}

#markdown-output pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 15px 0;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

#markdown-output pre code {
  background: none;
  padding: 0;
  color: #ffffff;
}

#markdown-output blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 15px;
  margin: 15px 0;
  font-style: italic;
  color: var(--text-secondary);
}

#markdown-output table {
  border-collapse: collapse;
  width: 100%;
  margin: 15px 0;
}

#markdown-output th, #markdown-output td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  text-align: left;
}

#markdown-output th {
  background: rgba(0, 246, 255, 0.1);
  color: var(--accent);
  font-weight: 600;
}

#markdown-output ul, #markdown-output ol {
  margin: 10px 0;
  padding-left: 20px;
}

#markdown-output li {
  margin: 5px 0;
}

#markdown-output a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

#markdown-output a:hover {
  text-decoration: underline;
  color: var(--accent-glow);
}

/* Table Editor Styles */
.table-editor-section {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 246, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

.table-editor-section h4 {
  color: var(--accent);
  margin: 0 0 15px 0;
}

.table-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.table-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: end;
}

.table-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 120px;
}

.table-row label span {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.table-row input {
  padding: 8px;
  border: 1px solid rgba(0, 246, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.9rem;
}

.table-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.2);
}

.table-preview {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Math Editor Styles */
.math-editor-section {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 246, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

.math-editor-section h4 {
  color: var(--accent);
  margin: 0 0 15px 0;
}

.math-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.math-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: end;
}

.math-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 120px;
}

.math-row label span {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.math-row select {
  padding: 8px;
  border: 1px solid rgba(0, 246, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
}

.math-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.math-input-group input {
  flex: 1;
  padding: 8px;
  border: 1px solid rgba(0, 246, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.9rem;
}

.math-preview {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Template Section Styles */
.template-section {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 246, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

.template-section h4 {
  color: var(--accent);
  margin: 0 0 15px 0;
}

.template-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.template-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: end;
}

.template-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 120px;
}

.template-row label span {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.template-row select {
  padding: 8px;
  border: 1px solid rgba(0, 246, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
}

.template-preview {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 200px;
  overflow-y: auto;
}

/* Export Section Styles */
.export-section {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 246, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.2);
}

.export-section h4 {
  color: var(--accent);
  margin: 0 0 15px 0;
}

.export-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.export-options .action-btn {
  padding: 8px 16px;
  background: rgba(0, 246, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 246, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.export-options .action-btn:hover {
  background: rgba(0, 246, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 246, 255, 0.2);
}

/* Syntax Highlighting */
.syntax-highlight {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 246, 255, 0.2);
  border-radius: 8px;
  padding: 2px 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

/* Math Display */
.math-display {
  font-family: 'Times New Roman', serif;
  font-size: 1.1rem;
  color: #ffffff;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(0, 246, 255, 0.2);
  text-align: center;
  margin: 10px 0;
}

.math-inline {
  font-family: 'Times New Roman', serif;
  color: var(--accent);
  background: rgba(0, 246, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Responsive Design for Markdown */
@media (max-width: 768px) {
  .editor-toolbar {
    justify-content: center;
  }
  
  .table-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .math-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .template-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .export-options {
    flex-direction: column;
  }
  
  #markdown-input {
    min-height: 200px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-modal {
    width: 95vw;
    max-height: 90vh;
  }
  
  .tools-menu {
    bottom: 60px;
    right: -10px;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .result-actions {
    flex-direction: column;
  }
  
  .editor-toolbar {
    justify-content: center;
  }
}

/* Animations */
@keyframes toolSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.tool-modal:not(.hidden) {
  animation: toolSlideIn 0.3s ease-out !important;
  transform: translate(-50%, -50%) scale(1) !important;
  filter: none !important;
}

@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tools-menu {
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out, transform 0.3s ease-out;
}

.tools-menu:not(.hidden) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== NEW TOOLS STYLING ===== */

/* ASCII Art Generator */
#ascii-input {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}

#ascii-font {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: none !important;
}

#ascii-output {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 15px;
  color: var(--accent);
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: pre;
  overflow-x: auto;
  text-shadow: 0 0 5px var(--accent-glow);
}

/* IP Address Lookup */
.ip-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.ip-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.ip-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.ip-value {
  color: var(--accent);
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

.ip-map-container {
  margin: 20px 0;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-placeholder {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* Domain Lookup Tabs */
.lookup-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}

.tab-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 6px 6px 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: none !important;
  transition: var(--transition-smooth);
  border-bottom: none;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent);
  color: var(--text-primary);
  border-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* DNS Records Styling */
.dns-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dns-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--glass-border);
}

.dns-section h4 {
  color: var(--accent);
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dns-records {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-all;
}

.dns-record-item {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dns-record-item:last-child {
  border-bottom: none;
}

/* WHOIS Data Styling */
.whois-info {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--accent);
  max-height: 300px;
  overflow-y: auto;
}

.whois-data {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  text-shadow: 0 0 3px var(--accent-glow);
}

/* Enhanced IP Detail Styling */
.ip-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.ip-detail:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateX(2px);
}

.ip-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.ip-value {
  color: var(--accent);
  font-weight: 600;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  max-width: 60%;
  text-align: right;
  word-break: break-all;
}

/* Enhanced Input Styling */
#domain-input {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}

#domain-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.3);
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '...';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Dice Roller */
.dice-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.dice-options label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dice-options select,
.dice-options input[type="number"] {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  cursor: none !important;
}

.dice-animation {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  height: 100px;
  align-items: center;
}

.dice-3d {
  width: 80px;
  height: 80px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.dice-3d.rolling {
  animation: diceRoll 2s ease-in-out;
}

.dice-face {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--gradient-primary);
  border: 2px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.dice-outcome {
  text-align: center;
  margin: 20px 0;
}

.dice-values {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.dice-value {
  background: var(--accent);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1rem;
  min-width: 40px;
  text-align: center;
}

.dice-total {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: bold;
  margin-top: 10px;
}

.dice-history {
  margin-top: 20px;
}

.dice-history-list {
  max-height: 150px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
}

.dice-history-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.85rem;
}

.dice-history-item:last-child {
  border-bottom: none;
}

/* Coin Flip */
.coin-animation {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  height: 100px;
  align-items: center;
}

.coin-3d {
  width: 80px;
  height: 80px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.coin-3d.flipping {
  animation: coinFlip 2s ease-in-out;
}

.coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border: 3px solid #ffaa00;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  backface-visibility: hidden;
}

.coin-face.tails {
  transform: rotateY(180deg);
}

.coin-outcome {
  text-align: center;
  margin: 20px 0;
}

.coin-result-text {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: bold;
  margin: 10px 0;
}

.coin-stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.coin-stat {
  text-align: center;
}

.coin-stat span:first-child {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.coin-stat span:last-child {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
}

.coin-history {
  margin-top: 20px;
}

.coin-history-list {
  max-height: 150px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
}

.coin-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.85rem;
}

.coin-history-item:last-child {
  border-bottom: none;
}

.coin-result {
  font-weight: bold;
}

.coin-result.heads {
  color: #ffd700;
}

.coin-result.tails {
  color: #ff6b6b;
}

/* Animations */
@keyframes diceRoll {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: rotateX(720deg) rotateY(360deg);
  }
  50% {
    transform: rotateX(1440deg) rotateY(720deg);
  }
  75% {
    transform: rotateX(2160deg) rotateY(1080deg);
  }
  100% {
    transform: rotateX(2880deg) rotateY(1440deg);
  }
}

@keyframes coinFlip {
  0% {
    transform: rotateY(0deg);
  }
  25% {
    transform: rotateY(900deg);
  }
  50% {
    transform: rotateY(1800deg);
  }
  75% {
    transform: rotateY(2700deg);
  }
  100% {
    transform: rotateY(3600deg);
  }
}

/* Responsive Design for New Tools */
@media (max-width: 768px) {
  .dice-options {
    gap: 10px;
  }
  
  .dice-options label {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .coin-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .ip-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* ===== DYNAMIC THEMES ===== */
.theme-transition {
  transition: var(--theme-transition);
}

/* Theme: Cyberpunk Blue */
.theme-cyberpunk {
  --accent: #00f6ff;
  --accent-secondary: #ff00ff;
  --accent-glow: rgba(0, 246, 255, 0.5);
  --accent-secondary-glow: rgba(255, 0, 255, 0.5);
  --gradient-primary: linear-gradient(135deg, #00f6ff, #ff00ff);
  --gradient-reverse: linear-gradient(135deg, #ff00ff, #00f6ff);
  --theme-rotation: 0deg;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.95);
}

/* Theme: Neon Purple */
.theme-neon-purple {
  --accent: #b829dd;
  --accent-secondary: #ff6b9d;
  --accent-glow: rgba(184, 41, 221, 0.5);
  --accent-secondary-glow: rgba(255, 107, 157, 0.5);
  --gradient-primary: linear-gradient(135deg, #b829dd, #ff6b9d);
  --gradient-reverse: linear-gradient(135deg, #ff6b9d, #b829dd);
  --theme-rotation: 90deg;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Enhanced Badge Contrast for Neon Purple Theme */
.theme-neon-purple #visitor-count,
.theme-neon-purple #online-status,
.theme-neon-purple #weather-widget,
.theme-neon-purple #live-time {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
  font-weight: 600 !important;
}

.theme-neon-purple .time-widget {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
}

.theme-neon-purple #visitor-count:hover,
.theme-neon-purple #online-status:hover,
.theme-neon-purple #weather-widget:hover,
.theme-neon-purple #live-time:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 6px 20px rgba(184, 41, 221, 0.3) !important;
}

.theme-neon-purple .time-widget:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 6px 20px rgba(184, 41, 221, 0.3) !important;
}

.theme-neon-purple .bio-badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(184, 41, 221, 0.25)) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
  font-weight: 600 !important;
}

.theme-neon-purple .bio-badge:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(184, 41, 221, 0.35)) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 20px rgba(184, 41, 221, 0.3) !important;
}

.theme-matrix .bio-badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(0, 255, 65, 0.25)) !important;
  border: 1px solid rgba(0, 255, 65, 0.4) !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.6) !important;
  font-weight: 600 !important;
}

.theme-matrix .bio-badge:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(0, 255, 65, 0.35)) !important;
  border: 1px solid rgba(0, 255, 65, 0.6) !important;
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.3) !important;
}

/* Theme: Matrix Green */
.theme-matrix {
  --accent: #00ff41;
  --accent-secondary: #008f11;
  --accent-glow: rgba(0, 255, 65, 0.5);
  --accent-secondary-glow: rgba(0, 143, 17, 0.5);
  --gradient-primary: linear-gradient(135deg, #00ff41, #008f11);
  --gradient-reverse: linear-gradient(135deg, #008f11, #00ff41);
  --theme-rotation: 180deg;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Enhanced Badge Contrast for Matrix Green Theme */
.theme-matrix #visitor-count,
.theme-matrix #online-status,
.theme-matrix #weather-widget,
.theme-matrix #live-time {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(0, 255, 65, 0.4) !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.6) !important;
  font-weight: 600 !important;
}

.theme-matrix .time-widget {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(0, 255, 65, 0.4) !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.6) !important;
}

.theme-matrix #visitor-count:hover,
.theme-matrix #online-status:hover,
.theme-matrix #weather-widget:hover,
.theme-matrix #live-time:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border: 1px solid rgba(0, 255, 65, 0.6) !important;
  box-shadow: 0 6px 20px rgba(0, 255, 65, 0.3) !important;
}

.theme-matrix .time-widget:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border: 1px solid rgba(0, 255, 65, 0.6) !important;
  box-shadow: 0 6px 20px rgba(0, 255, 65, 0.3) !important;
}

/* Theme: Sunset Orange */
.theme-sunset {
  --accent: #ff6b35;
  --accent-secondary: #f7931e;
  --accent-glow: rgba(255, 107, 53, 0.5);
  --accent-secondary-glow: rgba(247, 147, 30, 0.5);
  --gradient-primary: linear-gradient(135deg, #ff6b35, #f7931e);
  --gradient-reverse: linear-gradient(135deg, #f7931e, #ff6b35);
  --theme-rotation: 270deg;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.95);
}

/* Theme: Arctic Blue */
.theme-arctic {
  --accent: #00d4ff;
  --accent-secondary: #0099cc;
  --accent-glow: rgba(0, 212, 255, 0.5);
  --accent-secondary-glow: rgba(0, 153, 204, 0.5);
  --gradient-primary: linear-gradient(135deg, #00d4ff, #0099cc);
  --gradient-reverse: linear-gradient(135deg, #0099cc, #00d4ff);
  --theme-rotation: 45deg;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.95);
}

/* ===== MICRO-INTERACTIONS 2.0 ===== */

/* Enhanced Button Interactions */
.micro-button {
  position: relative;
  overflow: hidden;
  transition: var(--micro-duration) var(--micro-easing);
}

.micro-button:hover {
  transform: translateY(var(--micro-translate)) scale(var(--micro-scale));
  box-shadow: 0 10px 30px var(--accent-glow);
}

.micro-button:active {
  transform: translateY(0) scale(0.98);
  transition: var(--micro-duration) ease-out;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple var(--ripple-duration) ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Magnetic Cursor Effect */
.magnetic-element {
  transition: var(--magnet-duration) cubic-bezier(0.23, 1, 0.320, 1);
}

.magnetic-element.magnetic-active {
  transform: translate(var(--magnet-x), var(--magnet-y));
}

/* ===== YOTEI VIDEO THEME OVERRIDES ===== */
body::before {
  opacity: 0.12;
}

body::after {
  opacity: 0.1;
}

main {
  background: rgba(18, 16, 14, 0.6);
  border: 1px solid rgba(245, 241, 232, 0.12);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(210, 63, 49, 0.12);
}

#stats span,
.time-widget,
.weather-widget {
  background: rgba(18, 16, 14, 0.45) !important;
  border: 1px solid rgba(245, 241, 232, 0.12) !important;
  color: var(--text-primary) !important;
}

#links a {
  background: rgba(18, 16, 14, 0.5) !important;
  border: 1px solid rgba(245, 241, 232, 0.12) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.bio-badge {
  background: linear-gradient(135deg, rgba(18, 16, 14, 0.7), rgba(31, 42, 68, 0.25));
  border: 1px solid rgba(245, 241, 232, 0.12);
  color: var(--text-primary);
}

.tools-toggle,
.tool-btn {
  background: rgba(18, 16, 14, 0.6);
  border-color: rgba(245, 241, 232, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Enhanced Link Interactions */
.micro-link {
  position: relative;
  transition: var(--micro-duration) var(--micro-easing);
}

.micro-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--micro-duration) var(--micro-easing);
}

.micro-link:hover::before {
  width: 100%;
}

.micro-link:hover {
  transform: translateY(-2px);
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* Card Hover Effects */
.micro-card {
  transition: var(--micro-duration) var(--micro-easing);
  transform-style: preserve-3d;
}

.micro-card:hover {
  transform: perspective(1000px) rotateX(var(--micro-rotate)) translateY(var(--micro-translate));
  box-shadow: 0 20px 40px var(--accent-glow);
}

/* Pulse Animation for Interactive Elements */
.micro-pulse {
  animation: microPulse 2s infinite;
}

@keyframes microPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 10px var(--accent-glow);
  }
}

/* Glow on Hover */
.micro-glow:hover {
  box-shadow: 0 0 30px var(--accent-glow), 
              0 0 60px var(--accent-secondary-glow),
              inset 0 0 20px rgba(255, 255, 255, 0.1);
  transition: var(--micro-duration) var(--micro-easing);
}

/* Text Reveal Animation */
.micro-reveal {
  position: relative;
  overflow: hidden;
}

.micro-reveal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: left var(--micro-duration) var(--micro-easing);
}

.micro-reveal:hover::before {
  left: 100%;
}

/* Staggered Animation for Lists */
.micro-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.5s ease-out forwards;
}

.micro-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.micro-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.micro-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.micro-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.micro-stagger > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Skeleton Animation */
.micro-skeleton {
  background: linear-gradient(90deg, 
    var(--glass-bg) 25%, 
    var(--glass-border-2) 50%, 
    var(--glass-bg) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Advanced Cursor Tracking */
.cursor-main {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 1000001;
  opacity: 0.9;
  box-shadow:
    0 0 14px var(--accent),
    0 0 35px var(--accent-glow),
    0 0 70px var(--accent);
  transition: transform 0.08s ease-out, box-shadow 0.2s ease-out;
  mix-blend-mode: difference;
}

.cursor-main.is-hover {
  transform: scale(1.4);
  box-shadow:
    0 0 20px var(--accent),
    0 0 55px var(--accent-glow),
    0 0 95px var(--accent);
}

.cursor-trail {
  position: fixed;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 1000000;
  opacity: 0.3;
  filter: blur(4px);
  box-shadow:
    0 0 28px var(--accent-glow),
    0 0 60px var(--accent);
  transition: transform 0.08s ease-out;
}

.cursor-magnetic-field {
  position: fixed;
  width: var(--magnet-strength);
  height: var(--magnet-strength);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
}

/* Theme Transition Effects */
.theme-switching {
  animation: themeTransition 0.35s ease-out;
}

@keyframes themeTransition {
  0% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: scale(1.02);
    filter: hue-rotate(30deg);
  }
  100% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
}

/* ===== YOTEI 2.0 UI ENHANCEMENTS ===== */
@keyframes fadeInSlow {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInSoftUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  animation: fadeInSlow 1.6s ease 0.2s both !important;
}

main {
  animation: fadeInSlow 1.8s ease 0.3s both !important;
}

p,
#stats,
#links {
  animation: fadeInSoftUp 1.2s ease 0.6s both;
}

/* Seal-style links */
#links a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding-left: 52px;
  padding-right: 22px;
  background:
    radial-gradient(120% 120% at 30% 30%, rgba(245, 241, 232, 0.08), transparent 60%),
    rgba(18, 16, 14, 0.55);
  border: 1px solid rgba(245, 241, 232, 0.12) !important;
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.35);
}

#links a::after {
  z-index: 3;
}

.link-stats {
  float: none;
  margin-left: auto;
}

/* Inner shadow for panels */
main,
.tool-modal,
.bio-badge,
.tools-menu {
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Paper-edge for tool modals */
.tool-modal {
  position: relative;
}

.tool-modal::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  background:
    radial-gradient(40px 20px at 10% 10%, rgba(245,241,232,0.08), transparent 60%),
    radial-gradient(40px 20px at 90% 90%, rgba(245,241,232,0.06), transparent 60%);
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

/* Calligraphic divider */
.sumi-divider {
  width: 80%;
  height: 2px;
  margin: 18px auto;
  background: linear-gradient(90deg, transparent, rgba(245,241,232,0.35), transparent);
  border-radius: 999px;
}

/* Paper texture overlay for cards */
main,
#links a,
.tool-modal,
.bio-badge,
.tools-menu {
  background-image:
    radial-gradient(rgba(245,241,232,0.035) 1px, transparent 1px),
    radial-gradient(rgba(245,241,232,0.02) 1px, transparent 1px);
  background-size: 6px 6px, 8px 8px;
  background-position: 0 0, 2px 2px;
}

/* Brush-lift hover */
.micro-card:hover,
#links a:hover,
.tool-btn:hover,
.tools-toggle:hover {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

/* Tools menu fan layout */
.tools-menu {
  position: absolute;
  bottom: 60px;
  right: -6px;
  width: 220px;
  height: 220px;
  display: block;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tools-menu:not(.hidden) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.tools-menu.fan .tool-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  --r: 86px;
  transform: translate(-50%, -50%) rotate(var(--a)) translate(var(--r)) rotate(calc(var(--a) * -1));
}

.tools-menu.fan .tool-btn:nth-child(1) { --a: -105deg; }
.tools-menu.fan .tool-btn:nth-child(2) { --a: -75deg; }
.tools-menu.fan .tool-btn:nth-child(3) { --a: -45deg; }
.tools-menu.fan .tool-btn:nth-child(4) { --a: -15deg; }
.tools-menu.fan .tool-btn:nth-child(5) { --a: 15deg; }
.tools-menu.fan .tool-btn:nth-child(6) { --a: 45deg; }
.tools-menu.fan .tool-btn:nth-child(7) { --a: 75deg; }
.tools-menu.fan .tool-btn:nth-child(8) { --a: 105deg; }

/* Ink ripple */
.ink-ripple {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1000002;
  animation: inkRipple 0.8s ease-out forwards;
  mix-blend-mode: screen;
}

@keyframes inkRipple {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(6); opacity: 0; }
}

/* ===== YOTEI 2.0 LAYERING & MOTION ===== */
@keyframes fadeInSlow {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInSoftUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  animation: fadeInSlow 1.6s ease 0.2s both;
}

main {
  animation: fadeInSlow 1.8s ease 0.3s both;
}

h1 {
  animation: slideIn 1.1s ease 0.4s forwards;
}

p,
#stats,
#links {
  animation: fadeInSoftUp 1.2s ease 0.6s both;
}

/* Vignette + Grain */
body::before {
  background:
    radial-gradient(140% 120% at 50% 40%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(245,241,232,0.015) 0px,
      rgba(245,241,232,0.015) 1px,
      transparent 1px,
      transparent 2px
    );
  opacity: 0.12;
}

body::after {
  background:
    linear-gradient(transparent 45%, rgba(210, 63, 49, 0.06) 50%, transparent 55%),
    linear-gradient(90deg, transparent 45%, rgba(31, 42, 68, 0.06) 50%, transparent 55%);
  opacity: 0.1;
}

/* Inked outline for headline */
h1 {
  text-shadow:
    0 0 2px rgba(245, 241, 232, 0.4),
    0 0 6px var(--accent-glow),
    0 0 16px var(--accent-secondary-glow),
    0 0 28px rgba(0, 0, 0, 0.6);
}

/* Calligraphic dividers */
.sumi-divider {
  width: 80%;
  height: 2px;
  margin: 18px auto;
  background: linear-gradient(90deg, transparent, rgba(245,241,232,0.35), transparent);
  border-radius: 999px;
}

/* Paper texture overlay for cards */
main,
#links a,
.tool-modal,
.bio-badge,
.tools-menu {
  background-image:
    radial-gradient(rgba(245,241,232,0.035) 1px, transparent 1px),
    radial-gradient(rgba(245,241,232,0.02) 1px, transparent 1px);
  background-size: 6px 6px, 8px 8px;
  background-position: 0 0, 2px 2px;
}

.bio-badge {
  font-family: 'Shippori Mincho', serif;
  font-variant: small-caps;
  letter-spacing: 0.6px;
}

/* Brush-lift hover */
.micro-card:hover,
#links a:hover,
.tool-btn:hover,
.tools-toggle:hover {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

/* Shakuhachi-style volume meter */
#volume-control {
  background: rgba(18, 16, 14, 0.55);
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

#volume-slider {
  height: 8px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
  border-radius: 999px;
}

#volume-slider::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  background: var(--text-primary);
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}


/* ===== TOOLS UI 2.0 ===== */
.tool-modal {
  width: min(960px, 94vw);
  max-height: 88vh;
  overflow: hidden;
}

.tool-modal .tool-header {
  padding: 18px 22px;
}

.tool-modal .tool-header h3 {
  font-size: 1.15rem;
  letter-spacing: 0.4px;
}

.tool-modal .tool-content {
  padding: 20px 22px 24px;
  gap: 16px;
}

.tool-modal input,
.tool-modal textarea,
.tool-modal select {
  font-size: 1rem;
  line-height: 1.4;
  padding: 12px 14px;
  min-height: 44px;
}

.tool-modal textarea {
  min-height: 160px;
  resize: vertical;
}

.tool-modal button {
  min-height: 40px;
  padding: 10px 14px;
}

.input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.input-group input,
.input-group textarea,
.input-group select {
  flex: 1 1 280px;
  min-width: 220px;
}

.input-group button {
  flex: 0 0 auto;
}

.qr-options-row,
.utm-row,
.math-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.qr-options label,
.utm-options label,
.password-options label,
.markdown-editor label {
  gap: 8px;
}

.password-config {
  display: grid;
  gap: 16px;
}

.password-options {
  display: grid;
  gap: 12px;
}

.password-generate {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.markdown-editor,
.markdown-preview {
  gap: 12px;
}

.markdown-editor textarea {
  min-height: 220px;
}

.tool-modal .result-area {
  padding: 16px;
}

.qr-actions,
.password-actions,
.url-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 700px) {
  .tool-modal {
    width: 96vw;
    max-height: 92vh;
  }

  .tool-modal .tool-content {
    padding: 16px;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .input-group button {
    width: 100%;
  }
}

 
#bg,
#particles,
#visualizer,
.overlay {
  filter: var(--scene-grade);
}

.low-power #bg,
.low-power #particles,
.low-power #visualizer,
.low-power .overlay {
  filter: none;
}

.low-power body,
.low-power main {
  animation: none !important;
}

/* Hero frame */
.hero-frame {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(18, 16, 14, 0.65), rgba(18, 16, 14, 0.35));
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}

.hero-orbit {
  position: absolute;
  inset: -10px;
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,0.15);
  pointer-events: none;
  animation: orbit 12s linear infinite;
}

.hero-name h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.hero-name {
  text-align: center;
}

.hero-name h1:hover {
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: 0.95rem;
  opacity: 0.8;
  text-align: center;
}

@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#volume-control {
  gap: 12px;
}

#volume-indicator {
  min-width: 40px;
  text-align: right;
  font-size: 0.9rem;
  opacity: 0.85;
}

#volume-toggle {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
}

.micro-button:focus-visible,
.tool-modal input:focus-visible,
.tool-modal textarea:focus-visible,
.tool-modal select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tool-modal input:hover,
.tool-modal textarea:hover,
.tool-modal select:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.tool-modal button:hover {
  transform: translateY(-1px) scale(1.02);
}

.tool-modal button:active {
  transform: translateY(0) scale(0.99);
}
