/* Profile page styles - Очень темный фон */
html body {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #0F0F0F 100%) !important;
  background-attachment: fixed !important;
}

html body .bg .glow-a,
html body .bg .glow-b {
  display: none !important;
}

html body .bg .grid {
  opacity: 0.05 !important;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
}

html body .bg .noise {
  opacity: 0.1 !important;
  mix-blend-mode: overlay !important;
}

.tiles {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

/* Убираем отступы у контейнера */
.phone__inner {
  padding: 0 !important;
  margin: 0 !important;
}

.phone {
  margin: 0 !important;
  padding: 0 !important;
}

.layout.app-wrap {
  margin: 0 !important;
  padding: 0 !important;
}

body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Анимации для страницы профиля */
@keyframes profileFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profileSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes profileScaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.profile-screen-wrap {
  animation: profileFadeIn 0.5s ease-out;
}

.profile-screen-background {
  animation: profileScaleIn 0.6s ease-out 0.1s both;
}

.profile-screen-title {
  animation: profileSlideIn 0.5s ease-out 0.2s both;
}

.profile-screen-nickname {
  animation: profileSlideIn 0.5s ease-out 0.3s both;
}

.profile-screen-subtitle {
  animation: profileSlideIn 0.5s ease-out 0.4s both;
}

.profile-screen-content {
  animation: profileFadeIn 0.5s ease-out 0.5s both;
}

.profile-screen-card {
  opacity: 0;
  transform: translateY(20px);
  animation: profileFadeIn 0.4s ease-out forwards;
}

.profile-screen-card:nth-child(1) { animation-delay: 0.6s; }
.profile-screen-card:nth-child(2) { animation-delay: 0.7s; }
.profile-screen-card:nth-child(3) { animation-delay: 0.8s; }
.profile-screen-card:nth-child(4) { animation-delay: 0.9s; }

/* Новый дизайн профиля */
.profile-screen-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #0F0F0F 100%);
  margin: 0;
  padding: 0;
  position: relative;
}

/* Задний фон с фиолетовым градиентом - отдельный объект */
.profile-screen-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-bottom: 140px;
  background: linear-gradient(145deg, #6D28D9 0%, #7C3AED 25%, #5B21B6 50%, #4C1D95 75%, #3B1A6B 100%);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  z-index: 1;
  margin-bottom: 50px;
}

/* Заголовок "Мой профиль" - отдельный объект */
.profile-screen-title {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 12px 20px;
  padding-top: calc(12px + env(safe-area-inset-top, 0));
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: rgba(228, 228, 228, 0.95);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Никнейм (данные) - отдельный объект */
.profile-screen-nickname {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 20px 20px 8px 20px;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.2;
}

/* Подзаголовок "Ваш никнейм в базе данных" - отдельный объект */
.profile-screen-subtitle {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 20px 40px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-bottom: 50px;
}

/* Контентная область с темным фоном */
.profile-screen-content {
  flex: 1;
  padding: 20px;
  padding-top: 0;
  margin-top: -50px;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #0F0F0F 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

/* Карточки статистики */
.profile-screen-card {
  position: relative;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(60, 60, 60, 0.6);
  border: 1px solid rgba(100, 100, 100, 0.3);
  display: flex;
  align-items: center;
  gap: 16px;
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.profile-screen-card--clickable {
  cursor: pointer;
}

.profile-screen-card--clickable:hover {
  background: rgba(70, 70, 70, 0.7);
  border-color: rgba(120, 120, 120, 0.4);
}

.profile-screen-card--clickable:active {
  transform: scale(0.98);
}

.profile-screen-card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.profile-screen-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
}

.profile-screen-card__text {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.profile-screen-card__value {
  font-size: 16px;
  font-weight: 700;
  color: #A78BFA;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-right: 8px;
}

.profile-screen-card__arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(150, 150, 150, 0.6);
  flex-shrink: 0;
}

.profile-screen-card__arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Адаптивность */
@media (max-width: 480px) {
  .profile-screen-background {
    padding-bottom: 170px;
    margin-bottom: 40px;
  }

  .profile-screen-subtitle {
    padding: 0 16px 40px 16px;
    margin-bottom: 40px;
  }

  .profile-screen-content {
    margin-top: 0;
  }

  .profile-screen-title {
    padding: 10px 16px;
    padding-top: calc(10px + env(safe-area-inset-top, 0));
    font-size: 14px;
  }

  .profile-screen-nickname {
    padding: 16px 16px 6px 16px;
    font-size: 28px;
  }

  .profile-screen-subtitle {
    padding: 0 16px 70px 16px;
    font-size: 13px;
  }

  .profile-screen-content {
    padding: 16px;
    padding-top: 0;
    margin-top: -40px;
    gap: 10px;
  }

  .profile-screen-card {
    padding: 14px 16px;
    gap: 14px;
  }

  .profile-screen-card__text {
    font-size: 15px;
  }

  .profile-screen-card__value {
    font-size: 15px;
  }
}
