body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

/* Simplified Background Elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
  animation: backgroundShift 30s ease-in-out infinite;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="50" cy="50" r="1" fill="url(%23a)"/></svg>') repeat;
  background-size: 50px 50px;
  animation: particleFloat 30s linear infinite;
  z-index: -1;
  opacity: 0.3;
}

/* Floating Particles */
.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; left: 80%; animation-delay: 2s; }
.particle:nth-child(3) { top: 60%; left: 20%; animation-delay: 4s; }
.particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 6s; }
.particle:nth-child(5) { top: 30%; left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { top: 70%; left: 90%; animation-delay: 10s; }
.particle:nth-child(7) { top: 90%; left: 30%; animation-delay: 12s; }
.particle:nth-child(8) { top: 50%; left: 80%; animation-delay: 14s; }

/* ASMR Wave Effects */
.asmr-wave {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: asmrWave 8s ease-in-out infinite;
  z-index: -1;
}

.asmr-wave:nth-child(1) { animation-delay: 0s; }
.asmr-wave:nth-child(2) { animation-delay: 2s; }
.asmr-wave:nth-child(3) { animation-delay: 4s; }
.asmr-wave:nth-child(4) { animation-delay: 6s; }

/* Background Animations */
@keyframes backgroundShift {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes asmrWave {
  0% {
    width: 50px;
    height: 50px;
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.3);
  }
  50% {
    width: 300px;
    height: 300px;
    opacity: 0.5;
    border-color: rgba(120, 219, 255, 0.2);
  }
  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
    border-color: rgba(255, 119, 198, 0.1);
  }
}

