  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

  * {
      font-family: 'Inter', sans-serif;
  }

  .gradient-bg {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }

  /* Glassmorphism */
  .glass {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .glass-dark {
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Navbar sticky */
  .navbar-sticky {
      position: sticky;
      top: 0;
      z-index: 1000;
      transition: all 0.3s ease;
  }

  /* Mobile menu */
  .mobile-menu {
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu.active {
      transform: translateX(0);
  }

  /* Hover effects */
  .nav-link {
      position: relative;
      transition: all 0.3s ease;
  }

  .nav-link:hover {
      color: #667eea;
  }

  /* Button gradients */
  .btn-gradient {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      transition: all 0.3s ease;
  }

  .btn-gradient:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  }

  /* Social icons */
  .social-icon {
      transition: all 0.3s ease;
  }

  .social-icon:hover {
      transform: translateY(-3px) scale(1.1);
  }

  /* Footer links */
  .footer-link {
      transition: all 0.3s ease;
      position: relative;
      display: inline-block;
  }

  .footer-link:hover {
      color: #667eea;
      transform: translateX(5px);
  }

  /* Dropdown menu */
  .dropdown {
      position: relative;
  }

  .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 220px;
      background: white;
      border-radius: 12px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      z-index: 100;
      margin-top: 8px;
  }

  .dropdown:hover .dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
  }

  .dropdown-item {
      padding: 12px 16px;
      color: #4b5563;
      font-weight: 500;
      transition: all 0.2s ease;
      display: block;
  }

  .dropdown-item:first-child {
      border-radius: 12px 12px 0 0;
  }

  .dropdown-item:last-child {
      border-radius: 0 0 12px 12px;
  }

  .dropdown-item:hover {
      background: #f3f4f6;
      color: #667eea;
      padding-left: 20px;
  }

  /* Mobile dropdown */
  .mobile-dropdown-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
  }

  .mobile-dropdown-content.active {
      max-height: 500px;
  }

  .chevron {
      transition: transform 0.3s ease;
  }

  .chevron.rotated {
      transform: rotate(180deg);
  }

  /* Logo gradient */
  .logo-gradient {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
  }

  .card-shadow {
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  }

  .drag-over {
      border-color: #667eea !important;
      background-color: #f0f4ff !important;
  }

  .preview-container {
      max-height: 600px;
      min-height: 200px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  @media (max-width: 640px) {
      .preview-container {
          max-height: 400px;
          min-height: 250px;
      }
  }

  #preview {
      max-width: 100%;
      max-height: 600px;
      width: auto;
      height: auto;
      object-fit: contain;
  }

  @media (max-width: 640px) {
      #preview {
          max-height: 400px;
      }
  }

  .tab-btn {
      color: #6b7280;
      background: transparent;
  }

  .tab-btn.active {
      background: white;
      color: #667eea;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .tab-content {
      animation: fadeIn 0.3s ease-in;
  }

  .export-collapsible {
      max-height: 1000px;
      overflow: hidden;
      transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
      opacity: 1;
  }

  .export-collapsible.collapsed {
      max-height: 0;
      opacity: 0;
  }

  input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      background: transparent;
      height: 40px;
      cursor: pointer;
      position: relative;
      z-index: 10;
      touch-action: none;
  }

  input[type="range"]::-webkit-slider-track {
      background: transparent;
      height: 8px;
      border-radius: 4px;
  }

  input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 28px;
      height: 28px;
      background: white;
      cursor: pointer;
      border-radius: 50%;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      border: 3px solid #667eea;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      position: relative;
  }

  @media (max-width: 640px) {
      input[type="range"]::-webkit-slider-thumb {
          width: 32px;
          height: 32px;
      }
  }

  input[type="range"]::-webkit-slider-thumb:hover {
      transform: scale(1.2);
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  }

  input[type="range"]::-webkit-slider-thumb:active {
      transform: scale(1.1);
  }

  input[type="range"]::-moz-range-track {
      background: transparent;
      height: 8px;
      border-radius: 4px;
  }

  input[type="range"]::-moz-range-thumb {
      width: 28px;
      height: 28px;
      background: white;
      cursor: pointer;
      border-radius: 50%;
      border: 3px solid #667eea;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  @media (max-width: 640px) {
      input[type="range"]::-moz-range-thumb {
          width: 32px;
          height: 32px;
      }
  }

  input[type="range"]::-moz-range-thumb:hover {
      transform: scale(1.2);
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  }

  input[type="range"]::-moz-range-thumb:active {
      transform: scale(1.1);
  }

  .slider-container {
      position: relative;
      padding: 8px 0;
  }

  .slider-track-bg {
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      height: 8px;
      background: #e5e7eb;
      border-radius: 4px;
      transform: translateY(-50%);
      z-index: 0;
  }

  .slider-track-fill {
      position: absolute;
      top: 50%;
      left: 0;
      height: 8px;
      border-radius: 4px;
      transform: translateY(-50%);
      pointer-events: none;
      z-index: 1;
  }

  .btn-primary {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      transition: all 0.3s ease;
  }

  .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  }

  .fade-in {
      animation: fadeIn 0.5s ease-in;
  }

  #cropBox {
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
  }

  #cropBox [data-handle] {
      touch-action: none;
  }

  #canvasContainer {
      touch-action: pan-x pan-y;
      overflow: hidden;
  }

  #cropModal .flex-1.bg-gray-900 {
      touch-action: pan-x pan-y;
      overflow: auto;
  }
