/* Profile page styles */
.profile-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 100px 16px;
}

@media (min-width: 1440px) {
  .profile-container {
    padding: 0 80px 100px 80px;
  }
}

/* Profile info blocks */
.profile-info-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: clamp(15px, 3.5vh, 50px);
}

/* Top two blocks container */
.profile-top-blocks {
  display: flex;
  gap: clamp(20px, 4vw, 50px); /* Адаптивный отступ: 20px → 50px */
  justify-content: center;
  width: 100%;
  max-width: 850px; /* 400px + 50px + 400px = 850px */
}


.profile-info-block {
  background: 
    url('../../images/profile/background.svg') center/cover no-repeat,
    linear-gradient(135deg, rgba(172, 75, 255, 1), rgba(178, 48, 204, 1));
  border-radius: 20px;
  padding: clamp(16px, 3vh, 22px);
  border: 1.5px solid #D2CEFF;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Адаптивные размеры для верхних блоков */
  width: clamp(240px, 40vw, 400px);
  height: 240px;
}

/* Для третьего блока (полная ширина) */
.profile-info-block.full-width {
  width: 40%;
  max-width: 750px; /* Такая же ширина, как у двух верхних блоков вместе */
  min-width: 400px;
  height: auto; /* Автоматическая высота */
  background: 
    url('../../images/profile/background2.svg') center/cover no-repeat,
    linear-gradient(135deg, rgba(172, 75, 255, 1), rgba(178, 48, 204, 1));
}



/* Условие для ширины окна 1400px+ */
@media (min-width: 1400px) {
  .profile-info-block:not(.full-width) {
    width: 400px;
  }
}

.profile-info-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.profile-info-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

/* Block header with icon and title */
.block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.block-icon {
  width: clamp(20px, 4vw, 44px); /* Адаптивная ширина: 20px → 44px */
  height: clamp(20px, 4vw, 44px); /* Увеличена высота: 24px → 48px */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.block-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.block-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 2.5vw, 20px); /* Максимальный размер 20px */
  font-weight: 600; /* Inter Semibold */
  color: white;
  margin: 0;
}

/* Block content */
.block-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.block-main-value {
  font-family: 'Inter', sans-serif;
  font-size: clamp(20px, 4vh, 28px); /* Максимальный размер 28px */
  font-weight: 900; /* Inter Black */
  color: #3B0031; /* Темно-фиолетовый цвет */
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.block-details {
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 2.2vw, 16px); /* Максимальный размер 16px */
  font-weight: 400; /* Inter Regular */
  color: white; /* Белый цвет */
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.block-description {
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 2.2vw, 16px); /* Максимальный размер 16px */
  font-weight: 400; /* Inter Regular */
  color: white; /* Белый цвет */
  margin: 0 0 16px 0;
  line-height: 1.4;
}

/* Адаптивный отступ для деталей тарифа */


/* Action button */
.block-action-btn {
  background: 
    url('../../images/profile/background_button.svg') center/cover no-repeat,
    linear-gradient(135deg, #8B5CF6, #EC4899); /* Fallback gradient */
  border: none;
  border-radius: 12px;
  color: white;
  padding: clamp(8px, 2vh, 12px) clamp(12px, 3vw, 16px);
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 2vw, 18px); /* Максимальный размер 18px */
  font-weight: 600; /* Inter Semi Bold */
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(200px, 30vw, 250px); /* Адаптивная ширина: 200px → 250px */
  max-width: 250px; /* Максимальная ширина 250px */
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.block-action-btn:hover {
  background: 
    url('../../images/profile/background_button.svg') center/cover no-repeat,
    linear-gradient(135deg, #7C3AED, #DB2777); /* Darker fallback gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.block-action-btn-icon {
  width: clamp(12px, 2vw, 20px);
  height: clamp(12px, 2vw, 20px);
  filter: brightness(0) invert(1); /* Делает иконку белой */
}

/* Progress bars for usage stats */
.usage-stats {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.usage-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Заголовки тарифов */
.usage-tariffs-header {
  margin-top: -10px;
  display: grid;
  gap: 12px;
  align-items: center;
}

.usage-tariff-header-spacer {
  width: 20px;
  height: 20px;
}

.usage-tariff-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 2vh, 16px);
  font-weight: 600;
  color: #3B0031;
}

.usage-tariffs-row {
  display: grid;
  gap: 12px;
  align-items: end;
}

.usage-tariffs-row.usage-single-row {
  grid-template-columns: auto 1fr;
}

.usage-resource-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: -4px; /* Небольшой отступ для выравнивания с ползунком */
}

.usage-resource-icon img {
  width: clamp(13px, 1.7vw, 20px);
  height: clamp(13px, 1.7vw, 20px);
  object-fit: contain;
}

.usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.usage-label {
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 2vh, 16px); /* Максимальный размер 16px */
  font-weight: 400; /* Inter Regular */
  color: white; /* Белый цвет */
  margin: 0;
}

.usage-values {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
  text-align: center;
}

.usage-progress {
  width: 100%;
  height: 8px;
  background: #3B0031; /* Темно-фиолетовый фон */
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.usage-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ED44AB, #ED44AB); /* Розовый градиент */
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .profile-info-block.full-width {
    min-width: 300px;
  }
}

@media (max-width: 500px) {
  .block-title{
    font-size: clamp(14px, 4vw, 20px);
  }
  .block-main-value{
    font-size: clamp(14px, 5vw, 25px);
  }
  .block-details{
    font-size: clamp(10px, 4vw, 15px);
  }
  .block-description{
    font-size: clamp(10px, 4vw, 15px);
  }
  .profile-top-blocks {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .profile-info-block{
    height: 200px
  }

  .profile-info-block:not(.full-width) {
    width: 90vw;
    max-width: 90vw;
  }
  
  .profile-info-block.full-width {
    width: clamp(200px, 90vw, 600px);
    max-width: 600px;
    margin-bottom: 25px;
  }
  
}


