* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0a0f2b 0%, #1c252f 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 12px;
  margin-top: 8px;
  overflow-x: hidden;
}

.profile-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: #1c252f;
  border-radius: 24px;
  border: 4px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7), 0 0 0 4px #ff2d55;
  overflow: hidden;
  margin-bottom: 16px;
}

.profile-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 12px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(45deg, #ff2d55, #ff5277);
  border-radius: 24px 24px 0 0;
}

.profile-card-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 320px;
  margin: 0 auto;
}

.profile-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.profile-card-info {
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #e0e0e0;
  text-align: center;
  line-height: 1.6;
  background: #1c252f;
  border-radius: 0 0 16px 16px;
}

.nav-arrow {
  position: absolute;
  bottom: 16px;
  background: rgba(26, 32, 44, 0.8);
  color: #ffffff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background 0.2s ease;
  font-weight: 600;
  z-index: 2;
}

.nav-arrow:hover {
  background: rgba(26, 32, 44, 0.9);
  transform: scale(1.2);
}

.nav-arrow-prev {
  left: 16px;
}

.nav-arrow-next {
  right: 16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin: 12px 0 16px;
}

.dot-item {
  width: 12px;
  height: 12px;
  background: #4a5568;
  border-radius: 50%;
  margin: 0 6px;
  transition: background 0.3s, transform 0.3s;
}

.dot-item.active {
  background: linear-gradient(45deg, #ff2d55, #ff5277);
  transform: scale(1.4);
}

.action-buttons {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-btn {
  padding: 18px;
  text-align: center;
  background: linear-gradient(45deg, #ff2d55, #ff5277);
  color: #ffffff;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.action-buttons .action-btn {
  animation: pulse 1.8s infinite;
}

.alert-popup {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: rgba(26, 32, 44, 0.8);
  color: #ffffff;
  padding: 8px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  animation: notifyPulse 3.5s ease-in-out infinite;
}

@keyframes notifyPulse {
  0% { opacity: 0.9; transform: translateY(-12px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.9; transform: translateY(-12px); }
}

/* Mobile adjustments for smaller screens */
@media (max-width: 360px) {
  body {
    padding: 8px;
    margin-top: 6px;
  }

  .profile-card-wrapper {
    max-width: 300px;
    border-radius: 20px;
  }

  .profile-card-title {
    font-size: 1.3rem;
    padding: 10px;
  }

  .profile-card-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .profile-card-info {
    font-size: 1rem;
    padding: 12px;
  }

  .nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    bottom: 12px;
  }

  .nav-arrow-prev {
    left: 12px;
  }

  .nav-arrow-next {
    right: 12px;
  }

  .action-btn {
    padding: 16px;
    font-size: 0.95rem;
  }

  .alert-popup {
    font-size: 0.95rem;
    padding: 6px 8px;
  }

  .action-buttons {
    max-width: 300px;
    gap: 12px;
  }

  .carousel-dots {
    margin: 10px 0 12px;
  }
}

@media (max-height: 568px) {
  .profile-card-wrapper {
    margin-bottom: 12px;
  }

  .profile-card-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
  }

  .profile-card-info {
    padding: 10px;
    font-size: 0.95rem;
  }

  .action-buttons {
    max-width: 300px;
    gap: 12px;
  }
}