:root {
  --primary-gradient: linear-gradient(92deg, #ff6ab2 0%, #ff85c4 100%);
  --glow-color: rgba(255, 105, 178, 0.6);
  --text-white: #ffffff;
  --font-stack:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-stack);
  background-color: #000;
  color: var(--text-white);
  height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  /* Allow scrolling if height is small */
  position: relative;
}

/* Background Handling */
.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.bg-image,
.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* Layout */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  padding-bottom: 40px;
  position: relative;
  max-width: 500px;
  /* Constrain on desktop to look mobile-like */
  margin: 0 auto;
}

/* Top Icon */
.top-icon {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 24px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.top-icon:active {
  transform: scale(0.9);
}

/* Profile Header */
.profile-header {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  z-index: 2;
}

.avatar-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.username {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

/* Spacer */
.spacer {
  flex-grow: 1;
  /* Pushes content to bottom/center */
  min-height: 20px;
}

/* CTA Button */
.cta-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 32px;
  border-radius: 9999px;
  animation: wiggle 7s infinite ease-in-out;
  /* Pill shape */
  width: 100%;
  max-width: 340px;
  position: relative;
  /* Main shadow */
  box-shadow: 0 4px 15px rgba(255, 105, 178, 0.4);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: visible;
  /* Allow glow to spill out */
  z-index: 1;
}

/* Strong diffuse glow behind the button */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 140%;
  background: var(--primary-gradient);
  filter: blur(25px);
  opacity: 0.6;
  z-index: -1;
  border-radius: 9999px;
  transition: opacity 0.3s;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
    filter: blur(25px);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.8;
    filter: blur(30px);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
    filter: blur(25px);
  }
}

@keyframes wiggle {
  0%,
  10% {
    transform: rotate(0deg);
  }

  11% {
    transform: rotate(-4deg);
  }

  13% {
    transform: rotate(4deg);
  }

  15% {
    transform: rotate(-4deg);
  }

  17% {
    transform: rotate(4deg);
  }

  19% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.btn-primary:active {
  transform: scale(0.96) !important;
}

.btn-primary:active::before {
  opacity: 0.8;
}

.icon-left {
  margin-right: 12px;
  font-size: 20px;
}

/* Status Info */
.status-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  background-color: #4caf50;
  /* Green */
  border-radius: 50%;
  border: 1.5px solid white;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.8);
}

.divider {
  opacity: 0.6;
  font-weight: 300;
}

.location-line {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}

/* Bio Text */
.bio-text {
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  max-width: 90%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  opacity: 0.95;
  margin-bottom: 20px;
}

/* Ensure FontAwesome loads */
/* Just in case, define fallback for icons if needed */

/* Mobile Tweaks */
@media (max-width: 360px) {
  .username {
    font-size: 28px;
  }

  .btn-primary {
    padding: 14px 24px;
    font-size: 16px;
  }

  .status-info {
    font-size: 13px;
  }

  .bio-text {
    font-size: 14px;
  }
}
