@font-face {
  font-family: 'Aquatico';
  src: url('/fonts/Aquatico-Regular.otf') format('opentype'),
    url('/fonts/Aquatico-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Animated gradient background */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #385380 0%, #757780 25%, #DBD4D3 50%, #D2CCA1 75%, #A84253 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #1a1a2e;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  width: 100%;
  max-width: 650px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 20px 60px rgba(56, 83, 128, 0.3);
  padding: 50px 40px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.logo {
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.logo h1 {
  font-family: 'Aquatico', 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, #A84253 0%, #385380 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: 2px;
  filter: drop-shadow(0 4px 8px rgba(168, 66, 83, 0.2));
}

.logo p {
  color: #6b7280;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.main-content {
  margin: 30px 0;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}

#urlInput {
  flex: 1;
  padding: 18px 24px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  border: 2px solid transparent;
  border-radius: 12px;
  outline: none;
  background: rgba(249, 250, 251, 0.8);
  color: #1a1a2e;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) inset;
}

#urlInput:focus {
  border-color: #385380;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 4px rgba(56, 83, 128, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05) inset;
  transform: translateY(-1px);
}

#urlInput::placeholder {
  color: #9ca3af;
}

.paste-btn {
  padding: 18px 24px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.paste-btn .paste-icon {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
  color: #4b5563;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.paste-btn:hover {
  background: linear-gradient(135deg, #A84253 0%, #385380 100%);
  border-color: #A84253;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(168, 66, 83, 0.4);
}

.paste-btn:hover .paste-icon {
  color: white;
  transform: scale(1.1);
}

.paste-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Gradient shine effect */
@keyframes shine {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.process-btn {
  width: 100%;
  padding: 20px 30px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: white;
  background: linear-gradient(135deg, #A84253 0%, #385380 100%);
  background-size: 200% 100%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow:
    0 8px 24px rgba(168, 66, 83, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.process-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;
}

.process-btn:hover::before {
  left: 100%;
}

.process-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 32px rgba(168, 66, 83, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  background-position: 100% 0;
}

.process-btn:active {
  transform: translateY(-1px);
}

.process-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

/* Modern spinner */
.spinner {
  margin: 30px 0;
}

@keyframes spinRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.spinner-circle {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(168, 66, 83, 0.1);
  border-top: 4px solid #A84253;
  border-right: 4px solid #385380;
  border-radius: 50%;
  animation: spinRotate 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  margin: 0 auto 15px;
  box-shadow: 0 4px 12px rgba(168, 66, 83, 0.2);
}

.spinner p {
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
  animation: pulse 1.5s ease-in-out infinite;
}

.result {
  margin-top: 30px;
  min-height: 50px;
}

.result.success {
  padding: 24px;
  background: linear-gradient(135deg, rgba(219, 212, 211, 0.9) 0%, rgba(210, 204, 161, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(168, 66, 83, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(168, 66, 83, 0.15);
  animation: fadeInUp 0.5s ease-out;
}

.result.error {
  padding: 24px;
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.9) 0%, rgba(254, 226, 226, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  color: #dc2626;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
  animation: fadeInUp 0.5s ease-out;
}

.result h3 {
  margin-bottom: 16px;
  color: #1a1a2e;
  font-weight: 700;
  font-size: 20px;
}

.result a {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #A84253 0%, #385380 100%);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 16px rgba(168, 66, 83, 0.3);
  letter-spacing: 0.3px;
}

.result a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 66, 83, 0.4);
}

.result a:active {
  transform: translateY(0);
}

.result img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Premium donation section */
.donation-section {
  margin: 40px 0 20px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(219, 212, 211, 0.5) 0%, rgba(210, 204, 161, 0.5) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(56, 83, 128, 0.3);
  text-align: center;
  box-shadow:
    0 8px 32px rgba(168, 66, 83, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.donation-section h3 {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #A84253 0%, #385380 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.donation-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.donation-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(56, 83, 128, 0.2);
  border-radius: 12px;
  color: #1e1b4b;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(168, 66, 83, 0.08);
  position: relative;
  overflow: hidden;
}

.donation-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(168, 66, 83, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.donation-btn:hover::before {
  width: 300px;
  height: 300px;
}

.donation-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: #A84253;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(168, 66, 83, 0.2);
  border-color: rgba(56, 83, 128, 0.5);
}

.donation-btn:active {
  transform: translateY(-1px) scale(1);
}

.donation-btn .icon-img {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.donation-btn:hover .icon-img {
  transform: scale(1.1) rotate(5deg);
}

.donation-btn span {
  position: relative;
  z-index: 1;
}

footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid rgba(156, 163, 175, 0.2);
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

/* Responsive design */
@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  .container {
    padding: 35px 25px;
    border-radius: 20px;
  }

  .logo h1 {
    font-size: 42px;
  }

  .logo p {
    font-size: 15px;
  }

  .input-group {
    flex-direction: row;
    gap: 8px;
  }

  .paste-btn {
    width: auto;
    padding: 12px 16px;
  }

  #urlInput {
    padding: 14px 16px;
    font-size: 14px;
  }

  .process-btn {
    padding: 18px 24px;
    font-size: 16px;
  }

  .donation-section {
    padding: 28px 20px;
  }

  .donation-section h3 {
    font-size: 22px;
  }

  .donation-buttons {
    flex-direction: column;
    width: 100%;
  }

  .donation-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
}

/* Social Media Icons */
.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: white;
  color: #1a1a2e;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.social-icon svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.social-icon:hover svg {
  transform: scale(1.1);
}

.social-icon.telegram:hover {
  background: #0088cc;
  color: white;
  border-color: #0088cc;
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

.social-icon.snapchat:hover {
  background: #FFFC00;
  color: #000;
  border-color: #FFFC00;
  box-shadow: 0 8px 20px rgba(255, 252, 0, 0.4);
}

.social-icon.x:hover {
  background: #000;
  color: white;
  border-color: #000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}