      :root {
          --primary: #6366f1;
          --primary-hover: #4f46e5;
          --secondary: #f3f4f6;
          --secondary-hover: #e5e7eb;
          --dark: #1f2937;
          --darker: #111827;
          --light: #f9fafb;
      }

      /* .dark {
          --primary: #818cf8;
          --primary-hover: #6366f1;
          --secondary: #374151;
          --secondary-hover: #4b5563;
          --dark: #f9fafb;
          --darker: #f3f4f6;
          --light: #111827;
      } */

      body {
          background-color: var(--light);
          color: var(--dark);
          transition: all 0.3s ease;
          scroll-behavior: smooth;
      }

      .glass-card {
          background: rgba(255, 255, 255, 0.8);
          backdrop-filter: blur(10px);
          -webkit-backdrop-filter: blur(10px);
          border: 1px solid rgba(255, 255, 255, 0.2);
      }

      .dark .glass-card {
          background: rgba(31, 41, 55, 0.8);
          border: 1px solid rgba(255, 255, 255, 0.1);
      }

      .btn-primary {
          background-color: var(--primary);
          color: white;
          transition: all 0.2s;
      }

      .btn-primary:hover {
          background-color: var(--primary-hover);
          transform: translateY(-1px);
      }

      .btn-secondary {
          background-color: var(--secondary);
          color: var(--dark);
          transition: all 0.2s;
      }

      .btn-secondary:hover {
          background-color: var(--secondary-hover);
          transform: translateY(-1px);
      }

      .btn-number {
          background-color: var(--light);
          color: var(--dark);
          transition: all 0.2s;
      }

      .btn-number:hover {
          background-color: var(--secondary);
          transform: translateY(-1px);
      }

      .btn-equal {
          background-color: var(--primary);
          color: white;
          transition: all 0.2s;
      }

      .btn-equal:hover {
          background-color: var(--primary-hover);
          transform: translateY(-1px);
      }

      .mode-active {
          background-color: var(--primary);
          color: white;
      }

      .mode-inactive {
          background-color: var(--secondary);
          color: var(--dark);
      }

      .mode-inactive:hover {
          background-color: var(--secondary-hover);
      }

      .neumorphic {
          border-radius: 16px;
          box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1),
              -8px -8px 16px rgba(255, 255, 255, 0.5);
      }

      .dark .neumorphic {
          box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.3),
              -8px -8px 16px rgba(75, 85, 99, 0.2);
      }

      .neumorphic-btn {
          border-radius: 12px;
          box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1),
              -4px -4px 8px rgba(255, 255, 255, 0.5);
      }

      .dark .neumorphic-btn {
          box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3),
              -4px -4px 8px rgba(75, 85, 99, 0.2);
      }

      .neumorphic-btn:active {
          box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.1),
              inset -4px -4px 8px rgba(255, 255, 255, 0.5);
      }

      .dark .neumorphic-btn:active {
          box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.3),
              inset -4px -4px 8px rgba(75, 85, 99, 0.2);
      }

      .gradient-text {
          background: linear-gradient(90deg, #6366f1, #8b5cf6);
          -webkit-background-clip: text;
          background-clip: text;
          color: transparent;
      }

      .dark .gradient-text {
          background: linear-gradient(90deg, #818cf8, #a78bfa);
          -webkit-background-clip: text;
          background-clip: text;
      }

      .scrollbar-thin::-webkit-scrollbar {
          width: 4px;
          height: 4px;
      }

      input:focus {
          outline: none;
          box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
      }

      select:focus {
          outline: none;
          box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
      }

      .scrollbar-thin::-webkit-scrollbar-track {
          background: var(--secondary);
      }

      .scrollbar-thin::-webkit-scrollbar-thumb {
          background: var(--primary);
          border-radius: 2px;
      }

      /* Animation for button presses */
      @keyframes buttonPress {
          0% {
              transform: scale(1);
          }

          50% {
              transform: scale(0.95);
          }

          100% {
              transform: scale(1);
          }
      }

      .button-press {
          animation: buttonPress 0.2s ease;
      }

      /* Animation for display */
      @keyframes displayFlash {
          0% {
              background-color: transparent;
          }

          50% {
              background-color: rgba(59, 130, 246, 0.2);
          }

          100% {
              background-color: transparent;
          }
      }

      .display-flash {
          animation: displayFlash 0.5s ease;
      }

      /* Animation for mode switching */
      @keyframes fadeIn {
          from {
              opacity: 0;
              transform: translateY(10px);
          }

          to {
              opacity: 1;
              transform: translateY(0);
          }
      }

      .fade-in {
          animation: fadeIn 0.3s ease-out forwards;
      }

      /* Hide elements */
      .hidden {
          display: none;
      }

      /* Help Modal */
      .help-modal {
          height: 90vh;
          overflow-y: auto;
          padding: 20px;
          background-color: var(--light);
          color: var(--dark);
          border-radius: 16px;
          box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
          transition: all 0.3s ease;
          scroll-behavior: smooth;
          scrollbar-width: none;
      }

      /* .watermark {
          animation: pop-up 0.5s ease-out forwards, pulse 4s infinite 2s;
      }

      @keyframes pulse {

          0%,
          100% {
              transform: scale(1);
          }

          50% {
              transform: scale(1.03);
          }
      } */

/* Glassmorphism effect for watermark */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Watermark-specific styles */
.watermark {
  display: inline-flex;
  align-items: center;
  --gradient: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(168, 85, 247, 0.2));
  background: var(--gradient);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  animation: gradientShift 8s ease-in-out infinite, pop-up 0.5s ease-out forwards;
}

/* Restore icon styles */
.watermark-restore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  --gradient: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(168, 85, 247, 0.2));
  background: var(--gradient);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: gradientShift 8s ease-in-out infinite, pop-up 0.5s ease-out forwards;
}

/* Dark mode adjustments */
.dark .watermark,
.dark .watermark-restore {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hover effect (disabled on mobile) */
@media (hover: hover) {
  .watermark:hover,
  .watermark-restore:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
  }
}

/* Gradient animation */
@keyframes gradientShift {
  0% {
    background: var(--gradient);
  }
  100% {
    background: var(--gradient);
  }
}

/* Pop-up animation */
@keyframes pop-up {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.1) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pop-up-mobile {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Mobile-responsive styles */
@media (max-width: 640px) {
  .watermark {
    padding: 0.375rem 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: gradientShift 8s ease-in-out infinite, pop-up-mobile 0.4s ease-out forwards;
  }

  .watermark p {
    font-size: 0.9rem;
    line-height: 1.25rem;
  }

  .watermark i {
    font-size: 0.875rem;
  }

  .watermark-close {
    display: inline-flex; /* Ensure button is visible */
  }

  .watermark-restore {
    padding: 0.2rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: gradientShift 8s ease-in-out infinite, pop-up-mobile 0.4s ease-out forwards;
    margin-right: 0.5rem; /* Add margin for spacing */
  }

  .watermark-restore i {
    font-size: 2rem;
  }

  .fixed.bottom-4.right-5 {
    bottom: 0.75rem;
    right: 0.75rem;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .watermark p {
    font-size: 0.6875rem; /* 11px */
  }

  .watermark i,
  .watermark-restore i {
    font-size: 0.75rem;
  }

  .watermark {
    padding: 0.25rem 0.5rem;
  }

  .watermark-restore {
    padding: 0.15rem;
  }
}

/* Fallback for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .watermark,
  .watermark-restore {
    animation: pop-up 0.5s ease-out forwards;
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .watermark,
  .watermark-restore {
    animation: pop-up-mobile 0.4s ease-out forwards;
  }
}