* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Figtree, sans-serif;
  background: linear-gradient(
    180deg,
    #41144f 0%,
    #41144f 10%,
    #0f0013 45%,
    #0f0013 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #edf4ff;
  text-align: center;
  padding: 8px 16px 16px 16px;
  /* Add padding top for iOS Smart App Banner */
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
}

/* Smart App Banner space for iOS */
@supports (-webkit-touch-callout: none) {
  body {
    padding-top: calc(92px + env(safe-area-inset-top, 0px));
  }
}

.profile-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 32px 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 480px) {
  body {
    padding: 8px 12px 12px 12px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  .profile-card {
    padding: 24px 16px;
    border-radius: 16px;
    max-width: 100%;
  }

  .display-name {
    font-size: 24px !important;
    margin-bottom: 12px !important;
  }

  .profile-image {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 16px !important;
    font-size: 32px !important;
  }

  .stats {
    margin: 16px 0 24px 0 !important;
    gap: 16px;
  }

  .stat-value {
    font-size: 20px !important;
  }

  .neon-button--medium .neon-button__text {
    padding: 12px 24px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 360px) {
  .profile-card {
    padding: 20px 12px;
  }

  .display-name {
    font-size: 20px !important;
  }

  .profile-image {
    width: 70px !important;
    height: 70px !important;
    font-size: 28px !important;
  }

  .stats {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .stat {
    width: 100%;
  }
}

.profile-image {
  border-radius: 50%;
  margin: 0 auto 24px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  color: #edf4ff;
  border: 3px solid rgba(255, 255, 255, 0.12);
}

.display-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #edf4ff;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-top: 24px;
  margin-bottom: 32px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #edf4ff;
}

.stat-value--highlight {
  color: #00b277;
}

.stat-label {
  font-size: 14px;
  color: #8da2bf;
  margin-top: 4px;
}

/* Neon Gradient Button Styles */
.neon-button {
  position: relative;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 12px;
  background: linear-gradient(135deg, #a911cb, #e500ab);
  padding: 2px;
  box-shadow:
    0 0 20px rgba(233, 17, 203, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.2);
}

.neon-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  border-radius: 12px;
  pointer-events: none;
}

.neon-button__text {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #a911cb, #e500ab);
  border-radius: 10px;
  color: #edf4ff;
  z-index: 1;
}

.neon-button--small .neon-button__text {
  padding: 8px 16px;
  font-size: 14px;
}

.neon-button--medium .neon-button__text {
  padding: 16px 32px;
  font-size: 16px;
}

.neon-button--large .neon-button__text {
  padding: 20px 40px;
  font-size: 18px;
}

.neon-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 30px rgba(233, 17, 203, 0.6),
    0 6px 20px rgba(0, 0, 0, 0.3);
}

.neon-button:active {
  transform: translateY(0);
}

.neon-button--secondary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.1)
  );
}

.neon-button--secondary .neon-button__text {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.neon-button--secondary:hover {
  box-shadow:
    0 0 20px rgba(219, 36, 203, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.2);
}

.error-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 48px 32px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 400px;
  width: 100%;
}

.vida-logo {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #edf4ff;
}

.message {
  font-size: 18px;
  color: #8da2bf;
  margin-bottom: 32px;
  line-height: 1.5;
}

.action-buttons {
  margin-top: 32px;
}

.download-hint {
  margin-top: 16px;
}

.download-text {
  font-size: 14px;
  color: #898e94;
  font-style: italic;
}

.referral-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 32px 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.referral-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.referral-logo {
  font-size: 36px;
  font-weight: 900;
  color: #edf4ff;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.referral-title {
  font-size: 24px;
  font-weight: 700;
  color: #edf4ff;
  margin-bottom: 8px;
  text-align: center;
}

.referral-subtitle {
  font-size: 14px;
  color: #8da2bf;
  text-align: center;
  line-height: 1.4;
}

.referral-code-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.referral-code-label {
  font-size: 12px;
  color: #8da2bf;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.referral-code-display {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  display: inline-block;
}

.referral-code-text {
  font-size: 20px;
  font-weight: 800;
  color: #edf4ff;
  letter-spacing: 3px;
}

.referral-message {
  margin-bottom: 24px;
}

.referral-message h2 {
  font-size: 20px;
  font-weight: 700;
  color: #edf4ff;
  margin-bottom: 12px;
}

.referral-message p {
  font-size: 14px;
  color: #8da2bf;
  line-height: 1.5;
}

.benefits {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.benefit {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #db24cb, #e500ab);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefit:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(219, 36, 203, 0.3);
  transform: translateX(4px);
}

.benefit:hover::before {
  opacity: 1;
}

.benefit-icon-wrapper {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    rgba(219, 36, 203, 0.2),
    rgba(229, 0, 171, 0.2)
  );
  border: 1px solid rgba(219, 36, 203, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.benefit-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benefit-title {
  font-size: 14px;
  font-weight: 600;
  color: #edf4ff;
  line-height: 1.3;
}

.benefit-description {
  font-size: 12px;
  color: #8da2bf;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .referral-card {
    padding: 24px 16px;
    border-radius: 16px;
    max-width: 100%;
  }

  .referral-logo {
    font-size: 28px;
  }

  .referral-title {
    font-size: 20px;
  }

  .referral-subtitle {
    font-size: 13px;
  }

  .referral-code-text {
    font-size: 18px;
  }

  .referral-message h2 {
    font-size: 18px;
  }

  .neon-button--large .neon-button__text {
    padding: 16px 32px !important;
    font-size: 16px !important;
  }

  .benefit-icon-wrapper {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .benefit-title {
    font-size: 13px;
  }

  .benefit-description {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .referral-card {
    padding: 20px 12px;
  }

  .referral-logo {
    font-size: 24px;
  }

  .referral-title {
    font-size: 18px;
  }

  .referral-code-text {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .benefit {
    padding: 12px;
  }
}