/* Loading Indicator */
.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-text {
  color: #f8fafc;
  font-size: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Performance Optimizations */
.key {
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

.keyboard {
  will-change: transform;
  backface-visibility: hidden;
}

/* Simplified Container */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding: 1rem;
}

@keyframes containerBreath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Audiowide&family=Russo+One&display=swap');

h1 {
  font-size: 3.5rem;
  font-family: 'Orbitron', 'Arial Black', sans-serif;
  font-weight: 700;
  background: linear-gradient(90deg, #ff00cc, #3333ff, #00ff99);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}



#inputField {
  width: 100%;
  padding: 1.5rem 2rem;
  font-size: 1.4rem;
  border: none;
  border-radius: 1.2rem;
  margin-bottom: 2rem;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 16px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
  outline: none;
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

#inputField:focus {
  border-color: #ec4899;
  box-shadow: 
    0 8px 24px rgba(236, 72, 153, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
  background: rgba(30, 41, 59, 0.95);
}

#inputField::placeholder {
  color: #64748b;
  font-weight: 400;
}

/* --- FULL MECHANICAL KEYBOARD ENHANCEMENTS 2.0 --- */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

.keyboard {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 3.5rem;
  background: linear-gradient(145deg, #23272e 80%, #444950 100%);
  border: 3px solid #181a1b;
  box-shadow:
    0 8px 32px 8px #181a1bcc,
    0 2px 8px #0008,
    0 0.5px 0 #fff2 inset;
  padding: 2.2rem 2.2rem 2.8rem 2.2rem;
  border-radius: 2.2rem;
  position: relative;
  min-width: 38rem;
  width: fit-content;
  margin: 0 auto;
  max-width: 100vw;
  overflow-x: auto;
  box-sizing: border-box;
}

.keyboard > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px #0002;
  padding: 0.5rem 0.7rem;
  min-width: 0;
}

.keyboard > div:not(:first-child) {
  border-left: 2px solid #23272e;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.keyboard-row > span {
  min-width: 3.5rem;
  min-height: 3.5rem;
  display: inline-block;
}

.keyboard-row:nth-child(1) { margin-left: 0; }
.keyboard-row:nth-child(2) { margin-left: 1.8rem; }
.keyboard-row:nth-child(3) { margin-left: 3.6rem; }
.keyboard-row:nth-child(4) { margin-left: 5.4rem; }

.key, .key span, .key label, .key .key-label {
  font-family: 'Share Tech Mono', 'Cairo', 'Tajawal', 'Amiri', 'Inter', monospace, sans-serif !important;
  letter-spacing: 0.04em;
}

.key {
  background: linear-gradient(180deg, #444b5a 0%, #23272e 80%, #181a1b 100%);
  border: 2.5px solid #23272e;
  border-bottom: 7px solid #181a1b;
  border-radius: 0.7rem;
  box-shadow:
    0 8px 24px #000c,
    0 2px 0 #fff2 inset,
    0 0.5px 0 #fff2 inset,
    0 1.5px 0 #23272e inset,
    0 0.5px 0 #fff2 inset,
    0 0 0 4px #00fff766;
  font-size: 1.7rem;
  font-weight: 700;
  color: #f8fafc;
  text-shadow: 0 2px 8px #000a, 0 1px 0 #fff2, 0 0 8px #00fff7cc;
  transition: all 0.12s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  min-width: 5.2rem;
  min-height: 5.2rem;
  max-width: 5.2rem;
  max-height: 5.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: visible;
  animation: rgbUnderglow 3s linear infinite;
}

@keyframes rgbUnderglow {
  0% { box-shadow: 0 8px 24px #000c, 0 0 0 4px #00fff766; }
  50% { box-shadow: 0 8px 24px #000c, 0 0 0 4px #ff00cc66; }
  100% { box-shadow: 0 8px 24px #000c, 0 0 0 4px #00fff766; }
}

.key:before {
  content: '';
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  right: 0.18rem;
  bottom: 0.7rem;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #fff6 0%, #fff2 60%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

.key:after {
  content: '';
  position: absolute;
  left: 0.1rem;
  right: 0.1rem;
  bottom: -0.5rem;
  height: 0.7rem;
  border-radius: 0 0 0.5rem 0.5rem;
  background: linear-gradient(180deg, #181a1b 0%, #23272e 100%);
  z-index: 0;
  filter: blur(0.5px);
  opacity: 0.7;
}

.key:active, .key.key-pressed {
  background: linear-gradient(180deg, #23272e 0%, #181a1b 100%);
  border-bottom: 2.5px solid #23272e;
  box-shadow:
    0 2px 8px #000a,
    0 0.5px 0 #fff2 inset,
    0 0 0 8px #00fff799;
  color: #fff;
  transform: translateY(2.5px) scale(0.98);
  animation: rgbUnderglowActive 0.5s;
}

@keyframes rgbUnderglowActive {
  0% { box-shadow: 0 2px 8px #000a, 0 0 0 8px #ff00cc99; }
  100% { box-shadow: 0 2px 8px #000a, 0 0 0 8px #00fff799; }
}

.key:hover {
  background: linear-gradient(180deg, #444950 0%, #23272e 100%);
  border-color: #ec4899;
  box-shadow:
    0 10px 32px #ec489955,
    0 2px 0 #fff2 inset,
    0 0 0 8px #ff00cc99;
  color: #fff;
  transform: translateY(-2.5px) scale(1.04);
}

.key.wide {
  min-width: 10.4rem;
  max-width: 18rem;
  font-size: 1.2rem;
  border-radius: 0.7rem;
}

.key.wide span {
  font-size: 1.1rem;
  opacity: 0.7;
}

/* Keyboard base metallic shine */
.keyboard:after {
  content: '';
  position: absolute;
  left: 2.5rem;
  right: 2.5rem;
  bottom: 1.2rem;
  height: 1.2rem;
  border-radius: 0 0 1.2rem 1.2rem;
  background: linear-gradient(90deg, #fff2 0%, #23272e 50%, #fff2 100%);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/* Desk reflection under keyboard */
.keyboard-reflection {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.5rem;
  height: 2.5rem;
  background: linear-gradient(180deg, #fff2 0%, transparent 100%);
  opacity: 0.12;
  border-radius: 0 0 2.2rem 2.2rem;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
}

/* Live Color Animation Keyframes */
@keyframes liveColor {
  0% {
    border: 2px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.1);
  }
  25% {
    border: 2px solid rgba(255, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
  }
  50% {
    border: 2px solid rgba(255, 0, 0, 0.8);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
  }
  75% {
    border: 2px solid rgba(255, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
  }
  100% {
    border: 2px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.1);
  }
}

/* RGB Animation Keyframes */
@keyframes rgbShift {
  0% {
    background: linear-gradient(145deg, #ff0000, #ff8000, #ffff00);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
  }
  16.66% {
    background: linear-gradient(145deg, #ff8000, #ffff00, #80ff00);
    box-shadow: 0 6px 16px rgba(255, 128, 0, 0.4);
  }
  33.33% {
    background: linear-gradient(145deg, #ffff00, #80ff00, #00ff00);
    box-shadow: 0 6px 16px rgba(255, 255, 0, 0.4);
  }
  50% {
    background: linear-gradient(145deg, #80ff00, #00ff00, #00ff80);
    box-shadow: 0 6px 16px rgba(128, 255, 0, 0.4);
  }
  66.66% {
    background: linear-gradient(145deg, #00ff00, #00ff80, #0080ff);
    box-shadow: 0 6px 16px rgba(0, 255, 0, 0.4);
  }
  83.33% {
    background: linear-gradient(145deg, #00ff80, #0080ff, #8000ff);
    box-shadow: 0 6px 16px rgba(0, 255, 128, 0.4);
  }
  100% {
    background: linear-gradient(145deg, #0080ff, #8000ff, #ff0080);
    box-shadow: 0 6px 16px rgba(0, 128, 255, 0.4);
  }
}

/* Make only the Space key taller */
.key.wide:has(span), .key.wide:has([style*="Space"]) {
  height: 7rem;
  min-height: 7rem;
  max-height: 7rem;
  min-width: 42rem;
  max-width: 54rem;
}

.lang-toggle {
  background: linear-gradient(90deg, #00c3ff, #ec4899);
  color: #fff;
  border: none;
  border-radius: 0.8rem;
  padding: 0.8rem 2.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.3s, transform 0.2s;
  outline: none;
}
.lang-toggle:hover {
  background: linear-gradient(90deg, #ec4899, #00c3ff);
  transform: scale(1.05);
}

/* RTL support for Arabic */
#inputField[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Tajawal', 'Amiri', 'Inter', sans-serif;
}

.keyboard[dir="rtl"] {
  direction: rtl;
}

.keyboard-row[dir="rtl"] {
  flex-direction: row-reverse;
}

/* Moderate navigation block styling */
.keyboard > div:nth-child(2) {
  background: rgba(40, 50, 70, 0.85);
  border: 2px solid #23272e;
  box-shadow: 0 2px 12px #0003;
  padding: 1.2rem 1.2rem 1.2rem 1.2rem;
  margin-left: 2.5rem;
  margin-right: 2.5rem;
  min-width: 10rem;
  align-items: center;
}
.keyboard > div:nth-child(2) .keyboard-row {
  gap: 1.2rem;
  margin-bottom: 0.7rem;
}
.keyboard > div:nth-child(2) .key {
  min-width: 3.2rem;
  min-height: 3.2rem;
  max-width: 3.2rem;
  max-height: 3.2rem;
  font-size: 1.25rem;
  border-radius: 0.6rem;
}
.keyboard > div:nth-child(2) .key:active, .keyboard > div:nth-child(2) .key.key-pressed {
  box-shadow: 0 0 0 10px #00fff799, 0 2px 8px #000a;
}
.keyboard > div:nth-child(2) .key {
  background: linear-gradient(180deg, #3a3f4b 0%, #23272e 100%);
}
.keyboard > div:nth-child(2) .key:before {
  opacity: 0.6;
}
.keyboard > div:nth-child(2) .key:after {
  opacity: 0.5;
}
/* Make arrow keys stand out */
.keyboard > div:nth-child(2) .key:has(span),
.keyboard > div:nth-child(2) .key:has([style*="▲"]),
.keyboard > div:nth-child(2) .key:has([style*="▼"]),
.keyboard > div:nth-child(2) .key:has([style*="◄"]),
.keyboard > div:nth-child(2) .key:has([style*="►"]) {
  background: linear-gradient(180deg, #00fff799 0%, #23272e 100%);
  color: #23272e;
  font-weight: bold;
}

/* Make navigation keys big and responsive */
.keyboard > div:nth-child(2) .key {
  min-width: 4.2rem;
  min-height: 4.2rem;
  max-width: 4.2rem;
  max-height: 4.2rem;
  font-size: 1.7rem;
  border-radius: 0.7rem;
}
.keyboard > div:nth-child(2) .keyboard-row {
  gap: 1.6rem;
  margin-bottom: 1.1rem;
}

/* Realistic navigation block layout */
/* Make navigation block match main keyboard height */
.keyboard > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(40, 50, 70, 0.85);
  border: 2px solid #23272e;
  box-shadow: 0 2px 12px #0003;
  padding: 2.3rem 2.3rem 2.3rem 2.3rem;
  margin-left: 2.5rem;
  margin-right: 2.5rem;
  margin-top: 3rem;
  min-width: 11.5rem;
  max-width: 14rem;
  width: auto;
  border-radius: 1.7rem;
  height: 100%;
  min-height: 36rem;
  max-height: 42rem;
}
.keyboard > div:nth-child(2) .nav-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: auto;
  margin-top: 0;
}
.keyboard > div:nth-child(2) .arrow-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: auto;
  margin-bottom: 0;
}
.keyboard > div:nth-child(2) .nav-row {
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
}
.keyboard > div:nth-child(2) .arrow-row {
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
}
.keyboard > div:nth-child(2) .key {
  min-width: 3.2rem;
  min-height: 3.2rem;
  max-width: 3.2rem;
  max-height: 3.2rem;
  font-size: 1.25rem;
  border-radius: 0.6rem;
}

/* Make navigation block bigger */
.keyboard > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(40, 50, 70, 0.85);
  border: 2px solid #23272e;
  box-shadow: 0 2px 12px #0003;
  padding: 2rem 2rem 2rem 2rem;
  margin-left: 2.5rem;
  margin-right: 2.5rem;
  min-width: 10rem;
  max-width: 12rem;
  width: auto;
  border-radius: 1.5rem;
  height: 100%;
  min-height: 32rem;
  max-height: 38rem;
}
.keyboard > div:nth-child(2) .nav-cluster {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: auto;
  margin-top: 0;
}
.keyboard > div:nth-child(2) .arrow-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 0;
}
.keyboard > div:nth-child(2) .nav-row {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
}
.keyboard > div:nth-child(2) .arrow-row {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
}
.keyboard > div:nth-child(2) .key {
  min-width: 4.5rem;
  min-height: 4.5rem;
  max-width: 4.5rem;
  max-height: 4.5rem;
  font-size: 1.5rem;
  border-radius: 0.8rem;
}

/* Funky donation section with BTC and PayPal buttons */
.donation-section {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.donation-btn {
  border: none;
  border-radius: 3rem;
  padding: 1.2rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.donation-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.donation-btn:hover::before {
  left: 100%;
}

/* BTC Button */
.btc-btn {
  background: linear-gradient(45deg, #f7931a, #ff9500, #f7931a, #ffb84d);
  background-size: 300% 300%;
  color: white;
  box-shadow: 
    0 0 20px rgba(247, 147, 26, 0.5),
    0 0 40px rgba(247, 147, 26, 0.3),
    0 0 60px rgba(247, 147, 26, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.2);
  animation: gradientShift 3s ease infinite, pulseGlowBTC 2s ease-in-out infinite;
}

.btc-btn:hover {
  background: linear-gradient(45deg, #ffb84d, #f7931a, #ff9500, #ffb84d);
  background-size: 300% 300%;
  transform: translateY(-3px) scale(1.05) rotate(2deg);
  box-shadow: 
    0 0 30px rgba(247, 147, 26, 0.7),
    0 0 60px rgba(247, 147, 26, 0.4),
    0 0 90px rgba(247, 147, 26, 0.2),
    0 8px 25px rgba(0, 0, 0, 0.3);
  animation: gradientShift 1.5s ease infinite, pulseGlowBTC 1s ease-in-out infinite;
}

/* PayPal Button */
.paypal-btn {
  background: linear-gradient(45deg, #0070ba, #1546a0, #0070ba, #009cde);
  background-size: 300% 300%;
  color: white;
  box-shadow: 
    0 0 20px rgba(0, 112, 186, 0.5),
    0 0 40px rgba(0, 112, 186, 0.3),
    0 0 60px rgba(0, 112, 186, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.2);
  animation: gradientShift 3s ease infinite, pulseGlowPayPal 2s ease-in-out infinite;
}

.paypal-btn:hover {
  background: linear-gradient(45deg, #009cde, #0070ba, #1546a0, #009cde);
  background-size: 300% 300%;
  transform: translateY(-3px) scale(1.05) rotate(-2deg);
  box-shadow: 
    0 0 30px rgba(0, 112, 186, 0.7),
    0 0 60px rgba(0, 112, 186, 0.4),
    0 0 90px rgba(0, 112, 186, 0.2),
    0 8px 25px rgba(0, 0, 0, 0.3);
  animation: gradientShift 1.5s ease infinite, pulseGlowPayPal 1s ease-in-out infinite;
}

.donation-btn:active {
  transform: translateY(-1px) scale(1.02);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(255, 107, 107, 0.5),
      0 0 40px rgba(255, 107, 107, 0.3),
      0 0 60px rgba(255, 107, 107, 0.1),
      0 4px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(255, 107, 107, 0.7),
      0 0 60px rgba(255, 107, 107, 0.4),
      0 0 90px rgba(255, 107, 107, 0.2),
      0 4px 15px rgba(0, 0, 0, 0.2);
  }
}

@keyframes pulseGlowBTC {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(247, 147, 26, 0.5),
      0 0 40px rgba(247, 147, 26, 0.3),
      0 0 60px rgba(247, 147, 26, 0.1),
      0 4px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(247, 147, 26, 0.7),
      0 0 60px rgba(247, 147, 26, 0.4),
      0 0 90px rgba(247, 147, 26, 0.2),
      0 4px 15px rgba(0, 0, 0, 0.2);
  }
}

@keyframes pulseGlowPayPal {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(0, 112, 186, 0.5),
      0 0 40px rgba(0, 112, 186, 0.3),
      0 0 60px rgba(0, 112, 186, 0.1),
      0 4px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(0, 112, 186, 0.7),
      0 0 60px rgba(0, 112, 186, 0.4),
      0 0 90px rgba(0, 112, 186, 0.2),
      0 4px 15px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 768px) {
  .donation-section {
    top: 1rem;
    right: 1rem;
    gap: 0.8rem;
  }
  .donation-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 2.5rem;
  }
}

@media (max-width: 1200px) {
  .keyboard {
    gap: 1.2rem;
    padding: 1.2rem 0.5rem 1.8rem 0.5rem;
    min-width: unset;
    width: 100vw;
    max-width: 100vw;
  }
  .keyboard > div {
    padding: 0.2rem 0.2rem;
  }
  .key {
    font-size: 1.1rem;
    min-width: 2.8rem;
    min-height: 2.8rem;
    max-width: 2.8rem;
    max-height: 2.8rem;
  }
  .key.wide {
    min-width: 5.6rem;
    max-width: 8rem;
    font-size: 1rem;
  }
  .keyboard-row > span {
    min-width: 2.2rem;
    min-height: 2.2rem;
  }
  .keyboard > div:nth-child(2) {
    min-width: 11rem;
    max-width: 14rem;
    padding: 2.1rem 2.1rem 2.1rem 2.1rem;
    min-height: 36rem;
    max-height: 42rem;
  }
  .keyboard > div:nth-child(2) .key {
    min-width: 4.8rem;
    min-height: 4.8rem;
    max-width: 4.8rem;
    max-height: 4.8rem;
    font-size: 1.6rem;
  }
  .keyboard > div:nth-child(2) .nav-row,
  .keyboard > div:nth-child(2) .arrow-row {
    gap: 1.4rem;
  }
}

@media (max-width: 700px) {
  .keyboard {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.5rem 0.1rem 0.5rem 0.1rem;
    min-width: unset;
    width: 100vw;
    max-width: 100vw;
  }
  .keyboard > div {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    width: 100vw;
    min-width: unset;
    border-radius: 0.7rem;
    padding: 0.1rem 0.1rem;
  }
  .keyboard > div:not(:first-child) {
    border-left: none;
    border-top: 2px solid #23272e;
  }
  .key {
    font-size: 0.9rem;
    min-width: 2.1rem;
    min-height: 2.1rem;
    max-width: 2.1rem;
    max-height: 2.1rem;
    margin-bottom: 0.1rem;
    margin-top: 0.1rem;
  }
  .key.wide {
    min-width: 3.8rem;
    max-width: 6rem;
    font-size: 0.8rem;
  }
  .keyboard-row > span {
    min-width: 1.2rem;
    min-height: 1.2rem;
  }
  .keyboard > div:nth-child(2) {
    min-width: 8.5rem;
    max-width: 11rem;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    min-height: 28rem;
    max-height: 34rem;
  }
  .keyboard > div:nth-child(2) .key {
    min-width: 3.6rem;
    min-height: 3.6rem;
    max-width: 3.6rem;
    max-height: 3.6rem;
    font-size: 1.3rem;
  }
  .keyboard > div:nth-child(2) .nav-row,
  .keyboard > div:nth-child(2) .arrow-row {
    gap: 1.1rem;
  }
}

@media (max-width: 600px) {
  .container {
    max-width: 100vw;
  }
  .keyboard {
    gap: 0.4rem;
    padding: 1rem;
    border-radius: 1rem;
    transform: perspective(800px) rotateX(2deg);
    width: fit-content;
    margin: 0 auto;
  }
  .keyboard-row:nth-child(2) {
    margin-left: 1.2rem;
  }
  .keyboard-row:nth-child(3) {
    margin-left: 2.4rem;
  }
  .keyboard-row:nth-child(4) {
    margin-left: 3.6rem;
  }
  .key {
    font-size: 1rem;
    min-width: 2.8rem;
    height: 2.8rem;
    padding: 0.8rem 0.6rem;
    border-radius: 0.8rem;
  }
  .key.wide {
    min-width: 5.6rem;
  }
  h1 {
    font-size: 1.8rem;
  }
} 

/* Footer styling */
.footer {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 1rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.footer p {
  margin: 0;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.5px;
}

.footer p::before {
  content: '💻 ';
  margin-right: 0.5rem;
}

.footer p::after {
  content: ' 💻';
  margin-left: 0.5rem;
}

@media (max-width: 768px) {
  .footer {
    bottom: 1rem;
    padding: 0.8rem 1.5rem;
  }
  .footer p {
    font-size: 1rem;
  }
} 

/* Control Panel Styling */
.control-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.control-group label {
  color: #f8fafc;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.control-btn {
  background: linear-gradient(90deg, #00c3ff, #ec4899);
  color: #fff;
  border: none;
  border-radius: 0.8rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.control-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.control-btn.active {
  background: linear-gradient(90deg, #ff6b6b, #ffd93d);
  animation: pulseGlow 2s infinite;
}

.shortcut-hint {
  color: #94a3b8;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-select {
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-select:hover {
  border-color: #ec4899;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.volume-slider {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(90deg, #00c3ff, #ec4899);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(90deg, #00c3ff, #ec4899);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#volumeValue {
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 40px;
}

/* Switch Buttons */
.switch-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.switch-btn {
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.4rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.switch-btn:hover {
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.2);
  transform: scale(1.05);
}

.switch-btn.active {
  background: linear-gradient(90deg, #00c3ff, #ec4899);
  border-color: #ec4899;
  color: #fff;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

/* Switch Recommendation */
.switch-recommendation {
  margin-top: 0.8rem;
  text-align: center;
}

.recommendation-text {
  color: #94a3b8;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  background: rgba(0, 255, 153, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(0, 255, 153, 0.2);
  display: inline-block;
  animation: recommendationPulse 3s ease-in-out infinite;
}

@keyframes recommendationPulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Gaming Stats Panel */
.gaming-stats {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 30, 48, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid #ec4899;
  border-radius: 1.5rem;
  padding: 2rem;
  z-index: 10000;
  min-width: 300px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  animation: slideIn 0.3s ease;
}

.gaming-stats.hidden {
  display: none;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(236, 72, 153, 0.3);
  padding-bottom: 1rem;
}

.stats-header h3 {
  color: #f8fafc;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: #f8fafc;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(236, 72, 153, 0.3);
  transform: scale(1.1);
}

.stats-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-label {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.stat-value {
  color: #ec4899;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* Gaming Mode Effects */
.keyboard.gaming-mode {
  animation: gamingGlow 2s infinite;
}

.keyboard.gaming-mode .key {
  animation: gamingKeyGlow 1.5s infinite;
}

.keyboard.gaming-mode .key:active,
.keyboard.gaming-mode .key.key-pressed {
  animation: gamingPress 0.2s ease;
}

@keyframes gamingGlow {
  0%, 100% { box-shadow: 0 8px 32px 8px #181a1bcc, 0 0 0 4px #ec489966; }
  50% { box-shadow: 0 8px 32px 8px #181a1bcc, 0 0 0 8px #ec489999; }
}

@keyframes gamingKeyGlow {
  0%, 100% { box-shadow: 0 8px 24px #000c, 0 0 0 4px #ec489966; }
  50% { box-shadow: 0 8px 24px #000c, 0 0 0 6px #ec489999; }
}

@keyframes gamingPress {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(3px) scale(0.95); }
  100% { transform: translateY(2.5px) scale(0.98); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Responsive Design for Control Panel */
@media (max-width: 768px) {
  .control-panel {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .control-group {
    width: 100%;
    justify-content: space-between;
  }
  
  .stats-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gaming-stats {
    min-width: 280px;
    margin: 1rem;
  }
} 

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: fixed;
  top: 2rem;
  left: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  border-color: #ec4899;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.dark-mode-toggle:active {
  transform: scale(0.95);
}

.dark-mode-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.dark-mode-toggle.light-mode .dark-mode-icon {
  transform: rotate(180deg);
}

/* Light Mode Styles */
body.light-mode {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}

body.light-mode::before {
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
}

body.light-mode .container {
  color: #1e293b;
}

body.light-mode h1 {
  background: linear-gradient(90deg, #1e40af, #7c3aed, #059669);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.light-mode #inputField {
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

body.light-mode #inputField:focus {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

body.light-mode .control-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

body.light-mode .control-group label {
  color: #1e293b;
}

body.light-mode .keyboard {
  background: linear-gradient(145deg, #e2e8f0 80%, #cbd5e1 100%);
  border: 3px solid #94a3b8;
  box-shadow: 0 8px 32px 8px rgba(0,0,0,0.1);
}

body.light-mode .key {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 80%, #cbd5e1 100%);
  border: 2.5px solid #94a3b8;
  border-bottom: 7px solid #64748b;
  color: #1e293b;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

body.light-mode .key:hover {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: #3b82f6;
}

body.light-mode .donation-section {
  color: #1e293b;
} 