/* Header profile dropdown card (home_profile_card.html). Full /profile uses profile.css */
.profile-identity-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.profile-identity-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.profile-identity-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.profile-identity-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.profile-identity-line {
  margin: 0;
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  word-break: break-word;
}

.profile-tariff-badge {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.profile-tariff-badge__label {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  background: #641fab;
  color: #fff;
  white-space: nowrap;
}

.profile-tariff-badge__value {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: #fff;
  color: #641fab;
  white-space: nowrap;
}

.profile-tariff-active {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
}

.profile-balance-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-top: 4px;
  flex-wrap: wrap;
}

/* Компактная карточка в dropdown шапки */
.profile-identity-card--compact.profile-info-block {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  padding: 14px 16px;
}

.profile-identity-card--compact.profile-info-block:hover {
  transform: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.profile-identity-card--compact .profile-identity-card {
  gap: 14px;
}

.profile-identity-card--compact .profile-identity-avatar {
  width: 52px;
  height: 52px;
}

.profile-identity-card--compact .profile-identity-line {
  font-size: 16px;
}

.profile-identity-card--compact .profile-balance-section {
  flex-wrap: nowrap;
  align-items: center;
}

.profile-identity-card--compact .profile-balance-btn {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 12px;
}

.profile-balance-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-balance-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.profile-balance-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
}

.profile-balance-neuron-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.profile-balance-btn {
  width: auto;
  min-width: 120px;
  max-width: none;
  flex-shrink: 0;
}
.block-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.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(100px, 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); /* Делает иконку белой */
}
