:root {
  --font-family: "Poppins", sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Dark Mode Colors */
  --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --text-color: #e2e8f0;
  --card-bg: rgba(26, 26, 26, 0.8);
  --input-bg: rgba(0, 0, 0, 0.3);
  --border-color: rgba(255, 255, 255, 0.1);

  --primary-color: #667eea;
  --primary-hover: #5a67d8;
  --secondary-color: #764ba2;
  --accent-color: #f687b3;
  
  /* Effects */
  --glow-color: rgba(102, 126, 234, 0.6);
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background: var(--bg-gradient);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  transition: all 0.3s var(--transition);
  cursor: none;
}

/* Add a shake animation for error states */
.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transition: all 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, var(--glow-color), transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: all 0.3s ease;
}

body.clicking .cursor {
  transform: scale(0.8);
  background: var(--primary-color);
}

/* Background Effects */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.6;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  background-image: 
    linear-gradient(var(--primary-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary-color) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Floating Orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(60px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-color), transparent);
  top: -200px;
  left: -200px;
  animation-duration: 25s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--secondary-color), transparent);
  bottom: -150px;
  right: -150px;
  animation-duration: 30s;
  animation-delay: -10s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-color), transparent);
  top: 50%;
  left: 70%;
  animation-duration: 20s;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -100px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 50px) scale(0.9);
  }
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  position: relative;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-wrapper {
  overflow: hidden;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  margin: 0;
  display: flex;
  gap: 0.1em;
}

.logo-letter {
  display: inline-block;
  animation: logoEntry 0.8s var(--transition) both;
  animation-delay: calc(var(--i) * 0.05s);
  transition: all 0.3s var(--transition);
  cursor: pointer;
}

@keyframes logoEntry {
  0% {
    transform: translateY(100%) rotateX(-90deg);
    opacity: 0;
  }
  100% {
    transform: translateY(0) rotateX(0);
    opacity: 1;
  }
}

.logo-letter:hover {
  transform: translateY(-5px) rotate(-5deg) scale(1.2);
  color: var(--primary-color);
  filter: drop-shadow(0 5px 15px var(--glow-color));
}

/* Glitch Effect */
.glitch {
  position: relative;
  color: var(--primary-color);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 0.3s infinite;
  color: var(--accent-color);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.3s infinite;
  color: var(--secondary-color);
  z-index: -2;
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0); transform: translate(0); }
  20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(0); transform: translate(0); }
  20% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
}

/* Controls */
.controls {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.mode-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s var(--transition);
  font-family: var(--font-family);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: var(--primary-color);
  color: white;
  border-color: transparent;
}

.mode-icon {
  font-size: 1.2rem;
  display: inline-block;
  transition: transform 0.3s var(--transition);
}

.mode-btn:hover .mode-icon {
  transform: rotate(360deg);
}

/* Main Container */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

/* Hero Text */
.hero-text {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInUp 1s var(--transition);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}

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

/* Main Card */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  padding: 3rem;
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s var(--transition);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--glow-color), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--transition);
  pointer-events: none;
}

.card:hover .card-glow {
  opacity: 0.3;
}

/* Input Section */
.input-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.input-wrapper {
  flex: 1;
  position: relative;
}

#urlInput {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  background: var(--input-bg);
  color: inherit;
  transition: all 0.3s var(--transition);
  font-family: var(--font-mono);
}

#urlInput::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input-effects {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
}

.input-border {
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s var(--transition);
}

#urlInput:focus ~ .input-effects .input-border {
  opacity: 1;
}

.input-highlight {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s var(--transition);
  filter: blur(10px);
}

#urlInput:focus ~ .input-effects .input-highlight {
  opacity: 0.3;
}

/* Generate Button */
.generate-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.generate-btn:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 1.2rem;
  display: inline-block;
  transition: transform 0.3s var(--transition);
}

.generate-btn:hover .btn-icon {
  transform: rotate(180deg) scale(1.2);
}

.btn-effects {
  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: width 0.6s, height 0.6s;
}

.generate-btn:active .btn-effects {
  width: 300px;
  height: 300px;
}

/* Advanced Options */
.advanced-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--transition);
  margin-bottom: 2rem;
}

.advanced-options.show {
  max-height: 300px;
}

.options-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.85;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#sizeValue {
  font-family: var(--font-mono);
  font-weight: normal;
  color: inherit;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.option-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--input-bg);
  color: inherit;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23e2e8f0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
}

.option-group select:hover {
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.3);
}

.option-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  outline: none;
  transition: opacity 0.2s;
  cursor: pointer;
}

.option-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 2px solid var(--card-bg);
}

.option-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 2px solid var(--card-bg);
}

.option-group input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 40px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}

.option-group input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 8px;
}

.option-group input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 7px;
}

/* QR Section */
.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.qr-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  transition: opacity 0.3s var(--transition);
}

.qr-placeholder.hide {
  opacity: 0;
  pointer-events: none;
}

.placeholder-animation {
  text-align: center;
  position: relative;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

.pulse-ring:nth-child(2) {
  animation-delay: 0.5s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 1s;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.placeholder-text {
  display: block;
  margin-top: 120px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.qr-code-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s var(--transition);
}

.qr-code-wrapper.show {
  opacity: 1;
  transform: scale(1);
}

#qrcode {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#qrcode img,
#qrcode canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* QR Effects */
.qr-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--transition);
}

.qr-code-wrapper.show ~ .qr-effects {
  opacity: 1;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: scan 2s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(300px); }
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
}

.corner-tl {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.corner-tr {
  top: -10px;
  right: -10px;
  border-left: none;
  border-bottom: none;
}

.corner-bl {
  bottom: -10px;
  left: -10px;
  border-right: none;
  border-top: none;
}

.corner-br {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--transition);
}

.action-buttons.show {
  opacity: 1;
  transform: translateY(0);
}

.action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s var(--transition);
  backdrop-filter: blur(10px);
}

.action-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-color);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-btn .btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s var(--transition);
}

.action-btn:hover .btn-icon {
  transform: scale(1.2);
}

/* History Section */
.history-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--transition);
}

.history-section.show {
  max-height: 500px;
}

.history-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
}

.history-item {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  position: relative;
  overflow: hidden;
}

.history-item:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

.history-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.history-item-url {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateY(100%);
  transition: transform 0.3s var(--transition);
}

.history-item:hover .history-item-url {
  transform: translateY(0);
}

/* Stats Card */
.stats-card {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateX(calc(100% + 2rem));
  transition: transform 0.5s var(--transition);
}

.stats-card.show {
  transform: translateX(0);
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  font-family: var(--font-mono);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateX(calc(100% + 2rem));
  transition: transform 0.3s var(--transition);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.toast.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.toast.info {
  border-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
}

.toast-icon {
  font-size: 1.5rem;
}

.toast-message {
  flex: 1;
  font-size: 0.95rem;
}

/* Particle Container */
#particleContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.particle {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: particleFloat 2s ease-out forwards;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  10% {
    opacity: 1;
    transform: translate(0, -10px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

/* Footer */
.footer {
  padding: 2rem 3rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-text {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.heart {
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
  color: #ef4444;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s var(--transition);
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s var(--transition);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 5px var(--glow-color));
}

.link-icon {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 1.5rem 2rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }

  .card {
    padding: 2rem;
  }

  .input-section {
    flex-direction: column;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .action-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stats-card {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    transform: translateY(calc(100% + 1rem));
  }

  .stats-card.show {
    transform: translateY(0);
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .container {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .toast-container {
    right: 1rem;
    left: 1rem;
    align-items: center;
  }
}